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 | 6a05f0ac30dea2bdda00c07c295f5460646a6151 (patch) | |
tree | 62b72ea7a62418f0e8f9d66ec136ae82e6cef0ec /net-analyzer/nagios-core | |
parent | Bump to latest version. (diff) | |
download | gentoo-2-6a05f0ac30dea2bdda00c07c295f5460646a6151.tar.gz gentoo-2-6a05f0ac30dea2bdda00c07c295f5460646a6151.tar.bz2 gentoo-2-6a05f0ac30dea2bdda00c07c295f5460646a6151.zip |
fixed nagios to compile with --as-needed. Closes bug #130806.
(Portage version: 2203-svn)
Diffstat (limited to 'net-analyzer/nagios-core')
-rw-r--r-- | net-analyzer/nagios-core/ChangeLog | 7 | ||||
-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 |
3 files changed, 118 insertions, 2 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/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/ |