Skip to contentSkip to conversation

package/pkg-autotools.mk: LIBTOOL_PATCH_HOOK: also handle libtool 2.5.x

PATCH Applied Peter Korsgaard 3 participants 4 messages May 16, 2025 – May 31, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/pkg-autotools.mk: LIBTOOL_PATCH_HOOK: also handle libtool 2.5.x

Fixes:
https://autobuild.buildroot.org/results/ac60d29fbcd9fb8ddb21b76b3b185e45e580c006/

Libtool 2.5.x has been released and is starting to be used by upstreams when generating release tarballs (E.G. openvpn-2.6.14).

https://lists.gnu.org/archive/html/autotools-announce/2024-09/msg00000.html

It needs to be patched similar to earlier versions, and the existing v2.4.4 patch luckily still applies, so extend LIBTOOL_PATCH_HOOK to also patch 2.5.x versions with that.

---
 package/pkg-autotools.mk | 2 ++
 1 file changed, 2 insertions(+)
package/pkg-autotools.mk +2 -0
index 8ffb0e0047..16b21acb6d 100644
@@ -74,6 +74,8 @@ define LIBTOOL_PATCH_HOOK
 			else \
 				patch -i support/libtool/buildroot-libtool-v2.4.patch $${i}; \
 			fi \
+		elif test $${ltmain_version} = "2.5"; then\
+			patch -i support/libtool/buildroot-libtool-v2.4.4.patch $${i}; \
 		fi \
 	done
 endef
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

Fixes:
https://autobuild.buildroot.org/results/ac60d29fbcd9fb8ddb21b76b3b185e45e580c006/

Libtool 2.5.x has been released and is starting to be used by upstreams when generating release tarballs (E.G. openvpn-2.6.14).

Quoted 7 lines

https://lists.gnu.org/archive/html/autotools-announce/2024-09/msg00000.html

It needs to be patched similar to earlier versions, and the existing v2.4.4 patch luckily still applies, so extend LIBTOOL_PATCH_HOOK to also patch 2.5.x versions with that.

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Could this make its way to the 2025.02.x branch as well?  OpenVPN on 2025.02.3 still wants to complain when compiling for x86_64 target (but not aarch64 for whatever reason).

thanks!
Lance Fredrickson

Quoted 9 lines · Peter Korsgaard
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

Fixes:
https://autobuild.buildroot.org/results/ac60d29fbcd9fb8ddb21b76b3b185e45e580c006/

Libtool 2.5.x has been released and is starting to be used by upstreams when generating release tarballs (E.G. openvpn-2.6.14).

https://lists.gnu.org/archive/html/autotools-announce/2024-09/msg00000.html

Quoted 8 lines
Quoted 5 lines

It needs to be patched similar to earlier versions, and the existing v2.4.4 patch luckily still applies, so extend LIBTOOL_PATCH_HOOK to also patch 2.5.x versions with that.

Committed, thanks.

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Peter Korsgaard
Quoted 6 lines · Peter Korsgaard

Fixes:
https://autobuild.buildroot.org/results/ac60d29fbcd9fb8ddb21b76b3b185e45e580c006/

Libtool 2.5.x has been released and is starting to be used by upstreams when generating release tarballs (E.G. openvpn-2.6.14).

Quoted 7 lines

https://lists.gnu.org/archive/html/autotools-announce/2024-09/msg00000.html

It needs to be patched similar to earlier versions, and the existing v2.4.4 patch luckily still applies, so extend LIBTOOL_PATCH_HOOK to also patch 2.5.x versions with that.

Applied to 2025.02.x, thanks.

Regards,
Arnout

Quoted 9 lines
---
  package/pkg-autotools.mk | 2 ++
  1 file changed, 2 insertions(+)
package/pkg-autotools.mk +0 -0
index 8ffb0e0047..16b21acb6d 100644

package/pkg-autotools.mk define LIBTOOL_PATCH_HOOK · line 81

Quoted 8 lines
package/pkg-autotools.mk +2 -0
@@ -74,6 +74,8 @@ define LIBTOOL_PATCH_HOOK
  			else \
  				patch -i support/libtool/buildroot-libtool-v2.4.patch $${i}; \
  			fi \
+		elif test $${ltmain_version} = "2.5"; then\
+			patch -i support/libtool/buildroot-libtool-v2.4.4.patch $${i}; \
  		fi \
  	done
  endef

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot