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 ms0.migadu.com with LMTPS id aBE5JafawmHGJwEAgWs5BA (envelope-from ) for ; Wed, 22 Dec 2021 08:58:31 +0100 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 iL7ZIKfawmHbKwAAbx9fmQ (envelope-from ) for ; Wed, 22 Dec 2021 07:58:31 +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 2BB232A6BA for ; Wed, 22 Dec 2021 08:58:31 +0100 (CET) Received: from localhost ([::1]:57706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzwW6-0001ai-EI for larch@yhetil.org; Wed, 22 Dec 2021 02:58:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzwVe-0001aN-2Q for bug-guix@gnu.org; Wed, 22 Dec 2021 02:58:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzwVd-0007RZ-OP for bug-guix@gnu.org; Wed, 22 Dec 2021 02:58:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mzwVd-0003Re-M6 for bug-guix@gnu.org; Wed, 22 Dec 2021 02:58:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52727: When logged as user, GUILE_LOAD_COMPILED_PATH points to the system cache instead of the user cache Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 22 Dec 2021 07:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52727 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Denis 'GNUtoo' Carikli , 52727@debbugs.gnu.org Received: via spool by 52727-submit@debbugs.gnu.org id=B52727.164015983513167 (code B ref 52727); Wed, 22 Dec 2021 07:58:01 +0000 Received: (at 52727) by debbugs.gnu.org; 22 Dec 2021 07:57:15 +0000 Received: from localhost ([127.0.0.1]:56568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzwUs-0003QJ-Ld for submit@debbugs.gnu.org; Wed, 22 Dec 2021 02:57:14 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:27627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzwUp-0003Q7-Nc for 52727@debbugs.gnu.org; Wed, 22 Dec 2021 02:57:12 -0500 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4JJlz74WVHz1LXsR; Wed, 22 Dec 2021 08:57:07 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4JJlz74WVHz1LXsR DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1640159827; bh=nrneq4N3rnRYl3kYOKVSJvBd23SP2CutFPBZWVIFp9M=; h=Subject:From:To:Date:In-Reply-To:References:From; b=vOoy7LxanHZSBJXx65JMIKJxQUkrgNGFtZRJb2HDJsT8+mPhuzh/mDcYiM+iMQoa1 2TmDyskC+wBhb7w8ZP9UPldnDk926Waao/+Ox5cjnShBIuIxBQ/k6SnT/kUxmCiXlG cZxnwEzgncUQlgE/bpHAkPkjI4m/AovPCIHgRKtg= Message-ID: <7c94e1ff91741598e028d4e0f32dba8ee0b38026.camel@ist.tugraz.at> From: Liliana Marie Prikler Date: Wed, 22 Dec 2021 08:57:06 +0100 In-Reply-To: <20211222011647.2d41452f@primary_laptop> References: <20211222011647.2d41452f@primary_laptop> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640159911; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nrneq4N3rnRYl3kYOKVSJvBd23SP2CutFPBZWVIFp9M=; b=m4AKgBL6yie3r086Zbnyogk8s98s76oA8ChI4bH5YDGzsBeWQUNfkCYUuu2ngWP7f8ahix btMi96FJ7CagdmqITZ/c34VMpxX7KgaYMmjsxRQsBdCDc3TFMJawqEgE4BJtvPDzh4kMBp MUJsxIysnw0U/wpRx4MOXs37b463Qu4+xW9CLEAhlvA8H7mJ+cX3buJgWdOBMGP0k+sxgG tTFEzTR93HIjKAysq9dfC2V89PG03CMKy4SGoeQ6n9YuTCXo9ZbWyn8GE8rzM0DQ2WPRGg a6PjzQmmk5IM448y0smaMXCR2+yC5ZlbsybAsA6ZOYrUnEzgGhtPGRC1oLZxaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640159911; a=rsa-sha256; cv=none; b=XEzDkSJCU3AEG6g/zo0CawtEczkJ+pzMdAzI+SRR0EpaLTsnOp0HPq4C7GxAJnlOmUj2F/ tplCd8iuE8ha7GbyYWRgcyfa2hpxnyoGRak6LFKHBxHeCKYSBxh+isL6wtLC99+kRPvKmq hNW4SAcdkTPzckw7wb72sQeTLgfjtZ1M1dO5B66VYowNekL90Wfe99nfPJaLszjxS8r3Vq S3ndeY4PaMuLcn0jKJ5ympL9PXtrPa52S38W2U7ZfXo/iW5ilw5x2ogA4de743bXMp90Qq w7FyQRcEsE3yCCILLwdBzp5v8/aSoFCoA5YJf8wREwRYCulP6dBuv2SWwixqyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=vOoy7Lxa; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=vOoy7Lxa; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2BB232A6BA X-Spam-Score: -3.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: puG6XnnGd/jH Hi Denis, Am Mittwoch, dem 22.12.2021 um 01:16 +0100 schrieb Denis 'GNUtoo' Carikli: > [A]s user GUILE_LOAD_COMPILED_PATH is somehow exported to system > paths: > > [gnutoo@primary_laptop ~]$ echo $GUILE_LOAD_COMPILED_PATH > > /run/current-system/profile/lib/guile/3.0/site-ccache:/run/current- > > system/profile/share/guile/site/3.0 > > So if I instead set it to the right paths it works again: > > [gnutoo@primary_laptop guix]$ export > > GUILE_LOAD_COMPILED_PATH="/home/gnutoo/.config/guix/current/lib/guile > > /3.0/site- > > ccache:/home/gnutoo/.config/guix/current/share/guile/site/3.0" > > [gnutoo@primary_laptop guix]$ guix package -i hello > > The following package will be upgraded: > >    hello (dependencies or package changed) > > > > nothing to be done > > 'GUILE_LOAD_COMPILED_PATH="" guix package -i hello' also works. > > In my case the issue is that having > '/run/current-system/profile/lib/guile/3.0/site-ccache' in > GUILE_LOAD_COMPILED_PATH makes it fail: > > [gnutoo@primary_laptop guix]$ export > > GUILE_LOAD_COMPILED_PATH=/run/current- > > system/profile/lib/guile/3.0/site-ccache > > [gnutoo@primary_laptop guix]$ guix package -i hello Backtrace: > > In ice-9/boot-9.scm: > >    222:29 19 (map1 (((gnu packages gnupg)) ((gnu packages golang)) > > …)) > [...] > > And apparently it fails just because it is in the path: > > [gnutoo@primary_laptop guix]$ export > > GUILE_LOAD_COMPILED_PATH="/home/gnutoo/.config/guix/current/lib/guile > > /3.0/site- > > ccache:/home/gnutoo/.config/guix/current/share/guile/site/3.0:/run/cu > > rrent-system/profile/lib/guile/3.0/site-ccache" > > [gnutoo@primary_laptop guix]$ guix package -i hello Backtrace: > > In ice-9/boot-9.scm: > >    222:29 19 (map1 (((gnu packages gnupg)) ((gnu packages golang)) > > …)) > [...] > > This behavior probably happens becuase the system guix wasn't updated > with guix system reconfigure for some time, and that the user relies on > the system guile cache. > > And as I understand from #guix on liberachat, I'm supposed to be able > to not keep my user profile and my guix system in sync. This is only true to some extent. The local guix command still relies on things in the system, such as the guix daemon itself, so you ought to keep it up to date. GUILE_LOAD_PATH does not point to the system cache "instead of" the user cache, it gets expanded via profiles as everything else. Since Guix has a system-wide installation of guile-3.0-latest, the guile paths get set. You should probably install Guile locally instead of system-wide if you plan on having the two diverge farther. > Would the solution to that be to correctly export > GUILE_LOAD_COMPILED_PATH in  ~/.guix-profile/etc/profile like it is > done in the patch I attached (with an extra small modification in the > commit message to mention the bug report)? No. The Guix command as built by `guix pull' sets its own load path, but respects system paths too. You can check by spawning a REPL: scheme@(guix-user)> %load-path $1 = ("/gnu/store/yi47s6iy3glwzimy3nch1h7c9hjzmyw8-guix-module- union/share/guile/site/3.0" "/gnu/store/3h3jn0745ngd87zp83k5smwhykxvdfgf-guile- 3.0.7/share/guile/3.0" "/gnu/store/3h3jn0745ngd87zp83k5smwhykxvdfgf- guile-3.0.7/share/guile/3.0" "/gnu/store/3h3jn0745ngd87zp83k5smwhykxvdfgf-guile- 3.0.7/share/guile/site/3.0" "/gnu/store/3h3jn0745ngd87zp83k5smwhykxvdfgf-guile- 3.0.7/share/guile/site" "/gnu/store/3h3jn0745ngd87zp83k5smwhykxvdfgf- guile-3.0.7/share/guile" "/run/current- system/profile/share/guile/site/3.0") > Other commits fixing bugs in that same profile mentioned bug reports, > so I assume that it's simplier to discuss the bug in a bug report > than directly sending a patch to fix the issue. > > Note that I also didn't test the patch yet but I did test that export > command. For the record, guile has been a part of the system profile since %base-packages were first defined, so if your load paths break, there is probably a larger issue at hand. In this particular case, your local guix profile ought to shadow anything that's in /run/current- system, so I don't really get how the ABI match is triggered. Perhaps you might want to debug that in a REPL. Cheers