From: Bjarke Istrup Pedersen Date: Tue, 27 Feb 2007 16:56:47 +0000 (+0000) Subject: Added patch to fix some compiler warnings. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2527a4cd8ccf452792bffe4fd5dcb73d134582b9;p=gentoo.git Added patch to fix some compiler warnings. Package-Manager: portage-2.1.2-r11 --- diff --git a/net-misc/linux-igd/ChangeLog b/net-misc/linux-igd/ChangeLog index fc80f07f1b8f..5a17ba87bb34 100644 --- a/net-misc/linux-igd/ChangeLog +++ b/net-misc/linux-igd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/linux-igd # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/ChangeLog,v 1.17 2007/02/27 10:13:54 gurligebis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/ChangeLog,v 1.18 2007/02/27 16:56:46 gurligebis Exp $ + + 27 Feb 2007; Bjarke Istrup Pedersen linux-igd-1.0-r1.ebuild, + +files/makefile-fix-1.0.diff: + Added patch to fix some compiler warnings. 27 Feb 2007; Bjarke Istrup Pedersen linux-igd-1.0-r1.ebuild: Added ~amd64 keyword. diff --git a/net-misc/linux-igd/files/makefile-fix-1.0.diff b/net-misc/linux-igd/files/makefile-fix-1.0.diff new file mode 100644 index 000000000000..bf3ea504d9e3 --- /dev/null +++ b/net-misc/linux-igd/files/makefile-fix-1.0.diff @@ -0,0 +1,11 @@ +--- Makefile 2007-02-27 16:49:24.000000000 +0000 ++++ Makefile 2007-02-27 16:52:56.000000000 +0000 +@@ -27,7 +27,7 @@ upnpd: $(FILES) + @echo "make $@ finished on `date`" + + %.o: %.c +- $(CC) $(CFLAGS) $(INCLUDES) -c $< ++ $(CC) $(CFLAGS) $(INCLUDES) -D_GNU_SOURCE -c $< + + clean: + rm -f *.o upnpd diff --git a/net-misc/linux-igd/linux-igd-1.0-r1.ebuild b/net-misc/linux-igd/linux-igd-1.0-r1.ebuild index e0e1228efa7f..fdcbfdae3982 100644 --- a/net-misc/linux-igd/linux-igd-1.0-r1.ebuild +++ b/net-misc/linux-igd/linux-igd-1.0-r1.ebuild @@ -1,7 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/linux-igd-1.0-r1.ebuild,v 1.3 2007/02/27 10:13:54 gurligebis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/linux-igd-1.0-r1.ebuild,v 1.4 2007/02/27 16:56:46 gurligebis Exp $ +inherit eutils DESCRIPTION="Deamon that emulates Microsoft's Internet Connection Sharing (ICS) for UPnP-aware clients" HOMEPAGE="http://linux-igd.sourceforge.net" @@ -17,8 +18,8 @@ RDEPEND="net-firewall/iptables" S=${WORKDIR}/linuxigd-${PV} src_compile() { - sed -i -e "s|/etc/linuxigd|${D}/etc/linuxigd|" \ - -e "s|/usr/bin|${D}/usr/bin|" Makefile + epatch ${FILESDIR}/makefile-fix-${PVR}.diff + sed -i -e "s|/etc/linuxigd|${D}/etc/linuxigd|" -e "s|/usr/bin|${D}/usr/bin|" Makefile sed -i -e "s|/etc/upnpd.conf|/etc/linuxigd/upnpd.conf|" globals.h emake || die "compile failed"