diff options
author | Winter <winter@winter.cafe> | 2023-03-06 22:47:52 -0500 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:44:31 +0200 |
commit | 43c77ee3067116a3ed66ec7235b0ad549b09b903 (patch) | |
tree | 702b442a141e900c9d0651b7e00602630a81e988 /gnu/packages/elf.scm | |
parent | 8c8f07785f187a7092ca043b385d3e6415209e6a (diff) | |
download | guix-43c77ee3067116a3ed66ec7235b0ad549b09b903.tar.gz guix-43c77ee3067116a3ed66ec7235b0ad549b09b903.zip |
gnu: patchelf: Update to 0.17.2.
* gnu/packages/elf.scm (patchelf): Update to 0.17.2.
[uri]: Use the release tarballs posted to GitHub releases, which have
superseded the ones hosted on releases.nixos.org.
[arguments]: Add fixes for two tests added since the last update.
[properties]: Remove release-monitoring-url, as the GitHub updater will
be used now that the releases are hosted there.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/packages/elf.scm')
-rw-r--r-- | gnu/packages/elf.scm | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm index a100038f14..f199ee5e4d 100644 --- a/gnu/packages/elf.scm +++ b/gnu/packages/elf.scm @@ -276,16 +276,16 @@ static analysis of the ELF binaries at hand.") (define-public patchelf (package (name "patchelf") - (version "0.11") + (version "0.17.2") (source (origin (method url-fetch) (uri (string-append - "https://nixos.org/releases/patchelf/patchelf-" + "https://github.com/NixOS/patchelf/releases/download/" version "/patchelf-" version ".tar.bz2")) (sha256 (base32 - "16ms3ijcihb88j3x6cl8cbvhia72afmfcphczb9cfwr0gbc22chx")))) + "1qnql97ghbb7nhv9zpm4ip0cqj05xyyxk391jv0j5r3jc0vymqms")))) (build-system gnu-build-system) (arguments '(#:phases @@ -300,6 +300,14 @@ static analysis of the ELF binaries at hand.") ;; Find libgcc_s.so, which is necessary for the test: (("/xxxxxxxxxxxxxxx") (string-append (assoc-ref inputs "gcc:lib") "/lib"))) + (substitute* "tests/replace-needed.sh" + ;; This test assumes that only libc will be linked alongside + ;; libfoo, but we also link libgcc_s. + (("grep -v 'foo\\\\.so'") "grep -E 'libc.*\\.so'")) + (substitute* "tests/set-empty-rpath.sh" + ;; Binaries with empty RPATHs cannot run on Guix, because + ;; we still need to find libgcc_s (see above). + (("^\\$\\{SCRATCH\\}\\/simple.$") "")) #t))))) (native-inputs `(("gcc:lib" ,gcc "lib"))) @@ -308,9 +316,6 @@ static analysis of the ELF binaries at hand.") (description "PatchELF allows the ELF \"interpreter\" and RPATH of an ELF binary to be changed.") - ;; This can probably be removed with the next release. - (properties - '((release-monitoring-url . "https://github.com/NixOS/patchelf/releases"))) (license gpl3+))) (define-public libdwarf |