From: Felix Lechner via Bug-mumi via "Bug reports for GNU Guix Mumi." <bug-mumi@gnu.org>
To: 70922@debbugs.gnu.org
Cc: Felix Lechner <felix.lechner@lease-up.com>
Subject: bug#70922: [PATCH] Look at DEBBUGS_DATA for Debbugs data.
Date: Mon, 13 May 2024 12:54:44 -0700 [thread overview]
Message-ID: <20240513195444.29074-1-felix.lechner@lease-up.com> (raw)
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
reply other threads:[~2024-05-13 19:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240513195444.29074-1-felix.lechner@lease-up.com \
--to=bug-mumi@gnu.org \
--cc=70922@debbugs.gnu.org \
--cc=felix.lechner@lease-up.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.