Subject: [bug#61316] [PATCH] gnu: lxqt-admin: Fix path for timezone file

From: Reza Alizadeh Majd <[email-masked]>
Date: Mon, 6 Feb 2023 10:29:39 +0330

* gnu/packages/lxqt.scm (lxqt-admin)[arguments]: Update hardcoded path
  for zone.tab to point to tzdata reference.
---
 gnu/packages/lxqt.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lxqt.scm b/gnu/packages/lxqt.scm
index dde87382e8..b02c624f1c 100644
--- a/gnu/packages/lxqt.scm
+++ b/gnu/packages/lxqt.scm
@@ -320,7 +320,8 @@ (define-public lxqt-admin
            libqtxdg
            polkit-qt
            qtsvg-5
-           qtx11extras))
+           qtx11extras
+           tzdata))
     (native-inputs
      (list lxqt-build-tools qttools-5))
     (arguments
@@ -333,6 +334,10 @@ (define-public lxqt-admin
                             "lxqt-admin-time/CMakeLists.txt")
                (("DESTINATION \"\\$\\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\\}")
                 "DESTINATION \"share/polkit-1/actions"))
+             (substitute* '("lxqt-admin-time/timeadmindialog.cpp")
+               (("ZONETAB_PATH \"/usr")
+                (string-append "ZONETAB_PATH \"" 
+                               (assoc-ref %build-inputs "tzdata"))))
              #t)))))
     (home-page "https://lxqt-project.org")
     (synopsis "LXQt system administration tool")

base-commit: 34c7dd7e09fe714229a1ed723994c385d91bd457
-- 
2.38.1