]> code.ossystems Code Review - openembedded-core.git/commitdiff
libtool family: upgrade from 2.2.6 to 2.2.10
authorNitin A Kamble <nitin.a.kamble@intel.com>
Mon, 21 Jun 2010 10:46:34 +0000 (03:46 -0700)
committerSaul Wold <Saul.Wold@intel.com>
Fri, 9 Jul 2010 05:05:20 +0000 (22:05 -0700)
This upgrades these recipes:
 libtool_2.2.6.bb -> libtool_2.2.10.bb
 libtool-native_2.2.6.bb -> libtool-native_2.2.10.bb
 libtool-cross_2.2.6.bb -> libtool-cross_2.2.10.bb
 libtool-nativesdk_2.2.6.bb -> libtool-nativesdk_2.2.10.bb
    Also fixes build failure caused by having aclocal.m4 built with older version
    of libtool.

Rebased these patches for the newer version sources
 add_dolt.patch
 cross_compile.patch
 dolt.m4

Changed this patch to fix documentation building for non-x86 archs
 prefix.patch

Rebased and changed to fix the building of ncurses recipe:
 trailingslash.patch

Also updated metadata variables like LICENSE & LIC_CHKSUM_FILES

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
meta/packages/libtool/libtool-cross_2.2.10.bb [moved from meta/packages/libtool/libtool-cross_2.2.6.bb with 85% similarity]
meta/packages/libtool/libtool-native_2.2.10.bb [moved from meta/packages/libtool/libtool-native_2.2.6.bb with 76% similarity]
meta/packages/libtool/libtool-nativesdk_2.2.10.bb [moved from meta/packages/libtool/libtool-nativesdk_2.2.6.bb with 61% similarity]
meta/packages/libtool/libtool.inc
meta/packages/libtool/libtool/add_dolt.patch [moved from meta/packages/libtool/libtool-2.2.6/add_dolt.patch with 100% similarity]
meta/packages/libtool/libtool/cross_compile.patch [moved from meta/packages/libtool/libtool-2.2.6/cross_compile.patch with 84% similarity]
meta/packages/libtool/libtool/dolt.m4 [moved from meta/packages/libtool/libtool-2.2.6/dolt.m4 with 100% similarity]
meta/packages/libtool/libtool/prefix.patch [moved from meta/packages/libtool/libtool-2.2.6/prefix.patch with 66% similarity]
meta/packages/libtool/libtool/trailingslash.patch [moved from meta/packages/libtool/libtool-2.2.6/trailingslash.patch with 62% similarity]
meta/packages/libtool/libtool_2.2.10.bb [moved from meta/packages/libtool/libtool_2.2.6.bb with 86% similarity]

similarity index 85%
rename from meta/packages/libtool/libtool-cross_2.2.6.bb
rename to meta/packages/libtool/libtool-cross_2.2.10.bb
index f0818246185b2d40510c473323cc55236aa786db..08b27f47be79c2db2ff3a22155d8db752ee6501e 100644 (file)
@@ -1,15 +1,14 @@
 require libtool_${PV}.bb
 
-PR = "r31"
+PR = "r0"
 PACKAGES = ""
-SRC_URI_append = " file://cross_compile.patch;patch=1 \
-                   file://prefix.patch;patch=1"
+SRC_URI_append = " file://cross_compile.patch "
 
 DEPENDS += "libtool-native"
 
 DOLT_PATCH = ""
-DOLT_PATCH_arm = " file://add_dolt.patch;patch=1"
-DOLT_PATCH_i586 = " file://add_dolt.patch;patch=1"
+DOLT_PATCH_arm = " file://add_dolt.patch"
+DOLT_PATCH_i586 = " file://add_dolt.patch"
 
 #SRC_URI_append_linux = "${DOLT_PATCH}"
 #SRC_URI_append_linux-gnueabi = "${DOLT_PATCH}"
similarity index 76%
rename from meta/packages/libtool/libtool-native_2.2.6.bb
rename to meta/packages/libtool/libtool-native_2.2.10.bb
index c5827ffb48dee787518f9fb2d1380e557a9fffc4..5af5d7b94a9a28eca40c68a8151bc31f55f48d64 100644 (file)
@@ -1,8 +1,9 @@
 require libtool_${PV}.bb
 
-PR = "r23"
-SRC_URI_append = " file://cross_compile.patch;patch=1 \
-                   file://prefix.patch;patch=1"
+DEPENDS = ""
+
+PR = "r0"
+SRC_URI_append = " file://cross_compile.patch "
 
 inherit native
 
similarity index 61%
rename from meta/packages/libtool/libtool-nativesdk_2.2.6.bb
rename to meta/packages/libtool/libtool-nativesdk_2.2.10.bb
index 77acbd5854abd2708f8185210f5efb1576445abe..05444c7cce4fb04c06ee30efd30fd2156a129087 100644 (file)
@@ -1,10 +1,17 @@
 require libtool_${PV}.bb
 
-PR = "r4"
-SRC_URI_append = " file://cross_compile.patch;patch=1"
+PR = "r0"
+SRC_URI_append = " file://cross_compile.patch"
 
 inherit nativesdk
 
+do_configure_prepend () {
+       # Remove any existing libtool m4 since old stale versions would break
+       # any upgrade
+       rm -f ${STAGING_DATADIR}/aclocal/libtool.m4
+       rm -f ${STAGING_DATADIR}/aclocal/lt*.m4
+}
+
 do_install () {
        autotools_do_install
        install -d ${D}${bindir}/
index db86d15ba429da0f970967805dad6843f7bbe0ec..81c3eaf6d9c9cdefe9f281097920ae4b72dd474c 100644 (file)
@@ -3,6 +3,15 @@ This is GNU libtool, a generic library support script.  Libtool hides \
 the complexity of generating special library types (such as shared \
 libraries) behind a consistent interface."
 HOMEPAGE = "http://www.gnu.org/software/libtool/libtool.html"
-LICENSE = "GPL"
 SECTION = "devel"
+LICENSE = "GPLv2, LGPLv2.1"
+LIC_FILES_CHKSUM = " \
+    file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
+    file://libltdl/COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06 \
+    "
+
+SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \
+           file://trailingslash.patch \
+           file://prefix.patch \
+           file://dolt.m4 "
 
similarity index 84%
rename from meta/packages/libtool/libtool-2.2.6/cross_compile.patch
rename to meta/packages/libtool/libtool/cross_compile.patch
index b4bacbd12f20b9f635b09ca863d50b2b79bb83cd..fc1f4b6fb277d074f7dcf2e4a2459b52dd03b0e7 100644 (file)
@@ -4,11 +4,11 @@ Not upstreable in this form.
 
 RP - 01/05/2008
 
-Index: libtool-2.2.2/libltdl/config/ltmain.m4sh
+Index: libtool-2.2.10/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 @@
+--- libtool-2.2.10.orig/libltdl/config/ltmain.m4sh
++++ libtool-2.2.10/libltdl/config/ltmain.m4sh
+@@ -5147,8 +5147,14 @@ func_mode_link ()
            absdir="$abs_ladir"
            libdir="$abs_ladir"
          else
@@ -25,7 +25,7 @@ Index: libtool-2.2.2/libltdl/config/ltmain.m4sh
          fi
          test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
        else
-@@ -4825,8 +4831,6 @@
+@@ -5519,8 +5525,6 @@ func_mode_link ()
                add="$libdir/$linklib"
              fi
            else
@@ -34,7 +34,7 @@ Index: libtool-2.2.2/libltdl/config/ltmain.m4sh
              # 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 @@
+@@ -5667,7 +5671,17 @@ func_mode_link ()
                  fi
                  ;;
                *)
similarity index 66%
rename from meta/packages/libtool/libtool-2.2.6/prefix.patch
rename to meta/packages/libtool/libtool/prefix.patch
index 639feb7456982cebea734625c935bb13a365a888..895be1f9b0c851db39b5e3882875fa3fbaf8bcb2 100644 (file)
@@ -1,22 +1,31 @@
 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
+
+After discussions with RP Changed host_alias to build_alias 
+at one place as it was causing man page building issue while 
+cross compiling for different architectures.
+
+Date: 2010/06/28
+Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
+
+
+Index: libtool-2.2.10/libltdl/m4/libtool.m4
 ===================================================================
---- libtool-2.2.2.orig/libltdl/m4/libtool.m4   2008-04-13 22:43:05.000000000 +0100
-+++ libtool-2.2.2/libltdl/m4/libtool.m4        2008-04-13 22:43:05.000000000 +0100
-@@ -89,7 +89,8 @@
+--- libtool-2.2.10.orig/libltdl/m4/libtool.m4
++++ libtool-2.2.10/libltdl/m4/libtool.m4
+@@ -94,7 +94,8 @@ _LT_SET_OPTIONS([$0], [$1])
  LIBTOOL_DEPS="$ltmain"
  
  # Always use our own libtool.
 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 +LIBTOOL='$(SHELL) $(top_builddir)'
-+LIBTOOL="$LIBTOOL/$host_alias-libtool"
++LIBTOOL="$LIBTOOL/${host_alias}-libtool"
  AC_SUBST(LIBTOOL)dnl
  
  _LT_SETUP
-@@ -211,7 +212,7 @@
- no_glob_subst='s/\*/\\\*/g'
+@@ -201,7 +202,7 @@ aix3*)
+ esac
  
  # Global variables:
 -ofile=libtool
@@ -24,20 +33,20 @@ Index: libtool-2.2.2/libltdl/m4/libtool.m4
  can_build_shared=yes
  
  # All known linkers require a `.a' archive for static linking (except MSVC,
-Index: libtool-2.2.2/Makefile.am
+Index: libtool-2.2.10/Makefile.am
 ===================================================================
---- libtool-2.2.2.orig/Makefile.am     2008-04-01 19:06:08.000000000 +0100
-+++ libtool-2.2.2/Makefile.am  2008-04-13 22:49:17.000000000 +0100
-@@ -31,7 +31,7 @@
+--- libtool-2.2.10.orig/Makefile.am
++++ libtool-2.2.10/Makefile.am
+@@ -31,7 +31,7 @@ AM_LDFLAGS           =
  DIST_SUBDIRS          = .
  EXTRA_DIST            =
  
--BUILT_SOURCES         = libtool
-+BUILT_SOURCES         = $(host_alias)-libtool
+-BUILT_SOURCES         = libtool libtoolize
++BUILT_SOURCES         = $(host_alias)-libtool libtoolize
  
  CLEANFILES            =
  MOSTLYCLEANFILES      =
-@@ -64,7 +64,7 @@
+@@ -65,7 +65,7 @@ rebuild = rebuild=:; $(timestamp); corre
  ## ---------------- ##
  
  # The libtool distributor and the standalone libtool script.
@@ -46,7 +55,7 @@ Index: libtool-2.2.2/Makefile.am
  
  libtoolize: $(srcdir)/libtoolize.in $(top_builddir)/config.status
        rm -f libtoolize.tmp libtoolize
-@@ -90,8 +90,8 @@
+@@ -91,8 +91,8 @@ $(srcdir)/libtoolize.in: $(sh_files) lib
  # We used to do this with a 'stamp-vcl' file, but non-gmake builds
  # would rerun configure on every invocation, so now we manually
  # check the version numbers from the build rule when necessary.
@@ -57,7 +66,7 @@ Index: libtool-2.2.2/Makefile.am
        if test -f "$$target"; then \
          set dummy `./$$target --version | sed 1q`; actualver="$$5"; \
          test "$$actualver" = "$$correctver" && rebuild=false; \
-@@ -100,8 +100,8 @@
+@@ -101,8 +101,8 @@ libtool: $(top_builddir)/config.status $
          case $$prereq in *ChangeLog);; *) rebuild=:;; esac; \
        done; \
        if $$rebuild; then \
@@ -68,16 +77,25 @@ Index: libtool-2.2.2/Makefile.am
        fi
  
  .PHONY: configure-subdirs
-@@ -145,7 +145,7 @@
-                 ChangeLog.1999 ChangeLog.2000 ChangeLog.2001 \
+@@ -147,7 +147,7 @@ EXTRA_DIST     += bootstrap $(srcdir)/li
                  ChangeLog.2002 ChangeLog.2003 ChangeLog.2004 \
-                 ChangeLog.2005 ChangeLog.2006 ChangeLog.2007
+                 ChangeLog.2005 ChangeLog.2006 ChangeLog.2007 \
+                 ChangeLog.2008 ChangeLog.2009
 -CLEANFILES     += libtool libtoolize libtoolize.tmp \
 +CLEANFILES     += $(host_alias)-libtool libtoolize libtoolize.tmp \
                  $(auxdir)/ltmain.tmp $(m4dir)/ltversion.tmp
  
  ## We build ltversion.m4 here, instead of from config.status,
-@@ -483,12 +483,12 @@
+@@ -337,7 +337,7 @@ update_mans = \
+   PATH=.$(PATH_SEPARATOR)$$PATH; export PATH; \
+   $(HELP2MAN) --output=$@
+ $(srcdir)/doc/libtool.1: $(srcdir)/$(auxdir)/ltmain.sh
+-      $(update_mans) --help-option=--help-all libtool
++      $(update_mans) --help-option=--help-all ${build_alias}-libtool
+ $(srcdir)/doc/libtoolize.1: $(srcdir)/libtoolize.in
+       $(update_mans) libtoolize
+@@ -523,12 +523,12 @@ TESTS_ENVIRONMENT = MAKE="$(MAKE)" CC="$
  
  BUILDCHECK_ENVIRONMENT = _lt_pkgdatadir="$(abs_top_srcdir)" \
        LIBTOOLIZE="$(abs_top_builddir)/libtoolize" \
@@ -92,7 +110,7 @@ Index: libtool-2.2.2/Makefile.am
        LTDLINCL="-I$(includedir)" \
        LIBLTDL="$(libdir)/libltdl.la" \
        tst_aclocaldir="$(aclocaldir)"
-@@ -620,7 +620,7 @@
+@@ -679,7 +679,7 @@ if HAVE_FC
  TESTS += $(FC_TESTS)
  endif
  
similarity index 62%
rename from meta/packages/libtool/libtool-2.2.6/trailingslash.patch
rename to meta/packages/libtool/libtool/trailingslash.patch
index b1956a6134e0dfec3fc7c127e296e5f431b79199..f51c06406eff3846ce3552de2b6e2b9614c4b296 100644 (file)
@@ -4,20 +4,20 @@ This is because libdir has a trailing slash which breaks the comparision.
 
 RP 2/1/10
 
-Index: libtool-2.2.6/libltdl/config/ltmain.m4sh
+Index: libtool-2.2.10/libltdl/config/ltmain.m4sh
 ===================================================================
---- libtool-2.2.6.orig/libltdl/config/ltmain.m4sh      2010-02-02 16:06:29.793905001 +0000
-+++ libtool-2.2.6/libltdl/config/ltmain.m4sh   2010-02-02 16:06:59.415155959 +0000
-@@ -1567,8 +1567,12 @@
+--- libtool-2.2.10.orig/libltdl/config/ltmain.m4sh
++++ libtool-2.2.10/libltdl/config/ltmain.m4sh
+@@ -1634,8 +1634,12 @@ func_mode_install ()
        dir="$dir$objdir"
  
        if test -n "$relink_command"; then
-+          # Strip any trailing slash from the destination.
-+          func_stripname '' '/' "$libdir"
-+          destlibdir=$func_stripname_result
++      # Strip any trailing slash from the destination.
++      func_stripname '' '/' "$libdir"
++      destlibdir=$func_stripname_result
 +
          # Determine the prefix the user has applied to our future dir.
--        inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
+-        inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
 +        inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$destlibdir\$%%"`
  
          # Don't allow the user to place us outside of our expected
similarity index 86%
rename from meta/packages/libtool/libtool_2.2.6.bb
rename to meta/packages/libtool/libtool_2.2.10.bb
index e5deac7c40b6b6c8072f3613b6842113ef87d641..cca3b1ea4a60978536e51e3f8ee40227d042ace0 100644 (file)
@@ -1,10 +1,7 @@
 require libtool.inc
+DEPENDS = "libtool-native"
 
-PR = "r21"
-
-SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}a.tar.gz \
-           file://trailingslash.patch;patch=1 \
-           file://dolt.m4"
+PR = "r0"
 
 PACKAGES =+ "libltdl libltdl-dev libltdl-dbg"
 FILES_${PN} += "${datadir}/aclocal*"