diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-25 19:40:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-13 23:02:49 +0000 |
commit | 3480ae13ed2ded9133b41eee99fcbe1425f18aaa (patch) | |
tree | 83aa3090b3036b90f70ec3b4b7541352965d9890 | |
parent | 78fcbf9f6d54c1a46896ab2b8d6b6e338714dbd4 (diff) | |
download | poky-3480ae13ed2ded9133b41eee99fcbe1425f18aaa.tar.gz |
libtool: Update patchset to match those submitted upstream
I went through and cleaned up the headers/descriptions on several of the
libtool patchset and submitted (or resubmitted in some cases) them
upstream. This patch updates/renames them to match what I did.
I did fix some whitespace issues in some of the patches and also merged
one case where we had a patch of already patched code.
This makes it clear what was submitted and makes resubmission easier if
ever needed too.
(From OE-Core rev: 3aeab68fe95d80cd627e3d218e36bb363a7802d0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9bb9a4e8bd408c7a42913aa3e1ec541919b59584)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
16 files changed, 139 insertions, 153 deletions
diff --git a/meta/recipes-devtools/libtool/libtool-2.4.6.inc b/meta/recipes-devtools/libtool/libtool-2.4.6.inc index 7104c98c20..2df46aa773 100644 --- a/meta/recipes-devtools/libtool/libtool-2.4.6.inc +++ b/meta/recipes-devtools/libtool/libtool-2.4.6.inc | |||
@@ -9,22 +9,21 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | |||
9 | file://libltdl/COPYING.LIB;md5=4fbd65380cdd255951079008b364516c " | 9 | file://libltdl/COPYING.LIB;md5=4fbd65380cdd255951079008b364516c " |
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://0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch \ |
13 | file://rename-with-sysroot.patch \ | 13 | file://0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch \ |
14 | file://use-sysroot-in-libpath.patch \ | 14 | file://0003-ltmain.in-Add-missing-sysroot-to-library-path.patch \ |
15 | file://fix-final-rpath.patch \ | 15 | file://0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch \ |
16 | file://fix-rpath.patch \ | 16 | file://0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch \ |
17 | file://norm-rpath.patch \ | ||
18 | file://dont-depend-on-help2man.patch \ | 17 | file://dont-depend-on-help2man.patch \ |
19 | file://fix-resolve-lt-sysroot.patch \ | 18 | file://0006-libtool.m4-Handle-as-a-sysroot-correctly.patch \ |
20 | file://nohardcodepaths.patch \ | 19 | file://nohardcodepaths.patch \ |
21 | file://unwind-opt-parsing.patch \ | 20 | file://unwind-opt-parsing.patch \ |
22 | file://0001-libtool-Fix-support-for-NIOS2-processor.patch \ | 21 | file://0007-libtool-Fix-support-for-NIOS2-processor.patch \ |
23 | file://0001-libtool-Check-for-static-libs-for-internal-compiler-.patch \ | 22 | file://0008-libtool-Check-for-static-libs-for-internal-compiler-.patch \ |
24 | file://0001-Makefile.am-make-sure-autoheader-run-before-autoconf.patch \ | 23 | file://0009-Makefile.am-make-sure-autoheader-run-before-autoconf.patch \ |
25 | file://0001-Makefile.am-make-sure-autoheader-run-before-automake.patch \ | 24 | file://0010-Makefile.am-make-sure-autoheader-run-before-automake.patch \ |
26 | file://lto-prefix.patch \ | 25 | file://0011-ltmain.in-Handle-prefix-map-compiler-options-correct.patch \ |
27 | file://debian-no_hostname.patch \ | 26 | file://0012-libtool.m4-For-reproducibility-stop-encoding-hostnam.patch \ |
28 | " | 27 | " |
29 | 28 | ||
30 | SRC_URI[md5sum] = "addf44b646ddb4e3919805aa88fa7c5e" | 29 | SRC_URI[md5sum] = "addf44b646ddb4e3919805aa88fa7c5e" |
diff --git a/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch b/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch new file mode 100644 index 0000000000..eeb5ebf416 --- /dev/null +++ b/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
2 | Subject: [PATCH 01/12] ltmain.in: Handle trailing slashes on install commands correctly | ||
3 | |||
4 | A command like: | ||
5 | |||
6 | libtool --mode=install /usr/bin/install -c gck-roots-store-standalone.la '/image/usr/lib/gnome-keyring/standalone/' | ||
7 | |||
8 | where the path ends with a trailing slash currently fails. This occurs in | ||
9 | software like gnome-keyring or pulseaudio and is because the comparision | ||
10 | code doesn't see the paths as equal. Strip both paths to ensure this works | ||
11 | reliably. | ||
12 | |||
13 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
14 | |||
15 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00010.html] | ||
16 | |||
17 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | ||
18 | --- a/build-aux/ltmain.in | ||
19 | +++ b/build-aux/ltmain.in | ||
20 | @@ -2356,8 +2356,14 @@ func_mode_install () | ||
21 | func_append dir "$objdir" | ||
22 | |||
23 | if test -n "$relink_command"; then | ||
24 | + # Strip any trailing slash from the destination. | ||
25 | + func_stripname '' '/' "$libdir" | ||
26 | + destlibdir=$func_stripname_result | ||
27 | + func_stripname '' '/' "$destdir" | ||
28 | + s_destdir=$func_stripname_result | ||
29 | + | ||
30 | # Determine the prefix the user has applied to our future dir. | ||
31 | - inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` | ||
32 | + inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"` | ||
33 | |||
34 | # Don't allow the user to place us outside of our expected | ||
35 | # location b/c this prevents finding dependent libraries that | ||
diff --git a/meta/recipes-devtools/libtool/libtool/rename-with-sysroot.patch b/meta/recipes-devtools/libtool/libtool/0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch index ad2b110530..6da283959e 100644 --- a/meta/recipes-devtools/libtool/libtool/rename-with-sysroot.patch +++ b/meta/recipes-devtools/libtool/libtool/0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch | |||
@@ -1,16 +1,17 @@ | |||
1 | Upstream-Status: Pending | 1 | From: Khem Raj <raj.khem@gmail.com> |
2 | Subject: [PATCH 02/12] libtool.m4: Rename the --with-sysroot option to avoid conflict with gcc/binutils | ||
2 | 3 | ||
3 | This patch renames the --with-sysroot option to --with-libtool-sysroot | 4 | This patch renames the --with-sysroot option to --with-libtool-sysroot |
4 | to avoid namespace conflict with binutils, gcc and other toolchain | 5 | to avoid namespace conflict with binutils, gcc and other toolchain |
5 | components. | 6 | components since these componets also add that option to configure |
7 | and this becomes confusing and conflicting otherwise. | ||
6 | 8 | ||
7 | I also reported the problem to libtool here | 9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
8 | 10 | ||
11 | Upstream report: | ||
9 | http://lists.gnu.org/archive/html/libtool/2010-10/msg00048.html | 12 | http://lists.gnu.org/archive/html/libtool/2010-10/msg00048.html |
10 | 13 | ||
11 | -Khem Raj <raj.khem@gmail.com> | 14 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00014.html] |
12 | |||
13 | Updated by: Robert Yang <liezhi.yang@windriver.com> | ||
14 | 15 | ||
15 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 | 16 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 |
16 | --- a/m4/libtool.m4 | 17 | --- a/m4/libtool.m4 |
diff --git a/meta/recipes-devtools/libtool/libtool/use-sysroot-in-libpath.patch b/meta/recipes-devtools/libtool/libtool/0003-ltmain.in-Add-missing-sysroot-to-library-path.patch index 6af99f327c..0103a00451 100644 --- a/meta/recipes-devtools/libtool/libtool/use-sysroot-in-libpath.patch +++ b/meta/recipes-devtools/libtool/libtool/0003-ltmain.in-Add-missing-sysroot-to-library-path.patch | |||
@@ -1,12 +1,14 @@ | |||
1 | Upstream-Status: Pending | 1 | From: Khem Raj <raj.khem@gmail.com> |
2 | Subject: [PATCH 03/12] ltmain.in: Add missing sysroot to library path | ||
2 | 3 | ||
3 | When using sysroot we should append it to libdir, which is helpful in | 4 | When using a sysroot we should append it to libdir, which is helpful in |
4 | cross builds as the system is staged in the sysroot. For normal builds, | 5 | cross builds as the system is staged in the sysroot. For normal builds, |
5 | i.e. when lt_sysroot is not set, it will still behave the same and add | 6 | i.e. when lt_sysroot is not set, it will still behave the same and add |
6 | -L/usr/lib to the relink command. | 7 | -L/usr/lib to the relink command. |
7 | 8 | ||
8 | -Khem Raj <raj.khem@gmail.com> | 9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
9 | Updated by: Robert Yang <liezhi.yang@windriver.com> | 10 | |
11 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00017.html] | ||
10 | 12 | ||
11 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | 13 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in |
12 | --- a/build-aux/ltmain.in | 14 | --- a/build-aux/ltmain.in |
diff --git a/meta/recipes-devtools/libtool/libtool/fix-final-rpath.patch b/meta/recipes-devtools/libtool/libtool/0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch index 5c9f8cc9c0..21b3dfe306 100644 --- a/meta/recipes-devtools/libtool/libtool/fix-final-rpath.patch +++ b/meta/recipes-devtools/libtool/libtool/0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch | |||
@@ -1,13 +1,13 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | 1 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
2 | Subject: [PATCH 04/12] ltmain.sh: Fix sysroot paths being encoded into RPATHs | ||
2 | 3 | ||
3 | Enalbing sysroot support exposed a bug where the final library | 4 | There is a bug where RPATHs could end up containing sysroot values when |
4 | had an RPATH encoded into it which still pointed to the sysroot. | 5 | cross compiling which is obviously incorrect. Strip out sysroot components |
5 | This works around the issue until it gets sorted out upstream. | 6 | from libdir when building RPATH values to avoid this. |
6 | 7 | ||
7 | Fix suggested by Richard Purdie <richard.purdie@intel.com> | 8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
8 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> | 9 | |
9 | Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> | 10 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00009.html] |
10 | Updated by: Robert Yang <liezhi.yang@windriver.com> | ||
11 | 11 | ||
12 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | 12 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in |
13 | --- a/build-aux/ltmain.in | 13 | --- a/build-aux/ltmain.in |
diff --git a/meta/recipes-devtools/libtool/libtool/fix-rpath.patch b/meta/recipes-devtools/libtool/libtool/0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch index a2ec9473e7..50d47d9f7a 100644 --- a/meta/recipes-devtools/libtool/libtool/fix-rpath.patch +++ b/meta/recipes-devtools/libtool/libtool/0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch | |||
@@ -1,18 +1,21 @@ | |||
1 | We don't want to add RPATHS which match default linker | 1 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
2 | search paths, they're a waste of space. This patch | 2 | Subject: [PATCH 05/12] ltmain.in: Don't encode RATHS which match default linker paths |
3 | filters libtools list and removes the ones we don't need. | ||
4 | 3 | ||
5 | RP 23/9/2011 | 4 | We don't want to add RPATHS which match default linker search paths, they're |
5 | a waste of space. This patch filters libtools list of paths to encoode and | ||
6 | removes the ones we don't need. | ||
6 | 7 | ||
7 | Upstream-Status: Pending | 8 | Libtool may be passed link paths of the form "/usr/lib/../lib" so normalize |
9 | the paths before comparision. | ||
8 | 10 | ||
9 | Updated by: Robert Yang <liezhi.yang@windriver.com> | 11 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
10 | 12 | ||
11 | Index: libtool-2.4.2/build-aux/ltmain.in | 13 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00013.html] |
12 | =================================================================== | 14 | |
13 | --- libtool-2.4.2.orig/build-aux/ltmain.in | 15 | diff -u b/build-aux/ltmain.in b/build-aux/ltmain.in |
14 | +++ libtool-2.4.2/build-aux/ltmain.in | 16 | --- b/build-aux/ltmain.in |
15 | @@ -7286,8 +7286,14 @@ EOF | 17 | +++ b/build-aux/ltmain.in 2012-08-22 11:01:34.191345989 -0700 |
18 | @@ -7286,8 +7286,16 @@ | ||
16 | esac | 19 | esac |
17 | fi | 20 | fi |
18 | else | 21 | else |
@@ -20,8 +23,10 @@ Index: libtool-2.4.2/build-aux/ltmain.in | |||
20 | - func_append dep_rpath " $flag" | 23 | - func_append dep_rpath " $flag" |
21 | + # We only want to hardcode in an rpath if it isn't in the | 24 | + # We only want to hardcode in an rpath if it isn't in the |
22 | + # default dlsearch path. | 25 | + # default dlsearch path. |
26 | + func_normal_abspath "$libdir" | ||
27 | + libdir_norm=$func_normal_abspath_result | ||
23 | + case " $sys_lib_dlsearch_path " in | 28 | + case " $sys_lib_dlsearch_path " in |
24 | + *" $libdir "*) ;; | 29 | + *" $libdir_norm "*) ;; |
25 | + *) eval flag=\"$hardcode_libdir_flag_spec\" | 30 | + *) eval flag=\"$hardcode_libdir_flag_spec\" |
26 | + func_append dep_rpath " $flag" | 31 | + func_append dep_rpath " $flag" |
27 | + ;; | 32 | + ;; |
@@ -29,7 +34,7 @@ Index: libtool-2.4.2/build-aux/ltmain.in | |||
29 | fi | 34 | fi |
30 | elif test -n "$runpath_var"; then | 35 | elif test -n "$runpath_var"; then |
31 | case "$perm_rpath " in | 36 | case "$perm_rpath " in |
32 | @@ -8019,8 +8025,14 @@ EOF | 37 | @@ -8019,8 +8027,16 @@ |
33 | esac | 38 | esac |
34 | fi | 39 | fi |
35 | else | 40 | else |
@@ -37,8 +42,10 @@ Index: libtool-2.4.2/build-aux/ltmain.in | |||
37 | - func_append rpath " $flag" | 42 | - func_append rpath " $flag" |
38 | + # We only want to hardcode in an rpath if it isn't in the | 43 | + # We only want to hardcode in an rpath if it isn't in the |
39 | + # default dlsearch path. | 44 | + # default dlsearch path. |
45 | + func_normal_abspath "$libdir" | ||
46 | + libdir_norm=$func_normal_abspath_result | ||
40 | + case " $sys_lib_dlsearch_path " in | 47 | + case " $sys_lib_dlsearch_path " in |
41 | + *" $libdir "*) ;; | 48 | + *" $libdir_norm "*) ;; |
42 | + *) eval flag=\"$hardcode_libdir_flag_spec\" | 49 | + *) eval flag=\"$hardcode_libdir_flag_spec\" |
43 | + rpath+=" $flag" | 50 | + rpath+=" $flag" |
44 | + ;; | 51 | + ;; |
@@ -46,7 +53,7 @@ Index: libtool-2.4.2/build-aux/ltmain.in | |||
46 | fi | 53 | fi |
47 | elif test -n "$runpath_var"; then | 54 | elif test -n "$runpath_var"; then |
48 | case "$perm_rpath " in | 55 | case "$perm_rpath " in |
49 | @@ -8070,8 +8082,14 @@ EOF | 56 | @@ -8070,8 +8086,14 @@ |
50 | esac | 57 | esac |
51 | fi | 58 | fi |
52 | else | 59 | else |
diff --git a/meta/recipes-devtools/libtool/libtool/fix-resolve-lt-sysroot.patch b/meta/recipes-devtools/libtool/libtool/0006-libtool.m4-Handle-as-a-sysroot-correctly.patch index 1bd95980c0..999971241f 100644 --- a/meta/recipes-devtools/libtool/libtool/fix-resolve-lt-sysroot.patch +++ b/meta/recipes-devtools/libtool/libtool/0006-libtool.m4-Handle-as-a-sysroot-correctly.patch | |||
@@ -1,16 +1,18 @@ | |||
1 | Upstream-Status: Pending | 1 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
2 | Subject: [PATCH 06/12] libtool.m4: Handle "/" as a sysroot correctly | ||
2 | 3 | ||
3 | This patch updates libtool.m4 (and its output) to resolve a problem | 4 | Update libtool.m4 to resolve a problem with lt_sysroot not being properly |
4 | with variable 'lt_sysroot' not being properly updated if the option | 5 | updated if the option '--with[-libtool]-sysroot' is not provided when |
5 | '--with[-libtool]-sysroot' is not provided when running the 'configure' | 6 | running the 'configure' script for a package so that "/" as a sysroot |
6 | script for a package. | 7 | is handled correctly by libtool. |
7 | 8 | ||
8 | I have also reported the problem to libtool here | 9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
9 | 10 | ||
11 | Upstream Report: | ||
10 | http://lists.gnu.org/archive/html/bug-libtool/2013-09/msg00005.html | 12 | http://lists.gnu.org/archive/html/bug-libtool/2013-09/msg00005.html |
11 | 13 | ||
12 | Signed-off-by: Hans Beckerus <hans.beckerus at gmail.com> | 14 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00018.html] |
13 | Updated by: Robert Yang <liezhi.yang@windriver.com> | 15 | |
14 | --- | 16 | --- |
15 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 | 17 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 |
16 | --- a/m4/libtool.m4 | 18 | --- a/m4/libtool.m4 |
diff --git a/meta/recipes-devtools/libtool/libtool/0001-libtool-Fix-support-for-NIOS2-processor.patch b/meta/recipes-devtools/libtool/libtool/0007-libtool-Fix-support-for-NIOS2-processor.patch index bbd36d8dc1..395464e908 100644 --- a/meta/recipes-devtools/libtool/libtool/0001-libtool-Fix-support-for-NIOS2-processor.patch +++ b/meta/recipes-devtools/libtool/libtool/0007-libtool-Fix-support-for-NIOS2-processor.patch | |||
@@ -1,7 +1,5 @@ | |||
1 | From df2cd898e48208f26320d40c3ed6b19c75c27142 Mon Sep 17 00:00:00 2001 | ||
2 | From: Marek Vasut <marex@denx.de> | 1 | From: Marek Vasut <marex@denx.de> |
3 | Date: Thu, 17 Sep 2015 00:43:15 +0200 | 2 | Subject: [PATCH 07/12] libtool: Fix support for NIOS2 processor |
4 | Subject: [PATCH] libtool: Fix support for NIOS2 processor | ||
5 | 3 | ||
6 | The name of the system contains the string "nios2". This string | 4 | The name of the system contains the string "nios2". This string |
7 | is caught by the some of the greedy checks for OS/2 in libtool, | 5 | is caught by the some of the greedy checks for OS/2 in libtool, |
@@ -13,7 +11,10 @@ checks to prevent the OS/2 check incorrectly trapping the nios2 | |||
13 | as well. | 11 | as well. |
14 | 12 | ||
15 | Signed-off-by: Marek Vasut <marex@denx.de> | 13 | Signed-off-by: Marek Vasut <marex@denx.de> |
16 | Upstream-Status: Submitted | 14 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
15 | |||
16 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00021.html] | ||
17 | |||
17 | --- | 18 | --- |
18 | build-aux/ltmain.in | 20 ++++++++++++++++++++ | 19 | build-aux/ltmain.in | 20 ++++++++++++++++++++ |
19 | 1 file changed, 20 insertions(+) | 20 | 1 file changed, 20 insertions(+) |
diff --git a/meta/recipes-devtools/libtool/libtool/0001-libtool-Check-for-static-libs-for-internal-compiler-.patch b/meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch index 8c7c39feb6..afffdb9fd4 100644 --- a/meta/recipes-devtools/libtool/libtool/0001-libtool-Check-for-static-libs-for-internal-compiler-.patch +++ b/meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch | |||
@@ -1,8 +1,7 @@ | |||
1 | From 40a2da75e6d95cc7c498ebda95ab19ae0db2ebfb Mon Sep 17 00:00:00 2001 | 1 | From b9993338080325a6e2b2ec94ca0ece80e7fa3fb6 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 26 Jan 2019 12:54:26 -0800 | 3 | Date: Sat, 26 Jan 2019 12:54:26 -0800 |
4 | Subject: [PATCH] libtool: Check for static libs for internal compiler | 4 | Subject: [PATCH 08/12] libtool: Check for static libs for internal compiler libraries |
5 | libraries | ||
6 | 5 | ||
7 | Libtool checks only for libraries linked as -l* when trying to | 6 | Libtool checks only for libraries linked as -l* when trying to |
8 | find internal compiler libraries. Clang, however uses the absolute | 7 | find internal compiler libraries. Clang, however uses the absolute |
@@ -10,11 +9,13 @@ path to link its internal libraries e.g. compiler_rt. This patch | |||
10 | handles clang's statically linked libraries when finding internal | 9 | handles clang's statically linked libraries when finding internal |
11 | compiler libraries. | 10 | compiler libraries. |
12 | 11 | ||
13 | https://crbug.com/749263 | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
13 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
14 | 14 | ||
15 | Upstream-Status: Submitted [https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866] | 15 | https://crbug.com/749263 |
16 | https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866 | ||
16 | 17 | ||
17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 18 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00016.html] |
18 | --- | 19 | --- |
19 | m4/libtool.m4 | 2 +- | 20 | m4/libtool.m4 | 2 +- |
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | 21 | 1 file changed, 1 insertion(+), 1 deletion(-) |
diff --git a/meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-autoconf.patch b/meta/recipes-devtools/libtool/libtool/0009-Makefile.am-make-sure-autoheader-run-before-autoconf.patch index 2e9908725e..348cd3c1ae 100644 --- a/meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-autoconf.patch +++ b/meta/recipes-devtools/libtool/libtool/0009-Makefile.am-make-sure-autoheader-run-before-autoconf.patch | |||
@@ -1,7 +1,5 @@ | |||
1 | From dfbbbd359e43e0a55fbea06f2647279ad8761cb9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | 1 | From: Mingli Yu <mingli.yu@windriver.com> |
3 | Date: Wed, 24 Mar 2021 03:04:13 +0000 | 2 | Subject: [PATCH 09/12] Makefile.am: make sure autoheader run before autoconf |
4 | Subject: [PATCH] Makefile.am: make sure autoheader run before autoconf | ||
5 | 3 | ||
6 | autoheader will update ../libtool-2.4.6/libltdl/config-h.in which | 4 | autoheader will update ../libtool-2.4.6/libltdl/config-h.in which |
7 | autoconf needs, so there comes a race sometimes as below: | 5 | autoconf needs, so there comes a race sometimes as below: |
@@ -10,9 +8,11 @@ autoconf needs, so there comes a race sometimes as below: | |||
10 | 8 | ||
11 | So make sure autoheader run before autoconf to avoid this race. | 9 | So make sure autoheader run before autoconf to avoid this race. |
12 | 10 | ||
13 | Upstream-Status: Submitted [libtool-patches@gnu.org maillist] | ||
14 | |||
15 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | 11 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
12 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
13 | |||
14 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00015.html] | ||
15 | |||
16 | --- | 16 | --- |
17 | Makefile.am | 2 +- | 17 | Makefile.am | 2 +- |
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
diff --git a/meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-automake.patch b/meta/recipes-devtools/libtool/libtool/0010-Makefile.am-make-sure-autoheader-run-before-automake.patch index 87f8492346..cd963ef1be 100644 --- a/meta/recipes-devtools/libtool/libtool/0001-Makefile.am-make-sure-autoheader-run-before-automake.patch +++ b/meta/recipes-devtools/libtool/libtool/0010-Makefile.am-make-sure-autoheader-run-before-automake.patch | |||
@@ -1,7 +1,5 @@ | |||
1 | From e82c06584f02e3e4487aa73aa05981e2a35dc6d1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | 1 | From: Mingli Yu <mingli.yu@windriver.com> |
3 | Date: Tue, 13 Apr 2021 07:17:29 +0000 | 2 | Subject: [PATCH 10/12] Makefile.am: make sure autoheader run before automake |
4 | Subject: [PATCH] Makefile.am: make sure autoheader run before automake | ||
5 | 3 | ||
6 | When use automake to generate Makefile.in from Makefile.am, there | 4 | When use automake to generate Makefile.in from Makefile.am, there |
7 | comes below race: | 5 | comes below race: |
@@ -10,7 +8,10 @@ comes below race: | |||
10 | It is because the file config-h.in in updating process by autoheader, | 8 | It is because the file config-h.in in updating process by autoheader, |
11 | so make automake run after autoheader to avoid the above race. | 9 | so make automake run after autoheader to avoid the above race. |
12 | 10 | ||
13 | Upstream-Status: Submitted [libtool-patches@gnu.org maillist] | 11 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
12 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
13 | |||
14 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00020.html] | ||
14 | 15 | ||
15 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | 16 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
16 | --- | 17 | --- |
diff --git a/meta/recipes-devtools/libtool/libtool/lto-prefix.patch b/meta/recipes-devtools/libtool/libtool/0011-ltmain.in-Handle-prefix-map-compiler-options-correct.patch index 2bd010b8e4..b121a3c750 100644 --- a/meta/recipes-devtools/libtool/libtool/lto-prefix.patch +++ b/meta/recipes-devtools/libtool/libtool/0011-ltmain.in-Handle-prefix-map-compiler-options-correct.patch | |||
@@ -1,9 +1,13 @@ | |||
1 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
2 | Subject: [PATCH 11/12] ltmain.in: Handle prefix-map compiler options correctly | ||
3 | |||
1 | If lto is enabled, we need the prefix-map variables to be passed to the linker. | 4 | If lto is enabled, we need the prefix-map variables to be passed to the linker. |
2 | Add these to the list of options libtool passes through. | 5 | Add these to the list of options libtool passes through. |
3 | 6 | ||
4 | Upstream-Status: Pending | ||
5 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | 7 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
6 | 8 | ||
9 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00019.html] | ||
10 | |||
7 | Index: libtool-2.4.6/build-aux/ltmain.in | 11 | Index: libtool-2.4.6/build-aux/ltmain.in |
8 | =================================================================== | 12 | =================================================================== |
9 | --- libtool-2.4.6.orig/build-aux/ltmain.in | 13 | --- libtool-2.4.6.orig/build-aux/ltmain.in |
diff --git a/meta/recipes-devtools/libtool/libtool/debian-no_hostname.patch b/meta/recipes-devtools/libtool/libtool/0012-libtool.m4-For-reproducibility-stop-encoding-hostnam.patch index 5add0cca3b..64f911d46c 100755..100644 --- a/meta/recipes-devtools/libtool/libtool/debian-no_hostname.patch +++ b/meta/recipes-devtools/libtool/libtool/0012-libtool.m4-For-reproducibility-stop-encoding-hostnam.patch | |||
@@ -1,10 +1,16 @@ | |||
1 | libtool: remove host specific info from header file | 1 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
2 | Subject: [PATCH 12/12] libtool.m4: For reproducibility stop encoding hostname in libtool script | ||
3 | |||
4 | For reproducibilty, stop encoding the hostname into the libtool script, this isn't | ||
5 | really adding much to debugging and most distros are carrying such a patch now as | ||
6 | reproducibility is important. | ||
7 | |||
8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
2 | 9 | ||
3 | https://sources.debian.org/data/main/libt/libtool/2.4.6-10/debian/patches/ | 10 | https://sources.debian.org/data/main/libt/libtool/2.4.6-10/debian/patches/ |
4 | no_hostname.patch | 11 | no_hostname.patch |
5 | 12 | ||
6 | Upstream-Status: Inappropriate [not author] | 13 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00011.html] |
7 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | ||
8 | 14 | ||
9 | --- | 15 | --- |
10 | Index: libtool-2.4.6/m4/libtool.m4 | 16 | Index: libtool-2.4.6/m4/libtool.m4 |
diff --git a/meta/recipes-devtools/libtool/libtool/fixinstall.patch b/meta/recipes-devtools/libtool/libtool/fixinstall.patch index 8f343bf436..48330d82fb 100644 --- a/meta/recipes-devtools/libtool/libtool/fixinstall.patch +++ b/meta/recipes-devtools/libtool/libtool/fixinstall.patch | |||
@@ -27,9 +27,9 @@ diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | |||
27 | 27 | ||
28 | - if test -n "$relink_command"; then | 28 | - if test -n "$relink_command"; then |
29 | + if test "$fast_install" = no && test -n "$relink_command"; then | 29 | + if test "$fast_install" = no && test -n "$relink_command"; then |
30 | # Strip any trailing slash from the destination. | 30 | # Strip any trailing slash from the destination. |
31 | func_stripname '' '/' "$libdir" | 31 | func_stripname '' '/' "$libdir" |
32 | destlibdir=$func_stripname_result | 32 | destlibdir=$func_stripname_result |
33 | @@ -2394,7 +2394,7 @@ func_mode_install () | 33 | @@ -2394,7 +2394,7 @@ func_mode_install () |
34 | shift | 34 | shift |
35 | 35 | ||
diff --git a/meta/recipes-devtools/libtool/libtool/norm-rpath.patch b/meta/recipes-devtools/libtool/libtool/norm-rpath.patch deleted file mode 100644 index 1e4c65e024..0000000000 --- a/meta/recipes-devtools/libtool/libtool/norm-rpath.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | libtool: normalize link paths before considering for RPATH | ||
2 | |||
3 | Libtool may be passed link paths of the form "/usr/lib/../lib", which | ||
4 | fool its detection code into thinking it should be included as an | ||
5 | RPATH in the generated binary. Normalize before comparision. | ||
6 | |||
7 | Signed-off-by: Andy Ross <andy.ross@windriver.com> | ||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Updated by: Robert Yang <liezhi.yang@windriver.com> | ||
11 | |||
12 | diff -ur a/build-aux/ltmain.in b/build-aux/ltmain.in | ||
13 | --- a/build-aux/ltmain.in 2012-08-16 13:58:55.058900363 -0700 | ||
14 | +++ b/build-aux/ltmain.in 2012-08-22 11:01:34.191345989 -0700 | ||
15 | @@ -7288,8 +7288,10 @@ | ||
16 | else | ||
17 | # We only want to hardcode in an rpath if it isn't in the | ||
18 | # default dlsearch path. | ||
19 | + func_normal_abspath "$libdir" | ||
20 | + libdir_norm=$func_normal_abspath_result | ||
21 | case " $sys_lib_dlsearch_path " in | ||
22 | - *" $libdir "*) ;; | ||
23 | + *" $libdir_norm "*) ;; | ||
24 | *) eval flag=\"$hardcode_libdir_flag_spec\" | ||
25 | func_append dep_rpath " $flag" | ||
26 | ;; | ||
27 | @@ -8027,8 +8029,10 @@ | ||
28 | else | ||
29 | # We only want to hardcode in an rpath if it isn't in the | ||
30 | # default dlsearch path. | ||
31 | + func_normal_abspath "$libdir" | ||
32 | + libdir_norm=$func_normal_abspath_result | ||
33 | case " $sys_lib_dlsearch_path " in | ||
34 | - *" $libdir "*) ;; | ||
35 | + *" $libdir_norm "*) ;; | ||
36 | *) eval flag=\"$hardcode_libdir_flag_spec\" | ||
37 | rpath+=" $flag" | ||
38 | ;; | ||
diff --git a/meta/recipes-devtools/libtool/libtool/trailingslash.patch b/meta/recipes-devtools/libtool/libtool/trailingslash.patch deleted file mode 100644 index e8824d7db9..0000000000 --- a/meta/recipes-devtools/libtool/libtool/trailingslash.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | A command like /bin/sh ../../i586-poky-linux-libtool --mode=install /usr/bin/install -c gck-roots-store-standalone.la '/media/data1/builds/poky1/tmp/work/core2-poky-linux/gnome-keyring-2.26.1-r1/image/usr/lib/gnome-keyring/standalone/' fails (e.g. gnome-keyring or pulseaudio) | ||
4 | |||
5 | This is because libdir has a trailing slash which breaks the comparision. | ||
6 | |||
7 | RP 2/1/10 | ||
8 | |||
9 | Merged a patch received from Gary Thomas <gary@mlbassoc.com> | ||
10 | |||
11 | Date: 2010/07/12 | ||
12 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
13 | |||
14 | Updated by: Robert Yang <liezhi.yang@windriver.com> | ||
15 | |||
16 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | ||
17 | --- a/build-aux/ltmain.in | ||
18 | +++ b/build-aux/ltmain.in | ||
19 | @@ -2356,8 +2356,15 @@ func_mode_install () | ||
20 | func_append dir "$objdir" | ||
21 | |||
22 | if test -n "$relink_command"; then | ||
23 | + # Strip any trailing slash from the destination. | ||
24 | + func_stripname '' '/' "$libdir" | ||
25 | + destlibdir=$func_stripname_result | ||
26 | + | ||
27 | + func_stripname '' '/' "$destdir" | ||
28 | + s_destdir=$func_stripname_result | ||
29 | + | ||
30 | # Determine the prefix the user has applied to our future dir. | ||
31 | - inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` | ||
32 | + inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"` | ||
33 | |||
34 | # Don't allow the user to place us outside of our expected | ||
35 | # location b/c this prevents finding dependent libraries that | ||