guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/14: gnu: tracker: Don't wrap binaries in libexec/tracker3 directory.


From: guix-commits
Subject: 03/14: gnu: tracker: Don't wrap binaries in libexec/tracker3 directory.
Date: Sun, 5 Mar 2023 03:44:40 -0500 (EST)

lilyp pushed a commit to branch master
in repository guix.

commit ea75ca18066c0332b641c9b28b5b2f71db0d7eea
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sat Feb 25 07:46:37 2023 +0100

    gnu: tracker: Don't wrap binaries in libexec/tracker3 directory.
    
    These binaries are mere symlinks to the already wrapped tracker command.
    They are used in a command lookup via argv[0], which wrapping them breaks.
    
    * gnu/packages/gnome.scm (tracker)[#:phases]: Add ‘unwrap-libexec’.
---
 gnu/packages/gnome.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index a13fbb2436..c057a66070 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -9710,7 +9710,18 @@ easy, safe, and automatic.")
                ;; Some tests expect to write to $HOME.
                (setenv "HOME" "/tmp")
                (apply invoke "dbus-run-session" "--" "meson" "test"
-                      "--print-errorlogs" test-options)))))))
+                      "--print-errorlogs" test-options))))
+         (add-after 'glib-or-gtk-wrap 'unwrap-libexec
+           (lambda* (#:key outputs #:allow-other-keys)
+             (with-directory-excursion (string-append (assoc-ref outputs "out")
+                                                      "/libexec/tracker3")
+               (for-each
+                (lambda (f)
+                  (let ((real (string-append "." (basename f) "-real")))
+                    (when (file-exists? real)
+                      (delete-file f)
+                      (rename-file real f))))
+                (find-files "."))))))))
     (native-inputs
      (list gettext-minimal
            `(,glib "bin")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]