emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#45221: closed ([PATCH] guix: qt-build-system: Wrapped executables ho


From: GNU bug Tracking System
Subject: bug#45221: closed ([PATCH] guix: qt-build-system: Wrapped executables honor user's envvars.)
Date: Mon, 11 Jan 2021 16:06:01 +0000

Your message dated Mon, 11 Jan 2021 17:04:57 +0100
with message-id <9f9b879e-8ef3-c47b-d75b-5ba1cea5d12c@crazy-compilers.com>
and subject line Re: [PATCH] guix: qt-build-system: Wrapped executables honor 
user's envvars.
has caused the debbugs.gnu.org bug report #45221,
regarding [PATCH] guix: qt-build-system: Wrapped executables honor user's 
envvars.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
45221: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45221
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] guix: qt-build-system: Wrapped executables honor user's envvars. Date: Sun, 13 Dec 2020 16:41:38 +0100
Prior to this change, wrappers did set the specified environment variables to
a fixed value, overwriting any user settings. This inhibited propagating
e.g. XDG_DATA_DIRS from a profile to the application.

Now user environment variables are prefixed (if the variable defines some
"binary" search path, e.g. QT_PLUGIN_PATH) or suffixed (if the variable
defines some config or data search path, e.g. XDG_DATA_DIRS). The code could
also allow to overwrite, anyhow currently no variable is defined like this.

* guix/build/qt-build-system.scm (variables-for-wrapping): For each env-var to
  be wrapped, specify whether it should prefix, suffix or overwrite the
  user's variable.
---
 guix/build/qt-build-system.scm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/guix/build/qt-build-system.scm b/guix/build/qt-build-system.scm
index 005157b0a4..72d2d3b03b 100644
--- a/guix/build/qt-build-system.scm
+++ b/guix/build/qt-build-system.scm
@@ -60,14 +60,14 @@
    (lambda (var-to-wrap) (not (null? (last var-to-wrap))))
    (map
     (lambda (var-spec)
-      `(,(first var-spec) = ,(collect-sub-dirs base-directories (last 
var-spec))))
+      (list (first var-spec) (second var-spec) (collect-sub-dirs 
base-directories (third var-spec))))
     (list
      ;; these shall match the search-path-specification for Qt and KDE
      ;; libraries
-     '("XDG_DATA_DIRS" "/share")
-     '("XDG_CONFIG_DIRS" "/etc/xdg")
-     '("QT_PLUGIN_PATH" "/lib/qt5/plugins")
-     '("QML2_IMPORT_PATH" "/lib/qt5/qml")))))
+     '("XDG_DATA_DIRS" suffix "/share")
+     '("XDG_CONFIG_DIRS" suffix "/etc/xdg")
+     '("QT_PLUGIN_PATH" prefix "/lib/qt5/plugins")
+     '("QML2_IMPORT_PATH" prefix "/lib/qt5/qml")))))
 
 (define* (wrap-all-programs #:key inputs outputs
                             (qt-wrap-excluded-outputs '())
-- 
2.21.3




--- End Message ---
--- Begin Message --- Subject: Re: [PATCH] guix: qt-build-system: Wrapped executables honor user's envvars. Date: Mon, 11 Jan 2021 17:04:57 +0100 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 This patch has been superseded by http://issues.guix.gnu.org/45784 and following, esp. http://issues.guix.gnu.org/45785


--- End Message ---

reply via email to

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