diff options
author | Richard Purdie <richard@openedhand.com> | 2008-05-01 20:53:24 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-05-01 20:53:24 +0000 |
commit | eaf9aa4cc19a29980ec414ee0763c9c63c89d158 (patch) | |
tree | b78a2759adb0fa9071dad50012d5abfd735eddc5 /meta/packages/libtool | |
parent | 1122b0093f0871989abdad5c74a2af26d1af3c59 (diff) | |
download | openembedded-core-eaf9aa4cc19a29980ec414ee0763c9c63c89d158.tar.gz openembedded-core-eaf9aa4cc19a29980ec414ee0763c9c63c89d158.tar.bz2 openembedded-core-eaf9aa4cc19a29980ec414ee0763c9c63c89d158.tar.xz openembedded-core-eaf9aa4cc19a29980ec414ee0763c9c63c89d158.zip |
libtool-2.2.2: Cleanup patches
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4403 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/libtool')
11 files changed, 135 insertions, 129 deletions
diff --git a/meta/packages/libtool/libtool-2.2.2/Use-AC_CHECK_TOOL-for-otool-and-otool64.patch b/meta/packages/libtool/libtool-2.2.2/Use-AC_CHECK_TOOL-for-otool-and-otool64.patch new file mode 100644 index 000000000..c8bb6577a --- /dev/null +++ b/meta/packages/libtool/libtool-2.2.2/Use-AC_CHECK_TOOL-for-otool-and-otool64.patch @@ -0,0 +1,68 @@ +From 92e15986a43a8009decffc4d5d290272449487a4 Mon Sep 17 00:00:00 2001 +From: Peter O'Gorman <peter@pogma.com> +Date: Thu, 1 May 2008 12:40:24 -0500 +Subject: [PATCH] Use AC_CHECK_TOOL for otool and otool64. + +* libltdl/m4/libtool.m4 (_LT_REQUIRED_DARWIN_CHECKS): Check. +* libltdl/config/ltmain.m4sh (func_mode_link): Use. +Reported by Richard Purdie <rpurdie@rpsys.net> +--- + ChangeLog | 7 +++++++ + libltdl/config/ltmain.m4sh | 6 ++---- + libltdl/m4/libtool.m4 | 6 ++++++ + 3 files changed, 15 insertions(+), 4 deletions(-) + +Index: libtool-2.2.2/ChangeLog +=================================================================== +--- libtool-2.2.2.orig/ChangeLog 2008-05-01 21:34:42.000000000 +0100 ++++ libtool-2.2.2/ChangeLog 2008-05-01 21:35:47.000000000 +0100 +@@ -1,3 +1,10 @@ ++2008-05-01 Peter O'Gorman <peter@pogma.com> ++ ++ Use AC_CHECK_TOOL for otool and otool64. ++ * libltdl/m4/libtool.m4 (_LT_REQUIRED_DARWIN_CHECKS): Check. ++ * libltdl/config/ltmain.m4sh (func_mode_link): Use. ++ Reported by Richard Purdie <rpurdie@rpsys.net> ++ + 2008-04-01 Gary V. Vaughan <gary@gnu.arg> + + GNU Libtool 2.2.2 was released. +Index: libtool-2.2.2/libltdl/config/ltmain.m4sh +=================================================================== +--- libtool-2.2.2.orig/libltdl/config/ltmain.m4sh 2008-05-01 21:34:42.000000000 +0100 ++++ libtool-2.2.2/libltdl/config/ltmain.m4sh 2008-05-01 21:34:48.000000000 +0100 +@@ -4961,11 +4961,9 @@ + done + if test -f "$absdir/$objdir/$depdepl" ; then + depdepl="$absdir/$objdir/$depdepl" +- darwin_install_name=`otool -L $depdepl | $SED -n -e '3q;2,2p' | $SED -e 's/(.*//'` +- darwin_install_name=`$ECHO $darwin_install_name` ++ darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}` + if test -z "$darwin_install_name"; then +- darwin_install_name=`otool64 -L $depdepl | $SED -n -e '3q;2,2p' | $SED -e 's/(.*//'` +- darwin_install_name=`$ECHO $darwin_install_name` ++ darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}` + fi + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" +Index: libtool-2.2.2/libltdl/m4/libtool.m4 +=================================================================== +--- libtool-2.2.2.orig/libltdl/m4/libtool.m4 2008-05-01 21:34:42.000000000 +0100 ++++ libtool-2.2.2/libltdl/m4/libtool.m4 2008-05-01 21:36:48.000000000 +0100 +@@ -893,10 +893,16 @@ + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) ++ AC_CHECK_TOOL([OTOOL], [otool], [:]) ++ AC_CHECK_TOOL([OTOOL64], [otool64], [:]) + _LT_DECL([], [DSYMUTIL], [1], + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) + _LT_DECL([], [NMEDIT], [1], + [Tool to change global to local symbols on Mac OS X]) ++ _LT_DECL([], [OTOOL], [1], ++ [ldd/readelf like tool for Mach-O binaries on Mac OS X]) ++ _LT_DECL([], [OTOOL64], [1], ++ [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no diff --git a/meta/packages/libtool/libtool-2.2.2/cross_compile.patch b/meta/packages/libtool/libtool-2.2.2/cross_compile.patch new file mode 100644 index 000000000..b4bacbd12 --- /dev/null +++ b/meta/packages/libtool/libtool-2.2.2/cross_compile.patch @@ -0,0 +1,55 @@ +Tweaks to make cross-compiling work combined and updated from various +older patches, some by Chris Larson. +Not upstreable in this form. + +RP - 01/05/2008 + +Index: libtool-2.2.2/libltdl/config/ltmain.m4sh +=================================================================== +--- libtool-2.2.2.orig/libltdl/config/ltmain.m4sh 2008-05-01 21:48:42.000000000 +0100 ++++ libtool-2.2.2/libltdl/config/ltmain.m4sh 2008-05-01 21:51:41.000000000 +0100 +@@ -4454,8 +4454,14 @@ + absdir="$abs_ladir" + libdir="$abs_ladir" + else +- dir="$libdir" +- absdir="$libdir" ++ # Adding 'libdir' from the .la file to our library search paths ++ # breaks crosscompilation horribly. We cheat here and don't add ++ # it, instead adding the path where we found the .la. -CL ++ dir="$abs_ladir" ++ absdir="$abs_ladir" ++ libdir="$abs_ladir" ++ #dir="$libdir" ++ #absdir="$libdir" + fi + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes + else +@@ -4825,8 +4831,6 @@ + add="$libdir/$linklib" + fi + else +- # We cannot seem to hardcode it, guess we'll fake it. +- add_dir="-L$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in +@@ -4972,7 +4976,17 @@ + fi + ;; + *) +- path="-L$absdir/$objdir" ++ # OE sets installed=no in staging. We need to look in $objdir and $absdir, ++ # preferring $objdir. RP 31/04/2008 ++ if test -f "$absdir/$objdir/$depdepl" ; then ++ depdepl="$absdir/$objdir/$depdepl" ++ path="-L$absdir/$objdir" ++ elif test -f "$absdir/$depdepl" ; then ++ depdepl="$absdir/$depdepl" ++ path="-L$absdir" ++ else ++ path="-L$absdir/$objdir" ++ fi + ;; + esac + else diff --git a/meta/packages/libtool/libtool-2.2.2/darwin_fixes.patch b/meta/packages/libtool/libtool-2.2.2/darwin_fixes.patch deleted file mode 100644 index 766b520cf..000000000 --- a/meta/packages/libtool/libtool-2.2.2/darwin_fixes.patch +++ /dev/null @@ -1,17 +0,0 @@ -Index: libtool-2.2.2/libltdl/config/ltmain.m4sh -=================================================================== ---- libtool-2.2.2.orig/libltdl/config/ltmain.m4sh 2008-05-01 12:19:37.000000000 +0100 -+++ libtool-2.2.2/libltdl/config/ltmain.m4sh 2008-05-01 12:29:05.000000000 +0100 -@@ -4965,10 +4965,10 @@ - done - if test -f "$absdir/$objdir/$depdepl" ; then - depdepl="$absdir/$objdir/$depdepl" -- darwin_install_name=`otool -L $depdepl | $SED -n -e '3q;2,2p' | $SED -e 's/(.*//'` -+ darwin_install_name=`$host-otool -L $depdepl | $SED -n -e '3q;2,2p' | $SED -e 's/(.*//'` - darwin_install_name=`$ECHO $darwin_install_name` - if test -z "$darwin_install_name"; then -- darwin_install_name=`otool64 -L $depdepl | $SED -n -e '3q;2,2p' | $SED -e 's/(.*//'` -+ darwin_install_name=`$host-otool64 -L $depdepl | $SED -n -e '3q;2,2p' | $SED -e 's/(.*//'` - darwin_install_name=`$ECHO $darwin_install_name` - fi - compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" diff --git a/meta/packages/libtool/libtool-2.2.2/libdir-la.patch b/meta/packages/libtool/libtool-2.2.2/libdir-la.patch deleted file mode 100644 index 761e69779..000000000 --- a/meta/packages/libtool/libtool-2.2.2/libdir-la.patch +++ /dev/null @@ -1,56 +0,0 @@ -Index: libtool-2.2.2/libltdl/config/ltmain.m4sh -=================================================================== ---- libtool-2.2.2.orig/libltdl/config/ltmain.m4sh 2008-04-02 01:20:54.000000000 +0100 -+++ libtool-2.2.2/libltdl/config/ltmain.m4sh 2008-04-13 22:32:15.000000000 +0100 -@@ -4453,8 +4453,14 @@ - absdir="$abs_ladir" - libdir="$abs_ladir" - else -- dir="$libdir" -- absdir="$libdir" -+ # Adding 'libdir' from the .la file to our library search paths -+ # breaks crosscompilation horribly. We cheat here and don't add -+ # it, instead adding the path where we found the .la. -CL -+ dir="$abs_ladir" -+ absdir="$abs_ladir" -+ libdir="$abs_ladir" -+ #dir="$libdir" -+ #absdir="$libdir" - fi - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes - else -@@ -4973,10 +4979,22 @@ - fi - ;; - *) -- path="-L$absdir/$objdir" -+ # OE sets installed=no in staging. We need to look in $objdir and $absdir, -+ # preferring $objdir. RP 31/04/2008 -+ if test -f "$absdir/$objdir/$depdepl" ; then -+ depdepl="$absdir/$objdir/$depdepl" -+ path="-L$absdir/$objdir" -+ elif test -f "$absdir/$depdepl" ; then -+ depdepl="$absdir/$depdepl" -+ path="-L$absdir" -+ else -+ path="-L$absdir/$objdir" -+ fi - ;; - esac - else -+ # This would break cross compiling if we didn't change to installed=no in -+ # staging. RP 31/04/2008 - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - test -z "$libdir" && \ - func_fatal_error "\`$deplib' is not a valid libtool archive" -@@ -7046,6 +7064,10 @@ - # Replace all uninstalled libtool libraries with the installed ones - newdependency_libs= - for deplib in $dependency_libs; do -+ # Replacing uninstalled with installed can easily break crosscompilation, -+ # since the installed path is generally the wrong architecture. -CL -+ # newdependency_libs="$newdependency_libs $deplib" -+ # continue - case $deplib in - *.la) - func_basename "$deplib" diff --git a/meta/packages/libtool/libtool-2.2.2/nousrlib.patch b/meta/packages/libtool/libtool-2.2.2/nousrlib.patch deleted file mode 100644 index 5e3e6b9a9..000000000 --- a/meta/packages/libtool/libtool-2.2.2/nousrlib.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- libtool-2.2.2/libltdl/config/ltmain.m4sh.orig -+++ libtool-2.2.2/libltdl/config/ltmain.m4sh -@@ -2637,8 +2637,6 @@ - add="$libdir/$linklib" - fi - else -- # We cannot seem to hardcode it, guess we'll fake it. -- add_dir="-L$libdir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case "$libdir" in diff --git a/meta/packages/libtool/libtool-2.2.2/prefix.patch b/meta/packages/libtool/libtool-2.2.2/prefix.patch index d7bdfe1ef..639feb745 100644 --- a/meta/packages/libtool/libtool-2.2.2/prefix.patch +++ b/meta/packages/libtool/libtool-2.2.2/prefix.patch @@ -1,3 +1,6 @@ +Renames "libtool" -> "${TARGET_PREFIX}libtool" which makes sure +it can't be confused with the host libtool. + Index: libtool-2.2.2/libltdl/m4/libtool.m4 =================================================================== --- libtool-2.2.2.orig/libltdl/m4/libtool.m4 2008-04-13 22:43:05.000000000 +0100 diff --git a/meta/packages/libtool/libtool-2.2.2/tag.patch b/meta/packages/libtool/libtool-2.2.2/tag.patch deleted file mode 100644 index 327adb430..000000000 --- a/meta/packages/libtool/libtool-2.2.2/tag.patch +++ /dev/null @@ -1,14 +0,0 @@ -Index: libtool-2.2.2/libltdl/config/ltmain.m4sh -=================================================================== ---- libtool-2.2.2.orig/libltdl/config/ltmain.m4sh 2008-04-13 22:40:30.000000000 +0100 -+++ libtool-2.2.2/libltdl/config/ltmain.m4sh 2008-04-13 23:36:53.000000000 +0100 -@@ -842,7 +842,8 @@ - # line option must be used. - if test -z "$tagname"; then - func_echo "unable to infer tagged configuration" -- func_fatal_error "specify a tag with \`--tag'" -+ func_echo "defaulting to \`CC'" -+ func_echo "if this is not correct, specify a tag with \`--tag'" - # else - # func_verbose "using $tagname tagged configuration" - fi diff --git a/meta/packages/libtool/libtool-2.2.2/uclibc.patch b/meta/packages/libtool/libtool-2.2.2/uclibc.patch deleted file mode 100644 index 8573a0100..000000000 --- a/meta/packages/libtool/libtool-2.2.2/uclibc.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- libtool-2.2.2/libltdl/m4/libtool.m4.orig -+++ libtool-2.2.2/libltdl/m4/libtool.m4 -@@ -2221,6 +2221,11 @@ - lt_cv_deplibs_check_method=pass_all - ;; - -+linux-uclibc*) -+ lt_cv_deplibs_check_method=pass_all -+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` -+ ;; -+ - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' diff --git a/meta/packages/libtool/libtool-cross_2.2.2.bb b/meta/packages/libtool/libtool-cross_2.2.2.bb index 617500723..31b6af2c1 100644 --- a/meta/packages/libtool/libtool-cross_2.2.2.bb +++ b/meta/packages/libtool/libtool-cross_2.2.2.bb @@ -1,14 +1,11 @@ require libtool.inc require libtool_${PV}.bb -PR = "r16" +PR = "r18" PACKAGES = "" FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libtool-${PV}" -SRC_URI_append = " file://libdir-la.patch;patch=1 \ - file://prefix.patch;patch=1 \ -# file://sysroot.patch;patch=1 \ -# file://tag.patch;patch=1 \ - file://nousrlib.patch;patch=1" +SRC_URI_append = " file://cross_compile.patch;patch=1 \ + file://prefix.patch;patch=1" DOLT_PATCH = "" DOLT_PATCH_arm = " file://add_dolt.patch;patch=1" diff --git a/meta/packages/libtool/libtool-native_2.2.2.bb b/meta/packages/libtool/libtool-native_2.2.2.bb index 3a17c180b..59d9ecadb 100644 --- a/meta/packages/libtool/libtool-native_2.2.2.bb +++ b/meta/packages/libtool/libtool-native_2.2.2.bb @@ -1,13 +1,10 @@ require libtool.inc require libtool_${PV}.bb -PR = "r14" +PR = "r16" FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libtool-${PV}" -SRC_URI_append = " file://libdir-la.patch;patch=1 \ - file://prefix.patch;patch=1 \ -# file://sysroot.patch;patch=1 \ -# file://tag.patch;patch=1 \ - file://nousrlib.patch;patch=1" +SRC_URI_append = " file://cross_compile.patch;patch=1 \ + file://prefix.patch;patch=1" S = "${WORKDIR}/libtool-${PV}" diff --git a/meta/packages/libtool/libtool_2.2.2.bb b/meta/packages/libtool/libtool_2.2.2.bb index 62e0e3f2f..7bb5945a3 100644 --- a/meta/packages/libtool/libtool_2.2.2.bb +++ b/meta/packages/libtool/libtool_2.2.2.bb @@ -1,15 +1,13 @@ require libtool.inc -PR = "r8" +PR = "r10" SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \ - file://fix_static.patch;patch=1 \ - file://darwin_fixes.patch;patch=1 \ + file://fix_static.patch;patch=1;status=merged \ + file://Use-AC_CHECK_TOOL-for-otool-and-otool64.patch;patch=1;status=merged \ file://dolt.m4" S = "${WORKDIR}/libtool-${PV}" -#DEFAULT_PREFERENCE = "-1" - PACKAGES =+ "libltdl libltdl-dev libltdl-dbg" FILES_${PN} += "${datadir}/aclocal*" FILES_libltdl = "${libdir}/libltdl.so.*" |