GNU bug report logs - #72408
[PATCH] gnu: orage: Fix tzdata path.

Previous Next

Package: guix-patches;

Reported by: Keisuke Kurosawa <k.kurochan9630 <at> gmail.com>

Date: Thu, 1 Aug 2024 07:32:02 UTC

Severity: normal

Tags: moreinfo, patch

To reply to this bug, email your comments to 72408 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to all_but_last <at> 163.com, iyzsong <at> envs.net, guix-patches <at> gnu.org:
bug#72408; Package guix-patches. (Thu, 01 Aug 2024 07:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Keisuke Kurosawa <k.kurochan9630 <at> gmail.com>:
New bug report received and forwarded. Copy sent to all_but_last <at> 163.com, iyzsong <at> envs.net, guix-patches <at> gnu.org. (Thu, 01 Aug 2024 07:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Keisuke Kurosawa <k.kurochan9630 <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: orage: Fix tzdata path.
Date: Thu,  1 Aug 2024 16:20:53 +0900
* gnu/packages/xfce.scm (orage) [arguments]: Add fix-tzdata-path phase.
[inputs]: Add tzdata.

Change-Id: I7eee01c931a87ec3fefa157e8ebfa7d794a72757
---
 gnu/packages/xfce.scm | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index 825b175140..91ba5ef3cd 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2020, 2021, 2022 Michael Rohleder <mike <at> rohleder.de>
 ;;; Copyright © 2021, 2022 Brendan Tildesley <mail <at> brendan.scot>
 ;;; Copyright © 2021 André A. Gomes <andremegafone <at> gmail.com>
+;;; Copyright © 2024 Keisuke Kurosawa <k.kurochan9630 <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1369,13 +1370,28 @@ (define-public orage
                (base32
                 "1v5385hps6jgcw1ky9vl7w7iryp0rzxz6s4lx72rz8yg4sdv84v3"))))
     (build-system gnu-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-tzdata-path
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   (substitute* "src/tz_zoneinfo_read.c"
+                     (("/usr/share/zoneinfo")
+                      (search-input-directory inputs "share/zoneinfo"))))))))
     (native-inputs
      (list
       `(,glib "bin")                    ; for dbus-binding-tool
       intltool
       pkg-config))
     (inputs
-     (list dbus-glib gtk+-2 libical libnotify libxfce4ui popt xfce4-panel))
+     (list tzdata ;; For fix-tzdata-path phase only.
+           dbus-glib
+           gtk+-2
+           libical
+           libnotify
+           libxfce4ui
+           popt
+           xfce4-panel))
     (home-page "https://www.xfce.org/projects/")
     (synopsis "Simple calendar application with reminders")
     (description

base-commit: 01d4363168ed10ea223047f7a7b83201f161ec0b
-- 
2.45.2





Information forwarded to guix-patches <at> gnu.org:
bug#72408; Package guix-patches. (Thu, 01 Aug 2024 11:42:02 GMT) Full text and rfc822 format available.

Message #8 received at 72408 <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> envs.net>
To: Keisuke Kurosawa <k.kurochan9630 <at> gmail.com>
Cc: Zhu Zihao <all_but_last <at> 163.com>, 72408 <at> debbugs.gnu.org
Subject: Re: [bug#72408] [PATCH] gnu: orage: Fix tzdata path.
Date: Thu, 01 Aug 2024 19:41:22 +0800
Keisuke Kurosawa <k.kurochan9630 <at> gmail.com> writes:

> * gnu/packages/xfce.scm (orage) [arguments]: Add fix-tzdata-path phase.
> [inputs]: Add tzdata.
>
> Change-Id: I7eee01c931a87ec3fefa157e8ebfa7d794a72757
> ---
>  gnu/packages/xfce.scm | 18 +++++++++++++++++-
>  1 file changed, 17 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
> index 825b175140..91ba5ef3cd 100644
> --- a/gnu/packages/xfce.scm
> +++ b/gnu/packages/xfce.scm
> @@ -16,6 +16,7 @@
>  ;;; Copyright © 2020, 2021, 2022 Michael Rohleder <mike <at> rohleder.de>
>  ;;; Copyright © 2021, 2022 Brendan Tildesley <mail <at> brendan.scot>
>  ;;; Copyright © 2021 André A. Gomes <andremegafone <at> gmail.com>
> +;;; Copyright © 2024 Keisuke Kurosawa <k.kurochan9630 <at> gmail.com>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -1369,13 +1370,28 @@ (define-public orage
>                 (base32
>                  "1v5385hps6jgcw1ky9vl7w7iryp0rzxz6s4lx72rz8yg4sdv84v3"))))
>      (build-system gnu-build-system)
> +    (arguments
> +     (list #:phases
> +           #~(modify-phases %standard-phases
> +               (add-after 'unpack 'fix-tzdata-path
> +                 (lambda* (#:key inputs #:allow-other-keys)
> +                   (substitute* "src/tz_zoneinfo_read.c"
> +                     (("/usr/share/zoneinfo")
> +                      (search-input-directory inputs "share/zoneinfo"))))))))

Ideally it should support get it via 'TZDIR' environment variable, since
the tzdata package is updated periodically.  Could you give a try for a
patch to use 'TZDIR', which also can be submit to its xfce upstream?

Thanks.




Added tag(s) moreinfo. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 12 Sep 2024 17:15:01 GMT) Full text and rfc822 format available.

This bug report was last modified 276 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.