diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2025-10-22 15:00:54 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-11-19 09:42:11 +0900 |
| commit | bd1ad1e1648c563d576e73eb2240b55a2dfb4543 (patch) | |
| tree | 2a616fe5a6701f6c0d1e95f99bc23ac216d2406c | |
| parent | 2a2d1806b00c964b75964c88d0d0ced18ad87eab (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
| -rw-r--r-- | gnu/local.mk | 2 | ||||
| -rw-r--r-- | gnu/packages/autotools.scm | 12 | ||||
| -rw-r--r-- | gnu/packages/patches/libtool-grep-compat.patch | 51 | ||||
| -rw-r--r-- | gnu/packages/patches/libtool-skip-tests2.patch | 33 |
4 files changed, 8 insertions, 90 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index abaa6eda16d..1af1adfabab 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -1776,8 +1776,6 @@ dist_patch_DATA = \ | |||
| 1776 | %D%/packages/patches/libtiff-CVE-2022-34526.patch \ | 1776 | %D%/packages/patches/libtiff-CVE-2022-34526.patch \ |
| 1777 | %D%/packages/patches/libtirpc-CVE-2021-46828.patch \ | 1777 | %D%/packages/patches/libtirpc-CVE-2021-46828.patch \ |
| 1778 | %D%/packages/patches/libtirpc-hurd.patch \ | 1778 | %D%/packages/patches/libtirpc-hurd.patch \ |
| 1779 | %D%/packages/patches/libtool-grep-compat.patch \ | ||
| 1780 | %D%/packages/patches/libtool-skip-tests2.patch \ | ||
| 1781 | %D%/packages/patches/libtree-fix-check-non-x86.patch \ | 1779 | %D%/packages/patches/libtree-fix-check-non-x86.patch \ |
| 1782 | %D%/packages/patches/libusb-0.1-disable-tests.patch \ | 1780 | %D%/packages/patches/libusb-0.1-disable-tests.patch \ |
| 1783 | %D%/packages/patches/libusb-for-axoloti.patch \ | 1781 | %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 @@ | |||
| 1 | Don't escape forward slashes to prevent a warning from grep 3.8. | ||
| 2 | |||
| 3 | diff --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 | ||
| 21 | diff --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 @@ | |||
| 1 | Skip 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*) | ||
