From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AJ36DVhQy1/9UQAA0tVLHw (envelope-from ) for ; Sat, 05 Dec 2020 09:18:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AHHGCVhQy18UKwAAbx9fmQ (envelope-from ) for ; Sat, 05 Dec 2020 09:18:16 +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 C8BB29402A9 for ; Sat, 5 Dec 2020 09:18:15 +0000 (UTC) Received: from localhost ([::1]:60720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klThl-0000Nu-Tq for larch@yhetil.org; Sat, 05 Dec 2020 04:18:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klTha-0000No-Td for bug-guix@gnu.org; Sat, 05 Dec 2020 04:18:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35007) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klTha-0002rd-KL for bug-guix@gnu.org; Sat, 05 Dec 2020 04:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klTha-0007hg-Fp for bug-guix@gnu.org; Sat, 05 Dec 2020 04:18: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: Sat, 05 Dec 2020 09:18:02 +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 Received: via spool by 45017-submit@debbugs.gnu.org id=B45017.160715987129589 (code B ref 45017); Sat, 05 Dec 2020 09:18:02 +0000 Received: (at 45017) by debbugs.gnu.org; 5 Dec 2020 09:17:51 +0000 Received: from localhost ([127.0.0.1]:46553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klThP-0007hB-EK for submit@debbugs.gnu.org; Sat, 05 Dec 2020 04:17:51 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:54495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klThN-0007gx-Cg for 45017@debbugs.gnu.org; Sat, 05 Dec 2020 04:17:50 -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 relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 725B440009; Sat, 5 Dec 2020 09:17:42 +0000 (UTC) From: Pierre Neidhardt In-Reply-To: <87ft4n2cax.fsf@yamatai> References: <87wnxzmdiy.fsf@ambrevar.xyz> <87im9j2j06.fsf@yamatai> <87360nm5b1.fsf@ambrevar.xyz> <87ft4n2cax.fsf@yamatai> Date: Sat, 05 Dec 2020 10:17:41 +0100 Message-ID: <874kl0sjbe.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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.89 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: C8BB29402A9 X-Spam-Score: -1.89 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: +gW2h1AHcOk5 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Tested! I've installed sbcl to my "common-lisp" profile along quri. I've also cloned quri to ~/common-lisp. Then: =2D-8<---------------cut here---------------start------------->8--- $ sbcl * (asdf:locate-system :quri) T NIL #P"/gnu/store/5gj1inwiqpn2fm9w384zd0grpyadx96m-sbcl-quri-0.1.0-2.b53231c/sh= are/common-lisp/sbcl/quri/quri.asd" NIL NIL NIL ;; Indeed: * (asdf:user-source-registry-directory) #P"/gnu/store/75qppl3a062b138fkrn324qq8f912zqh-profile/etc/common-lisp/sour= ce-registry.conf.d/" =2D-8<---------------cut here---------------end--------------->8--- It does not work because the sbcl package definition sets the XDG_CONFIG_DIRS native search path which is picked by user-source-registry-directory, which has higher priority than default-user-source-registry. I think the flaw is ASDF's this time: =2D-8<---------------cut here---------------start------------->8--- (defun user-source-registry-directory (&key (direction :input)) (xdg-config-pathname *source-registry-directory* direction)) ;... (defun xdg-config-pathnames (&rest more) "Return a list of pathnames for application configuration. MORE may contain specifications for a subpath relative to these directories= : a subpathname specification and keyword arguments as per RESOLVE-LOCATION \(s= ee also \"Configuration DSL\"\) in the ASDF manual." (filter-pathname-set `(,(xdg-config-home more) ,@(xdg-config-dirs more)))) =2D-8<---------------cut here---------------end--------------->8--- So the user registry looks into XDG_CONFIG_DIRS, while really it should just look at XDG_CONFIG_HOME. So this patch should do (untested): =2D-8<---------------cut here---------------start------------->8--- =2D (defun user-source-registry-directory (&key (direction :input)) =2D (xdg-config-pathname *source-registry-directory* direction)) + (defun user-source-registry-directory (&key (direction :input)) + (find-preferred-file (list (xdg-config-home *source-registry-directory*= )) :direction direction)) =2D-8<---------------cut here---------------end--------------->8--- If you confirm, then we should also report upstream I think. Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl/LUDUSHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/BysH/3/CNWf7ZX79XbLAYa+Y4HcUB+LkkYvp eR8vmSLMrPLNfvQ1JFMQbLlT/9M04EU2+5BHTGoflqn5UGN1+PaA1NvEj4C+lSXk HZq9RTIbeIas6ZG16AuqKX8IrNvWBdV6T6EgGA1dHXjKGF9eWutKP5G6Aeg1ifSD HUBk7MWyCXkb5Dp4g02JrjgHfGuSdAJJ1jqkVX9ptbB2m+ozwfprUCMkBZobaJRM mZZDzyDA91ee4HRJJUFHMfcZbwYIle6qSmSpyJwKscM6mXs6LPOV5us09wU6fedk RMzgBcIG3DR6iXIIIpMhEALsAiSqdoHw4Rmz/fEc1zdz1z7YhCpEc6E= =qGIj -----END PGP SIGNATURE----- --=-=-=--