summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-10-22 15:00:54 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-10-30 16:13:02 +0900
commitda8179893fca7ef765817699e9b9c4245f44079d (patch)
treec59d8b72f6b408e73cd797e61ebd49d1b3cbcde8 /gnu
parentc334cf0bb90bdd91cc80aae0dead5e77327e862f (diff)
gnu: libtool: Update to 2.5.4.
* gnu/packages/autotools.scm (libtool): Update to 2.5.4. [source]: Delete patches. [#:phases] {skip-some-tests-on-extra-archs}: New phases. * gnu/packages/patches/libtool-grep-compat.patch: Delete file. * gnu/packages/patches/libtool-skip-tests2.patch: Likewise. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. Change-Id: I6f16e7edd996c5b577acdbbd4905ec63d27b3655
Diffstat (limited to 'gnu')
-rw-r--r--gnu/local.mk2
-rw-r--r--gnu/packages/autotools.scm12
-rw-r--r--gnu/packages/patches/libtool-grep-compat.patch51
-rw-r--r--gnu/packages/patches/libtool-skip-tests2.patch33
4 files changed, 8 insertions, 90 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index a6bc8db5e2a..6a52172f375 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1770,8 +1770,6 @@ dist_patch_DATA = \
1770 %D%/packages/patches/libtiff-CVE-2022-34526.patch \ 1770 %D%/packages/patches/libtiff-CVE-2022-34526.patch \
1771 %D%/packages/patches/libtirpc-CVE-2021-46828.patch \ 1771 %D%/packages/patches/libtirpc-CVE-2021-46828.patch \
1772 %D%/packages/patches/libtirpc-hurd.patch \ 1772 %D%/packages/patches/libtirpc-hurd.patch \
1773 %D%/packages/patches/libtool-grep-compat.patch \
1774 %D%/packages/patches/libtool-skip-tests2.patch \
1775 %D%/packages/patches/libtree-fix-check-non-x86.patch \ 1773 %D%/packages/patches/libtree-fix-check-non-x86.patch \
1776 %D%/packages/patches/libusb-0.1-disable-tests.patch \ 1774 %D%/packages/patches/libusb-0.1-disable-tests.patch \
1777 %D%/packages/patches/libusb-for-axoloti.patch \ 1775 %D%/packages/patches/libusb-for-axoloti.patch \
diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm
index 84f2444004e..6f694c9b7fc 100644
--- a/gnu/packages/autotools.scm
+++ b/gnu/packages/autotools.scm
@@ -483,16 +483,14 @@ Makefile, simplifying the entire process for the developer.")
483(define-public libtool 483(define-public libtool
484 (package 484 (package
485 (name "libtool") 485 (name "libtool")
486 (version "2.4.7") 486 (version "2.5.4")
487 (source (origin 487 (source (origin
488 (method url-fetch) 488 (method url-fetch)
489 (uri (string-append "mirror://gnu/libtool/libtool-" 489 (uri (string-append "mirror://gnu/libtool/libtool-"
490 version ".tar.xz")) 490 version ".tar.xz"))
491 (sha256 491 (sha256
492 (base32 492 (base32
493 "0pb3l4x37k6fj1lwnpzws55gi3pxl0hx56jm4bzmbrkw0mzj2zsg")) 493 "0xb64rhambx6mhxwr613xgyad7ybs5hgmpmd9gccf2vbcrh5h7zq"))))
494 (patches (search-patches "libtool-skip-tests2.patch"
495 "libtool-grep-compat.patch"))))
496 (build-system gnu-build-system) 494 (build-system gnu-build-system)
497 (propagated-inputs (list m4)) 495 (propagated-inputs (list m4))
498 (native-inputs 496 (native-inputs
@@ -518,6 +516,12 @@ Makefile, simplifying the entire process for the developer.")
518 516
519 #:phases 517 #:phases
520 (modify-phases %standard-phases 518 (modify-phases %standard-phases
519 (add-after 'unpack 'skip-some-tests-on-extra-archs
520 (lambda _
521 (with-directory-excursion "tests"
522 (substitute* '("demo.at" "testsuite")
523 (("hppa\\*\\|amd64\\*\\|x86_64\\*\\|s390\\*" all)
524 (string-append all "|arm*|mips*|riscv*"))))))
521 (add-before 'check 'pre-check 525 (add-before 'check 'pre-check
522 (lambda* (#:key inputs native-inputs parallel-tests? #:allow-other-keys) 526 (lambda* (#:key inputs native-inputs parallel-tests? #:allow-other-keys)
523 ;; Run the test suite in parallel, if possible. 527 ;; Run the test suite in parallel, if possible.
diff --git a/gnu/packages/patches/libtool-grep-compat.patch b/gnu/packages/patches/libtool-grep-compat.patch
deleted file mode 100644
index 46e5c6873da..00000000000
--- a/gnu/packages/patches/libtool-grep-compat.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1Don't escape forward slashes to prevent a warning from grep 3.8.
2
3diff --git a/tests/link-order.at b/tests/link-order.at
4--- a/tests/link-order.at
5+++ b/tests/link-order.at
6@@ -99,12 +99,12 @@ aix* | interix*) ;; # These systems have different path syntax
7 case $hardcode_direct$hardcode_direct_absolute in
8 yesno)
9 AT_CHECK([if $EGREP relinking stderr; then
10- $EGREP " .*\/new\/lib/libb$shared_ext .*\/old\/lib/libcee$shared_ext" stdout
11+ $EGREP " .*/new/lib/libb$shared_ext .*/old/lib/libcee$shared_ext" stdout
12 else :; fi], [0], [ignore], [], [echo "wrong link order"])
13 ;;
14 *)
15 AT_CHECK([if $EGREP relinking stderr; then
16- $EGREP " -L.*\/new\/lib -lb -L.*\/old\/lib -lcee" stdout
17+ $EGREP " -L.*/new/lib -lb -L.*/old/lib -lcee" stdout
18 else :; fi], [0], [ignore], [], [echo "wrong link order"])
19 ;;
20 esac
21diff --git a/tests/testsuite b/tests/testsuite
22--- a/tests/testsuite
23+++ b/tests/testsuite
24@@ -20611,11 +20611,11 @@ aix* | interix*) ;; # These systems have different path syntax
25 yesno)
26 { set +x
27 $as_echo "$at_srcdir/link-order.at:101: if \$EGREP relinking stderr; then
28- \$EGREP \" .*\\/new\\/lib/libb\$shared_ext .*\\/old\\/lib/libcee\$shared_ext\" stdout
29+ \$EGREP \" .*/new/lib/libb\$shared_ext .*/old/lib/libcee\$shared_ext\" stdout
30 else :; fi"
31 at_fn_check_prepare_notrace 'an embedded newline' "link-order.at:101"
32 ( $at_check_trace; if $EGREP relinking stderr; then
33- $EGREP " .*\/new\/lib/libb$shared_ext .*\/old\/lib/libcee$shared_ext" stdout
34+ $EGREP " .*/new/lib/libb$shared_ext .*/old/lib/libcee$shared_ext" stdout
35 else :; fi
36 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
37 at_status=$? at_failed=false
38@@ -20633,11 +20633,11 @@ $at_traceon; }
39 *)
40 { set +x
41 $as_echo "$at_srcdir/link-order.at:106: if \$EGREP relinking stderr; then
42- \$EGREP \" -L.*\\/new\\/lib -lb -L.*\\/old\\/lib -lcee\" stdout
43+ \$EGREP \" -L.*/new\\/lib -lb -L.*/old/lib -lcee\" stdout
44 else :; fi"
45 at_fn_check_prepare_notrace 'an embedded newline' "link-order.at:106"
46 ( $at_check_trace; if $EGREP relinking stderr; then
47- $EGREP " -L.*\/new\/lib -lb -L.*\/old\/lib -lcee" stdout
48+ $EGREP " -L.*/new/lib -lb -L.*/old/lib -lcee" stdout
49 else :; fi
50 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
51 at_status=$? at_failed=false
diff --git a/gnu/packages/patches/libtool-skip-tests2.patch b/gnu/packages/patches/libtool-skip-tests2.patch
deleted file mode 100644
index 91beaa903ee..00000000000
--- a/gnu/packages/patches/libtool-skip-tests2.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1Skip the nopic test on ARM, MIPS and RISC-V systems.
2
3--- libtool-2.4.6/tests/demo.at.orig 2015-01-16 13:52:04.000000000 -0500
4+++ libtool-2.4.6/tests/demo.at 2015-02-16 10:48:51.435851966 -0500
5@@ -510,7 +510,7 @@
6 AT_SETUP([force non-PIC objects])
7
8 AT_CHECK([case $host in
9-hppa*|x86_64*|s390*)
10+hppa*|x86_64*|s390*|arm*|mips*|riscv*)
11 # These hosts cannot use non-PIC shared libs
12 exit 77 ;;
13 *-solaris*|*-sunos*)
14--- libtool-2.4.6/tests/testsuite.orig 2015-02-15 11:15:25.000000000 -0500
15+++ libtool-2.4.6/tests/testsuite 2015-02-16 10:50:58.736483216 -0500
16@@ -8741,7 +8741,7 @@
17
18 { set +x
19 $as_echo "$at_srcdir/demo.at:513: case \$host in
20-hppa*|x86_64*|s390*)
21+hppa*|x86_64*|s390*|arm*|mips*|riscv*)
22 # These hosts cannot use non-PIC shared libs
23 exit 77 ;;
24 *-solaris*|*-sunos*)
25@@ -8766,7 +8766,7 @@
26 "
27 at_fn_check_prepare_notrace 'a `...` command substitution' "demo.at:513"
28 ( $at_check_trace; case $host in
29-hppa*|x86_64*|s390*)
30+hppa*|x86_64*|s390*|arm*|mips*|riscv*)
31 # These hosts cannot use non-PIC shared libs
32 exit 77 ;;
33 *-solaris*|*-sunos*)