diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-01-10 18:30:53 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-01-10 18:30:53 +0000 |
commit | b7c845a80ab11f15150ad1b75004119d83eec59b (patch) | |
tree | d28a0a01cf57743f4adaa0775456a58c49d6d139 /sys-apps | |
parent | Added in a message with a link to the Device File System Guide, bug #77326 (M... (diff) | |
download | gentoo-2-b7c845a80ab11f15150ad1b75004119d83eec59b.tar.gz gentoo-2-b7c845a80ab11f15150ad1b75004119d83eec59b.tar.bz2 gentoo-2-b7c845a80ab11f15150ad1b75004119d83eec59b.zip |
Remove all references to config.h so the configure script will never run again #77348.
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/net-tools/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/net-tools/files/1.60-Makefile.patch | 67 | ||||
-rw-r--r-- | sys-apps/net-tools/net-tools-1.60-r10.ebuild | 25 |
3 files changed, 82 insertions, 17 deletions
diff --git a/sys-apps/net-tools/ChangeLog b/sys-apps/net-tools/ChangeLog index 37387709626e..c198b578a027 100644 --- a/sys-apps/net-tools/ChangeLog +++ b/sys-apps/net-tools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/net-tools # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.47 2005/01/07 03:40:06 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/ChangeLog,v 1.48 2005/01/10 18:30:53 vapier Exp $ + + 10 Jan 2005; Mike Frysinger <vapier@gentoo.org> + +files/1.60-Makefile.patch, net-tools-1.60-r10.ebuild: + Remove all references to config.h so the configure script will never run + again #77348. *net-tools-1.60-r10 (06 Jan 2005) diff --git a/sys-apps/net-tools/files/1.60-Makefile.patch b/sys-apps/net-tools/files/1.60-Makefile.patch new file mode 100644 index 000000000000..586f54eb009d --- /dev/null +++ b/sys-apps/net-tools/files/1.60-Makefile.patch @@ -0,0 +1,67 @@ +Let's clean up the Makefile ... we want to: + - make sure COPTS is clean for clobbering with user $CFLAGS + - make sure LOPTS is clean for clobbering with user $LDFLAGS + - remove all references to config.h since we generate it for the + user and we really do NOT want the interactive configure running + - make sure libdir depends on version.h to fix parallel builds + +--- Makefile.orig 2005-01-10 13:11:00.369702792 -0500 ++++ Makefile 2005-01-10 13:15:36.542718112 -0500 +@@ -88,7 +88,7 @@ + + # Compiler and Linker Options + # You may need to uncomment and edit these if you are using libc5 and IPv6. +-COPTS = -D_GNU_SOURCE -O2 -Wall -g # -I/usr/inet6/include ++COPTS = + ifeq ($(origin LOPTS), undefined) + LOPTS = + endif +@@ -113,7 +113,7 @@ + + NET_LIB = $(NET_LIB_PATH)/lib$(NET_LIB_NAME).a + +-CFLAGS = $(COPTS) -I. -idirafter ./include/ -I$(NET_LIB_PATH) ++CFLAGS = $(COPTS) -I. -idirafter ./include/ -I$(NET_LIB_PATH) -D_GNU_SOURCE -Wall + LDFLAGS = $(LOPTS) -L$(NET_LIB_PATH) + + SUBDIRS = man/ $(NET_LIB_PATH)/ +@@ -127,12 +127,12 @@ + + MDEFINES = COPTS='$(COPTS)' LOPTS='$(LOPTS)' TOPDIR='$(TOPDIR)' + +-%.o: %.c config.h version.h intl.h net-features.h $< ++%.o: %.c version.h intl.h net-features.h $< + $(CC) $(CFLAGS) -c $< + +-all: config.h version.h subdirs $(PROGS) ++all: version.h subdirs $(PROGS) + +-config: cleanconfig config.h ++config: cleanconfig + + install: all savebin installbin installdata + +@@ -159,14 +159,6 @@ + @tar -cvz -f ../net-tools-$(RELEASE).tar.gz -C .. net-tools + + +-config.h: config.in Makefile +- @echo "Configuring the Linux net-tools (NET-3 Base Utilities)..." ; echo +- @if [ config.status -nt config.in ]; \ +- then ./configure.sh config.status; \ +- else ./configure.sh config.in; \ +- fi +- +- + version.h: Makefile + @echo "#define RELEASE \"net-tools $(RELEASE)\"" >version.h + +@@ -175,7 +167,7 @@ + + i18n.h: i18ndir + +-libdir: ++libdir: version.h + @$(MAKE) -C $(NET_LIB_PATH) $(MDEFINES) + + i18ndir: diff --git a/sys-apps/net-tools/net-tools-1.60-r10.ebuild b/sys-apps/net-tools/net-tools-1.60-r10.ebuild index 6e5f39ea1044..bc80f4a1a1b1 100644 --- a/sys-apps/net-tools/net-tools-1.60-r10.ebuild +++ b/sys-apps/net-tools/net-tools-1.60-r10.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/net-tools-1.60-r10.ebuild,v 1.1 2005/01/07 03:40:06 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/net-tools/net-tools-1.60-r10.ebuild,v 1.2 2005/01/10 18:30:53 vapier Exp $ inherit flag-o-matic toolchain-funcs eutils @@ -57,12 +57,11 @@ src_unpack() { append-ldflags -static fi + epatch "${FILESDIR}"/${PV}-Makefile.patch sed -i \ - -e 's/^libdir:/libdir: version.h/' \ - -e "s:-O2 -Wall -g:${CFLAGS}:" \ - -e "/^LOPTS =/ s/\$/${CFLAGS}/" \ - Makefile || die "sed Makefile failed" - + -e "/^COPTS =/s:=:=${CFLAGS}:" \ + -e "/^LOPTS =/s:=:=${LDFLAGS}:" \ + Makefile || die "sed FLAGS Makefile failed" sed -i \ -e "s:/usr/man:/usr/share/man:" \ man/Makefile || die "sed man/Makefile failed" @@ -73,20 +72,14 @@ src_unpack() { fi if ! use nls ; then - sed -i -e 's:\(#define I18N\) 1:\1 0:' config.h || \ - die "sed config.h failed" - - sed -i -e 's:I18N=1:I18N=0:' config.make || - die "sed config.make failed" + sed -i -e 's:\(#define I18N\) 1:\1 0:' config.h \ + || die "sed config.h failed" + sed -i -e 's:I18N=1:I18N=0:' config.make \ + || die "sed config.make failed" fi - - # sync timestamps - touch config.h - touch -r config.h config.make } src_compile() { - # configure shouldn't run anymore so bug #820 shouldn't apply... tc-export CC emake libdir || die "emake libdir failed" emake || die "emake failed" |