diff options
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/libtool/libtool-cross_2.2.10.bb | 10 | ||||
-rw-r--r-- | meta/packages/libtool/libtool-native_2.2.10.bb | 2 | ||||
-rw-r--r-- | meta/packages/libtool/libtool-nativesdk_2.2.10.bb | 2 | ||||
-rw-r--r-- | meta/packages/libtool/libtool.inc | 3 | ||||
-rw-r--r-- | meta/packages/libtool/libtool/add_dolt.patch | 12 | ||||
-rw-r--r-- | meta/packages/libtool/libtool/dolt.m4 | 129 | ||||
-rw-r--r-- | meta/packages/libtool/libtool/trailingslash.patch | 12 | ||||
-rw-r--r-- | meta/packages/libtool/libtool_2.2.10.bb | 2 |
8 files changed, 15 insertions, 157 deletions
diff --git a/meta/packages/libtool/libtool-cross_2.2.10.bb b/meta/packages/libtool/libtool-cross_2.2.10.bb index a1164c9500..23135f7edb 100644 --- a/meta/packages/libtool/libtool-cross_2.2.10.bb +++ b/meta/packages/libtool/libtool-cross_2.2.10.bb | |||
@@ -1,19 +1,12 @@ | |||
1 | require libtool_${PV}.bb | 1 | require libtool_${PV}.bb |
2 | 2 | ||
3 | PR = "r0" | 3 | PR = "r1" |
4 | PACKAGES = "" | 4 | PACKAGES = "" |
5 | SRC_URI_append = " file://cross_compile.patch \ | 5 | SRC_URI_append = " file://cross_compile.patch \ |
6 | file://prefix.patch " | 6 | file://prefix.patch " |
7 | 7 | ||
8 | DEPENDS += "libtool-native" | 8 | DEPENDS += "libtool-native" |
9 | 9 | ||
10 | DOLT_PATCH = "" | ||
11 | DOLT_PATCH_arm = " file://add_dolt.patch" | ||
12 | DOLT_PATCH_i586 = " file://add_dolt.patch" | ||
13 | |||
14 | #SRC_URI_append_linux = "${DOLT_PATCH}" | ||
15 | #SRC_URI_append_linux-gnueabi = "${DOLT_PATCH}" | ||
16 | |||
17 | do_configure_prepend () { | 10 | do_configure_prepend () { |
18 | # Remove any existing libtool m4 since old stale versions would break | 11 | # Remove any existing libtool m4 since old stale versions would break |
19 | # any upgrade | 12 | # any upgrade |
@@ -31,7 +24,6 @@ do_install () { | |||
31 | install -c -m 0644 ${S}/libltdl/config/ltmain.sh ${D}${datadir}/libtool/ | 24 | install -c -m 0644 ${S}/libltdl/config/ltmain.sh ${D}${datadir}/libtool/ |
32 | install -c -m 0644 ${S}/libltdl/m4/libtool.m4 ${D}${datadir}/aclocal/ | 25 | install -c -m 0644 ${S}/libltdl/m4/libtool.m4 ${D}${datadir}/aclocal/ |
33 | install -c -m 0644 ${S}/libltdl/m4/ltdl.m4 ${D}${datadir}/aclocal/ | 26 | install -c -m 0644 ${S}/libltdl/m4/ltdl.m4 ${D}${datadir}/aclocal/ |
34 | install -c -m 0644 ${WORKDIR}/dolt.m4 ${D}${datadir}/aclocal/ | ||
35 | } | 27 | } |
36 | 28 | ||
37 | SYSROOT_PREPROCESS_FUNCS += "libtoolcross_sysroot_preprocess" | 29 | SYSROOT_PREPROCESS_FUNCS += "libtoolcross_sysroot_preprocess" |
diff --git a/meta/packages/libtool/libtool-native_2.2.10.bb b/meta/packages/libtool/libtool-native_2.2.10.bb index f10ea8836b..322da4a99b 100644 --- a/meta/packages/libtool/libtool-native_2.2.10.bb +++ b/meta/packages/libtool/libtool-native_2.2.10.bb | |||
@@ -2,7 +2,7 @@ require libtool_${PV}.bb | |||
2 | 2 | ||
3 | DEPENDS = "" | 3 | DEPENDS = "" |
4 | 4 | ||
5 | PR = "r0" | 5 | PR = "r1" |
6 | SRC_URI_append = " file://cross_compile.patch \ | 6 | SRC_URI_append = " file://cross_compile.patch \ |
7 | file://prefix.patch " | 7 | file://prefix.patch " |
8 | 8 | ||
diff --git a/meta/packages/libtool/libtool-nativesdk_2.2.10.bb b/meta/packages/libtool/libtool-nativesdk_2.2.10.bb index c9f24a95bf..e972d9ef3d 100644 --- a/meta/packages/libtool/libtool-nativesdk_2.2.10.bb +++ b/meta/packages/libtool/libtool-nativesdk_2.2.10.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require libtool_${PV}.bb | 1 | require libtool_${PV}.bb |
2 | 2 | ||
3 | PR = "r0" | 3 | PR = "r1" |
4 | SRC_URI_append = " file://cross_compile.patch \ | 4 | SRC_URI_append = " file://cross_compile.patch \ |
5 | file://prefix.patch " | 5 | file://prefix.patch " |
6 | 6 | ||
diff --git a/meta/packages/libtool/libtool.inc b/meta/packages/libtool/libtool.inc index a14068f279..c94dadd0af 100644 --- a/meta/packages/libtool/libtool.inc +++ b/meta/packages/libtool/libtool.inc | |||
@@ -10,6 +10,5 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | |||
10 | 10 | ||
11 | SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \ | 11 | SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \ |
12 | file://trailingslash.patch \ | 12 | file://trailingslash.patch \ |
13 | file://prefix-manpage-fix.patch \ | 13 | file://prefix-manpage-fix.patch " |
14 | file://dolt.m4 " | ||
15 | 14 | ||
diff --git a/meta/packages/libtool/libtool/add_dolt.patch b/meta/packages/libtool/libtool/add_dolt.patch deleted file mode 100644 index 2c5df96031..0000000000 --- a/meta/packages/libtool/libtool/add_dolt.patch +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | Index: libtool-2.2.2/libltdl/m4/libtool.m4 | ||
2 | =================================================================== | ||
3 | --- libtool-2.2.2.orig/libltdl/m4/libtool.m4 2008-04-13 22:40:30.000000000 +0100 | ||
4 | +++ libtool-2.2.2/libltdl/m4/libtool.m4 2008-04-13 23:38:45.000000000 +0100 | ||
5 | @@ -97,6 +97,7 @@ | ||
6 | |||
7 | # Only expand once: | ||
8 | m4_define([LT_INIT]) | ||
9 | +DOLT | ||
10 | ])# LT_INIT | ||
11 | |||
12 | # Old names: | ||
diff --git a/meta/packages/libtool/libtool/dolt.m4 b/meta/packages/libtool/libtool/dolt.m4 deleted file mode 100644 index 9bedecf273..0000000000 --- a/meta/packages/libtool/libtool/dolt.m4 +++ /dev/null | |||
@@ -1,129 +0,0 @@ | |||
1 | dnl dolt, a replacement for libtool | ||
2 | dnl Copyright © 2007-2008 Josh Triplett <josh@freedesktop.org> | ||
3 | dnl Copying and distribution of this file, with or without modification, | ||
4 | dnl are permitted in any medium without royalty provided the copyright | ||
5 | dnl notice and this notice are preserved. | ||
6 | dnl | ||
7 | dnl To use dolt, invoke the DOLT macro immediately after the libtool macros. | ||
8 | dnl Optionally, copy this file into acinclude.m4, to avoid the need to have it | ||
9 | dnl installed when running autoconf on your project. | ||
10 | |||
11 | AC_DEFUN([DOLT], [ | ||
12 | AC_REQUIRE([AC_CANONICAL_HOST]) | ||
13 | # dolt, a replacement for libtool | ||
14 | # Josh Triplett <josh@freedesktop.org> | ||
15 | AC_PATH_PROG(DOLT_BASH, bash) | ||
16 | AC_MSG_CHECKING([if dolt supports this host]) | ||
17 | dolt_supported=yes | ||
18 | if test x$DOLT_BASH = x; then | ||
19 | AC_MSG_ERROR([dolt: Bash not found, fatal error]) | ||
20 | fi | ||
21 | if test x$GCC != xyes; then | ||
22 | AC_MSG_ERROR([dolt: gcc not found, fatal error]) | ||
23 | fi | ||
24 | case $host in | ||
25 | i?86-*-linux*|x86_64-*-linux*|arm-*-linux*) ;; | ||
26 | *) AC_MSG_ERROR([dolt: incompatible host, fatal error]) ;; | ||
27 | esac | ||
28 | AC_MSG_RESULT([yes, replacing libtool]) | ||
29 | |||
30 | dnl Start writing out doltcompile. | ||
31 | cat <<__DOLTCOMPILE__EOF__ >doltcompile | ||
32 | #!$DOLT_BASH | ||
33 | __DOLTCOMPILE__EOF__ | ||
34 | cat <<'__DOLTCOMPILE__EOF__' >>doltcompile | ||
35 | args=("$[]@") | ||
36 | for ((arg=0; arg<${#args@<:@@@:>@}; arg++)) ; do | ||
37 | if test x"${args@<:@$arg@:>@}" = x-o ; then | ||
38 | objarg=$((arg+1)) | ||
39 | break | ||
40 | fi | ||
41 | done | ||
42 | if test x$objarg = x ; then | ||
43 | echo 'Error: no -o on compiler command line' 1>&2 | ||
44 | exit 1 | ||
45 | fi | ||
46 | lo="${args@<:@$objarg@:>@}" | ||
47 | obj="${lo%.lo}" | ||
48 | if test x"$lo" = x"$obj" ; then | ||
49 | echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2 | ||
50 | exit 1 | ||
51 | fi | ||
52 | objbase="${obj##*/}" | ||
53 | __DOLTCOMPILE__EOF__ | ||
54 | |||
55 | dnl Write out shared compilation code. | ||
56 | if test x$enable_shared = xyes; then | ||
57 | cat <<'__DOLTCOMPILE__EOF__' >>doltcompile | ||
58 | libobjdir="${obj%$objbase}.libs" | ||
59 | if test ! -d "$libobjdir" ; then | ||
60 | mkdir "$libobjdir" | ||
61 | mkdir_ret=$? | ||
62 | if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then | ||
63 | exit $mkdir_ret | ||
64 | fi | ||
65 | fi | ||
66 | pic_object="$libobjdir/$objbase.o" | ||
67 | args@<:@$objarg@:>@="$pic_object" | ||
68 | "${args@<:@@@:>@}" -fPIC -DPIC | ||
69 | __DOLTCOMPILE__EOF__ | ||
70 | fi | ||
71 | |||
72 | dnl Write out static compilation code. | ||
73 | dnl Avoid duplicate compiler output if also building shared objects. | ||
74 | if test x$enable_static = xyes; then | ||
75 | cat <<'__DOLTCOMPILE__EOF__' >>doltcompile | ||
76 | non_pic_object="$obj.o" | ||
77 | args@<:@$objarg@:>@="$non_pic_object" | ||
78 | __DOLTCOMPILE__EOF__ | ||
79 | if test x$enable_shared = xyes; then | ||
80 | cat <<'__DOLTCOMPILE__EOF__' >>doltcompile | ||
81 | "${args@<:@@@:>@}" >/dev/null 2>&1 | ||
82 | __DOLTCOMPILE__EOF__ | ||
83 | else | ||
84 | cat <<'__DOLTCOMPILE__EOF__' >>doltcompile | ||
85 | "${args@<:@@@:>@}" | ||
86 | __DOLTCOMPILE__EOF__ | ||
87 | fi | ||
88 | fi | ||
89 | |||
90 | dnl Write out the code to write the .lo file. | ||
91 | dnl The second line of the .lo file must match "^# Generated by .*libtool" | ||
92 | cat <<'__DOLTCOMPILE__EOF__' >>doltcompile | ||
93 | { | ||
94 | echo "# $lo - a libtool object file" | ||
95 | echo "# Generated by doltcompile, not libtool" | ||
96 | __DOLTCOMPILE__EOF__ | ||
97 | |||
98 | if test x$enable_shared = xyes; then | ||
99 | cat <<'__DOLTCOMPILE__EOF__' >>doltcompile | ||
100 | echo "pic_object='$pic_object'" | ||
101 | __DOLTCOMPILE__EOF__ | ||
102 | else | ||
103 | cat <<'__DOLTCOMPILE__EOF__' >>doltcompile | ||
104 | echo pic_object=none | ||
105 | __DOLTCOMPILE__EOF__ | ||
106 | fi | ||
107 | |||
108 | if test x$enable_static = xyes; then | ||
109 | cat <<'__DOLTCOMPILE__EOF__' >>doltcompile | ||
110 | echo "non_pic_object='$non_pic_object'" | ||
111 | __DOLTCOMPILE__EOF__ | ||
112 | else | ||
113 | cat <<'__DOLTCOMPILE__EOF__' >>doltcompile | ||
114 | echo non_pic_object=none | ||
115 | __DOLTCOMPILE__EOF__ | ||
116 | fi | ||
117 | |||
118 | cat <<'__DOLTCOMPILE__EOF__' >>doltcompile | ||
119 | } > "$lo" | ||
120 | __DOLTCOMPILE__EOF__ | ||
121 | |||
122 | dnl Done writing out doltcompile; substitute it for libtool compilation. | ||
123 | chmod +x doltcompile | ||
124 | LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)' | ||
125 | AC_SUBST(LTCOMPILE) | ||
126 | LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)' | ||
127 | AC_SUBST(LTCXXCOMPILE) | ||
128 | # end dolt | ||
129 | ]) | ||
diff --git a/meta/packages/libtool/libtool/trailingslash.patch b/meta/packages/libtool/libtool/trailingslash.patch index f51c06406e..313c26291a 100644 --- a/meta/packages/libtool/libtool/trailingslash.patch +++ b/meta/packages/libtool/libtool/trailingslash.patch | |||
@@ -4,11 +4,16 @@ This is because libdir has a trailing slash which breaks the comparision. | |||
4 | 4 | ||
5 | RP 2/1/10 | 5 | RP 2/1/10 |
6 | 6 | ||
7 | Merged a patch received from Gary Thomas <gary@mlbassoc.com> | ||
8 | |||
9 | Date: 2010/07/12 | ||
10 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
11 | |||
7 | Index: libtool-2.2.10/libltdl/config/ltmain.m4sh | 12 | Index: libtool-2.2.10/libltdl/config/ltmain.m4sh |
8 | =================================================================== | 13 | =================================================================== |
9 | --- libtool-2.2.10.orig/libltdl/config/ltmain.m4sh | 14 | --- libtool-2.2.10.orig/libltdl/config/ltmain.m4sh |
10 | +++ libtool-2.2.10/libltdl/config/ltmain.m4sh | 15 | +++ libtool-2.2.10/libltdl/config/ltmain.m4sh |
11 | @@ -1634,8 +1634,12 @@ func_mode_install () | 16 | @@ -1634,8 +1634,15 @@ func_mode_install () |
12 | dir="$dir$objdir" | 17 | dir="$dir$objdir" |
13 | 18 | ||
14 | if test -n "$relink_command"; then | 19 | if test -n "$relink_command"; then |
@@ -16,9 +21,12 @@ Index: libtool-2.2.10/libltdl/config/ltmain.m4sh | |||
16 | + func_stripname '' '/' "$libdir" | 21 | + func_stripname '' '/' "$libdir" |
17 | + destlibdir=$func_stripname_result | 22 | + destlibdir=$func_stripname_result |
18 | + | 23 | + |
24 | + func_stripname '' '/' "$destdir" | ||
25 | + s_destdir=$func_stripname_result | ||
26 | + | ||
19 | # Determine the prefix the user has applied to our future dir. | 27 | # Determine the prefix the user has applied to our future dir. |
20 | - inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` | 28 | - inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` |
21 | + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$destlibdir\$%%"` | 29 | + inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"` |
22 | 30 | ||
23 | # Don't allow the user to place us outside of our expected | 31 | # Don't allow the user to place us outside of our expected |
24 | # location b/c this prevents finding dependent libraries that | 32 | # location b/c this prevents finding dependent libraries that |
diff --git a/meta/packages/libtool/libtool_2.2.10.bb b/meta/packages/libtool/libtool_2.2.10.bb index cca3b1ea4a..9eaec2da67 100644 --- a/meta/packages/libtool/libtool_2.2.10.bb +++ b/meta/packages/libtool/libtool_2.2.10.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | require libtool.inc | 1 | require libtool.inc |
2 | DEPENDS = "libtool-native" | 2 | DEPENDS = "libtool-native" |
3 | 3 | ||
4 | PR = "r0" | 4 | PR = "r1" |
5 | 5 | ||
6 | PACKAGES =+ "libltdl libltdl-dev libltdl-dbg" | 6 | PACKAGES =+ "libltdl libltdl-dev libltdl-dbg" |
7 | FILES_${PN} += "${datadir}/aclocal*" | 7 | FILES_${PN} += "${datadir}/aclocal*" |