diff options
author | dholland <dholland> | 2011-08-01 05:19:12 +0000 |
---|---|---|
committer | dholland <dholland> | 2011-08-01 05:19:12 +0000 |
commit | f960629e825688e08c732cc2168d738cbd0214f8 (patch) | |
tree | 3e97714ed1d6957ba48a878a52dd9f6ee1ea44df /databases/gnats/patches | |
parent | 09ad115a16d5da6daf9b5de5757f96831b50eb05 (diff) | |
download | pkgsrc-f960629e825688e08c732cc2168d738cbd0214f8.tar.gz |
Fix broken build with clang. While here, fix the toplevel makefile to
stop on error.
Diffstat (limited to 'databases/gnats/patches')
-rw-r--r-- | databases/gnats/patches/patch-gnats_gnats_h | 16 | ||||
-rw-r--r-- | databases/gnats/patches/patch-makefile_in | 77 |
2 files changed, 93 insertions, 0 deletions
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 |