diff options
| author | Hilton Chain <hako@ultrarare.space> | 2024-09-29 09:32:39 +0800 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-10-07 12:51:23 +0200 |
| commit | 66db4f5c5751afa7c3471079136c6be1ae1e947b (patch) | |
| tree | 3a64c8fc6f8f5591ca58cccb6a5252353d754b7e /gnu/packages/elf.scm | |
| parent | 516c63ef8cd2f3e0b3b88cc4bc0b22918ffe22d5 (diff) | |
gnu: Add patchelf-0.16.
* gnu/packages/elf.scm (patchelf-0.16): New variable.
Change-Id: Ide4c547734156ffe909a6d010974a7450aaa45cd
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/elf.scm')
| -rw-r--r-- | gnu/packages/elf.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm index dc2db836321..119f8d13dd7 100644 --- a/gnu/packages/elf.scm +++ b/gnu/packages/elf.scm | |||
| @@ -28,6 +28,7 @@ | |||
| 28 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | 28 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 29 | 29 | ||
| 30 | (define-module (gnu packages elf) | 30 | (define-module (gnu packages elf) |
| 31 | #:use-module (guix gexp) | ||
| 31 | #:use-module (guix utils) | 32 | #:use-module (guix utils) |
| 32 | #:use-module (guix packages) | 33 | #:use-module (guix packages) |
| 33 | #:use-module (guix download) | 34 | #:use-module (guix download) |
| @@ -320,6 +321,32 @@ static analysis of the ELF binaries at hand.") | |||
| 320 | changed.") | 321 | changed.") |
| 321 | (license gpl3+))) | 322 | (license gpl3+))) |
| 322 | 323 | ||
| 324 | ;; Newer patchelf may break binaries. e.g. When setting RUNPATH for a Go | ||
| 325 | ;; program. | ||
| 326 | ;; See also: https://github.com/NixOS/patchelf/issues/482 | ||
| 327 | (define-public patchelf-0.16 | ||
| 328 | (package | ||
| 329 | (inherit patchelf) | ||
| 330 | (name "patchelf") | ||
| 331 | (version "0.16.1") | ||
| 332 | (source (origin | ||
| 333 | (method url-fetch) | ||
| 334 | (uri (string-append | ||
| 335 | "https://github.com/NixOS/patchelf/releases/download/" | ||
| 336 | version | ||
| 337 | "/patchelf-" version ".tar.bz2")) | ||
| 338 | (sha256 | ||
| 339 | (base32 | ||
| 340 | "0zdby3gpmm8q4735pviaq92zj41i2rdnhwhyrsb3sinc9hzmz4db")))) | ||
| 341 | (arguments | ||
| 342 | (substitute-keyword-arguments (package-arguments patchelf) | ||
| 343 | ((#:phases phases '%standard-phases) | ||
| 344 | #~(modify-phases #$phases | ||
| 345 | (add-after 'fix-tests 'skip-empty-rpath-test | ||
| 346 | (lambda _ | ||
| 347 | (substitute* "tests/set-empty-rpath.sh" | ||
| 348 | (("^\\$\\{SCRATCH\\}\\/simple.$") "")))))))))) | ||
| 349 | |||
| 323 | (define-public libdwarf | 350 | (define-public libdwarf |
| 324 | (package | 351 | (package |
| 325 | (name "libdwarf") | 352 | (name "libdwarf") |
