From unknown Sat Jun 21 12:32:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76141: guix locate --clear tries to write to readonly database Resent-From: yelninei@tutamail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 08 Feb 2025 08:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76141 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 76141@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173900298930033 (code B ref -1); Sat, 08 Feb 2025 08:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Feb 2025 08:23:09 +0000 Received: from localhost ([127.0.0.1]:38271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tgg7I-0007oI-OD for submit@debbugs.gnu.org; Sat, 08 Feb 2025 03:23:09 -0500 Received: from lists.gnu.org ([2001:470:142::17]:53436) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tgg4X-0007iY-M7 for submit@debbugs.gnu.org; Sat, 08 Feb 2025 03:20:18 -0500 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 1tgg4P-0005f5-Tk for bug-guix@gnu.org; Sat, 08 Feb 2025 03:20:09 -0500 Received: from mail.w13.tutanota.de ([185.205.69.213]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tgg4N-0002hw-1S for bug-guix@gnu.org; Sat, 08 Feb 2025 03:20:09 -0500 Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id CF0375DD0219 for ; Sat, 8 Feb 2025 09:19:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1739002772; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=Ak7cIk638LTdvsuaPe5Cj+Ytk1nzeoRXPpbr3gtwLcg=; b=FtXVIly2ccZ78Sx2PUdyhaT9b9OnLJcsFry8mF/u9QjBmDKsKJuQGk2Od9EunjRd lz2F61TxB7XCrtK5kwWcs4CDTz6Hb0STBwJ3d30ykaI0g6DZzRhStUUIZPs3DnwTtWi VTgjYskcXGQOUAfCrhpOWqKLdahHTkQVRwGcn9LFVglZ0PUvvp5JUQcNLrXpDqClZm4 AFvAdI1gD8G63+psEacPtYutnHfofy76OnEvhNs5f4BjhWG3Z0+AI8TrSuOXb0uSb/P sFg1By2tdYChTlG21j8hhuqMdfTuZu9pH9JPN2Ulx75/24L9OUzU3aVv1tJOd7q9Qmz AwJePgr1lw== Date: Sat, 8 Feb 2025 09:19:32 +0100 (CET) From: yelninei@tutamail.com Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.205.69.213; envelope-from=yelninei@tutamail.com; helo=mail.w13.tutanota.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Mailman-Approved-At: Sat, 08 Feb 2025 03:23:07 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) When a system wide database exists (at /var/cache/guix/locate/db.sqlite) 'g= uix locate --clear' invoked as an unprivileged user tries to write to it an= d fail. Steps to reproduce: -=C2=A0sudo mkdir -p /var/cache/guix/locate -=C2=A0sudo touch /var/cache/guix/locate/db.sqlite - guix locate --clear Observe the exception: ice-9/boot-9.scm:1685:16: In procedure raise-exception: Throw to key `sqlite-error' with args `(sqlite-exec 8 "attempt to write a r= eadonly database")'. I think the issue is that the 'suitable-database' procedure does not get pa= ssed the CREATE?=20 parameter (indicating that we want a writable db)=C2=A0 when '--clear'=C2= =A0 is given. I discovered this because this caused the guix-locate.sh test to fail in an= normal checkout.=20 The db in /var/cache/guix/locate/db.sqlite is created and updated via the p= ackage-database-service-type. Thanks. From unknown Sat Jun 21 12:32:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76141: References: In-Reply-To: Resent-From: yelninei@tutamail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 13 Apr 2025 09:27:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76141 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 76141 <76141@debbugs.gnu.org> Cc: Josselin Poiret , Simon Tournier , Mathieu Othacehe , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Christopher Baines Received: via spool by 76141-submit@debbugs.gnu.org id=B76141.174453639429813 (code B ref 76141); Sun, 13 Apr 2025 09:27:04 +0000 Received: (at 76141) by debbugs.gnu.org; 13 Apr 2025 09:26:34 +0000 Received: from localhost ([127.0.0.1]:38928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u3tbk-0007ka-O1 for submit@debbugs.gnu.org; Sun, 13 Apr 2025 05:26:34 -0400 Received: from mail.w13.tutanota.de ([185.205.69.213]:60580) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u3tbh-0007jU-R1 for 76141@debbugs.gnu.org; Sun, 13 Apr 2025 05:26:30 -0400 Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id 5FCD579A617F for <76141@debbugs.gnu.org>; Sun, 13 Apr 2025 11:26:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1744536383; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=GPlQqZ4+mCckPOSW6EJBfMFoYnDTKjSqJUKrbDIjc/g=; b=VTd05pg8f1ecrqp4QWv8Vx668HgE+iI5azZTTctAGL/VxJlVqpmKt0UL+t5hhfWT uWjwPGw3enrPEml1VxO+l1Z13Oj7IvIcivZ/8kskQ2/9ALdfes4Fw8xRwNmB/5aeTAU VlXX5AFlKvBQO158zmi8dBDAmyWRc0BF2q5YH95G054Zidkex8w28IO+4nDUVX8CFhz /fCC2iosA2k92zRUeGQmLHa+mxInqVXTU5KQXO/9hON0/ztkDbQS9TiFUj/Q9hF8/Kg NH3vMvZ8bWW/0Z7di6GAgau22aPkf5ROu85PQFtLjJgvxFyKx7blwyA7+fmVgT5U8MH H05nxL9Jog== Date: Sun, 13 Apr 2025 11:26:23 +0200 (CEST) From: yelninei@tutamail.com Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_126763_290902752.1744536383386" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Something like this fixes my issue. From c6333e210b6fd38b710800d9fc9b898f9b4409e2 Mon Sep 17 00:00:00 2001 Message-ID: F [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [185.205.69.213 listed in list.dnswl.org] 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [185.205.69.213 listed in sa-accredit.habeas.com] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [185.205.69.213 listed in bl.score.senderscore.com] 0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [185.205.69.213 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 2.0 BLANK_SUBJECT Subject is present but empty X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) ------=_Part_126763_290902752.1744536383386 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Something like this fixes my issue. ------=_Part_126763_290902752.1744536383386 Content-Type: text/x-patch; charset=us-ascii; name=0001-locate-Request-writable-db-for-clear.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-locate-Request-writable-db-for-clear.patch >From c6333e210b6fd38b710800d9fc9b898f9b4409e2 Mon Sep 17 00:00:00 2001 Message-ID: From: Yelninei Date: Sun, 13 Apr 2025 09:08:39 +0000 Subject: [PATCH] locate: Request writable db for --clear. Fixes https://issues.guix.gnu.org/76141. * guix/scripts/locate.scm (guix-locate): Use writable db when --clear is given. Change-Id: I2e4e945cef022b08dd6af4c252e67c2a4d5bf38c --- guix/scripts/locate.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guix/scripts/locate.scm b/guix/scripts/locate.scm index f8ee875c7c..b42011f8c4 100644 --- a/guix/scripts/locate.scm +++ b/guix/scripts/locate.scm @@ -624,7 +624,8 @@ (define-command (guix-locate . args) (clear? (assoc-ref opts 'clear?)) (update? (assoc-ref opts 'update?)) (glob? (assoc-ref opts 'glob?)) - (database ((assoc-ref opts 'database) update? age-update-threshold)) + (database ((assoc-ref opts 'database) + (or clear? update?) age-update-threshold)) (method (assoc-ref opts 'method)) (files (reverse (filter-map (match-lambda (('argument . arg) arg) base-commit: a33e152f2eb9927be5942b00bdaaecba737c650f -- 2.49.0 ------=_Part_126763_290902752.1744536383386-- From unknown Sat Jun 21 12:32:01 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: yelninei@tutamail.com Subject: bug#76141: closed (Re: none) Message-ID: References: <87mschfu4o.fsf@gnu.org> X-Gnu-PR-Message: they-closed 76141 X-Gnu-PR-Package: guix Reply-To: 76141@debbugs.gnu.org Date: Tue, 15 Apr 2025 15:03:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1744729383-6689-1" This is a multi-part message in MIME format... ------------=_1744729383-6689-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #76141: guix locate --clear tries to write to readonly database which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 76141@debbugs.gnu.org. --=20 76141: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76141 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1744729383-6689-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 76141-done) by debbugs.gnu.org; 15 Apr 2025 15:02:12 +0000 Received: from localhost ([127.0.0.1]:53415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u4hnf-0001gE-4T for submit@debbugs.gnu.org; Tue, 15 Apr 2025 11:02:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35654) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u4hnc-0001fX-SJ for 76141-done@debbugs.gnu.org; Tue, 15 Apr 2025 11:02:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u4hnV-0002MR-6x; Tue, 15 Apr 2025 11:02:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=341AnTMh1H3snjFzwxgB7oRSon+B12KLxDySegliCSU=; b=e/ec4XHqCOi+aSeEfiaF k3kXrWqnU8vFIwIPJbMW37DgFGQ9uocGQoADtf6CDIdDa9oLwy7awx9v7k3UBUaQw56cnBgPeIsYd shHDFmZqMDk9r7wia+PcF7e/BJp8tyidcaFashpCUwR8FumZG+jlfYcf/bpTjo4G11OPGlp8TfwEX oplZKpw9TWi7W5s+gDO4rrS1PtiE40gszgISddag5JxMqxJj9MJrAwuvx/u2jViNxf6AHODEZX1NM 1uSDASP3hTtIrHBBs/6RNo++QwXMyWlqT+cEQEL2DOBe2cycPyoi5U5iI/A+7jwsSwk2+nFjgy8+C YZmgBkV+ua6haw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: yelninei@tutamail.com Subject: Re: none In-Reply-To: (yelninei@tutamail.com's message of "Sun, 13 Apr 2025 11:26:23 +0200 (CEST)") References: User-Agent: mu4e 1.12.9; emacs 29.4 X-URL: https://people.bordeaux.inria.fr/lcourtes/ X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu X-Revolutionary-Date: Sextidi 26 Germinal an 233 de la =?utf-8?Q?R=C3=A9vo?= =?utf-8?Q?lution=2C?= jour du Lilas Date: Tue, 15 Apr 2025 15:10:15 +0200 Message-ID: <87mschfu4o.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76141-done Cc: Josselin Poiret , Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , 76141 <76141-done@debbugs.gnu.org>, Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) yelninei@tutamail.com writes: > From c6333e210b6fd38b710800d9fc9b898f9b4409e2 Mon Sep 17 00:00:00 2001 > Message-ID: > From: Yelninei > Date: Sun, 13 Apr 2025 09:08:39 +0000 > Subject: [PATCH] locate: Request writable db for --clear. >=20 > Fixes https://issues.guix.gnu.org/76141. >=20 > * guix/scripts/locate.scm (guix-locate): Use writable db when --clear is = given. >=20 > Change-Id: I2e4e945cef022b08dd6af4c252e67c2a4d5bf38c Applied, thanks! Ludo=E2=80=99. ------------=_1744729383-6689-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Feb 2025 08:23:09 +0000 Received: from localhost ([127.0.0.1]:38271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tgg7I-0007oI-OD for submit@debbugs.gnu.org; Sat, 08 Feb 2025 03:23:09 -0500 Received: from lists.gnu.org ([2001:470:142::17]:53436) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tgg4X-0007iY-M7 for submit@debbugs.gnu.org; Sat, 08 Feb 2025 03:20:18 -0500 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 1tgg4P-0005f5-Tk for bug-guix@gnu.org; Sat, 08 Feb 2025 03:20:09 -0500 Received: from mail.w13.tutanota.de ([185.205.69.213]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tgg4N-0002hw-1S for bug-guix@gnu.org; Sat, 08 Feb 2025 03:20:09 -0500 Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id CF0375DD0219 for ; Sat, 8 Feb 2025 09:19:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1739002772; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=Ak7cIk638LTdvsuaPe5Cj+Ytk1nzeoRXPpbr3gtwLcg=; b=FtXVIly2ccZ78Sx2PUdyhaT9b9OnLJcsFry8mF/u9QjBmDKsKJuQGk2Od9EunjRd lz2F61TxB7XCrtK5kwWcs4CDTz6Hb0STBwJ3d30ykaI0g6DZzRhStUUIZPs3DnwTtWi VTgjYskcXGQOUAfCrhpOWqKLdahHTkQVRwGcn9LFVglZ0PUvvp5JUQcNLrXpDqClZm4 AFvAdI1gD8G63+psEacPtYutnHfofy76OnEvhNs5f4BjhWG3Z0+AI8TrSuOXb0uSb/P sFg1By2tdYChTlG21j8hhuqMdfTuZu9pH9JPN2Ulx75/24L9OUzU3aVv1tJOd7q9Qmz AwJePgr1lw== Date: Sat, 8 Feb 2025 09:19:32 +0100 (CET) From: yelninei@tutamail.com To: bug-guix@gnu.org Message-ID: Subject: guix locate --clear tries to write to readonly database MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.205.69.213; envelope-from=yelninei@tutamail.com; helo=mail.w13.tutanota.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 08 Feb 2025 03:23:07 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) When a system wide database exists (at /var/cache/guix/locate/db.sqlite) 'g= uix locate --clear' invoked as an unprivileged user tries to write to it an= d fail. Steps to reproduce: -=C2=A0sudo mkdir -p /var/cache/guix/locate -=C2=A0sudo touch /var/cache/guix/locate/db.sqlite - guix locate --clear Observe the exception: ice-9/boot-9.scm:1685:16: In procedure raise-exception: Throw to key `sqlite-error' with args `(sqlite-exec 8 "attempt to write a r= eadonly database")'. I think the issue is that the 'suitable-database' procedure does not get pa= ssed the CREATE?=20 parameter (indicating that we want a writable db)=C2=A0 when '--clear'=C2= =A0 is given. I discovered this because this caused the guix-locate.sh test to fail in an= normal checkout.=20 The db in /var/cache/guix/locate/db.sqlite is created and updated via the p= ackage-database-service-type. Thanks. ------------=_1744729383-6689-1--