summaryrefslogtreecommitdiff
path: root/databases/gnats
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2011-08-01 05:19:12 +0000
committerdholland <dholland@pkgsrc.org>2011-08-01 05:19:12 +0000
commitfce301a06635859998e879224aa1c3ef4725ca34 (patch)
tree3e97714ed1d6957ba48a878a52dd9f6ee1ea44df /databases/gnats
parent6f8c34d4c43b276a0f7e59b655fd5e3fb89610f3 (diff)
downloadpkgsrc-fce301a06635859998e879224aa1c3ef4725ca34.tar.gz
Fix broken build with clang. While here, fix the toplevel makefile to
stop on error.
Diffstat (limited to 'databases/gnats')
-rw-r--r--databases/gnats/distinfo4
-rw-r--r--databases/gnats/patches/patch-gnats_gnats_h16
-rw-r--r--databases/gnats/patches/patch-makefile_in77
3 files changed, 96 insertions, 1 deletions
diff --git a/databases/gnats/distinfo b/databases/gnats/distinfo
index f0203c34990..65a5bf4620c 100644
--- a/databases/gnats/distinfo
+++ b/databases/gnats/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2009/11/17 04:37:01 obache Exp $
+$NetBSD: distinfo,v 1.12 2011/08/01 05:19:12 dholland Exp $
SHA1 (gnats-4.1.0.tar.gz) = 7f8ce7fbb7594698c5ba71421cad3cbc7e079003
RMD160 (gnats-4.1.0.tar.gz) = b16bfa3ffa4f1c7dc351d1c5639061c358c64afd
@@ -9,3 +9,5 @@ SHA1 (patch-ac) = f6fdd1c2353961d47bd0e58866b56ac6f0d6173a
SHA1 (patch-ad) = ffacd88288036eb74eccd6687292c5a456e2f027
SHA1 (patch-ae) = ff99ebd3f6d2d1aa75b32ead56db0082eeb69753
SHA1 (patch-ah) = 1a21ef20bbc4a2e8ed2559687a2cd8983d1c3f5f
+SHA1 (patch-gnats_gnats_h) = 08cb25700672bddda30075c9a7a01443afcd5199
+SHA1 (patch-makefile_in) = a32d9f3f93cb4ec9d82d4ce204a12cd43e7a88c0
diff --git a/databases/gnats/patches/patch-gnats_gnats_h b/databases/gnats/patches/patch-gnats_gnats_h
new file mode 100644
index 00000000000..3fbc60246fc
--- /dev/null
+++ b/databases/gnats/patches/patch-gnats_gnats_h
@@ -0,0 +1,16 @@
+$NetBSD: patch-gnats_gnats_h,v 1.1 2011/08/01 05:19:12 dholland Exp $
+
+Remove redundant and improperly protected copy of private asprintf decl.
+
+--- gnats/gnats.h~ 2005-02-24 20:35:55.000000000 +0000
++++ gnats/gnats.h
+@@ -137,9 +137,6 @@ char *alloca ();
+ # define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
+ #endif
+
+-extern int asprintf (char **buf, const char *fmt, ...);
+-extern int vasprintf (char **buf, const char *fmt, va_list args);
+-
+ #if ! HAVE_DECL_UNSETENV
+ extern void unsetenv (const char *name);
+ #endif
diff --git a/databases/gnats/patches/patch-makefile_in b/databases/gnats/patches/patch-makefile_in
new file mode 100644
index 00000000000..152423140dc
--- /dev/null
+++ b/databases/gnats/patches/patch-makefile_in
@@ -0,0 +1,77 @@
+$NetBSD: patch-makefile_in,v 1.1 2011/08/01 05:19:12 dholland Exp $
+
+Fix energizer-bunny-makefiles.
+
+--- Makefile.in~ 2005-02-24 20:35:55.000000000 +0000
++++ Makefile.in
+@@ -34,15 +34,15 @@ SUBDIRS = gnats send-pr doc
+ all: all-gnats
+
+ all-gnats:
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
+
+ all-tools:
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
+
+ install: install-gnats
+
+ install-gnats:
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
+
+ install-strip:
+ $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' $@
+@@ -51,37 +51,37 @@ install-tools:
+ $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' $@
+
+ uninstall:
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
+
+ mostlyclean:
+ -rm -f TAGS *.tar *.tar.gz
+ -rm -f .\#* *~*
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
+
+ clean: mostlyclean
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
+
+ distclean: clean distclean-here
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
+ distclean-here:
+ -rm -f Makefile config.status config.cache config.log
+ -rm -f .\#* \#* *~*
+ -rm -f *.orig *.rej
+
+ maintainer-clean: distclean-here
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
+
+ Makefile: $(srcdir)/Makefile.in config.status
+ ./config.status
+
+ TAGS:
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
+
+ info:
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
+
+ dvi:
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
+
+ dist: maintainer-clean
+ ./configure
+@@ -105,4 +105,4 @@ dist: maintainer-clean
+ gzip -9 $(DISTDIR).tar
+
+ check:
+- for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
++ for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done