GNU logs - #74980, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#74980: Home container do not instantiate ~/.guix-profile
Resent-From: Gabriel Wicki <gabriel@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 19 Dec 2024 21:16:01 +0000
Resent-Message-ID: <handler.74980.B.173464290920031 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 74980
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 74980 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.173464290920031
          (code B ref -1); Thu, 19 Dec 2024 21:16:01 +0000
Received: (at submit) by debbugs.gnu.org; 19 Dec 2024 21:15:09 +0000
Received: from localhost ([127.0.0.1]:40307 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tONrR-0005Cq-3A
	for submit <at> debbugs.gnu.org; Thu, 19 Dec 2024 16:15:09 -0500
Received: from lists.gnu.org ([209.51.188.17]:35888)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gabriel@HIDDEN>) id 1tONrP-0005AA-2R
 for submit <at> debbugs.gnu.org; Thu, 19 Dec 2024 16:15:07 -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 <gabriel@HIDDEN>)
 id 1tONpE-0000Bw-D5
 for bug-guix@HIDDEN; Thu, 19 Dec 2024 16:12:52 -0500
Received: from cotopaxi.ee.ethz.ch ([129.132.148.196])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gabriel@HIDDEN>)
 id 1tONpC-0007dN-PU
 for bug-guix@HIDDEN; Thu, 19 Dec 2024 16:12:52 -0500
Received: from localhost (antispam.ee.ethz.ch [129.132.2.16])
 by cotopaxi.ee.ethz.ch (Postfix) with ESMTP id 1665520072
 for <bug-guix@HIDDEN>; Thu, 19 Dec 2024 22:12:48 +0100 (CET)
X-Virus-Scanned: by amavisd at antispam.ee.ethz.ch
Received: from cotopaxi.ee.ethz.ch ([129.132.148.196])
 by localhost (antispam.ee.ethz.ch [129.132.2.16]) (amavisd-new, port 10028)
 with ESMTP id 4RTbajzOrwku for <bug-guix@HIDDEN>;
 Thu, 19 Dec 2024 22:12:47 +0100 (CET)
Received: from blackbox (212-51-128-25.fiber7.init7.net [212.51.128.25])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits)
 server-digest SHA256) (Client did not present a certificate)
 (Authenticated sender: gabriel)
 by cotopaxi.ee.ethz.ch (Postfix) with ESMTPSA
 for <bug-guix@HIDDEN>; Thu, 19 Dec 2024 22:12:47 +0100 (CET)
From: Gabriel Wicki <gabriel@HIDDEN>
Date: Thu, 19 Dec 2024 22:12:44 +0100
Message-ID: <87zfkrz8ab.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: permerror client-ip=129.132.148.196;
 envelope-from=gabriel@HIDDEN; helo=cotopaxi.ee.ethz.ch
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi there!

Invoking a home container does not create ~/.guix-profile (which in my case
is symlinked to ~/.guix-home/profile).  This leads to a problem when
testing my Emacs configuration, since I there add
~/.guix-profile/share/emacs/site-lisp to its load path.

I guess referring to ~/.guix-profile seems the smart choice, since it
could also work on home environments where I added the necessary
packages "manually" to my user's profile, so I consider only having
~/.guix-home to be somewhat off.

Any ideas on this?  Is this intended behaviour?  Is my configuration off?




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Gabriel Wicki <gabriel@HIDDEN>
Subject: bug#74980: Acknowledgement (Home container do not instantiate
 ~/.guix-profile)
Message-ID: <handler.74980.B.173464290920031.ack <at> debbugs.gnu.org>
References: <87zfkrz8ab.fsf@HIDDEN>
X-Gnu-PR-Message: ack 74980
X-Gnu-PR-Package: guix
Reply-To: 74980 <at> debbugs.gnu.org
Date: Thu, 19 Dec 2024 21:16:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 74980 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
74980: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74980
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#74980: [PATCH] home: container: Create symlink to .guix-home/profile.
References: <87zfkrz8ab.fsf@HIDDEN>
In-Reply-To: <87zfkrz8ab.fsf@HIDDEN>
Resent-From: Gabriel Wicki <gabriel@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 19 Dec 2024 21:18:02 +0000
Resent-Message-ID: <handler.74980.B74980.173464305820340 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 74980
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 74980 <at> debbugs.gnu.org
Received: via spool by 74980-submit <at> debbugs.gnu.org id=B74980.173464305820340
          (code B ref 74980); Thu, 19 Dec 2024 21:18:02 +0000
Received: (at 74980) by debbugs.gnu.org; 19 Dec 2024 21:17:38 +0000
Received: from localhost ([127.0.0.1]:40314 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tONtq-0005I0-Jk
	for submit <at> debbugs.gnu.org; Thu, 19 Dec 2024 16:17:38 -0500
Received: from cotopaxi.ee.ethz.ch ([129.132.148.196]:45821)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gabriel@HIDDEN>) id 1tONto-0005Hm-Kg
 for 74980 <at> debbugs.gnu.org; Thu, 19 Dec 2024 16:17:37 -0500
Received: from localhost (antispam.ee.ethz.ch [129.132.2.16])
 by cotopaxi.ee.ethz.ch (Postfix) with ESMTP id C8FB120072
 for <74980 <at> debbugs.gnu.org>; Thu, 19 Dec 2024 22:17:30 +0100 (CET)
X-Virus-Scanned: by amavisd at antispam.ee.ethz.ch
Received: from cotopaxi.ee.ethz.ch ([129.132.148.196])
 by localhost (antispam.ee.ethz.ch [129.132.2.16]) (amavisd-new, port 10028)
 with ESMTP id VguLAC0BRgpU for <74980 <at> debbugs.gnu.org>;
 Thu, 19 Dec 2024 22:17:29 +0100 (CET)
Received: from blackbox (212-51-128-25.fiber7.init7.net [212.51.128.25])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits)
 server-digest SHA256) (Client did not present a certificate)
 (Authenticated sender: gabriel)
 by cotopaxi.ee.ethz.ch (Postfix) with ESMTPSA
 for <74980 <at> debbugs.gnu.org>; Thu, 19 Dec 2024 22:17:29 +0100 (CET)
From: Gabriel Wicki <gabriel@HIDDEN>
Date: Thu, 19 Dec 2024 22:00:28 +0100
Message-ID: <87wmfvz82e.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/scripts/home.scm: Create the symlink.

Change-Id: Ib299c53f7cd0ca6ad204325b5c150d579224afd7
---
 guix/scripts/home.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm
index b4c82d275f..50aaf2abf6 100644
--- a/guix/scripts/home.scm
+++ b/guix/scripts/home.scm
@@ -344,6 +344,10 @@ (define* (spawn-home-container home
            (primitive-load (string-append #$home "/activate"))
            (setenv "GUIX_NEW_HOME" #f)
 
+           (system* "ln" "-s"
+                    (string-append #$home-directory "/.guix-home/profile")
+                    (string-append #$home-directory "/.guix-profile"))
+
            (when term
              ;; Preserve TERM for proper interactive use.
              (setenv "TERM" term))

base-commit: c3290cee6add60b7e56f5f919d9498d78542790a
-- 
2.46.0





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#74980: [PATCH] home: container: Create symlink to .guix-home/profile.
Resent-From: "Danny Milosavljevic" <dannym@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 21 Dec 2024 23:17:02 +0000
Resent-Message-ID: <handler.74980.B74980.173482301623494 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 74980
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 74980 <at> debbugs.gnu.org, gabriel@HIDDEN
Received: via spool by 74980-submit <at> debbugs.gnu.org id=B74980.173482301623494
          (code B ref 74980); Sat, 21 Dec 2024 23:17:02 +0000
Received: (at 74980) by debbugs.gnu.org; 21 Dec 2024 23:16:56 +0000
Received: from localhost ([127.0.0.1]:48309 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tP8iO-00066r-8Z
	for submit <at> debbugs.gnu.org; Sat, 21 Dec 2024 18:16:56 -0500
Received: from dd30410.kasserver.com ([85.13.145.193]:46892)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1tP8iL-00066g-9G
 for 74980 <at> debbugs.gnu.org; Sat, 21 Dec 2024 18:16:54 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scratchpost.org;
 s=kas202409041115; t=1734823011;
 bh=ws5GnvluQ9hY5ZBLZYLOiuDvvcUu3/VMW7zDz5OQs98=;
 h=Subject:To:References:From:In-Reply-To:Date:From;
 b=Jn5TdFFnyzlwZF+X7bmdTpOPyYqnG9Euyez31arJ9Lcdd/UkDKLWEz911UL2SrwCg
 PD6xXeFdkqeenXitKk+Pb2HjgWikwFqziTBS8p5gdVo0xRd4pqDUCc5h0N/Yzd6cO9
 yzS8FcA1054jXf5RKedvWW4sNKmppcY7N2PBt3tbwjjf8RJJKbwVKss1/lCduLeMDP
 N6jwzlVN3EkKP1ZK7GNbvuQXbTObDUAE4m64FaOF/vhtC34N89ZCS5m+0fhqQRXW61
 e13b8o1bDFROVluPPJKCMs8eTAStYiKFpTNcYuwUPRHy+LJ40JNXY3G9vh0QsRk2g2
 gPCryvRuCAgpQ==
Received: from dd30410.kasserver.com (dd0802.kasserver.com [85.13.143.1])
 by dd30410.kasserver.com (Postfix) with ESMTPSA id 6606A1120D1D;
 Sun, 22 Dec 2024 00:16:51 +0100 (CET)
References: <87zfkrz8ab.fsf@HIDDEN> <87wmfvz82e.fsf@HIDDEN>
From: "Danny Milosavljevic" <dannym@HIDDEN>
User-Agent: ALL-INKL Webmail 2.11
X-SenderIP: 213.147.164.14
MIME-Version: 1.0
In-Reply-To: <87wmfvz82e.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-Id: <20241221231651.6606A1120D1D@HIDDEN>
Date: Sun, 22 Dec 2024 00:16:51 +0100 (CET)
X-Spamd-Bar: /
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi,

Gabriel Wicki wrote on 19.12.2024 22:00 (GMT +01:00):
> * guix/scripts/home.scm: Create the symlink.
> 
> Change-Id: Ib299c53f7cd0ca6ad204325b5c150d579224afd7
> ---
>  guix/scripts/home.scm | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm
> index b4c82d275f..50aaf2abf6 100644
> --- a/guix/scripts/home.scm
> +++ b/guix/scripts/home.scm
> @@ -344,6 +344,10 @@ (define* (spawn-home-container home
>             (primitive-load (string-append #$home "/activate"))
>             (setenv "GUIX_NEW_HOME" #f)
>  
> + (system* "ln" "-s"
> + (string-append #$home-directory "/.guix-home/profile")
> + (string-append #$home-directory "/.guix-profile"))

Isn't that dangerous?

What happens if you invoke "guix install xyz" after that?

That would have guix mutate the contents of ~/.guix-profile , even though the .guix-home/profile is derived from a declarative manifest, right?

Or does it at  least only swap out the link for a new .guix-profile directory ?

I'm too much of a chicken to try...

I mean I can see what you mean but I'm not sure that guix expects the user to do that.





Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.