From 94385628c4eb64d79a106715e4fc3b64f5a7a4cd Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Thu, 17 Jul 2025 07:59:59 -0500 Subject: [PATCH] add elfpatch for interpreter --- gchannel/packages/floorp.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gchannel/packages/floorp.scm b/gchannel/packages/floorp.scm index bcfb186..08d3556 100644 --- a/gchannel/packages/floorp.scm +++ b/gchannel/packages/floorp.scm @@ -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"))