Skip to contentSkip to conversation

libtool: upgrade 2.5.4 -> 2.6.2

PATCH In review Jaipaul Cheernam 3 participants 3 messages Aug 4 – Aug 5

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtool: upgrade 2.5.4 -> 2.6.2

- Upgrade to first stable release of 2.6 series:
https://savannah.gnu.org/news/?id=10914

- Notable changes since 2.5.4:
- New libtool-next-version tool for guiding library version updates
- Objective-C and Objective-C++ tagging support (OBJC, OBJCXX)
- Allow statically linking clang_rt archives by absolute path
- Fix overlinking of dependency libraries on ELF systems
- Pass --target architecture flag and resource-dir for Clang
- SlimCC compiler support
- MSVC and MSYS2 improvements

- Drop 0005-libtool-Check-for-static-libs-for-internal-compiler-.patch has been merged upstream.

- Refresh 0003-libtool-remove-help2man-dependency.patch for new line offsets and to also remove the libtoolnextv_1 man page target added in 2.6.2.

---
 .../{libtool-2.5.4.inc => libtool-2.6.2.inc}  |  3 +-
 ...-cross_2.5.4.bb => libtool-cross_2.6.2.bb} |  0
 ...ative_2.5.4.bb => libtool-native_2.6.2.bb} |  0
 ...3-libtool-remove-help2man-dependency.patch | 22 ++++++-----
 ...r-static-libs-for-internal-compiler-.patch | 39 -------------------
 .../{libtool_2.5.4.bb => libtool_2.6.2.bb}    |  0
 ...ol_2.5.4.bb => nativesdk-libtool_2.6.2.bb} |  0
 7 files changed, 13 insertions(+), 51 deletions(-)
 rename meta/recipes-devtools/libtool/{libtool-2.5.4.inc => libtool-2.6.2.inc} (88%)
 rename meta/recipes-devtools/libtool/{libtool-cross_2.5.4.bb => libtool-cross_2.6.2.bb} (100%)
 rename meta/recipes-devtools/libtool/{libtool-native_2.5.4.bb => libtool-native_2.6.2.bb} (100%)
 delete mode 100644 meta/recipes-devtools/libtool/libtool/0005-libtool-Check-for-static-libs-for-internal-compiler-.patch
 rename meta/recipes-devtools/libtool/{libtool_2.5.4.bb => libtool_2.6.2.bb} (100%)
 rename meta/recipes-devtools/libtool/{nativesdk-libtool_2.5.4.bb => nativesdk-libtool_2.6.2.bb} (100%)
meta/recipes-devtools/libtool/libtool-2.6.2.inc renamed from meta/recipes-devtools/libtool/libtool-2.5.4.inc +1 -2
similarity index 88%
rename from meta/recipes-devtools/libtool/libtool-2.5.4.inc
rename to meta/recipes-devtools/libtool/libtool-2.6.2.inc
index c646ed33d6..b418490919 100644
@@ -13,12 +13,11 @@ SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \
            file://0002-ltmain.in-Don-t-encode-RATHS-which-match-default-lin.patch \
            file://0003-libtool-remove-help2man-dependency.patch \
            file://0004-libtool.m4-Change-libtool-to-handle-sysroots-by-defa.patch \
-           file://0005-libtool-Check-for-static-libs-for-internal-compiler-.patch \
            file://0006-libtool-Fix-tools-path-issues.patch \
            file://0007-libtool-Fix-problem-with-libtoolize-in-multilib.patch \
           "
 
-SRC_URI[sha256sum] = "da8ebb2ce4dcf46b90098daf962cffa68f4b4f62ea60f798d0ef12929ede6adf"
+SRC_URI[sha256sum] = "24adb3aa9ae035c70faba344af57d73215eb89281045af6c7ccd307751f8b0bf"
 
 inherit autotools texinfo
 EXTRA_AUTORECONF = "--exclude=libtoolize"
meta/recipes-devtools/libtool/libtool-cross_2.6.2.bb renamed from meta/recipes-devtools/libtool/libtool-cross_2.5.4.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/libtool/libtool-cross_2.5.4.bb
rename to meta/recipes-devtools/libtool/libtool-cross_2.6.2.bb
meta/recipes-devtools/libtool/libtool-native_2.6.2.bb renamed from meta/recipes-devtools/libtool/libtool-native_2.5.4.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/libtool/libtool-native_2.5.4.bb
rename to meta/recipes-devtools/libtool/libtool-native_2.6.2.bb
meta/recipes-devtools/libtool/libtool/0003-libtool-remove-help2man-dependency.patch +12 -10
index b174827eef..3e592e2eba 100644
@@ -1,25 +1,28 @@
-From e3e8422333239c47ad613e2f41ee04244556d3be Mon Sep 17 00:00:00 2001
+From 2e3de3787e5693e43af09f3b0ab325091f69450f Mon Sep 17 00:00:00 2001
 From: Marko Lindqvist <[email protected]>
-Date: Mon, 7 Jan 2013 01:49:28 +0200
+Date: Tue, 4 Aug 2026 11:56:37 +0000
 Subject: [PATCH 3/7] libtool: remove help2man dependency
 
+Also remove the libtoolnextv_1 man page target added in 2.6.2.
+
 Upstream-Status: Inappropriate
 
 Signed-off-by: Marko Lindqvist <[email protected]>
 Updated by: Robert Yang <[email protected]>
+Updated by: Jaipaul Cheernam <[email protected]>
 ---
- Makefile.am | 17 -----------------
- 1 file changed, 17 deletions(-)
+ Makefile.am | 19 -------------------
+ 1 file changed, 19 deletions(-)
 
 diff --git a/Makefile.am b/Makefile.am
-index 51c1fbdb..4962c3ad 100644
+index 52e0047..1e2f66b 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -408,23 +408,6 @@ $(notes_txt): $(notes_texi)
+@@ -419,25 +419,6 @@ $(notes_txt): $(notes_texi)
  	$(AM_V_GEN)$(MAKEINFO) -P '$(srcdir)/doc' --no-headers \
  	    $(MAKEINFOFLAGS) -o '$@' '$(notes_texi)'
  
--dist_man1_MANS		= $(libtool_1) $(libtoolize_1)
+-dist_man1_MANS		= $(libtool_1) $(libtoolize_1) $(libtoolnextv_1)
 -MAINTAINERCLEANFILES	+= $(dist_man1_MANS)
 -update_mans = \
 -  PATH=".$(PATH_SEPARATOR)$$PATH"; export PATH; \
@@ -33,12 +36,11 @@ index 51c1fbdb..4962c3ad 100644
 -	$(AM_V_GEN)$(update_mans) -n 'Provide generalized library-building support services' --help-option=--help-all libtool
 -$(libtoolize_1): $(libtoolize_in)
 -	$(AM_V_GEN)$(update_mans) -n 'Prepare a package to use libtool' libtoolize
+-$(libtoolnextv_1): $(libtoolnextv_in)
+-	$(AM_V_GEN)$(update_mans) -n 'Determines next version to use for a libtool library' libtool-next-version
 -
 -
 -
  ## ------------- ##
  ## Installation. ##
  ## ------------- ##
--- 
-2.39.5
-
meta/recipes-devtools/libtool/libtool/0005-libtool-Check-for-static-libs-for-internal-compiler-.patch deleted +0 -39
deleted file mode 100644
index 5a4411c8e5..0000000000
@@ -1,39 +0,0 @@
-From 9f16cd0624641e489665415150792d9054af8a7a Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Tue, 26 Nov 2024 09:57:39 +0000
-Subject: [PATCH 5/7] libtool: Check for static libs for internal compiler
- libraries
-
-Libtool checks only for libraries linked as -l* when trying to
-find internal compiler libraries. Clang, however uses the absolute
-path to link its internal libraries e.g. compiler_rt. This patch
-handles clang's statically linked libraries when finding internal
-compiler libraries.
-
-Signed-off-by: Khem Raj <[email protected]>
-Signed-off-by: Richard Purdie <[email protected]>
-
-https://crbug.com/749263
-https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866
-
-Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00016.html]
----
- m4/libtool.m4 | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/m4/libtool.m4 b/m4/libtool.m4
-index 3650c87c..51493a10 100644
---- a/m4/libtool.m4
-+++ b/m4/libtool.m4
-@@ -7708,7 +7708,7 @@ if AC_TRY_EVAL(ac_compile); then
-   for p in `eval "$output_verbose_link_cmd"`; do
-     case $prev$p in
- 
--    -L* | -R* | -l*)
-+    -L* | -R* | -l* | */libclang_rt.*.a)
-        # Some compilers place space between "-{L,R,l}" and the path.
-        # Remove the space.
-        if test x-L = x"$p" ||
--- 
-2.39.5
-
meta/recipes-devtools/libtool/libtool_2.6.2.bb renamed from meta/recipes-devtools/libtool/libtool_2.5.4.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/libtool/libtool_2.5.4.bb
rename to meta/recipes-devtools/libtool/libtool_2.6.2.bb
meta/recipes-devtools/libtool/nativesdk-libtool_2.6.2.bb renamed from meta/recipes-devtools/libtool/nativesdk-libtool_2.5.4.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/libtool/nativesdk-libtool_2.5.4.bb
rename to meta/recipes-devtools/libtool/nativesdk-libtool_2.6.2.bb
#1 lore raw
Quoted 15 lines · Jaipaul Cheernam

- Upgrade to first stable release of 2.6 series:
https://savannah.gnu.org/news/?id=10914

- Notable changes since 2.5.4:
- New libtool-next-version tool for guiding library version updates
- Objective-C and Objective-C++ tagging support (OBJC, OBJCXX)
- Allow statically linking clang_rt archives by absolute path
- Fix overlinking of dependency libraries on ELF systems
- Pass --target architecture flag and resource-dir for Clang
- SlimCC compiler support
- MSVC and MSYS2 improvements

- Drop 0005-libtool-Check-for-static-libs-for-internal-compiler-.patch has been merged upstream.

Quoted 6 lines

- Refresh 0003-libtool-remove-help2man-dependency.patch for new line offsets and to also remove the libtoolnextv_1 man page target added in 2.6.2.

---

Hi Jaipaul,

Thanks for the upgrade.

It looks like this breaks build for ricv platforms (qemuriscv64 MACHINE):

ERROR: libunwind-1.8.3-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/qemuriscv64/build/build/tmp/work/riscv64imafdc-poky-linux/libunwind/1.8.3/temp/run.do_compile.1756282' failed with exit code 1
...

| riscv64-poky-linux-gcc: error: unrecognized command-line option '-WCClinker'; did you mean '-Xlinker'?
| make[2]: *** [Makefile:4151: libunwind.la] Error 1
| make[2]: Leaving directory '/srv/pokybuild/yocto-worker/qemuriscv64/build/build/tmp/work/riscv64imafdc-poky-linux/libunwind/1.8.3/build/src'
| make[1]: *** [Makefile:2932: all] Error 2
| make[1]: Leaving directory '/srv/pokybuild/yocto-worker/qemuriscv64/build/build/tmp/work/riscv64imafdc-poky-linux/libunwind/1.8.3/build/src'
| make: *** [Makefile:625: all-recursive] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.

https://autobuilder.yoctoproject.org/valkyrie/#/builders/45/builds/2039

Can you have a look at the issue?

Thanks,
Mathieu

Signature · 3 lines
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
Quoted 54 lines · Mathieu Dubois-Briand via lists.openembedded.org
Quoted 17 lines · Jaipaul Cheernam

- Upgrade to first stable release of 2.6 series:
  https://savannah.gnu.org/news/?id=10914

- Notable changes since 2.5.4:
  - New libtool-next-version tool for guiding library version updates
  - Objective-C and Objective-C++ tagging support (OBJC, OBJCXX)
  - Allow statically linking clang_rt archives by absolute path
  - Fix overlinking of dependency libraries on ELF systems
  - Pass --target architecture flag and resource-dir for Clang
  - SlimCC compiler support
  - MSVC and MSYS2 improvements

- Drop 0005-libtool-Check-for-static-libs-for-internal-compiler- .patch
  has been merged upstream.

Quoted 8 lines

- Refresh 0003-libtool-remove-help2man-dependency.patch for new line
  offsets and to also remove the libtoolnextv_1 man page target added
  in 2.6.2.

---

Hi Jaipaul,

Thanks for the upgrade.

It looks like this breaks build for ricv platforms (qemuriscv64 MACHINE):

ERROR: libunwind-1.8.3-r0 do_compile: Execution of '/srv/pokybuild/yocto- worker/qemuriscv64/build/build/tmp/work/riscv64imafdc-poky- linux/libunwind/1.8.3/temp/run.do_compile.1756282' failed with exit code 1
...

Quoted 5 lines

riscv64-poky-linux-gcc: error: unrecognized command-line option '- WCClinker'; did you mean '-Xlinker'?
make[2]: *** [Makefile:4151: libunwind.la] Error 1 make[2]: Leaving directory '/srv/pokybuild/yocto- worker/qemuriscv64/build/build/tmp/work/riscv64imafdc-poky-

Quoted 8 lines

linux/libunwind/1.8.3/build/src'
make[1]: *** [Makefile:2932: all] Error 2
make[1]: Leaving directory '/srv/pokybuild/yocto- worker/qemuriscv64/build/build/tmp/work/riscv64imafdc-poky- linux/libunwind/1.8.3/build/src'
make: *** [Makefile:625: all-recursive] Error 1
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.

Quoted 3 lines

https://autobuilder.yoctoproject.org/valkyrie/#/builders/45/builds/2039

Can you have a look at the issue?

I have a fix for this in master-next which tested successfully overnight. Khem also agreed with it so I'll get it sent out.

Cheers,

Richard