add elfpatch for interpreter

This commit is contained in:
2025-07-17 07:59:59 -05:00
committed by GigiaJ
parent 7327de874d
commit 94385628c4

View File

@@ -139,7 +139,15 @@
#:install-plan #~'(("." "lib/floorp"))
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'create
(delete 'validate-runpath) ;; Technically we could patch the shared libs, but it isn't needed.
(add-after 'install 'patch-interpreter
(lambda* (#:key native-inputs inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(interpreter (string-append (assoc-ref inputs "glibc")
"/lib/ld-linux-x86-64.so.2"))
(binary (string-append out "/lib/floorp/floorp")))
(invoke "patchelf" "--set-interpreter" interpreter binary))))
(add-after 'patch-interpreter 'create
(lambda _
(mkdir-p (string-append #$output "/bin"))
;;(mkdir-p (string-append #$output "/share/icons/hicolor"))