fix bug when using make -j5 or more
authorMartin Schlemmer <azarah@gentoo.org>
Mon, 14 Oct 2002 17:24:17 +0000 (17:24 +0000)
committerMartin Schlemmer <azarah@gentoo.org>
Mon, 14 Oct 2002 17:24:17 +0000 (17:24 +0000)
sys-apps/diffutils/ChangeLog
sys-apps/diffutils/diffutils-2.8.4-r1.ebuild
sys-apps/diffutils/files/diffutils-2.8.4-fix-multi-job-build.patch2 [new file with mode: 0644]

index bff25976ce11cb7c8d0fb899755479d1f7f52667..a98ee2a35399675b619c90768d34154e49362da7 100644 (file)
@@ -1,15 +1,13 @@
 # ChangeLog for sys-apps/diffutils
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/diffutils/ChangeLog,v 1.7 2002/10/14 09:58:36 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/diffutils/ChangeLog,v 1.8 2002/10/14 17:24:17 azarah Exp $
 
 *diffutils-2.8.4-r1 (14 Oct 2002)
 
   14 Oct 2002; Martin Schlemmer <azarah@gentoo.org> :
-
   Build fails with make -j5 or greater on pentium4.  This is because
-  the .c.o rule should depend on paths.h, else they are being compiled
-  at the same time of its generation.  This *should* hopefully fix
-  this problem.  Cannot test it now though, as this is a celeron :/
+  the jobs creating the opjects, which depend on paths.h is sheduled
+  at the same time paths.h is generated.  This closes bug #8934.
 
 *diffutils-2.8.4 (25 Sep 2002)
 
index 61f6d22989f7d38505c10298a0ac83be7df4b45c..05283544340c8b3b0da58266dd4900371b79293f 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2002 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/diffutils/diffutils-2.8.4-r1.ebuild,v 1.1 2002/10/14 09:58:36 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/diffutils/diffutils-2.8.4-r1.ebuild,v 1.2 2002/10/14 17:24:17 azarah Exp $
 
 IUSE="nls build"
 
@@ -33,11 +33,10 @@ src_unpack() {
        fi
 
        # Build fails with make -j5 or greater on pentium4.  This is because
-       # the .c.o rule should depend on paths.h, else they are being compiled
-       # at the same time of its generation.  This *should* hopefully fix
-       # this problem.  Cannot test it now though, as this is a celeron :/
+       # the jobs creating the opjects, which depend on paths.h is sheduled
+       # at the same time paths.h is generated.  This closes bug #8934.
        # <azarah@gentoo.org> (14 Oct 2002)
-       cd ${S}; patch -p1 < ${FILESDIR}/${P}-fix-multi-job-build.patch || die
+       cd ${S}; patch -p1 < ${FILESDIR}/${P}-fix-multi-job-build.patch2 || die
 }
 
 src_compile() {
diff --git a/sys-apps/diffutils/files/diffutils-2.8.4-fix-multi-job-build.patch2 b/sys-apps/diffutils/files/diffutils-2.8.4-fix-multi-job-build.patch2
new file mode 100644 (file)
index 0000000..bb70448
--- /dev/null
@@ -0,0 +1,11 @@
+diff -urN diffutils-2.8.4/src/Makefile.in diffutils-2.8.4.azarah/src/Makefile.in
+--- diffutils-2.8.4/src/Makefile.in    2002-06-28 09:04:20.000000000 +0200
++++ diffutils-2.8.4.azarah/src/Makefile.in     2002-10-14 19:03:33.000000000 +0200
+@@ -410,6 +410,7 @@
+       uninstall-binPROGRAMS uninstall-info-am
+ 
+ 
++cmp.c diff3.c diff.c sdiff.c: paths.h
+ cmp.$(OBJEXT) diff3.$(OBJECT) diff.$(OBJECT) sdiff.$(OBJECT): paths.h
+ paths.h:
+       (echo '#define DEFAULT_DIFF_PROGRAM "$(bindir)/'`echo diff|sed '$(transform)'`'"' && \