summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2003-03-09 13:59:27 +0000
committerMartin Schlemmer <azarah@gentoo.org>2003-03-09 13:59:27 +0000
commit1942e56bdc80b71020a743a79526125ec4a8f144 (patch)
treefdeb0c52b6defb375c96a3db541fa2d614c7ce5b /sys-devel
parentfilter out -fno-common (diff)
downloadhistorical-1942e56bdc80b71020a743a79526125ec4a8f144.tar.gz
historical-1942e56bdc80b71020a743a79526125ec4a8f144.tar.bz2
historical-1942e56bdc80b71020a743a79526125ec4a8f144.zip
add some patches to libtool
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/libtool/ChangeLog8
-rw-r--r--sys-devel/libtool/files/1.4.3/libtool-1.4.2-add-x11r6-lib-in-ignores-for-rpath.patch13
-rw-r--r--sys-devel/libtool/files/1.4.3/libtool-1.4.2-archive-shared.patch16
-rw-r--r--sys-devel/libtool/files/1.4.3/libtool-1.4.2-fix-linkage-of-cxx-code-with-gcc.patch40
-rw-r--r--sys-devel/libtool/files/1.4.3/libtool-1.4.3-lib64.patch37
-rw-r--r--sys-devel/libtool/files/1.4.3/libtool-1.4.3-ltmain-SED.patch12
-rw-r--r--sys-devel/libtool/files/digest-libtool-1.4.3-r12
-rw-r--r--sys-devel/libtool/libtool-1.4.3-r1.ebuild120
8 files changed, 247 insertions, 1 deletions
diff --git a/sys-devel/libtool/ChangeLog b/sys-devel/libtool/ChangeLog
index f55a9c00f942..bb2a996f0ad4 100644
--- a/sys-devel/libtool/ChangeLog
+++ b/sys-devel/libtool/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-devel/libtool
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/libtool/ChangeLog,v 1.18 2003/02/27 01:45:52 zwelch Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/libtool/ChangeLog,v 1.19 2003/03/09 13:59:27 azarah Exp $
+
+*libtool-1.4.3-r1 (09 Mar 2003)
+
+ 09 Mar 2003; Martin Schlemmer <azarah@gentoo.org> libtool-1.4.3-r1.ebuild :
+ Add various patches from Mandrake, including one to fix the problem where
+ $SED was not defined if we used autoconf-2.13 ...
18 Feb 2003; Zach Welch <zwelch@gentoo.org> libtool-1.4.3.ebuild :
Added arm to keywords.
diff --git a/sys-devel/libtool/files/1.4.3/libtool-1.4.2-add-x11r6-lib-in-ignores-for-rpath.patch b/sys-devel/libtool/files/1.4.3/libtool-1.4.2-add-x11r6-lib-in-ignores-for-rpath.patch
new file mode 100644
index 000000000000..7cfba32afb5c
--- /dev/null
+++ b/sys-devel/libtool/files/1.4.3/libtool-1.4.2-add-x11r6-lib-in-ignores-for-rpath.patch
@@ -0,0 +1,13 @@
+--- ./libtool.m4.gege Tue Sep 11 05:16:01 2001
++++ ./libtool.m4 Sat Oct 20 00:05:20 2001
+@@ -1932,8 +1932,8 @@
+ shlibpath_overrides_runpath=unknown
+ version_type=none
+ dynamic_linker="$host_os ld.so"
+-sys_lib_dlsearch_path_spec="/lib /usr/lib"
+-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
++sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
++sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
+
+ case $host_os in
+ aix3*)
diff --git a/sys-devel/libtool/files/1.4.3/libtool-1.4.2-archive-shared.patch b/sys-devel/libtool/files/1.4.3/libtool-1.4.2-archive-shared.patch
new file mode 100644
index 000000000000..52183b2f0f12
--- /dev/null
+++ b/sys-devel/libtool/files/1.4.3/libtool-1.4.2-archive-shared.patch
@@ -0,0 +1,16 @@
+--- libtool-1.4.2/ltmain.sh.archive-shared 2002-07-15 09:12:03.000000000 -0400
++++ libtool-1.4.2/ltmain.sh 2002-07-15 09:13:04.000000000 -0400
+@@ -2644,6 +2644,13 @@ EOF
+ *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
+ esac
+ done
++ # It is ok to link against an archive when
++ # building a shared library.
++ if $AR -t $potlib > /dev/null 2>&1; then
++ newdeplibs="$newdeplibs $a_deplib"
++ a_deplib=""
++ break 2
++ fi
+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
+ | sed 10q \
+ | egrep "$file_magic_regex" > /dev/null; then
diff --git a/sys-devel/libtool/files/1.4.3/libtool-1.4.2-fix-linkage-of-cxx-code-with-gcc.patch b/sys-devel/libtool/files/1.4.3/libtool-1.4.2-fix-linkage-of-cxx-code-with-gcc.patch
new file mode 100644
index 000000000000..7e5b69c74681
--- /dev/null
+++ b/sys-devel/libtool/files/1.4.3/libtool-1.4.2-fix-linkage-of-cxx-code-with-gcc.patch
@@ -0,0 +1,40 @@
+--- ./ltmain.in.gege 2001-09-11 01:40:18.000000000 +0200
++++ ./ltmain.in 2002-05-15 13:32:16.000000000 +0200
+@@ -205,6 +205,17 @@
+ exit 1
+ fi
+
++# Mandrake: (gc) It's bad to link C++ code with GCC, so we need to use the compiler name if provided
++if test "$mode" = link && test -n "$archive_cmds" && test -x "/usr/bin/perl"; then
++ case $nonopt in
++ *cc | *++ | gcc* | *-gcc* | egcs*)
++ archive_cmds=`echo $archive_cmds | perl -pe 's/^\S+\s+//'`
++ archive_cmds="$nonopt $archive_cmds"
++ archive_expsym_cmds=`echo $archive_expsym_cmds | perl -pe 's/^\S+\s+//'`
++ archive_expsym_cmds="$nonopt $archive_expsym_cmds"
++ esac
++fi
++
+ # If this variable is set in any of the actions, the command in it
+ # will be execed at the end. This prevents here-documents from being
+ # left over by shells.
+--- ./ltmain.sh.gege 2002-05-15 13:33:49.000000000 +0200
++++ ./ltmain.sh 2002-05-15 13:36:53.000000000 +0200
+@@ -207,6 +207,17 @@
+ exit 1
+ fi
+
++# Mandrake: (gc) It's bad to link C++ code with GCC, so we need to use the compiler name if provided
++if test "$mode" = link && test -n "$archive_cmds" && test -x "/usr/bin/perl"; then
++ case $nonopt in
++ *cc | *++ | gcc* | *-gcc* | egcs*)
++ archive_cmds=`echo $archive_cmds | perl -pe 's/^\S+\s+//'`
++ archive_cmds="$nonopt $archive_cmds"
++ archive_expsym_cmds=`echo $archive_expsym_cmds | perl -pe 's/^\S+\s+//'`
++ archive_expsym_cmds="$nonopt $archive_expsym_cmds"
++ esac
++fi
++
+ # If this variable is set in any of the actions, the command in it
+ # will be execed at the end. This prevents here-documents from being
+ # left over by shells.
diff --git a/sys-devel/libtool/files/1.4.3/libtool-1.4.3-lib64.patch b/sys-devel/libtool/files/1.4.3/libtool-1.4.3-lib64.patch
new file mode 100644
index 000000000000..96c5d64e2723
--- /dev/null
+++ b/sys-devel/libtool/files/1.4.3/libtool-1.4.3-lib64.patch
@@ -0,0 +1,37 @@
+--- libtool-1.4.3/libtool.m4.lib64 2003-02-13 14:47:06.000000000 +0100
++++ libtool-1.4.3/libtool.m4 2003-02-13 14:47:06.000000000 +0100
+@@ -100,6 +100,20 @@ case $host in
+ rm -rf conftest*
+ ;;
+
++*-*-linux*)
++ # Test if the compiler is 64bit
++ echo 'int i;' > conftest.$ac_ext
++ lt_cv_cc_64bit_output=no
++ if AC_TRY_EVAL(ac_compile); then
++ case `/usr/bin/file conftest.$ac_objext` in
++ *"ELF 64"*)
++ lt_cv_cc_64bit_output=yes
++ ;;
++ esac
++ fi
++ rm -rf conftest*
++ ;;
++
+ *-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+@@ -2183,6 +2197,13 @@ linux-gnu*)
+ # before this can be enabled.
+ hardcode_into_libs=yes
+
++ case $host_cpu:$lt_cv_cc_64bit_output in
++ powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
++ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
++ sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
++ ;;
++ esac
++
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
diff --git a/sys-devel/libtool/files/1.4.3/libtool-1.4.3-ltmain-SED.patch b/sys-devel/libtool/files/1.4.3/libtool-1.4.3-ltmain-SED.patch
new file mode 100644
index 000000000000..fac977cbd483
--- /dev/null
+++ b/sys-devel/libtool/files/1.4.3/libtool-1.4.3-ltmain-SED.patch
@@ -0,0 +1,12 @@
+--- libtool-1.4.3/ltmain.sh.ltmain-SED 2003-02-13 14:54:24.000000000 +0100
++++ libtool-1.4.3/ltmain.sh 2003-02-13 15:24:49.000000000 +0100
+@@ -48,6 +48,9 @@ EOF
+ exit 0
+ fi
+
++# define SED for historic ltconfig's generated by Libtool 1.3
++test -z "$SED" && SED=sed
++
+ # The name of this program.
+ progname=`$echo "$0" | ${SED} 's%^.*/%%'`
+ modename="$progname"
diff --git a/sys-devel/libtool/files/digest-libtool-1.4.3-r1 b/sys-devel/libtool/files/digest-libtool-1.4.3-r1
new file mode 100644
index 000000000000..e1f620300ee1
--- /dev/null
+++ b/sys-devel/libtool/files/digest-libtool-1.4.3-r1
@@ -0,0 +1,2 @@
+MD5 d11a3c835449d7fa50a025dc9c01ad81 libtool-1.4.3.tar.gz 1164463
+MD5 fa26a07c978ad05d1f88ed7a472daa49 libtool-1.3.5.tar.gz 538884
diff --git a/sys-devel/libtool/libtool-1.4.3-r1.ebuild b/sys-devel/libtool/libtool-1.4.3-r1.ebuild
new file mode 100644
index 000000000000..2a1ce24e1ca1
--- /dev/null
+++ b/sys-devel/libtool/libtool-1.4.3-r1.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/libtool/libtool-1.4.3-r1.ebuild,v 1.1 2003/03/09 13:59:27 azarah Exp ${P}-r1.ebuild,v 1.8 2002/10/04 06:34:42 vapier Exp $
+
+IUSE=""
+
+inherit eutils
+
+# NOTE: We install libltdl of libtool-1.3x for compat reasons ...
+
+OLD_PV="1.3.5"
+S="${WORKDIR}/${P}"
+OLD_S="${WORKDIR}/${PN}-${OLD_PV}"
+DESCRIPTION="A shared library tool for developers"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz
+ mirror://gnu/${PN}/${PN}-${OLD_PV}.tar.gz"
+HOMEPAGE="http://www.gnu.org/software/libtool/libtool.html"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm"
+
+DEPEND="virtual/glibc"
+
+
+lt_setup() {
+ export WANT_AUTOCONF_2_5=1
+ export WANT_AUTOMAKE_1_5=1
+}
+
+src_unpack() {
+ lt_setup
+
+ unpack ${A}
+
+ # Fix the relink problem where the relinked libs do not get
+ # installed. It is *VERY* important that you get a updated
+ # 'libtool-${PV}-relink.patch' if you update this, as it
+ # fixes a very serious bug. Please not that this patch is
+ # included in 'libtool-${PV}-gentoo.patch' for this ebuild.
+ #
+ # NOTE: all affected apps should get a 'libtoolize --copy --force'
+ # added to upate libtool
+ #
+ cd ${OLD_S}
+ epatch ${FILESDIR}/${PV}/${PN}-1.2f-cache.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.3.5-nonneg.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.3.5-mktemp.patch
+
+ cd ${S}
+ # Redhat patches
+ epatch ${FILESDIR}/${PV}/${PN}-1.3.5-mktemp.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4-nonneg.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-s390_x86_64.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-relink-58664.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-multilib.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-demo.patch
+ # Mandrake patches
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.3-lib64.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-add-x11r6-lib-in-ignores-for-rpath.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-fix-linkage-of-cxx-code-with-gcc.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-archive-shared.patch
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.3-ltmain-SED.patch
+ # Do not create bogus entries in $dependency_libs or $libdir
+ # with ${D} or ${S} in them.
+ #
+ # Azarah - 07 April 2002
+ epatch ${FILESDIR}/${PV}/${PN}-1.4.2-portage.patch
+}
+
+src_compile() {
+ lt_setup
+
+ #
+ # ************ libtool-1.3x ************
+ #
+
+ cd ${OLD_S}
+ ./configure --host=${CHOST} \
+ --prefix=/usr \
+ --infodir=/usr/share/info || die
+
+ emake || die
+
+ #
+ # ************ libtool-1.4x ************
+ #
+
+ cd ${S}
+ ./configure --host=${CHOST} \
+ --prefix=/usr \
+ --infodir=/usr/share/info || die
+
+ emake || die
+}
+
+src_install() {
+ #
+ # ************ libtool-1.3x ************
+ #
+
+ cd ${OLD_S}/libltdl; make DESTDIR=${D} install || die
+
+ # Remove stuff we are not going to use ...
+ for x in libltdl.a libltdl.la libltdl.so
+ do
+ [ -f ${x} ] && rm -f ${D}/usr/lib/${x}
+ done
+ rm -rf ${D}/usr/include
+
+ #
+ # ************ libtool-1.4x ************
+ #
+
+ cd ${S}; make DESTDIR=${D} install || die
+
+ dodoc AUTHORS COPYING ChangeLog* NEWS \
+ README THANKS TODO doc/PLATFORMS
+}
+