diff options
Diffstat (limited to 'meta/recipes-devtools/libtool')
26 files changed, 204 insertions, 662 deletions
diff --git a/meta/recipes-devtools/libtool/libtool-2.4.7.inc b/meta/recipes-devtools/libtool/libtool-2.4.7.inc deleted file mode 100644 index 16bb10d48f..0000000000 --- a/meta/recipes-devtools/libtool/libtool-2.4.7.inc +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | SUMMARY = "Generic library support script" | ||
2 | DESCRIPTION = "This is GNU libtool, a generic library support script. \ | ||
3 | Libtool hides the complexity of generating special library types \ | ||
4 | (such as shared libraries) behind a consistent interface." | ||
5 | HOMEPAGE = "http://www.gnu.org/software/libtool/libtool.html" | ||
6 | SECTION = "devel" | ||
7 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
9 | file://libltdl/COPYING.LIB;md5=4fbd65380cdd255951079008b364516c " | ||
10 | |||
11 | SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \ | ||
12 | file://0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch \ | ||
13 | file://0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch \ | ||
14 | file://0003-ltmain.in-Add-missing-sysroot-to-library-path.patch \ | ||
15 | file://0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch \ | ||
16 | file://0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch \ | ||
17 | file://dont-depend-on-help2man.patch \ | ||
18 | file://0003-libtool.m4-Cleanup-sysroot-trailing.patch \ | ||
19 | file://0006-libtool.m4-Handle-as-a-sysroot-correctly.patch \ | ||
20 | file://nohardcodepaths.patch \ | ||
21 | file://0007-libtool-Fix-support-for-NIOS2-processor.patch \ | ||
22 | file://0008-libtool-Check-for-static-libs-for-internal-compiler-.patch \ | ||
23 | file://0009-Makefile.am-make-sure-autoheader-run-before-autoconf.patch \ | ||
24 | file://0010-Makefile.am-make-sure-autoheader-run-before-automake.patch \ | ||
25 | file://0011-ltmain.in-Handle-prefix-map-compiler-options-correct.patch \ | ||
26 | file://0012-libtool.m4-For-reproducibility-stop-encoding-hostnam.patch \ | ||
27 | file://0001-ltmain.in-Parse-additional-clang-options.patch \ | ||
28 | " | ||
29 | |||
30 | SRC_URI[sha256sum] = "04e96c2404ea70c590c546eba4202a4e12722c640016c12b9b2f1ce3d481e9a8" | ||
31 | |||
32 | do_compile:prepend () { | ||
33 | # Sometimes this file doesn't get rebuilt, force the issue | ||
34 | rm -f ${S}/build-aux/ltmain.sh | ||
35 | make build-aux/ltmain.sh | ||
36 | ./config.status | ||
37 | } | ||
38 | |||
39 | inherit autotools texinfo | ||
40 | EXTRA_AUTORECONF = "--exclude=libtoolize" | ||
41 | |||
42 | CACHED_CONFIGUREVARS += "ac_cv_path_GREP=grep" | ||
43 | |||
44 | DEPENDS = "libtool-native" | ||
45 | |||
46 | PACKAGES =+ "libltdl" | ||
47 | FILES:${PN} += "${datadir}/aclocal" | ||
48 | |||
49 | FILES:${PN}-dev:remove = "${datadir}/aclocal" | ||
50 | FILES:libltdl = "${libdir}/libltdl${SOLIBS}" | ||
51 | |||
52 | export CONFIG_SHELL="/bin/bash" | ||
diff --git a/meta/recipes-devtools/libtool/libtool-2.5.4.inc b/meta/recipes-devtools/libtool/libtool-2.5.4.inc new file mode 100644 index 0000000000..4d9a822de2 --- /dev/null +++ b/meta/recipes-devtools/libtool/libtool-2.5.4.inc | |||
@@ -0,0 +1,36 @@ | |||
1 | SUMMARY = "Generic library support script" | ||
2 | DESCRIPTION = "This is GNU libtool, a generic library support script. \ | ||
3 | Libtool hides the complexity of generating special library types \ | ||
4 | (such as shared libraries) behind a consistent interface." | ||
5 | HOMEPAGE = "http://www.gnu.org/software/libtool/libtool.html" | ||
6 | SECTION = "devel" | ||
7 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=570a9b3749dd0463a1778803b12a6dce \ | ||
9 | file://libltdl/COPYING.LIB;md5=4bf661c1e3793e55c8d1051bc5e0ae21 " | ||
10 | |||
11 | SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \ | ||
12 | file://0001-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch \ | ||
13 | file://0002-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch \ | ||
14 | file://0003-libtool-remove-help2man-dependency.patch \ | ||
15 | file://0004-libtool.m4-Change-libtool-to-handle-sysroots-by-defa.patch \ | ||
16 | file://0005-libtool-Check-for-static-libs-for-internal-compiler-.patch \ | ||
17 | file://0006-libtool-Fix-tools-path-issues.patch \ | ||
18 | file://0007-libtool-Fix-problem-with-libtoolize-in-multilib.patch \ | ||
19 | " | ||
20 | |||
21 | SRC_URI[sha256sum] = "da8ebb2ce4dcf46b90098daf962cffa68f4b4f62ea60f798d0ef12929ede6adf" | ||
22 | |||
23 | inherit autotools texinfo | ||
24 | EXTRA_AUTORECONF = "--exclude=libtoolize" | ||
25 | |||
26 | CACHED_CONFIGUREVARS += "ac_cv_path_GREP=grep" | ||
27 | |||
28 | DEPENDS = "libtool-native" | ||
29 | |||
30 | PACKAGES =+ "libltdl" | ||
31 | FILES:${PN} += "${datadir}/aclocal" | ||
32 | |||
33 | FILES:${PN}-dev:remove = "${datadir}/aclocal" | ||
34 | FILES:libltdl = "${libdir}/libltdl${SOLIBS}" | ||
35 | |||
36 | export CONFIG_SHELL = "/bin/bash" | ||
diff --git a/meta/recipes-devtools/libtool/libtool-cross_2.4.7.bb b/meta/recipes-devtools/libtool/libtool-cross_2.5.4.bb index 93f1dd7825..33ea706adb 100644 --- a/meta/recipes-devtools/libtool/libtool-cross_2.4.7.bb +++ b/meta/recipes-devtools/libtool/libtool-cross_2.5.4.bb | |||
@@ -1,19 +1,12 @@ | |||
1 | require libtool-${PV}.inc | 1 | require libtool-${PV}.inc |
2 | 2 | ||
3 | PACKAGES = "" | 3 | PACKAGES = "" |
4 | SRC_URI += "file://fixinstall.patch" | 4 | SRC_URI += "file://0008-libtool-Avoid-relinking-when-cross-compiling-its-poi.patch" |
5 | 5 | ||
6 | datadir = "${STAGING_DIR_TARGET}${target_datadir}" | 6 | datadir = "${STAGING_DIR_TARGET}${target_datadir}" |
7 | 7 | ||
8 | inherit nopackages | 8 | inherit nopackages |
9 | 9 | ||
10 | do_configure:prepend () { | ||
11 | # Remove any existing libtool m4 since old stale versions would break | ||
12 | # any upgrade | ||
13 | rm -f ${STAGING_DATADIR}/aclocal/libtool.m4 | ||
14 | rm -f ${STAGING_DATADIR}/aclocal/lt*.m4 | ||
15 | } | ||
16 | |||
17 | # | 10 | # |
18 | # ccache may or may not be INHERITED, we remove references to it so the sstate | 11 | # ccache may or may not be INHERITED, we remove references to it so the sstate |
19 | # artefact works on a machine where its not present. libtool-cross isn't used | 12 | # artefact works on a machine where its not present. libtool-cross isn't used |
diff --git a/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb b/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb deleted file mode 100644 index 19024f7830..0000000000 --- a/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | require libtool-${PV}.inc | ||
2 | |||
3 | DEPENDS = "" | ||
4 | |||
5 | inherit native | ||
6 | |||
7 | EXTRA_OECONF = " --with-libtool-sysroot=${STAGING_DIR_NATIVE}" | ||
8 | |||
9 | do_configure:prepend () { | ||
10 | # Remove any existing libtool m4 since old stale versions would break | ||
11 | # any upgrade | ||
12 | rm -f ${STAGING_DATADIR}/aclocal/libtool.m4 | ||
13 | rm -f ${STAGING_DATADIR}/aclocal/lt*.m4 | ||
14 | } | ||
15 | |||
16 | do_install () { | ||
17 | autotools_do_install | ||
18 | install -d ${D}${bindir}/ | ||
19 | install -m 0755 libtool ${D}${bindir}/libtool | ||
20 | } | ||
diff --git a/meta/recipes-devtools/libtool/libtool-native_2.5.4.bb b/meta/recipes-devtools/libtool/libtool-native_2.5.4.bb new file mode 100644 index 0000000000..be96b52dd6 --- /dev/null +++ b/meta/recipes-devtools/libtool/libtool-native_2.5.4.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require libtool-${PV}.inc | ||
2 | |||
3 | DEPENDS = "" | ||
4 | |||
5 | inherit native | ||
6 | |||
7 | do_install () { | ||
8 | autotools_do_install | ||
9 | install -d ${D}${bindir}/ | ||
10 | install -m 0755 libtool ${D}${bindir}/libtool | ||
11 | } | ||
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 deleted file mode 100644 index 51c0c52da8..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Handle-trailing-slashes-on-install-command.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
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 | index a5f21a1..f884824 100644 | ||
19 | --- a/build-aux/ltmain.in | ||
20 | +++ b/build-aux/ltmain.in | ||
21 | @@ -2381,8 +2381,14 @@ func_mode_install () | ||
22 | func_append dir "$objdir" | ||
23 | |||
24 | if test -n "$relink_command"; then | ||
25 | + # Strip any trailing slash from the destination. | ||
26 | + func_stripname '' '/' "$libdir" | ||
27 | + destlibdir=$func_stripname_result | ||
28 | + func_stripname '' '/' "$destdir" | ||
29 | + s_destdir=$func_stripname_result | ||
30 | + | ||
31 | # Determine the prefix the user has applied to our future dir. | ||
32 | - inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` | ||
33 | + inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"` | ||
34 | |||
35 | # Don't allow the user to place us outside of our expected | ||
36 | # location b/c this prevents finding dependent libraries that | ||
37 | -- | ||
38 | 2.25.1 | ||
39 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch b/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch deleted file mode 100644 index c52083327c..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0001-ltmain.in-Parse-additional-clang-options.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | ltmain.in: Parse additional clang options | ||
2 | |||
3 | clang uses -rtlib and --unwindlib to select proper compiler | ||
4 | runtime in some cases. Therefore pass these options to linker when found in | ||
5 | ldflags | ||
6 | |||
7 | * build-aux/ltmain.in: Handle clang linker options | ||
8 | |||
9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
10 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=725646bf095bf5c07c49ae38dd060f95bd95ae3c] | ||
11 | |||
12 | --- | ||
13 | build-aux/ltmain.in | 4 +++- | ||
14 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | ||
17 | index 037f009..ba5c816 100644 | ||
18 | --- a/build-aux/ltmain.in | ||
19 | +++ b/build-aux/ltmain.in | ||
20 | @@ -5414,10 +5414,12 @@ func_mode_link () | ||
21 | # -fsanitize=* Clang/GCC memory and address sanitizer | ||
22 | # -fuse-ld=* Linker select flags for GCC | ||
23 | # -f{file|debug|macro|profile}-prefix-map* needed for lto linking | ||
24 | + # -rtlib=* select c runtime lib with clang | ||
25 | + # --unwindlib=* select unwinder library with clang | ||
26 | # -Wa,* Pass flags directly to the assembler | ||
27 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ | ||
28 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ | ||
29 | - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ | ||
30 | + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*|-rtlib=*|--unwindlib=*| \ | ||
31 | -specs=*|-fsanitize=*|-fuse-ld=*|-ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*|-Wa,*) | ||
32 | func_quote_arg pretty "$arg" | ||
33 | arg=$func_quote_arg_result | ||
diff --git a/meta/recipes-devtools/libtool/libtool/0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch b/meta/recipes-devtools/libtool/libtool/0001-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch index 9203302182..bcffb7d1ae 100644 --- a/meta/recipes-devtools/libtool/libtool/0004-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch +++ b/meta/recipes-devtools/libtool/libtool/0001-ltmain.sh-Fix-sysroot-paths-being-encoded-into-RPATH.patch | |||
@@ -1,5 +1,7 @@ | |||
1 | From 16354097285634daf0240d428bc49fba95c3a291 Mon Sep 17 00:00:00 2001 | ||
1 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
2 | Subject: [PATCH 04/12] ltmain.sh: Fix sysroot paths being encoded into RPATHs | 3 | Date: Tue, 26 Nov 2024 09:57:35 +0000 |
4 | Subject: [PATCH 1/7] ltmain.sh: Fix sysroot paths being encoded into RPATHs | ||
3 | 5 | ||
4 | There is a bug where RPATHs could end up containing sysroot values when | 6 | There is a bug where RPATHs could end up containing sysroot values when |
5 | cross compiling which is obviously incorrect. Strip out sysroot components | 7 | cross compiling which is obviously incorrect. Strip out sysroot components |
@@ -8,12 +10,15 @@ from libdir when building RPATH values to avoid this. | |||
8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | 10 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
9 | 11 | ||
10 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00009.html] | 12 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00009.html] |
13 | --- | ||
14 | build-aux/ltmain.in | 14 ++++++++++++-- | ||
15 | 1 file changed, 12 insertions(+), 2 deletions(-) | ||
11 | 16 | ||
12 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | 17 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in |
13 | index 25a91de..40cb94a 100644 | 18 | index fa157775..c31faebd 100644 |
14 | --- a/build-aux/ltmain.in | 19 | --- a/build-aux/ltmain.in |
15 | +++ b/build-aux/ltmain.in | 20 | +++ b/build-aux/ltmain.in |
16 | @@ -7682,9 +7682,11 @@ EOF | 21 | @@ -7764,9 +7764,11 @@ func_mode_link () |
17 | test relink = "$opt_mode" || rpath=$compile_rpath$rpath | 22 | test relink = "$opt_mode" || rpath=$compile_rpath$rpath |
18 | for libdir in $rpath; do | 23 | for libdir in $rpath; do |
19 | if test -n "$hardcode_libdir_flag_spec"; then | 24 | if test -n "$hardcode_libdir_flag_spec"; then |
@@ -27,7 +32,7 @@ index 25a91de..40cb94a 100644 | |||
27 | if test -z "$hardcode_libdirs"; then | 32 | if test -z "$hardcode_libdirs"; then |
28 | hardcode_libdirs=$libdir | 33 | hardcode_libdirs=$libdir |
29 | else | 34 | else |
30 | @@ -8414,6 +8416,10 @@ EOF | 35 | @@ -8496,6 +8498,10 @@ func_mode_link () |
31 | hardcode_libdirs= | 36 | hardcode_libdirs= |
32 | for libdir in $compile_rpath $finalize_rpath; do | 37 | for libdir in $compile_rpath $finalize_rpath; do |
33 | if test -n "$hardcode_libdir_flag_spec"; then | 38 | if test -n "$hardcode_libdir_flag_spec"; then |
@@ -38,7 +43,7 @@ index 25a91de..40cb94a 100644 | |||
38 | if test -n "$hardcode_libdir_separator"; then | 43 | if test -n "$hardcode_libdir_separator"; then |
39 | if test -z "$hardcode_libdirs"; then | 44 | if test -z "$hardcode_libdirs"; then |
40 | hardcode_libdirs=$libdir | 45 | hardcode_libdirs=$libdir |
41 | @@ -8465,6 +8471,10 @@ EOF | 46 | @@ -8547,6 +8553,10 @@ func_mode_link () |
42 | hardcode_libdirs= | 47 | hardcode_libdirs= |
43 | for libdir in $finalize_rpath; do | 48 | for libdir in $finalize_rpath; do |
44 | if test -n "$hardcode_libdir_flag_spec"; then | 49 | if test -n "$hardcode_libdir_flag_spec"; then |
@@ -50,5 +55,5 @@ index 25a91de..40cb94a 100644 | |||
50 | if test -z "$hardcode_libdirs"; then | 55 | if test -z "$hardcode_libdirs"; then |
51 | hardcode_libdirs=$libdir | 56 | hardcode_libdirs=$libdir |
52 | -- | 57 | -- |
53 | 2.25.1 | 58 | 2.39.5 |
54 | 59 | ||
diff --git a/meta/recipes-devtools/libtool/libtool/0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch b/meta/recipes-devtools/libtool/libtool/0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch deleted file mode 100644 index 2126f82953..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0002-libtool.m4-Rename-the-with-sysroot-option-to-avoid-c.patch +++ /dev/null | |||
@@ -1,170 +0,0 @@ | |||
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 | ||
3 | |||
4 | This patch renames the --with-sysroot option to --with-libtool-sysroot | ||
5 | to avoid namespace conflict with binutils, gcc and other toolchain | ||
6 | components since these componets also add that option to configure | ||
7 | and this becomes confusing and conflicting otherwise. | ||
8 | |||
9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
10 | |||
11 | Upstream report: | ||
12 | http://lists.gnu.org/archive/html/libtool/2010-10/msg00048.html | ||
13 | |||
14 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00014.html] | ||
15 | |||
16 | Index: libtool-2.4.7/m4/libtool.m4 | ||
17 | =================================================================== | ||
18 | --- libtool-2.4.7.orig/m4/libtool.m4 | ||
19 | +++ libtool-2.4.7/m4/libtool.m4 | ||
20 | @@ -1244,28 +1244,28 @@ _LT_DECL([], [ECHO], [1], [An echo progr | ||
21 | AC_DEFUN([_LT_WITH_SYSROOT], | ||
22 | [m4_require([_LT_DECL_SED])dnl | ||
23 | AC_MSG_CHECKING([for sysroot]) | ||
24 | -AC_ARG_WITH([sysroot], | ||
25 | -[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], | ||
26 | +AC_ARG_WITH([libtool-sysroot], | ||
27 | +[AS_HELP_STRING([--with-libtool-sysroot@<:@=DIR@:>@], | ||
28 | [Search for dependent libraries within DIR (or the compiler's sysroot | ||
29 | if not specified).])], | ||
30 | -[], [with_sysroot=no]) | ||
31 | +[], [with_libtool_sysroot=no]) | ||
32 | |||
33 | dnl lt_sysroot will always be passed unquoted. We quote it here | ||
34 | dnl in case the user passed a directory name. | ||
35 | lt_sysroot= | ||
36 | -case $with_sysroot in #( | ||
37 | +case $with_libtool_sysroot in #( | ||
38 | yes) | ||
39 | if test yes = "$GCC"; then | ||
40 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
41 | fi | ||
42 | ;; #( | ||
43 | /*) | ||
44 | - lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` | ||
45 | + lt_sysroot=`echo "$with_libtool_sysroot" | $SED -e "$sed_quote_subst"` | ||
46 | ;; #( | ||
47 | no|'') | ||
48 | ;; #( | ||
49 | *) | ||
50 | - AC_MSG_RESULT([$with_sysroot]) | ||
51 | + AC_MSG_RESULT([$with_libtool_sysroot]) | ||
52 | AC_MSG_ERROR([The sysroot must be an absolute path.]) | ||
53 | ;; | ||
54 | esac | ||
55 | Index: libtool-2.4.7/tests/sysroot.at | ||
56 | =================================================================== | ||
57 | --- libtool-2.4.7.orig/tests/sysroot.at | ||
58 | +++ libtool-2.4.7/tests/sysroot.at | ||
59 | @@ -65,7 +65,7 @@ while read file; do | ||
60 | done]) | ||
61 | |||
62 | LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" | ||
63 | -configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix" | ||
64 | +configure_options="$configure_options --with-libtool-sysroot=$sysroot --prefix=$prefix" | ||
65 | |||
66 | #??? | ||
67 | if test PATH = "$shlibpath_var"; then | ||
68 | @@ -115,7 +115,7 @@ AM_INIT_AUTOMAKE([foreign]) | ||
69 | AC_PROG_CC | ||
70 | AC_CONFIG_SRCDIR([lib2.c]) | ||
71 | LT_INIT | ||
72 | -sysroot=$with_sysroot | ||
73 | +sysroot=$with_libtool_sysroot | ||
74 | AC_SUBST([sysroot]) | ||
75 | AC_OUTPUT(Makefile) | ||
76 | ]]) | ||
77 | @@ -156,7 +156,7 @@ AM_INIT_AUTOMAKE([foreign]) | ||
78 | AC_PROG_CC | ||
79 | AC_CONFIG_SRCDIR([prog.c]) | ||
80 | LT_INIT | ||
81 | -sysroot=$with_sysroot | ||
82 | +sysroot=$with_libtool_sysroot | ||
83 | AC_SUBST([sysroot]) | ||
84 | AC_OUTPUT(Makefile) | ||
85 | ]]) | ||
86 | diff --git a/tests/testsuite b/tests/testsuite | ||
87 | index 24265e4..d388e3e 100755 | ||
88 | --- a/tests/testsuite | ||
89 | +++ b/tests/testsuite | ||
90 | @@ -48997,7 +48997,7 @@ $at_traceon; } | ||
91 | |||
92 | |||
93 | LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" | ||
94 | -configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix" | ||
95 | +configure_options="$configure_options --with-libtool-sysroot=$sysroot --prefix=$prefix" | ||
96 | |||
97 | #??? | ||
98 | if test PATH = "$shlibpath_var"; then | ||
99 | @@ -49211,7 +49211,7 @@ AM_INIT_AUTOMAKE([foreign]) | ||
100 | AC_PROG_CC | ||
101 | AC_CONFIG_SRCDIR([lib2.c]) | ||
102 | LT_INIT | ||
103 | -sysroot=$with_sysroot | ||
104 | +sysroot=$with_libtool_sysroot | ||
105 | AC_SUBST([sysroot]) | ||
106 | AC_OUTPUT(Makefile) | ||
107 | _ATEOF | ||
108 | @@ -49404,7 +49404,7 @@ AM_INIT_AUTOMAKE([foreign]) | ||
109 | AC_PROG_CC | ||
110 | AC_CONFIG_SRCDIR([prog.c]) | ||
111 | LT_INIT | ||
112 | -sysroot=$with_sysroot | ||
113 | +sysroot=$with_libtool_sysroot | ||
114 | AC_SUBST([sysroot]) | ||
115 | AC_OUTPUT(Makefile) | ||
116 | _ATEOF | ||
117 | @@ -49761,7 +49761,7 @@ $at_traceon; } | ||
118 | |||
119 | |||
120 | LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" | ||
121 | -configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix" | ||
122 | +configure_options="$configure_options --with-libtool-sysroot=$sysroot --prefix=$prefix" | ||
123 | |||
124 | #??? | ||
125 | if test PATH = "$shlibpath_var"; then | ||
126 | @@ -49975,7 +49975,7 @@ AM_INIT_AUTOMAKE([foreign]) | ||
127 | AC_PROG_CC | ||
128 | AC_CONFIG_SRCDIR([lib2.c]) | ||
129 | LT_INIT | ||
130 | -sysroot=$with_sysroot | ||
131 | +sysroot=$with_libtool_sysroot | ||
132 | AC_SUBST([sysroot]) | ||
133 | AC_OUTPUT(Makefile) | ||
134 | _ATEOF | ||
135 | @@ -50168,7 +50168,7 @@ AM_INIT_AUTOMAKE([foreign]) | ||
136 | AC_PROG_CC | ||
137 | AC_CONFIG_SRCDIR([prog.c]) | ||
138 | LT_INIT | ||
139 | -sysroot=$with_sysroot | ||
140 | +sysroot=$with_libtool_sysroot | ||
141 | AC_SUBST([sysroot]) | ||
142 | AC_OUTPUT(Makefile) | ||
143 | _ATEOF | ||
144 | @@ -50525,7 +50525,7 @@ $at_traceon; } | ||
145 | |||
146 | |||
147 | LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined" | ||
148 | -configure_options="$configure_options --with-sysroot=$sysroot --prefix=$prefix" | ||
149 | +configure_options="$configure_options --with-libtool-sysroot=$sysroot --prefix=$prefix" | ||
150 | |||
151 | #??? | ||
152 | if test PATH = "$shlibpath_var"; then | ||
153 | @@ -50739,7 +50739,7 @@ AM_INIT_AUTOMAKE([foreign]) | ||
154 | AC_PROG_CC | ||
155 | AC_CONFIG_SRCDIR([lib2.c]) | ||
156 | LT_INIT | ||
157 | -sysroot=$with_sysroot | ||
158 | +sysroot=$with_libtool_sysroot | ||
159 | AC_SUBST([sysroot]) | ||
160 | AC_OUTPUT(Makefile) | ||
161 | _ATEOF | ||
162 | @@ -50932,7 +50932,7 @@ AM_INIT_AUTOMAKE([foreign]) | ||
163 | AC_PROG_CC | ||
164 | AC_CONFIG_SRCDIR([prog.c]) | ||
165 | LT_INIT | ||
166 | -sysroot=$with_sysroot | ||
167 | +sysroot=$with_libtool_sysroot | ||
168 | AC_SUBST([sysroot]) | ||
169 | AC_OUTPUT(Makefile) | ||
170 | _ATEOF | ||
diff --git a/meta/recipes-devtools/libtool/libtool/0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch b/meta/recipes-devtools/libtool/libtool/0002-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch index 8b6352b01b..2ece455969 100644 --- a/meta/recipes-devtools/libtool/libtool/0005-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch +++ b/meta/recipes-devtools/libtool/libtool/0002-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch | |||
@@ -1,5 +1,8 @@ | |||
1 | From 59b6032698d10306ffb3be3cbf76690409d7f9a6 Mon Sep 17 00:00:00 2001 | ||
1 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
2 | Subject: [PATCH 05/12] ltmain.in: Don't encode RATHS which match default linker paths | 3 | Date: Tue, 26 Nov 2024 09:57:36 +0000 |
4 | Subject: [PATCH 2/7] ltmain.in: Don't encode RATHS which match default linker | ||
5 | paths | ||
3 | 6 | ||
4 | We don't want to add RPATHS which match default linker search paths, they're | 7 | 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 | 8 | a waste of space. This patch filters libtools list of paths to encoode and |
@@ -11,12 +14,15 @@ the paths before comparision. | |||
11 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | 14 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
12 | 15 | ||
13 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00013.html] | 16 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00013.html] |
17 | --- | ||
18 | build-aux/ltmain.in | 34 ++++++++++++++++++++++++++++------ | ||
19 | 1 file changed, 28 insertions(+), 6 deletions(-) | ||
14 | 20 | ||
15 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | 21 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in |
16 | index 40cb94a..2fa055e 100644 | 22 | index c31faebd..44c7d81e 100644 |
17 | --- a/build-aux/ltmain.in | 23 | --- a/build-aux/ltmain.in |
18 | +++ b/build-aux/ltmain.in | 24 | +++ b/build-aux/ltmain.in |
19 | @@ -7700,8 +7700,16 @@ EOF | 25 | @@ -7782,8 +7782,16 @@ func_mode_link () |
20 | esac | 26 | esac |
21 | fi | 27 | fi |
22 | else | 28 | else |
@@ -35,7 +41,7 @@ index 40cb94a..2fa055e 100644 | |||
35 | fi | 41 | fi |
36 | elif test -n "$runpath_var"; then | 42 | elif test -n "$runpath_var"; then |
37 | case "$perm_rpath " in | 43 | case "$perm_rpath " in |
38 | @@ -8434,8 +8442,16 @@ EOF | 44 | @@ -8516,8 +8524,16 @@ func_mode_link () |
39 | esac | 45 | esac |
40 | fi | 46 | fi |
41 | else | 47 | else |
@@ -54,7 +60,7 @@ index 40cb94a..2fa055e 100644 | |||
54 | fi | 60 | fi |
55 | elif test -n "$runpath_var"; then | 61 | elif test -n "$runpath_var"; then |
56 | case "$perm_rpath " in | 62 | case "$perm_rpath " in |
57 | @@ -8489,8 +8505,14 @@ EOF | 63 | @@ -8571,8 +8587,14 @@ func_mode_link () |
58 | esac | 64 | esac |
59 | fi | 65 | fi |
60 | else | 66 | else |
@@ -72,5 +78,5 @@ index 40cb94a..2fa055e 100644 | |||
72 | elif test -n "$runpath_var"; then | 78 | elif test -n "$runpath_var"; then |
73 | case "$finalize_perm_rpath " in | 79 | case "$finalize_perm_rpath " in |
74 | -- | 80 | -- |
75 | 2.25.1 | 81 | 2.39.5 |
76 | 82 | ||
diff --git a/meta/recipes-devtools/libtool/libtool/dont-depend-on-help2man.patch b/meta/recipes-devtools/libtool/libtool/0003-libtool-remove-help2man-dependency.patch index 0013d16544..b174827eef 100644 --- a/meta/recipes-devtools/libtool/libtool/dont-depend-on-help2man.patch +++ b/meta/recipes-devtools/libtool/libtool/0003-libtool-remove-help2man-dependency.patch | |||
@@ -1,13 +1,21 @@ | |||
1 | From e3e8422333239c47ad613e2f41ee04244556d3be Mon Sep 17 00:00:00 2001 | ||
2 | From: Marko Lindqvist <cazfi74@gmail.com> | ||
3 | Date: Mon, 7 Jan 2013 01:49:28 +0200 | ||
4 | Subject: [PATCH 3/7] libtool: remove help2man dependency | ||
5 | |||
1 | Upstream-Status: Inappropriate | 6 | Upstream-Status: Inappropriate |
2 | 7 | ||
3 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | 8 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> |
4 | Updated by: Robert Yang <liezhi.yang@windriver.com> | 9 | Updated by: Robert Yang <liezhi.yang@windriver.com> |
10 | --- | ||
11 | Makefile.am | 17 ----------------- | ||
12 | 1 file changed, 17 deletions(-) | ||
5 | 13 | ||
6 | diff --git a/Makefile.am b/Makefile.am | 14 | diff --git a/Makefile.am b/Makefile.am |
7 | index 7bd7f72..c29860e 100644 | 15 | index 51c1fbdb..4962c3ad 100644 |
8 | --- a/Makefile.am | 16 | --- a/Makefile.am |
9 | +++ b/Makefile.am | 17 | +++ b/Makefile.am |
10 | @@ -411,21 +411,6 @@ $(notes_txt): $(notes_texi) | 18 | @@ -408,23 +408,6 @@ $(notes_txt): $(notes_texi) |
11 | $(AM_V_GEN)$(MAKEINFO) -P '$(srcdir)/doc' --no-headers \ | 19 | $(AM_V_GEN)$(MAKEINFO) -P '$(srcdir)/doc' --no-headers \ |
12 | $(MAKEINFOFLAGS) -o '$@' '$(notes_texi)' | 20 | $(MAKEINFOFLAGS) -o '$@' '$(notes_texi)' |
13 | 21 | ||
@@ -22,10 +30,15 @@ index 7bd7f72..c29860e 100644 | |||
22 | -# manual pages if the sources for the build-tree files we want to | 30 | -# manual pages if the sources for the build-tree files we want to |
23 | -# run have changed. | 31 | -# run have changed. |
24 | -$(libtool_1): $(ltmain_sh) | 32 | -$(libtool_1): $(ltmain_sh) |
25 | - $(AM_V_GEN)$(update_mans) --help-option=--help-all libtool | 33 | - $(AM_V_GEN)$(update_mans) -n 'Provide generalized library-building support services' --help-option=--help-all libtool |
26 | -$(libtoolize_1): $(libtoolize_in) | 34 | -$(libtoolize_1): $(libtoolize_in) |
27 | - $(AM_V_GEN)$(update_mans) libtoolize | 35 | - $(AM_V_GEN)$(update_mans) -n 'Prepare a package to use libtool' libtoolize |
36 | - | ||
37 | - | ||
28 | - | 38 | - |
29 | |||
30 | ## ------------- ## | 39 | ## ------------- ## |
31 | ## Installation. ## | 40 | ## Installation. ## |
41 | ## ------------- ## | ||
42 | -- | ||
43 | 2.39.5 | ||
44 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0003-libtool.m4-Cleanup-sysroot-trailing.patch b/meta/recipes-devtools/libtool/libtool/0003-libtool.m4-Cleanup-sysroot-trailing.patch deleted file mode 100644 index 6d922382ef..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0003-libtool.m4-Cleanup-sysroot-trailing.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | libtool.m4: Cleanup sysroot trailing "/" | ||
2 | |||
3 | If $CC has --sysroot=/, it is a valid configuration however libtool will | ||
4 | then set lt_sysroot to "/". | ||
5 | |||
6 | This means references like $lt_sysroot$libdir become //usr/lib instead | ||
7 | of the more normally expected /usr/lib. This may or may not break something | ||
8 | but certainly is confusing to the user and gives confusing output. Making | ||
9 | "/" simply unset lt_sysroot is much cleaner. | ||
10 | |||
11 | Whilst here, trim any trailing '/' from sysroot paths to drop the duplication | ||
12 | and result in cleaner/consistent output. | ||
13 | |||
14 | * m4/libtool.m4: Cleanup sysroot trailing '/' handling | ||
15 | |||
16 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=365805327c7b9bbdb0e622b954b6b0d8eaeb3f99] | ||
17 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
18 | |||
19 | --- | ||
20 | m4/libtool.m4 | 4 +++- | ||
21 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 | ||
24 | index fa1ae91..2f31d24 100644 | ||
25 | --- a/m4/libtool.m4 | ||
26 | +++ b/m4/libtool.m4 | ||
27 | @@ -1256,7 +1256,9 @@ lt_sysroot= | ||
28 | case $with_libtool_sysroot in #( | ||
29 | yes) | ||
30 | if test yes = "$GCC"; then | ||
31 | - lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
32 | + # Trim trailing / since we'll always append absolute paths and we want | ||
33 | + # to avoid //, if only for less confusing output for the user. | ||
34 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` | ||
35 | fi | ||
36 | ;; #( | ||
37 | /*) | ||
diff --git a/meta/recipes-devtools/libtool/libtool/0003-ltmain.in-Add-missing-sysroot-to-library-path.patch b/meta/recipes-devtools/libtool/libtool/0003-ltmain.in-Add-missing-sysroot-to-library-path.patch deleted file mode 100644 index 35f48ef906..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0003-ltmain.in-Add-missing-sysroot-to-library-path.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From: Khem Raj <raj.khem@gmail.com> | ||
2 | Subject: [PATCH 03/12] ltmain.in: Add missing sysroot to library path | ||
3 | |||
4 | When using a sysroot we should append it to libdir, which is helpful in | ||
5 | cross builds as the system is staged in the sysroot. For normal builds, | ||
6 | i.e. when lt_sysroot is not set, it will still behave the same and add | ||
7 | -L/usr/lib to the relink command. | ||
8 | |||
9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
10 | |||
11 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00017.html] | ||
12 | |||
13 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | ||
14 | index f884824..25a91de 100644 | ||
15 | --- a/build-aux/ltmain.in | ||
16 | +++ b/build-aux/ltmain.in | ||
17 | @@ -6503,7 +6503,7 @@ func_mode_link () | ||
18 | fi | ||
19 | else | ||
20 | # We cannot seem to hardcode it, guess we'll fake it. | ||
21 | - add_dir=-L$libdir | ||
22 | + add_dir="-L$lt_sysroot$libdir" | ||
23 | # Try looking first in the location we're being installed to. | ||
24 | if test -n "$inst_prefix_dir"; then | ||
25 | case $libdir in | ||
26 | -- | ||
27 | 2.25.1 | ||
28 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0006-libtool.m4-Handle-as-a-sysroot-correctly.patch b/meta/recipes-devtools/libtool/libtool/0004-libtool.m4-Change-libtool-to-handle-sysroots-by-defa.patch index c104e904cc..e8fc1bff9c 100644 --- a/meta/recipes-devtools/libtool/libtool/0006-libtool.m4-Handle-as-a-sysroot-correctly.patch +++ b/meta/recipes-devtools/libtool/libtool/0004-libtool.m4-Change-libtool-to-handle-sysroots-by-defa.patch | |||
@@ -1,23 +1,25 @@ | |||
1 | libtool.m4: Change libtool to handle sysroots by default | 1 | From 3bb376ff4832e2bd1aaee5530b4b926e3f7407c0 Mon Sep 17 00:00:00 2001 |
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Sat, 14 Sep 2013 09:01:38 +0000 | ||
4 | Subject: [PATCH 4/7] libtool.m4: Change libtool to handle sysroots by default | ||
2 | 5 | ||
3 | Rather than using no sysroot by default, always query gcc to obtain the sysroot. | 6 | Rather than using no sysroot by default, always query gcc to obtain the sysroot. |
4 | 7 | ||
5 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | 8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
6 | 9 | ||
7 | Upstream-Status: Inappropriate [Upstream are unlikely to accept this change of default] | 10 | Upstream-Status: Inappropriate [Upstream are unlikely to accept this change of default] |
8 | |||
9 | --- | 11 | --- |
10 | m4/libtool.m4 | 6 +++--- | 12 | m4/libtool.m4 | 6 +++--- |
11 | 1 file changed, 3 insertions(+), 3 deletions(-) | 13 | 1 file changed, 3 insertions(+), 3 deletions(-) |
12 | 14 | ||
13 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 | 15 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 |
14 | index 2f31d24..bd90775 100644 | 16 | index 8d323b3e..3650c87c 100644 |
15 | --- a/m4/libtool.m4 | 17 | --- a/m4/libtool.m4 |
16 | +++ b/m4/libtool.m4 | 18 | +++ b/m4/libtool.m4 |
17 | @@ -1254,18 +1254,18 @@ dnl lt_sysroot will always be passed unquoted. We quote it here | 19 | @@ -1288,18 +1288,18 @@ dnl lt_sysroot will always be passed unquoted. We quote it here |
18 | dnl in case the user passed a directory name. | 20 | dnl in case the user passed a directory name. |
19 | lt_sysroot= | 21 | lt_sysroot= |
20 | case $with_libtool_sysroot in #( | 22 | case $with_sysroot in #( |
21 | - yes) | 23 | - yes) |
22 | + no) | 24 | + no) |
23 | if test yes = "$GCC"; then | 25 | if test yes = "$GCC"; then |
@@ -29,10 +31,13 @@ index 2f31d24..bd90775 100644 | |||
29 | + yes|''|/) | 31 | + yes|''|/) |
30 | + ;; #( | 32 | + ;; #( |
31 | /*) | 33 | /*) |
32 | lt_sysroot=`echo "$with_libtool_sysroot" | $SED -e "$sed_quote_subst"` | 34 | lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` |
33 | ;; #( | 35 | ;; #( |
34 | - no|'') | 36 | - no|'') |
35 | - ;; #( | 37 | - ;; #( |
36 | *) | 38 | *) |
37 | AC_MSG_RESULT([$with_libtool_sysroot]) | 39 | AC_MSG_RESULT([$with_sysroot]) |
38 | AC_MSG_ERROR([The sysroot must be an absolute path.]) | 40 | AC_MSG_ERROR([The sysroot must be an absolute path.]) |
41 | -- | ||
42 | 2.39.5 | ||
43 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch b/meta/recipes-devtools/libtool/libtool/0005-libtool-Check-for-static-libs-for-internal-compiler-.patch index c151c3b481..5a4411c8e5 100644 --- a/meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch +++ b/meta/recipes-devtools/libtool/libtool/0005-libtool-Check-for-static-libs-for-internal-compiler-.patch | |||
@@ -1,5 +1,8 @@ | |||
1 | From 9f16cd0624641e489665415150792d9054af8a7a Mon Sep 17 00:00:00 2001 | ||
1 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
2 | Subject: [PATCH 08/12] libtool: Check for static libs for internal compiler libraries | 3 | Date: Tue, 26 Nov 2024 09:57:39 +0000 |
4 | Subject: [PATCH 5/7] libtool: Check for static libs for internal compiler | ||
5 | libraries | ||
3 | 6 | ||
4 | Libtool checks only for libraries linked as -l* when trying to | 7 | Libtool checks only for libraries linked as -l* when trying to |
5 | find internal compiler libraries. Clang, however uses the absolute | 8 | find internal compiler libraries. Clang, however uses the absolute |
@@ -14,20 +17,23 @@ https://crbug.com/749263 | |||
14 | https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866 | 17 | https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866 |
15 | 18 | ||
16 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00016.html] | 19 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00016.html] |
20 | --- | ||
21 | m4/libtool.m4 | 2 +- | ||
22 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | 23 | ||
18 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 | 24 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 |
19 | index bd90775..3794130 100644 | 25 | index 3650c87c..51493a10 100644 |
20 | --- a/m4/libtool.m4 | 26 | --- a/m4/libtool.m4 |
21 | +++ b/m4/libtool.m4 | 27 | +++ b/m4/libtool.m4 |
22 | @@ -7556,7 +7556,7 @@ if AC_TRY_EVAL(ac_compile); then | 28 | @@ -7708,7 +7708,7 @@ if AC_TRY_EVAL(ac_compile); then |
23 | for p in `eval "$output_verbose_link_cmd"`; do | 29 | for p in `eval "$output_verbose_link_cmd"`; do |
24 | case $prev$p in | 30 | case $prev$p in |
25 | 31 | ||
26 | - -L* | -R* | -l*) | 32 | - -L* | -R* | -l*) |
27 | + -L* | -R* | -l* | */libclang_rt.*.a) | 33 | + -L* | -R* | -l* | */libclang_rt.*.a) |
28 | # Some compilers place space between "-{L,R}" and the path. | 34 | # Some compilers place space between "-{L,R,l}" and the path. |
29 | # Remove the space. | 35 | # Remove the space. |
30 | if test x-L = "$p" || | 36 | if test x-L = x"$p" || |
31 | -- | 37 | -- |
32 | 2.25.1 | 38 | 2.39.5 |
33 | 39 | ||
diff --git a/meta/recipes-devtools/libtool/libtool/nohardcodepaths.patch b/meta/recipes-devtools/libtool/libtool/0006-libtool-Fix-tools-path-issues.patch index fcbce7286b..9788433ab8 100644 --- a/meta/recipes-devtools/libtool/libtool/nohardcodepaths.patch +++ b/meta/recipes-devtools/libtool/libtool/0006-libtool-Fix-tools-path-issues.patch | |||
@@ -1,3 +1,8 @@ | |||
1 | From c04839effba0538c982422275c5cda5947aa0e85 Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Tue, 3 Feb 2015 14:24:58 +0000 | ||
4 | Subject: [PATCH 6/7] libtool: Fix tools path issues | ||
5 | |||
1 | If for example you build on a machine with /bin/grep, then restore that sstate | 6 | If for example you build on a machine with /bin/grep, then restore that sstate |
2 | onto a machine with /usr/bin/grep, things will fail. Simply don't bother | 7 | onto a machine with /usr/bin/grep, things will fail. Simply don't bother |
3 | hardcoding paths. | 8 | hardcoding paths. |
@@ -5,11 +10,14 @@ hardcoding paths. | |||
5 | RP 2015/2/3 | 10 | RP 2015/2/3 |
6 | 11 | ||
7 | Upstream-Status: Inappropriate | 12 | Upstream-Status: Inappropriate |
13 | --- | ||
14 | libtoolize.in | 10 +++++----- | ||
15 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
8 | 16 | ||
9 | Index: libtool-2.4.5/libtoolize.in | 17 | diff --git a/libtoolize.in b/libtoolize.in |
10 | =================================================================== | 18 | index 6c15aa57..8beb670e 100644 |
11 | --- libtool-2.4.5.orig/libtoolize.in | 19 | --- a/libtoolize.in |
12 | +++ libtool-2.4.5/libtoolize.in | 20 | +++ b/libtoolize.in |
13 | @@ -40,11 +40,11 @@ | 21 | @@ -40,11 +40,11 @@ |
14 | 22 | ||
15 | : ${AUTOCONF="autoconf"} | 23 | : ${AUTOCONF="autoconf"} |
@@ -27,3 +35,6 @@ Index: libtool-2.4.5/libtoolize.in | |||
27 | 35 | ||
28 | 36 | ||
29 | ## -------------------------- ## | 37 | ## -------------------------- ## |
38 | -- | ||
39 | 2.39.5 | ||
40 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/multilib.patch b/meta/recipes-devtools/libtool/libtool/0007-libtool-Fix-problem-with-libtoolize-in-multilib.patch index 018f066652..bcb372bbc1 100644 --- a/meta/recipes-devtools/libtool/libtool/multilib.patch +++ b/meta/recipes-devtools/libtool/libtool/0007-libtool-Fix-problem-with-libtoolize-in-multilib.patch | |||
@@ -1,3 +1,8 @@ | |||
1 | From 083cf39140cd894ea306b67411d6088c13a9e286 Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Mon, 30 Jul 2018 17:00:01 +0000 | ||
4 | Subject: [PATCH 7/7] libtool: Fix problem with libtoolize in multilib | ||
5 | |||
1 | Without this patch /usr/bin/libtoolize is different for each multilib | 6 | Without this patch /usr/bin/libtoolize is different for each multilib |
2 | since their host-triplets are different, despite there being no difference in | 7 | since their host-triplets are different, despite there being no difference in |
3 | the functionality of libtoolize itself. | 8 | the functionality of libtoolize itself. |
@@ -7,17 +12,23 @@ libXX-libtool couldn't be installed into the same system. | |||
7 | 12 | ||
8 | Upstream-Status: Inappropriate | 13 | Upstream-Status: Inappropriate |
9 | RP 2018/7/30 | 14 | RP 2018/7/30 |
15 | --- | ||
16 | libtoolize.in | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | 18 | ||
11 | Index: libtool-2.4.6/libtoolize.in | 19 | diff --git a/libtoolize.in b/libtoolize.in |
12 | =================================================================== | 20 | index 8beb670e..c89a093c 100644 |
13 | --- libtool-2.4.6.orig/libtoolize.in | 21 | --- a/libtoolize.in |
14 | +++ libtool-2.4.6/libtoolize.in | 22 | +++ b/libtoolize.in |
15 | @@ -113,7 +113,7 @@ You must 'cd' to the top directory of yo | 23 | @@ -139,7 +139,7 @@ You must 'cd' to the top directory of your package before you run |
16 | When reporting a bug, please describe a test case to reproduce it and | 24 | When reporting a bug, please describe a test case to reproduce it and |
17 | include the following information: | 25 | include the following information: |
18 | 26 | ||
19 | - host-triplet: @host_triplet@ | 27 | - host-triplet: @host_triplet@ |
20 | + host-triplet <redacted> | 28 | + host-triplet <redacted> |
21 | version: $progname (GNU @PACKAGE@) @VERSION@ | 29 | version: $progname $scriptversion |
22 | automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` | 30 | automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` |
23 | autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` | 31 | autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` |
32 | -- | ||
33 | 2.39.5 | ||
34 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0007-libtool-Fix-support-for-NIOS2-processor.patch b/meta/recipes-devtools/libtool/libtool/0007-libtool-Fix-support-for-NIOS2-processor.patch deleted file mode 100644 index 676ce7fd1b..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0007-libtool-Fix-support-for-NIOS2-processor.patch +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | libtool: Fix support for NIOS2 processor | ||
2 | |||
3 | The name of the system contains the string "nios2". This string | ||
4 | is caught by the some of the greedy checks for OS/2 in libtool, | ||
5 | in particular the *os2* branches of switch statements match for | ||
6 | the nios2 string, which results in incorrect behavior of libtool. | ||
7 | |||
8 | Switch to use $host_os instead of $host and tweak the patterns to | ||
9 | match to avoid this problem for nios2. | ||
10 | |||
11 | * build-aux/ltmain.in: Fix NIOS2 support | ||
12 | --- | ||
13 | build-aux/ltmain.in | 12 ++++++------ | ||
14 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
15 | |||
16 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
17 | |||
18 | Submitted: https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00021.html | ||
19 | Reworked and submitted: https://lists.gnu.org/archive/html/libtool-patches/2024-01/msg00068.html | ||
20 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=49e6cb0d4dfdca2a59b909dc4532fe22dbc57ad5] | ||
21 | |||
22 | Index: libtool-2.4.7/build-aux/ltmain.in | ||
23 | =================================================================== | ||
24 | --- libtool-2.4.7.orig/build-aux/ltmain.in | ||
25 | +++ libtool-2.4.7/build-aux/ltmain.in | ||
26 | @@ -518,10 +518,10 @@ libtool_validate_options () | ||
27 | # preserve --debug | ||
28 | test : = "$debug_cmd" || func_append preserve_args " --debug" | ||
29 | |||
30 | - case $host in | ||
31 | + case $host_os in | ||
32 | # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 | ||
33 | # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 | ||
34 | - *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) | ||
35 | + cygwin* | mingw* | pw32* | cegcc* | solaris2* | os2*) | ||
36 | # don't eliminate duplications in $postdeps and $predeps | ||
37 | opt_duplicate_compiler_generated_deps=: | ||
38 | ;; | ||
39 | @@ -6273,8 +6273,8 @@ func_mode_link () | ||
40 | fi | ||
41 | if test -n "$library_names" && | ||
42 | { test no = "$use_static_libs" || test -z "$old_library"; }; then | ||
43 | - case $host in | ||
44 | - *cygwin* | *mingw* | *cegcc* | *os2*) | ||
45 | + case $host_os in | ||
46 | + cygwin* | mingw* | cegcc* | os2*) | ||
47 | # No point in relinking DLLs because paths are not encoded | ||
48 | func_append notinst_deplibs " $lib" | ||
49 | need_relink=no | ||
50 | @@ -6343,8 +6343,8 @@ func_mode_link () | ||
51 | soname=$dlname | ||
52 | elif test -n "$soname_spec"; then | ||
53 | # bleh windows | ||
54 | - case $host in | ||
55 | - *cygwin* | mingw* | *cegcc* | *os2*) | ||
56 | + case $host_os in | ||
57 | + cygwin* | mingw* | cegcc* | os2*) | ||
58 | func_arith $current - $age | ||
59 | major=$func_arith_result | ||
60 | versuffix=-$major | ||
diff --git a/meta/recipes-devtools/libtool/libtool/fixinstall.patch b/meta/recipes-devtools/libtool/libtool/0008-libtool-Avoid-relinking-when-cross-compiling-its-poi.patch index 48330d82fb..267c3ab140 100644 --- a/meta/recipes-devtools/libtool/libtool/fixinstall.patch +++ b/meta/recipes-devtools/libtool/libtool/0008-libtool-Avoid-relinking-when-cross-compiling-its-poi.patch | |||
@@ -1,5 +1,10 @@ | |||
1 | From 78eac8c99451681f4c403b3ea727ee61651a3c1a Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Wed, 16 Nov 2011 16:58:34 +0000 | ||
4 | Subject: [PATCH] libtool: Avoid relinking when cross compiling, its pointless | ||
5 | |||
1 | There is no point in having "executable" binaries in the .libs | 6 | There is no point in having "executable" binaries in the .libs |
2 | directory linked with different rpaths to the target which | 7 | directory linked with different rpaths to the target which |
3 | could concivably be run on the build system when cross compiling. | 8 | could concivably be run on the build system when cross compiling. |
4 | 9 | ||
5 | This patch removes the extra rpaths ($compile_rpath) so that the | 10 | This patch removes the extra rpaths ($compile_rpath) so that the |
@@ -17,11 +22,15 @@ Upstream-Status: Inappropriate [upstream are unlikely to take a patch like this] | |||
17 | RP 2011/11/16 | 22 | RP 2011/11/16 |
18 | 23 | ||
19 | Updated by: Robert Yang <liezhi.yang@windriver.com> | 24 | Updated by: Robert Yang <liezhi.yang@windriver.com> |
25 | --- | ||
26 | build-aux/ltmain.in | 56 ++++++++++++++++++++++----------------------- | ||
27 | 1 file changed, 28 insertions(+), 28 deletions(-) | ||
20 | 28 | ||
21 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | 29 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in |
30 | index fa157775..816ea5a0 100644 | ||
22 | --- a/build-aux/ltmain.in | 31 | --- a/build-aux/ltmain.in |
23 | +++ b/build-aux/ltmain.in | 32 | +++ b/build-aux/ltmain.in |
24 | @@ -2355,7 +2355,7 @@ func_mode_install () | 33 | @@ -2513,7 +2513,7 @@ func_mode_install () |
25 | dir=$func_dirname_result | 34 | dir=$func_dirname_result |
26 | func_append dir "$objdir" | 35 | func_append dir "$objdir" |
27 | 36 | ||
@@ -29,8 +38,8 @@ diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | |||
29 | + if test "$fast_install" = no && test -n "$relink_command"; then | 38 | + if test "$fast_install" = no && test -n "$relink_command"; then |
30 | # Strip any trailing slash from the destination. | 39 | # Strip any trailing slash from the destination. |
31 | func_stripname '' '/' "$libdir" | 40 | func_stripname '' '/' "$libdir" |
32 | destlibdir=$func_stripname_result | 41 | destlibdir=$func_stripname_result |
33 | @@ -2394,7 +2394,7 @@ func_mode_install () | 42 | @@ -2552,7 +2552,7 @@ func_mode_install () |
34 | shift | 43 | shift |
35 | 44 | ||
36 | srcname=$realname | 45 | srcname=$realname |
@@ -39,57 +48,69 @@ diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | |||
39 | 48 | ||
40 | # Install the shared library and build the symlinks. | 49 | # Install the shared library and build the symlinks. |
41 | func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ | 50 | func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ |
42 | @@ -6162,15 +6162,15 @@ func_mode_link () | 51 | @@ -6411,18 +6411,18 @@ func_mode_link () |
43 | # Hardcode the library path. | 52 | # Hardcode the library path. |
44 | # Skip directories that are in the system default run-time | 53 | # Skip directories that are in the system default run-time |
45 | # search path. | 54 | # search path. |
46 | - case " $sys_lib_dlsearch_path " in | 55 | - case " $sys_lib_dlsearch_path " in |
47 | - *" $absdir "*) ;; | 56 | - *" $absdir "*) ;; |
48 | - *) | 57 | - *) |
49 | - case "$compile_rpath " in | 58 | - case "$compile_rpath$compile_rpath_tail " in |
50 | - *" $absdir "*) ;; | 59 | - *" $absdir "*) ;; |
51 | - *) func_append compile_rpath " $absdir" ;; | 60 | - *) case $absdir in |
61 | - "$progdir/"*) func_append compile_rpath " $absdir" ;; | ||
62 | - *) func_append compile_rpath_tail " $absdir" ;; | ||
63 | - esac | ||
52 | - esac | 64 | - esac |
53 | - ;; | 65 | - ;; |
54 | - esac | 66 | - esac |
55 | + #case " $sys_lib_dlsearch_path " in | 67 | + #case " $sys_lib_dlsearch_path " in |
56 | + #*" $absdir "*) ;; | 68 | + #*" $absdir "*) ;; |
57 | + #*) | 69 | + #*) |
58 | + # case "$compile_rpath " in | 70 | + # case "$compile_rpath$compile_rpath_tail " in |
59 | + # *" $absdir "*) ;; | 71 | + # *" $absdir "*) ;; |
60 | + # *) func_append compile_rpath " $absdir" ;; | 72 | + # *) case $absdir in |
73 | + # "$progdir/"*) func_append compile_rpath " $absdir" ;; | ||
74 | + # *) func_append compile_rpath_tail " $absdir" ;; | ||
75 | + # esac | ||
61 | + # esac | 76 | + # esac |
62 | + # ;; | 77 | + # ;; |
63 | + #esac | 78 | + #esac |
64 | case " $sys_lib_dlsearch_path " in | 79 | case " $sys_lib_dlsearch_path " in |
65 | *" $libdir "*) ;; | 80 | *" $libdir "*) ;; |
66 | *) | 81 | *) |
67 | @@ -6236,15 +6236,15 @@ func_mode_link () | 82 | @@ -6488,18 +6488,18 @@ func_mode_link () |
68 | # Hardcode the library path. | 83 | # Hardcode the library path. |
69 | # Skip directories that are in the system default run-time | 84 | # Skip directories that are in the system default run-time |
70 | # search path. | 85 | # search path. |
71 | - case " $sys_lib_dlsearch_path " in | 86 | - case " $sys_lib_dlsearch_path " in |
72 | - *" $absdir "*) ;; | 87 | - *" $absdir "*) ;; |
73 | - *) | 88 | - *) |
74 | - case "$compile_rpath " in | 89 | - case "$compile_rpath$compile_rpath_tail " in |
75 | - *" $absdir "*) ;; | 90 | - *" $absdir "*) ;; |
76 | - *) func_append compile_rpath " $absdir" ;; | 91 | - *) case $absdir in |
92 | - "$progdir/"*) func_append compile_rpath " $absdir" ;; | ||
93 | - *) func_append compile_rpath_tail " $absdir" ;; | ||
94 | - esac | ||
77 | - esac | 95 | - esac |
78 | - ;; | 96 | - ;; |
79 | - esac | 97 | - esac |
80 | + #case " $sys_lib_dlsearch_path " in | 98 | + #case " $sys_lib_dlsearch_path " in |
81 | + #*" $absdir "*) ;; | 99 | + #*" $absdir "*) ;; |
82 | + #*) | 100 | + #*) |
83 | + # case "$compile_rpath " in | 101 | + # case "$compile_rpath$compile_rpath_tail " in |
84 | + # *" $absdir "*) ;; | 102 | + # *" $absdir "*) ;; |
85 | + # *) func_append compile_rpath " $absdir" ;; | 103 | + # *) case $absdir in |
104 | + # "$progdir/"*) func_append compile_rpath " $absdir" ;; | ||
105 | + # *) func_append compile_rpath_tail " $absdir" ;; | ||
106 | + # esac | ||
86 | + # esac | 107 | + # esac |
87 | + # ;; | 108 | + # ;; |
88 | + #esac | 109 | + #esac |
89 | case " $sys_lib_dlsearch_path " in | 110 | case " $sys_lib_dlsearch_path " in |
90 | *" $libdir "*) ;; | 111 | *" $libdir "*) ;; |
91 | *) | 112 | *) |
92 | @@ -6590,8 +6590,8 @@ func_mode_link () | 113 | @@ -6843,8 +6843,8 @@ func_mode_link () |
93 | eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` | 114 | eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` |
94 | test -z "$libdir" && \ | 115 | test -z "$libdir" && \ |
95 | func_fatal_error "'$deplib' is not a valid libtool archive" | 116 | func_fatal_error "'$deplib' is not a valid libtool archive" |
@@ -100,3 +121,6 @@ diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | |||
100 | 121 | ||
101 | path=-L$absdir | 122 | path=-L$absdir |
102 | fi | 123 | fi |
124 | -- | ||
125 | 2.39.5 | ||
126 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0009-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 deleted file mode 100644 index f51deecbef..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0009-Makefile.am-make-sure-autoheader-run-before-autoconf.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From: Mingli Yu <mingli.yu@windriver.com> | ||
2 | Subject: [PATCH 09/12] Makefile.am: make sure autoheader run before autoconf | ||
3 | |||
4 | autoheader will update ../libtool-2.4.6/libltdl/config-h.in which | ||
5 | autoconf needs, so there comes a race sometimes as below: | ||
6 | | configure.ac:45: error: required file 'config-h.in' not found | ||
7 | | touch '../libtool-2.4.6/libltdl/config-h.in' | ||
8 | |||
9 | So make sure autoheader run before autoconf to avoid this race. | ||
10 | |||
11 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
12 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
13 | |||
14 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=e7dc729dd27b367905cd0ce52b5466d91537857a] | ||
15 | |||
16 | diff --git a/Makefile.am b/Makefile.am | ||
17 | index c29860e..9c34bfd 100644 | ||
18 | --- a/Makefile.am | ||
19 | +++ b/Makefile.am | ||
20 | @@ -370,7 +370,7 @@ lt_configure_deps = $(lt_aclocal_m4) $(lt_aclocal_m4_deps) | ||
21 | $(lt_aclocal_m4): $(lt_aclocal_m4_deps) | ||
22 | $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(ACLOCAL) -I ../m4 | ||
23 | |||
24 | -$(lt_configure): $(lt_configure_deps) | ||
25 | +$(lt_configure): $(lt_configure_deps) $(lt_config_h_in) | ||
26 | $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(AUTOCONF) | ||
27 | |||
28 | $(lt_config_h_in): $(lt_configure_deps) | ||
29 | -- | ||
30 | 2.25.1 | ||
31 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0010-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 deleted file mode 100644 index e451de59e3..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0010-Makefile.am-make-sure-autoheader-run-before-automake.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | From: Mingli Yu <mingli.yu@windriver.com> | ||
2 | Subject: [PATCH 10/12] Makefile.am: make sure autoheader run before automake | ||
3 | |||
4 | When use automake to generate Makefile.in from Makefile.am, there | ||
5 | comes below race: | ||
6 | | configure.ac:45: error: required file 'config-h.in' not found | ||
7 | |||
8 | It is because the file config-h.in in updating process by autoheader, | ||
9 | so make automake run after autoheader to avoid the above race. | ||
10 | |||
11 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
12 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
13 | |||
14 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=e01c0bfe5e041418d84460901a1a5b11b89d596f] | ||
15 | |||
16 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
17 | |||
18 | diff --git a/Makefile.am b/Makefile.am | ||
19 | index 9c34bfd..231ef3f 100644 | ||
20 | --- a/Makefile.am | ||
21 | +++ b/Makefile.am | ||
22 | @@ -333,7 +333,7 @@ EXTRA_DIST += $(lt_aclocal_m4) \ | ||
23 | $(lt_obsolete_m4) \ | ||
24 | $(stamp_mk) | ||
25 | |||
26 | -$(lt_Makefile_in): $(lt_Makefile_am) $(lt_aclocal_m4) | ||
27 | +$(lt_Makefile_in): $(lt_Makefile_am) $(lt_aclocal_m4) $(lt_config_h_in) | ||
28 | $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(AUTOMAKE) Makefile | ||
29 | |||
30 | # Don't let unused scripts leak into the libltdl Makefile | ||
31 | -- | ||
32 | 2.25.1 | ||
33 | |||
diff --git a/meta/recipes-devtools/libtool/libtool/0011-ltmain.in-Handle-prefix-map-compiler-options-correct.patch b/meta/recipes-devtools/libtool/libtool/0011-ltmain.in-Handle-prefix-map-compiler-options-correct.patch deleted file mode 100644 index 4c6b6f05b4..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0011-ltmain.in-Handle-prefix-map-compiler-options-correct.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | ltmain.in: Handle prefix-map compiler options correctly | ||
2 | |||
3 | If lto is enabled, we need the prefix-map variables to be passed to the linker | ||
4 | to correctly link the objects using correctly mapped paths. | ||
5 | |||
6 | Add these to the list of options libtool passes through. | ||
7 | |||
8 | * build-aux/ltmain.in: Handle prefix-map compiler options | ||
9 | |||
10 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
11 | |||
12 | https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00019.html | ||
13 | https://lists.gnu.org/archive/html/libtool-patches/2024-01/msg00066.html | ||
14 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=cdf4bf702f11d17e06569936e8a433a77f791228] | ||
15 | |||
16 | --- | ||
17 | build-aux/ltmain.in | 3 ++- | ||
18 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in | ||
21 | index 0a50f5b..037f009 100644 | ||
22 | --- a/build-aux/ltmain.in | ||
23 | +++ b/build-aux/ltmain.in | ||
24 | @@ -5413,11 +5413,12 @@ func_mode_link () | ||
25 | # -stdlib=* select c++ std lib with clang | ||
26 | # -fsanitize=* Clang/GCC memory and address sanitizer | ||
27 | # -fuse-ld=* Linker select flags for GCC | ||
28 | + # -f{file|debug|macro|profile}-prefix-map* needed for lto linking | ||
29 | # -Wa,* Pass flags directly to the assembler | ||
30 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ | ||
31 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ | ||
32 | -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ | ||
33 | - -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*) | ||
34 | + -specs=*|-fsanitize=*|-fuse-ld=*|-ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*|-Wa,*) | ||
35 | func_quote_arg pretty "$arg" | ||
36 | arg=$func_quote_arg_result | ||
37 | func_append compile_command " $arg" | ||
diff --git a/meta/recipes-devtools/libtool/libtool/0012-libtool.m4-For-reproducibility-stop-encoding-hostnam.patch b/meta/recipes-devtools/libtool/libtool/0012-libtool.m4-For-reproducibility-stop-encoding-hostnam.patch deleted file mode 100644 index 8469b8727e..0000000000 --- a/meta/recipes-devtools/libtool/libtool/0012-libtool.m4-For-reproducibility-stop-encoding-hostnam.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
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> | ||
9 | |||
10 | https://sources.debian.org/data/main/libt/libtool/2.4.6-10/debian/patches/ | ||
11 | no_hostname.patch | ||
12 | |||
13 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=bd826173c4c9c3fa8d77d92785754897cb4bfd89] | ||
14 | |||
15 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 | ||
16 | index 3794130..84a550c 100644 | ||
17 | --- a/m4/libtool.m4 | ||
18 | +++ b/m4/libtool.m4 | ||
19 | @@ -730,7 +730,6 @@ _LT_CONFIG_SAVE_COMMANDS([ | ||
20 | cat <<_LT_EOF >> "$cfgfile" | ||
21 | #! $SHELL | ||
22 | # Generated automatically by $as_me ($PACKAGE) $VERSION | ||
23 | -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
24 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
25 | |||
26 | # Provide generalized library-building support services. | ||
27 | -- | ||
28 | 2.25.1 | ||
29 | |||
diff --git a/meta/recipes-devtools/libtool/libtool_2.5.4.bb b/meta/recipes-devtools/libtool/libtool_2.5.4.bb new file mode 100644 index 0000000000..fa16d09d21 --- /dev/null +++ b/meta/recipes-devtools/libtool/libtool_2.5.4.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | require libtool-${PV}.inc | ||
2 | require remove-buildpaths.inc | ||
3 | |||
4 | RDEPENDS:${PN} += "bash" | ||
5 | |||
6 | # | ||
7 | # We want the results of libtool-cross preserved - don't stage anything ourselves. | ||
8 | # | ||
9 | SYSROOT_DIRS_IGNORE += " \ | ||
10 | ${bindir} \ | ||
11 | ${datadir}/aclocal \ | ||
12 | ${datadir}/libtool/build-aux \ | ||
13 | " | ||
14 | |||
15 | inherit multilib_script | ||
16 | |||
17 | MULTILIB_SCRIPTS = "${PN}:${bindir}/libtool" | ||
diff --git a/meta/recipes-devtools/libtool/nativesdk-libtool_2.4.7.bb b/meta/recipes-devtools/libtool/nativesdk-libtool_2.5.4.bb index 86c55ded7b..de556a5d81 100644 --- a/meta/recipes-devtools/libtool/nativesdk-libtool_2.4.7.bb +++ b/meta/recipes-devtools/libtool/nativesdk-libtool_2.5.4.bb | |||
@@ -1,21 +1,15 @@ | |||
1 | require libtool-${PV}.inc | 1 | require libtool-${PV}.inc |
2 | require remove-buildpaths.inc | ||
2 | 3 | ||
3 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/libtool:" | 4 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/libtool:" |
4 | 5 | ||
5 | SRC_URI += "file://fixinstall.patch" | 6 | SRC_URI += "file://0008-libtool-Avoid-relinking-when-cross-compiling-its-poi.patch" |
6 | 7 | ||
7 | inherit nativesdk | 8 | inherit nativesdk |
8 | 9 | ||
9 | S = "${WORKDIR}/libtool-${PV}" | 10 | S = "${UNPACKDIR}/libtool-${PV}" |
10 | FILES:${PN} += "${datadir}/libtool/*" | 11 | FILES:${PN} += "${datadir}/libtool/*" |
11 | 12 | ||
12 | do_configure:prepend () { | ||
13 | # Remove any existing libtool m4 since old stale versions would break | ||
14 | # any upgrade | ||
15 | rm -f ${STAGING_DATADIR}/aclocal/libtool.m4 | ||
16 | rm -f ${STAGING_DATADIR}/aclocal/lt*.m4 | ||
17 | } | ||
18 | |||
19 | do_install () { | 13 | do_install () { |
20 | autotools_do_install | 14 | autotools_do_install |
21 | install -d ${D}${bindir}/ | 15 | install -d ${D}${bindir}/ |
diff --git a/meta/recipes-devtools/libtool/libtool_2.4.7.bb b/meta/recipes-devtools/libtool/remove-buildpaths.inc index 44a4950574..1ca95aeace 100644 --- a/meta/recipes-devtools/libtool/libtool_2.4.7.bb +++ b/meta/recipes-devtools/libtool/remove-buildpaths.inc | |||
@@ -1,20 +1,3 @@ | |||
1 | require libtool-${PV}.inc | ||
2 | |||
3 | SRC_URI += "file://multilib.patch" | ||
4 | |||
5 | RDEPENDS:${PN} += "bash" | ||
6 | |||
7 | # | ||
8 | # We want the results of libtool-cross preserved - don't stage anything ourselves. | ||
9 | # | ||
10 | SYSROOT_DIRS_IGNORE += " \ | ||
11 | ${bindir} \ | ||
12 | ${datadir}/aclocal \ | ||
13 | ${datadir}/libtool/build-aux \ | ||
14 | " | ||
15 | |||
16 | ACLOCALEXTRAPATH:class-target = "" | ||
17 | |||
18 | do_install:append () { | 1 | do_install:append () { |
19 | sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \ | 2 | sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \ |
20 | -e "s@${DEBUG_PREFIX_MAP}@@g" \ | 3 | -e "s@${DEBUG_PREFIX_MAP}@@g" \ |
@@ -28,7 +11,3 @@ do_install:append () { | |||
28 | -e "s@${HOSTTOOLS_DIR}/@@g" \ | 11 | -e "s@${HOSTTOOLS_DIR}/@@g" \ |
29 | -i ${D}${bindir}/libtool | 12 | -i ${D}${bindir}/libtool |
30 | } | 13 | } |
31 | |||
32 | inherit multilib_script | ||
33 | |||
34 | MULTILIB_SCRIPTS = "${PN}:${bindir}/libtool" | ||