diff options
author | Eldad Zack <eldad@gentoo.org> | 2006-05-06 23:58:16 +0000 |
---|---|---|
committer | Eldad Zack <eldad@gentoo.org> | 2006-05-06 23:58:16 +0000 |
commit | 614530ea0c47e8860447f4f13c6b90887f635701 (patch) | |
tree | 40093d16b33e26cc418349a1498d4094688c1276 | |
parent | Bump to latest version. (diff) | |
download | historical-614530ea0c47e8860447f4f13c6b90887f635701.tar.gz historical-614530ea0c47e8860447f4f13c6b90887f635701.tar.bz2 historical-614530ea0c47e8860447f4f13c6b90887f635701.zip |
fixed nagios to compile with --as-needed. Closes bug #130806.
Package-Manager: portage-2203-svn
-rw-r--r-- | net-analyzer/nagios-core/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/nagios-core/Manifest | 11 | ||||
-rw-r--r-- | net-analyzer/nagios-core/files/nagios-1.x-Makefile-asneeded.diff | 110 | ||||
-rw-r--r-- | net-analyzer/nagios-core/nagios-core-1.4.ebuild | 3 |
4 files changed, 124 insertions, 7 deletions
diff --git a/net-analyzer/nagios-core/ChangeLog b/net-analyzer/nagios-core/ChangeLog index 4a197aa8e33d..96a93772f805 100644 --- a/net-analyzer/nagios-core/ChangeLog +++ b/net-analyzer/nagios-core/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/nagios-core # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/ChangeLog,v 1.79 2006/05/06 18:09:48 eldad Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/ChangeLog,v 1.80 2006/05/06 23:58:16 eldad Exp $ + + 06 May 2006; Eldad Zack <eldad@gentoo.org> + +files/nagios-1.x-Makefile-asneeded.diff, nagios-core-1.4.ebuild: + fixed nagios to compile with --as-needed. Closes bug #130806. Thanks to + Patrizio Bassi <hetfield666@gmail.com> for reporting. 06 May 2006; Eldad Zack <eldad@gentoo.org> -nagios-core-1.2-r4.ebuild, -nagios-core-1.3.ebuild, -nagios-core-2.0.ebuild, -nagios-core-2.1.ebuild, diff --git a/net-analyzer/nagios-core/Manifest b/net-analyzer/nagios-core/Manifest index 5aca26012bec..025b76817a99 100644 --- a/net-analyzer/nagios-core/Manifest +++ b/net-analyzer/nagios-core/Manifest @@ -1,22 +1,23 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 99d1444e6c2507caa994289b96979cb2 ChangeLog 14227 +MD5 3faff198fac5d4e1517f9cd4b80bbdc0 ChangeLog 14471 MD5 446906907cccdbf195442373c6f17f77 files/2.x-series-nsca.patch 767 MD5 673bda0ac6ab9230d23331e7f3846b7b files/99_nagios.conf 350 MD5 f2947dec6b9a839da79606bcc394036b files/conf.d 409 MD5 155842cf933f59e8cd68b61d84280e70 files/digest-nagios-core-1.4 151 MD5 0112e82ce6b3c7360d47e40bdf76a990 files/digest-nagios-core-2.3 131 MD5 f83fb59efe215d8191866a95685b4b39 files/nagios 1416 +MD5 354f5aeb0e831ee8e218962eb85d07e4 files/nagios-1.x-Makefile-asneeded.diff 5460 MD5 dad3fb46e8f73ac54d9239a542bc82e0 files/nagios.conf 362 MD5 cee7d66cc61be3558af44ab177d99e1f files/submit_check_result_via_nsca.patch 585 MD5 bb0bc884a0383e5be0a4bae6cba836dc metadata.xml 1049 -MD5 fd4bbf948011b165ed0995b655468eec nagios-core-1.4.ebuild 7474 +MD5 fb72f51fef653a59ee31a123ade44071 nagios-core-1.4.ebuild 7525 MD5 b35df22fc58a088a877f17bdc779c22e nagios-core-2.3.ebuild 6013 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2-ecc0.1.6 (GNU/Linux) -iD8DBQFEXOZ/T+MN7JbqCpMRAiAMAJ9eL6kHtkRy8wWLkzmUynC10Y2IlwCfcmi9 -0HDUNyXsnjsMQOlOe+KMQhk= -=eRE0 +iD8DBQFEXTgmT+MN7JbqCpMRAprvAJ9/+P19JxJOBKGtm8EzsuqQwYjylACghD7J +OgJSldMB3Mc1GyFR13LsyvE= +=9sdE -----END PGP SIGNATURE----- diff --git a/net-analyzer/nagios-core/files/nagios-1.x-Makefile-asneeded.diff b/net-analyzer/nagios-core/files/nagios-1.x-Makefile-asneeded.diff new file mode 100644 index 000000000000..b24c9fc3fc62 --- /dev/null +++ b/net-analyzer/nagios-core/files/nagios-1.x-Makefile-asneeded.diff @@ -0,0 +1,110 @@ +--- nagios-1.3/base/Makefile.in.orig 2006-04-30 00:22:59.000000000 +0300 ++++ nagios-1.3/base/Makefile.in 2006-04-30 00:23:01.000000000 +0300 +@@ -12,7 +12,8 @@ + CC=@CC@ + CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE + #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCORE +-LDFLAGS=@LDFLAGS@ @LIBS@ ++LDFLAGS=@LDFLAGS@ ++LDADD=@LIBS@ + + prefix=@prefix@ + exec_prefix=@exec_prefix@ +@@ -88,7 +89,7 @@ + OBJS=checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o $(RDATALIBS) $(CDATALIBS) $(ODATALIBS) $(SDATALIBS) $(PDATALIBS) $(DDATALIBS) $(BASEEXTRALIBS) $(SNPRINTF_O) + + nagios: nagios.c $(OBJS) nagios.h $(SRC_COMMON)/locations.h +- $(CC) $(CFLAGS) $(LDFLAGS) nagios.c $(OBJS) $(PERLLIBS) $(MATHLIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) nagios.c $(OBJS) $(PERLLIBS) $(MATHLIBS) $(LDADD) -o $@ + + #$(SRC_COMMON)/locations.h: $(SRC_COMMON)/locations.sub + # perl -pe 's|\$${prefix}|${prefix}|g;s|\$${exec_prefix}|${exec_prefix}|g;s|\$${htmurl}|$(HTMURL)|g;s|\$${cgiurl}|$(CGIURL)|g;' $(SRC_COMMON)/locations.sub > $(SRC_COMMON)/locations.h +--- nagios-1.3/cgi/Makefile.in.orig 2006-04-30 00:37:36.000000000 +0300 ++++ nagios-1.3/cgi/Makefile.in 2006-04-30 00:38:56.000000000 +0300 +@@ -27,7 +27,8 @@ + CC=@CC@ + CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI + #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCGI +-LDFLAGS=@LDFLAGS@ @LIBS@ ++LDFLAGS=@LDFLAGS@ ++LDADD=@LIBS@ + + CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi summary.cgi tac.cgi $(CGIEXTRAS) + +@@ -95,58 +96,58 @@ + $(COMMENTLIBS): $(COMMENTHDRS) + + avail.cgi: avail.c $(CGIDEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) avail.c $(CGILIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) avail.c $(CGILIBS) $(LDADD) -o $@ + + checksanity.cgi: checksanity.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) $(DDATADEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) checksanity.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) checksanity.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) $(LDADD) -o $@ + + cmd.cgi: cmd.c $(CGIDEPS) $(CDATADEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) cmd.c $(CGILIBS) $(CDATALIBS) $(DDATALIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) cmd.c $(CGILIBS) $(CDATALIBS) $(DDATALIBS) $(LDADD) -o $@ + + config.cgi: config.c $(CGIDEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) config.c $(CGILIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) config.c $(CGILIBS) $(LDADD) -o $@ + + extinfo.cgi: extinfo.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) $(DDATADEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) extinfo.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) extinfo.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) $(LDADD) -o $@ + + history.cgi: history.c $(CGIDEPS) $(LIFODEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) history.c $(CGILIBS) $(LIFOLIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) history.c $(CGILIBS) $(LIFOLIBS) $(LDADD) -o $@ + + ministatus.cgi: ministatus.c $(CGIDEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) ministatus.c $(CGILIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) ministatus.c $(CGILIBS) $(LDADD) -o $@ + + notifications.cgi: notifications.c $(CGIDEPS) $(LIFODEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) notifications.c $(CGILIBS) $(LIFOLIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) notifications.c $(CGILIBS) $(LIFOLIBS) $(LDADD) -o $@ + + outages.cgi: outages.c $(CGIDEPS) $(CDATADEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) outages.c $(CGILIBS) $(CDATALIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) outages.c $(CGILIBS) $(CDATALIBS) $(LDADD) -o $@ + + showlog.cgi: showlog.c $(CGIDEPS) $(LIFODEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) showlog.c $(CGILIBS) $(LIFOLIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) showlog.c $(CGILIBS) $(LIFOLIBS) $(LDADD) -o $@ + + status.cgi: status.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) status.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) status.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(LDADD) -o $@ + + statuswml.cgi: statuswml.c $(CGIDEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) statuswml.c $(CGILIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) statuswml.c $(CGILIBS) $(LDADD) -o $@ + + statusmap.cgi: statusmap.c $(CGIDEPS) $(EDATADEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) statusmap.c $(CGILIBS) $(GDLIBS) $(EDATALIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) statusmap.c $(CGILIBS) $(GDLIBS) $(EDATALIBS) $(LDADD) -o $@ + + statuswrl.cgi: statuswrl.c $(CGIDEPS) $(EDATADEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) statuswrl.c $(CGILIBS) $(MATHLIBS) $(EDATALIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) statuswrl.c $(CGILIBS) $(MATHLIBS) $(EDATALIBS) $(LDADD) -o $@ + + summary.cgi: summary.c $(CGIDEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) summary.c $(CGILIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) summary.c $(CGILIBS) $(LDADD) -o $@ + + tac.cgi: tac.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) tac.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) tac.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(LDADD) -o $@ + + trends.cgi: trends.c $(CGIDEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) trends.c $(CGILIBS) $(GDLIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) trends.c $(CGILIBS) $(GDLIBS) $(LDADD) -o $@ + + histogram.cgi: histogram.c $(CGIDEPS) +- $(CC) $(CFLAGS) $(LDFLAGS) histogram.c $(CGILIBS) $(GDLIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) histogram.c $(CGILIBS) $(GDLIBS) $(LDADD) -o $@ + + clean: + rm -f $(CGIS) *.o *.cfg *.sub core diff --git a/net-analyzer/nagios-core/nagios-core-1.4.ebuild b/net-analyzer/nagios-core/nagios-core-1.4.ebuild index 78a52d85f7a6..5a8b6f3e85f8 100644 --- a/net-analyzer/nagios-core/nagios-core-1.4.ebuild +++ b/net-analyzer/nagios-core/nagios-core-1.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/nagios-core-1.4.ebuild,v 1.3 2006/05/05 19:38:38 ramereth Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/nagios-core-1.4.ebuild,v 1.4 2006/05/06 23:58:16 eldad Exp $ inherit eutils apache-module toolchain-funcs @@ -54,6 +54,7 @@ src_unpack() { unpack ${A} cd ${S} + epatch ${FILESDIR}/nagios-1.x-Makefile-asneeded.diff epatch ${WORKDIR}/nagios-1.x-Makefile-distclean-gentoo.diff # libpq-fe.h isnt in psgql/ |