From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KRNRC/DcyF8peQAA0tVLHw (envelope-from ) for ; Thu, 03 Dec 2020 12:41:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id JauVBvDcyF8bDwAAB5/wlQ (envelope-from ) for ; Thu, 03 Dec 2020 12:41:20 +0000 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 7F79A9408E7 for ; Thu, 3 Dec 2020 12:41:19 +0000 (UTC) Received: from localhost ([::1]:39014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kknvA-0001a0-DL for larch@yhetil.org; Thu, 03 Dec 2020 07:41:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kknuw-0001Y8-GB for bug-guix@gnu.org; Thu, 03 Dec 2020 07:41:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kknuw-0004rS-5v for bug-guix@gnu.org; Thu, 03 Dec 2020 07:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kknuw-00044u-1Z for bug-guix@gnu.org; Thu, 03 Dec 2020 07:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45017: asdf-build-system packages have priority over user ones Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 03 Dec 2020 12:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45017 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Guillaume Le Vaillant X-Debbugs-Original-Cc: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160699921315590 (code B ref -1); Thu, 03 Dec 2020 12:41:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Dec 2020 12:40:13 +0000 Received: from localhost ([127.0.0.1]:38873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kknu8-00043O-Fm for submit@debbugs.gnu.org; Thu, 03 Dec 2020 07:40:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:59146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kknu7-00043G-Gk for submit@debbugs.gnu.org; Thu, 03 Dec 2020 07:40:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kknu7-0000c8-5p for bug-guix@gnu.org; Thu, 03 Dec 2020 07:40:11 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:32833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kknu4-0004WM-Ko for bug-guix@gnu.org; Thu, 03 Dec 2020 07:40:10 -0500 X-Originating-IP: 90.92.160.122 Received: from bababa (lfbn-idf2-1-1094-122.w90-92.abo.wanadoo.fr [90.92.160.122]) (Authenticated sender: mail@ambrevar.xyz) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id E8CDB60010; Thu, 3 Dec 2020 12:40:03 +0000 (UTC) From: Pierre Neidhardt In-Reply-To: <87im9j2j06.fsf@yamatai> References: <87wnxzmdiy.fsf@ambrevar.xyz> <87im9j2j06.fsf@yamatai> Date: Thu, 03 Dec 2020 13:40:02 +0100 Message-ID: <87360nm5b1.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.183.195; envelope-from=mail@ambrevar.xyz; helo=relay3-d.mail.gandi.net X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.1 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.501, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 45017@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.88 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 7F79A9408E7 X-Spam-Score: -1.88 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: l+Q30aT0YJhQ --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Oh, I had missed that! Good thing I asked you first then ;) > --8<---------------cut here---------------start------------->8--- > (substitute* dst-asdf > (("\\(xdg-config-pathname \\*source-registry-directory\\* direction\\)") > "`(:source-registry > (:include (xdg-config-home \"common-lisp/source-registry.conf.d/\")) > ,@(loop > for dir in (xdg-config-dirs > \"common-lisp/source-registry.conf.d/\") > collect `(:include ,dir)) > :inherit-configuration)") > (("\\(xdg-config-pathname \\*output-translations-directory\\* direction= \\)") > "`(:output-translations > (:include (xdg-config-home \"common-lisp/asdf-output-translations.c= onf.d/\")) > ,@(loop > for dir in (xdg-config-dirs > \"common-lisp/asdf-output-translations.conf.d/\") > collect `(:include ,dir)) > :inherit-configuration)"))) > --8<---------------cut here---------------end--------------->8--- Hmm, I don't think this would work when the user has no ~/.config/common-lisp/source-registry.conf. Would it? > Or maybe we could make a better patch not changing > 'user-source-registry-directory', but adding a new > 'guix-source-registry' between 'default-user-source-registry' and > 'system-source-registry' in the list of registries (and likewise for > output-translations). > I think this way the systems in '$HOME/.config/...', '$HOME/.local/...' > or '$HOME/common-lisp/...' will have priority on the ones in Guix > profiles. I like it! Possible pitfall: if the user set *default-source-registries* in their Lisp RC file (e.g. ~/.sbclrc) this will prevent ASDF from seeing this new Guix source registry. Alternately, we could simply move the patch from user-source-registry-directory to system-source-registry-directory; same for the output translation. Thoughts? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl/I3KISHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/LyEIAIOLqM6j/i0zNRhs6V8YbmxSDvO5FUuS W7EBLjUTeu2m7ecpoRcUKEuqMY5YsrXt59Ep8p+atPwPMSMA4TvLew+wtyJ10NiM KzBTosypVs8BpBab9EA4Jd0kykWEr7tukTTc9mylfnZ/oH3DJL7UwmLUTlkcMLTs bcieDZZSD+PLzF12/wMOyb3f32NmKd/p/RFmD1u2g8y++3oT3xyRWxEq59T8AbPg vOfBYlTvRs8eFBpqAFfwQSB3enulKV2lCoXvL8oAsj4hTmbkmNLU2I+fZ6pU1vl3 u0F6XSO/noY7JRUdu1ILpA6w1hcbDpy/U7hYuNvD+VnSUnLPO+95WB4= =nc8L -----END PGP SIGNATURE----- --=-=-=--