Subject: bug#70922: closed (Re: bug#70922: [PATCH] Look at DEBBUGS_DATA for Debbugs data.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 09 Mar 2025 06:11:02 +0000

Your bug report

#70922: [PATCH] Look at DEBBUGS_DATA for Debbugs data.

which was filed against the mumi package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
70922: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70922
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#70922: [PATCH] Look at DEBBUGS_DATA for Debbugs data.
From: Maxim Cournoyer <[email-masked]>
To: Felix Lechner <[email-masked]>
Cc: [email-masked]
Date: Sun, 09 Mar 2025 15:09:53 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Felix,

Felix Lechner <[email-masked]> writes:

> Maintaining symbolic links to Debbugs data is not reasonable burden
> for co-existing installations of various versions of Debbugs and Mumi.
>
> This change further allows the location to be configured in an
> operating-system declaration that syncronizes the data from
> debbugs.gnu.org via a Shepherd timer.  A patch with a 'configuration'
> record is available but has not been submitted.

That's reasonable to me, but it should be documented somewhere.  Oh
wait, we do not have documentation yet.  Hm.

I've streamlined the commet missage and pushed:

--8<---------------cut here---------------start------------->8---
Honor DEBBUGS_DATA environment variable for Debbugs data.

This makes it easier to experiment with various sets of data.

* mumi/config.scm.in (%config) <data-dir>: Honor DEBBUGS_DATA
environment variable.
--8<---------------cut here---------------end--------------->8---

-- 
Thanks,
Maxim

Subject: [PATCH] Look at DEBBUGS_DATA for Debbugs data.
From: Felix Lechner <[email-masked]>
To: [email-masked]
Cc: Felix Lechner <[email-masked]>
Date: Mon, 13 May 2024 12:54:44 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Maintaining symbolic links to Debbugs data is not reasonable burden
for co-existing installations of various versions of Debbugs and Mumi.

This change further allows the location to be configured in an
operating-system declaration that syncronizes the data from
debbugs.gnu.org via a Shepherd timer.  A patch with a 'configuration'
record is available but has not been submitted.
---
 mumi/config.scm.in | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/mumi/config.scm.in b/mumi/config.scm.in
index eda815b..cf916fb 100644
--- a/mumi/config.scm.in
+++ b/mumi/config.scm.in
@@ -62,16 +62,17 @@
                                         (string-replace dir "@prefix@"
                                                         0 (string-length "${prefix}"))
                                         dir))))) 
-           (data-dir . ,(let ((maybe-dir
-                               (string-append (getcwd) "/data")))
-                          (if (and (getenv "MUMI_UNINSTALLED")
-                                   (file-exists? maybe-dir))
-                              maybe-dir
-                              (let ((dir "@localstatedir@/mumi/data"))
-                                (if (string-prefix? "${prefix}" dir)
-                                    (string-replace dir "@prefix@"
-                                                    0 (string-length "${prefix}"))
-                                    dir)))))
+           (data-dir . ,(or (getenv "DEBBUGS_DATA")
+                            (let ((maybe-dir
+                                   (string-append (getcwd) "/data")))
+                              (if (and (getenv "MUMI_UNINSTALLED")
+                                       (file-exists? maybe-dir))
+                                  maybe-dir
+                                  (let ((dir "@localstatedir@/mumi/data"))
+                                    (if (string-prefix? "${prefix}" dir)
+                                        (string-replace dir "@prefix@"
+                                                        0 (string-length "${prefix}"))
+                                        dir))))))
            (host        . "localhost")
            (port        . 1234)
            (cache-ttl   . 120)

base-commit: 99416ed5c7d950eaf54d52023a2efd975bccac92
-- 
2.41.0