unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#73541] [PATCH] gnu: Add patchelf-0.16.
@ 2024-09-29  1:32 Hilton Chain via Guix-patches via
  2024-10-06 10:27 ` Attila Lendvai
  2024-10-07 10:02 ` bug#73541: " Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Hilton Chain via Guix-patches via @ 2024-09-29  1:32 UTC (permalink / raw)
  To: 73541; +Cc: Hilton Chain

* gnu/packages/elf.scm (patchelf-0.16): New variable.

Change-Id: Ide4c547734156ffe909a6d010974a7450aaa45cd
---
 gnu/packages/elf.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm
index dc2db83632..119f8d13dd 100644
--- a/gnu/packages/elf.scm
+++ b/gnu/packages/elf.scm
@@ -28,6 +28,7 @@
 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 
 (define-module (gnu packages elf)
+  #:use-module (guix gexp)
   #:use-module (guix utils)
   #:use-module (guix packages)
   #:use-module (guix download)
@@ -320,6 +321,32 @@ (define-public patchelf
 changed.")
     (license gpl3+)))
 
+;; Newer patchelf may break binaries.  e.g. When setting RUNPATH for a Go
+;; program.
+;; See also: https://github.com/NixOS/patchelf/issues/482
+(define-public patchelf-0.16
+  (package
+    (inherit patchelf)
+    (name "patchelf")
+    (version "0.16.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/NixOS/patchelf/releases/download/"
+                    version
+                    "/patchelf-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "0zdby3gpmm8q4735pviaq92zj41i2rdnhwhyrsb3sinc9hzmz4db"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments patchelf)
+       ((#:phases phases '%standard-phases)
+        #~(modify-phases #$phases
+            (add-after 'fix-tests 'skip-empty-rpath-test
+              (lambda _
+                (substitute* "tests/set-empty-rpath.sh"
+                  (("^\\$\\{SCRATCH\\}\\/simple.$") ""))))))))))
+
 (define-public libdwarf
   (package
     (name "libdwarf")

base-commit: 5e888ec915cfdd256e726959cdc23293bc36277e
-- 
2.46.0





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#73541] [PATCH] gnu: Add patchelf-0.16.
  2024-09-29  1:32 [bug#73541] [PATCH] gnu: Add patchelf-0.16 Hilton Chain via Guix-patches via
@ 2024-10-06 10:27 ` Attila Lendvai
  2024-10-07 10:02 ` bug#73541: " Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Attila Lendvai @ 2024-10-06 10:27 UTC (permalink / raw)
  To: 73541; +Cc: Hilton Chain

user guix
usertag 73541 + reviewed-looks-good
thanks

<#secure method=pgpmime mode=sign>
-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“You can tell whether a man is clever by his answers.
 You can tell whether a man is wise by his questions.”
	— Naguib Mahfouz




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#73541: [PATCH] gnu: Add patchelf-0.16.
  2024-09-29  1:32 [bug#73541] [PATCH] gnu: Add patchelf-0.16 Hilton Chain via Guix-patches via
  2024-10-06 10:27 ` Attila Lendvai
@ 2024-10-07 10:02 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2024-10-07 10:02 UTC (permalink / raw)
  To: Hilton Chain; +Cc: 73541-done

Hilton Chain <hako@ultrarare.space> skribis:

> * gnu/packages/elf.scm (patchelf-0.16): New variable.
>
> Change-Id: Ide4c547734156ffe909a6d010974a7450aaa45cd

Applied, thank you and Attila!




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-10-07 10:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-29  1:32 [bug#73541] [PATCH] gnu: Add patchelf-0.16 Hilton Chain via Guix-patches via
2024-10-06 10:27 ` Attila Lendvai
2024-10-07 10:02 ` bug#73541: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).