From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 2FxPEmFwQmbsgAEAe85BDQ:P1 (envelope-from ) for ; Mon, 13 May 2024 21:56:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2FxPEmFwQmbsgAEAe85BDQ (envelope-from ) for ; Mon, 13 May 2024 21:56:17 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=NH+CK9rW; spf=pass (aspmx1.migadu.com: domain of "bug-mumi-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-mumi-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715630177; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=812eC62dgpYT9OSkPR/i8ai5u18BCF/Kl4nbtvS4NWQ=; b=ICAbpYPHTkKebGmfIdlie2sLI5IdIUChO8V/RzH5a4klmgay6At+hZY8acNuifOFQ93qy8 9krZkvLcALUUoPYuxUC7ZzWPa2CjLZkdU18XifKMBHaao6H89JJRFhZ1sV/jIHokfsa+ja IAfbkGX8ZRipoCuSB+sRp/1k80rTvYHK+4m0nUrQOyaipQ9ucagkj3xBsAT2kSAXHse/l4 gQUNqJ+o0DJcYltOOKZflApIHCUyePVfG7GRxoIWPJVxFv3JAfP4EL0MyXzbP/ENbywI2M LvXcm3rZ6W4m+vAG5l1ewuXtlbgFUlVnAV0XvbWQVmIeH/x4cugFmrBKKO6QWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=NH+CK9rW; spf=pass (aspmx1.migadu.com: domain of "bug-mumi-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-mumi-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715630177; a=rsa-sha256; cv=none; b=Ck/RpLbbmT/7yACknYB/26dC8LyapaCbtinDrFNB3mB2BqcmrPkdJM0ofxQReOEp0K1hX1 C25mhER/wG3JoReg9X9OWqaJk4JUQQFfoxymFIUO+o/6/EinFtSreUly9A+/S0vzLBIund VSHigxlwkZTQO9fp0suknyUUChcvpyjMbxmKUQ1Z0cXhI+6ivEiCJl6faEskhspz098VLU DuCj5e7qjvwvNm1zjmPUzQZtK+wP2rVld0cEHwMP87DnJQXib+IYyPqr//BwtDpwwytN/y yo7/cyA2WA953F8g0n8vI7fluWmAC+ixihy8doiLe/HNCrm1vZYdBxJq6aR/4A== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 67B016D888 for ; Mon, 13 May 2024 21:56:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6bmF-0002dZ-AS; Mon, 13 May 2024 15:56:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6bmD-0002d5-Mt for bug-mumi@gnu.org; Mon, 13 May 2024 15:56:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s6bmD-00053X-Dx for bug-mumi@gnu.org; Mon, 13 May 2024 15:56:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s6bmD-00006a-Pt for bug-mumi@gnu.org; Mon, 13 May 2024 15:56:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#70922: [PATCH] Look at DEBBUGS_DATA for Debbugs data. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: bug-mumi@gnu.org Resent-Date: Mon, 13 May 2024 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70922 X-GNU-PR-Package: mumi X-GNU-PR-Keywords: patch To: 70922@debbugs.gnu.org Cc: Felix Lechner X-Debbugs-Original-To: bug-mumi@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1715630122391 (code B ref -1); Mon, 13 May 2024 19:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 May 2024 19:55:22 +0000 Received: from localhost ([127.0.0.1]:34514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6blW-00006F-8U for submit@debbugs.gnu.org; Mon, 13 May 2024 15:55:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:59934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6blR-000069-2w for submit@debbugs.gnu.org; Mon, 13 May 2024 15:55:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6blO-0002DT-Li for bug-mumi@gnu.org; Mon, 13 May 2024 15:55:12 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1s6bl6-0004jG-GO for bug-mumi@gnu.org; Mon, 13 May 2024 15:55:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=Bd5aLAMnHO9alta cmK5QcIihj3EaanZU2Pepp/+f5fQ=; h=date:subject:cc:to:from; d=lease-up.com; b=NH+CK9rWzbWdeDLRHs2lZsuQAzm1x2iuT4BbDW99gVWLDryltGDd Q6bq/4MC9MmSlCJ3Aeof7OGzwjH4w5r/rCiqHQNgeDvqMKTAx6w3xihIc3zNr/VtOKljSW fY430p01yFcPiwHeTau6b4eFRbJTU5q4w7aPQLF+0+/x5YTXc= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 80e167d6 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Mon, 13 May 2024 19:54:50 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 5a82ffc1; Mon, 13 May 2024 19:54:49 +0000 (UTC) Date: Mon, 13 May 2024 12:54:44 -0700 Message-ID: <20240513195444.29074-1-felix.lechner@lease-up.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@us-core.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-mumi@gnu.org List-Id: "Bug reports for GNU Guix Mumi." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Bug-mumi From: Felix Lechner via Bug-mumi via "Bug reports for GNU Guix Mumi." Errors-To: bug-mumi-bounces+larch=yhetil.org@gnu.org Sender: bug-mumi-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.57 X-Spam-Score: -6.57 X-Migadu-Queue-Id: 67B016D888 X-Migadu-Scanner: mx13.migadu.com X-TUID: PMU/iyCtuZ+k 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