Move to unstable and include patch by Robin Johnson to fix locking issues #40992.
authorMike Frysinger <vapier@gentoo.org>
Tue, 30 Nov 2004 04:01:32 +0000 (04:01 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 30 Nov 2004 04:01:32 +0000 (04:01 +0000)
sys-devel/libtool/ChangeLog
sys-devel/libtool/files/1.5.10/libtool-1.5.10-locking.patch [new file with mode: 0644]
sys-devel/libtool/libtool-1.5.10.ebuild

index 52465775281ea613d584adba747c0856984be8a4..c4c67b9b4ba80fd7d65a95f8f470d8639127749b 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for sys-devel/libtool
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/libtool/ChangeLog,v 1.59 2004/11/09 21:23:12 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/libtool/ChangeLog,v 1.60 2004/11/30 04:01:32 vapier Exp $
+
+  29 Nov 2004; Mike Frysinger <vapier@gentoo.org>
+  +files/1.5.10/libtool-1.5.10-locking.patch, libtool-1.5.10.ebuild:
+  Move to unstable and include patch by Robin Johnson to fix locking issues
+  #40992.
 
   09 Nov 2004; Mike Frysinger <vapier@gentoo.org>
   +files/1.5.6/libtool-1.5-filter-host-tags.patch,
diff --git a/sys-devel/libtool/files/1.5.10/libtool-1.5.10-locking.patch b/sys-devel/libtool/files/1.5.10/libtool-1.5.10-locking.patch
new file mode 100644 (file)
index 0000000..48b2791
--- /dev/null
@@ -0,0 +1,11 @@
+--- libtool-1.5.10/ltmain.in.old 2004-11-16 22:21:32.849312264 -0800
++++ libtool-1.5.10/ltmain.in   2004-11-16 22:26:47.899417368 -0800
+@@ -1005,7 +1005,7 @@
+     # Lock this critical section if it is needed
+     # We use this script file to make the link, it avoids creating a new file
+     if test "$need_locks" = yes; then
+-      until $run ln "$progpath" "$lockfile" 2>/dev/null; do
++      until $run ln "$srcfile" "$lockfile" 2>/dev/null; do
+       $show "Waiting for $lockfile to be removed"
+       sleep 2
+       done
index e8124c9f2e8b0122e55a274991fb4578525a9210..00d3d62e21db5fc5b776d03e8b551d7d1dd4c120 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/libtool/libtool-1.5.10.ebuild,v 1.4 2004/11/12 15:21:00 vapier Exp ${P}-r1.ebuild,v 1.8 2002/10/04 06:34:42 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/libtool/libtool-1.5.10.ebuild,v 1.5 2004/11/30 04:01:32 vapier Exp ${P}-r1.ebuild,v 1.8 2002/10/04 06:34:42 kloeri Exp $
 
 inherit eutils gnuconfig libtool
 
@@ -10,9 +10,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="1.5"
-# breaks building .so completely (emerge fam)
-KEYWORDS="-*"
-#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
 IUSE="uclibc"
 
 DEPEND="virtual/libc
@@ -110,6 +108,11 @@ src_unpack() {
        # guessing is needed #67692
        epatch ${FILESDIR}/1.5.6/libtool-1.5-filter-host-tags.patch
 
+       # Libtool uses links to handle locking object files with 
+       # dependencies.  Hard links can't cross filesystems though, 
+       # so we have to use a diff source for the link.  #40992
+       epatch ${FILESDIR}/1.5.10/libtool-1.5.10-locking.patch
+
        einfo "Generate ltmain.sh ..."
        gen_ltmain_sh || die "Failed to generate ltmain.sh!"