GNU logs - #20255, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 04 Apr 2015 10:30:03 +0000
Resent-Message-ID: <handler.20255.B.142814338326103 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 20255 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.142814338326103
          (code B ref -1); Sat, 04 Apr 2015 10:30:03 +0000
Received: (at submit) by debbugs.gnu.org; 4 Apr 2015 10:29:43 +0000
Received: from localhost ([127.0.0.1]:44344 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YeLKg-0006mw-Er
	for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49766)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKe-0006mh-AR
 for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKY-00033u-IP
 for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:35 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:60041)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKY-00033q-FS
 for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51484)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKX-0006mP-H2
 for bug-guix@HIDDEN; Sat, 04 Apr 2015 06:29:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKU-000338-C3
 for bug-guix@HIDDEN; Sat, 04 Apr 2015 06:29:33 -0400
Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]:34585)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKU-000331-5F
 for bug-guix@HIDDEN; Sat, 04 Apr 2015 06:29:30 -0400
Received: by pdbni2 with SMTP id ni2so148159933pdb.1
 for <bug-guix@HIDDEN>; Sat, 04 Apr 2015 03:29:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:user-agent:date:message-id:mime-version
 :content-type; bh=MxvZliEufHR77gjiVphQ1jGyf09M2hnrpvuZzqLE4ZI=;
 b=cKVCnE5jNcDoshbAF4Qpq7Fo24xuTQIJSUgpEIyKIXwFk6UH55O7oBvUIRfz1MGEcx
 GWU8gtss2xGGSGsU7xSRZWXx/aqQ1Bpu40sc9/tQvzxmyaHqep4TGQvihZS8Gsa7G1Ub
 owflqYQFgr8/xW+tV9K0UcM6xfMDG9kN8zmNuAnhA6yt8ztTwP6eUYxy4x6KUYxE4Fsu
 IKDsQRiZtTIpuZA273lye1lKwqQiIeOriH6jFOt/XxcJ/UaPuIRmyFW3iDEswJ+3Afhu
 KpL/3Hjt5XwzlM9Npk434YejUM39e8DNQKx6Sur1Spz6xnXi8PpMc2OprVQkeDDwo/u+
 E5ig==
X-Received: by 10.66.55.74 with SMTP id q10mr11172872pap.94.1428143369058;
 Sat, 04 Apr 2015 03:29:29 -0700 (PDT)
Received: from localhost ([108.61.250.36])
 by mx.google.com with ESMTPSA id oq7sm10663684pac.32.2015.04.04.03.29.27
 for <bug-guix@HIDDEN>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 04 Apr 2015 03:29:28 -0700 (PDT)
From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1
 (x86_64-unknown-linux-gnu)
Date: Sat, 04 Apr 2015 18:29:58 +0800
Message-ID: <877ftschjt.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -4.0 (----)

Currently, search-paths built only from packages in user's profile.
As reported by Andy Wingo in #guix, when I have:
  perl installed into system profile
  perl-xml-parser installed into user profile
  
guix package --search-paths won't give a hint about PERL5LIB,
so it's very likely end up with a broken XML::Parser.
Another interesting fact is that we have both guile and guix in
system profile, but the guix modules isn't work out-of-the-box
on GuixSD.




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Subject: bug#20255: Acknowledgement ('search-paths' should respect both
 user and system profile.)
Message-ID: <handler.20255.B.142814338326103.ack <at> debbugs.gnu.org>
References: <877ftschjt.fsf@HIDDEN>
X-Gnu-PR-Message: ack 20255
X-Gnu-PR-Package: guix
Reply-To: 20255 <at> debbugs.gnu.org
Date: Sat, 04 Apr 2015 10:30:05 +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 20255 <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
20255: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20255
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 04 Apr 2015 21:05:01 +0000
Resent-Message-ID: <handler.20255.B20255.14281814928705 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.14281814928705
          (code B ref 20255); Sat, 04 Apr 2015 21:05:01 +0000
Received: (at 20255) by debbugs.gnu.org; 4 Apr 2015 21:04:52 +0000
Received: from localhost ([127.0.0.1]:44937 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YeVFM-0002GI-0T
	for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 17:04:52 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:39360 ident=Debian-exim)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1YeVFJ-0002G8-IL
 for 20255 <at> debbugs.gnu.org; Sat, 04 Apr 2015 17:04:50 -0400
Received: from reverse-83.fdn.fr ([80.67.176.83]:46701 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1YeVFI-0001hO-Ei; Sat, 04 Apr 2015 17:04:48 -0400
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 15 Germinal an 223 de la =?UTF-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x3D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Sat, 04 Apr 2015 23:04:46 +0200
In-Reply-To: <877ftschjt.fsf@HIDDEN> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s
 message of "Sat, 04 Apr 2015 18:29:58 +0800")
Message-ID: <87fv8fip01.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.0 (-----)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

=E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> skribis:

> Currently, search-paths built only from packages in user's profile.
> As reported by Andy Wingo in #guix, when I have:
>   perl installed into system profile
>   perl-xml-parser installed into user profile
>=20=20=20
> guix package --search-paths won't give a hint about PERL5LIB,
> so it's very likely end up with a broken XML::Parser.

Rather it ends up with no XML::Parser, no?

That said, I=E2=80=99m not sure how this could be improved.  We could hard-=
code
lookup in /run/current-system/profile/.  OTOH that=E2=80=99s not different =
from
installing perl in one profile, and perl-xml-parser in another
(arbitrary) profile, which =E2=80=98guix package=E2=80=99 cannot be aware o=
f.

WDYT?

> Another interesting fact is that we have both guile and guix in
> system profile, but the guix modules isn't work out-of-the-box
> on GuixSD.

(But guix.el *does* work out of the box.)

For a start, what about augmenting /etc/profile:


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline

diff --git a/gnu/system.scm b/gnu/system.scm
index 0d510b6..bcc4919 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -447,6 +447,8 @@ export PATH=$HOME/.guix-profile/bin:/run/current-system/profile/bin
 export PATH=/run/setuid-programs:/run/current-system/profile/sbin:$PATH
 export MANPATH=$HOME/.guix-profile/share/man:/run/current-system/profile/share/man
 export INFOPATH=$HOME/.guix-profile/share/info:/run/current-system/profile/share/info
+export GUILE_LOAD_PATH=$HOME/share/guile/site/2.0:/run/current-system/profile/share/guile/site/2.0
+export GUILE_LOAD_COMPILED_PATH=$HOME/share/guile/site/2.0:/run/current-system/profile/share/guile/site/2.0
 
 export XDG_DATA_DIRS=$HOME/.guix-profile/share:/run/current-system/profile/share
 export XDG_CONFIG_DIRS=$HOME/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

DQpUaGFua3MsDQpMdWRv4oCZLg0K
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 05 Apr 2015 03:39:02 +0000
Resent-Message-ID: <handler.20255.B20255.142820512324458 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.142820512324458
          (code B ref 20255); Sun, 05 Apr 2015 03:39:02 +0000
Received: (at 20255) by debbugs.gnu.org; 5 Apr 2015 03:38:43 +0000
Received: from localhost ([127.0.0.1]:45000 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YebOV-0006MP-1p
	for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 23:38:43 -0400
Received: from mail-pa0-f41.google.com ([209.85.220.41]:35833)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <iyzsong@HIDDEN>) id 1YebOS-0006MC-B3
 for 20255 <at> debbugs.gnu.org; Sat, 04 Apr 2015 23:38:41 -0400
Received: by patj18 with SMTP id j18so6916680pat.2
 for <20255 <at> debbugs.gnu.org>; Sat, 04 Apr 2015 20:38:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:in-reply-to:references:user-agent:date
 :message-id:mime-version:content-type:content-transfer-encoding;
 bh=3gsyeaAqqZUfIfdAU4FNiPw9wCiUjYsY+fRan3S85i4=;
 b=dOIyBw1gp88jPfThZKZ9CRAoSG2e3XEw7g/nKpz8P3oY6lkQNVMf6OtW31+5ZjSl6P
 gfyhRtAhnEEJ8Mv97Upeh7PH8Y0kljOUx3X4X1ZOioQnee3tNpyFEPHtbVdxN8bWSOf/
 lTbFRbwjR6hHR3MD+k9flOZ2kLSVUxlz8mO/bPmG8pyx852309/YDvcX7MnrvAjAokKV
 QIQsphTtG3iJSrD95OSDrxMsIcbVrCQNunOUmbaO5VhYRLseQJPQXa/fsONH9XACiiHT
 7JvjvOVoZxiI1sQGTbevRa85NV1cXQEGAUCteOCXrWAP0XlQSH6CWpE05tTAEuGaRMKn
 b3/A==
X-Received: by 10.70.129.202 with SMTP id ny10mr6380047pdb.107.1428205114366; 
 Sat, 04 Apr 2015 20:38:34 -0700 (PDT)
Received: from localhost ([108.61.250.36])
 by mx.google.com with ESMTPSA id j5sm372400pdo.60.2015.04.04.20.38.33
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 04 Apr 2015 20:38:33 -0700 (PDT)
From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
In-Reply-To: <87fv8fip01.fsf@HIDDEN>
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1
 (x86_64-unknown-linux-gnu)
Date: Sun, 05 Apr 2015 11:39:03 +0800
Message-ID: <87d23j1bxk.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -0.7 (/)

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> =E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> skribis:
>
>> Currently, search-paths built only from packages in user's profile.
>> As reported by Andy Wingo in #guix, when I have:
>>   perl installed into system profile
>>   perl-xml-parser installed into user profile
>>=20=20=20
>> guix package --search-paths won't give a hint about PERL5LIB,
>> so it's very likely end up with a broken XML::Parser.
>
> Rather it ends up with no XML::Parser, no?
>
> That said, I=E2=80=99m not sure how this could be improved.  We could har=
d-code
> lookup in /run/current-system/profile/.  OTOH that=E2=80=99s not differen=
t from
> installing perl in one profile, and perl-xml-parser in another
> (arbitrary) profile, which =E2=80=98guix package=E2=80=99 cannot be aware=
 of.
>
> WDYT?
As 'guix package' is for only one profile, that's fine.
Since we can get search-paths from system profile using:
  guix package -p /run/current-system/profile --search-paths

I think the missing is to check whether we are under GuixSD,
and then merge those 2 search-paths object in scheme level
to get a full search-paths.

Or better to generate a 'profile' script for each manifest, and then
merged in shell level, so it can work out-of-the-box. How about:
  - /etc/profile:
    # configuration for the whole system goes here.
    # shouldn't refer profile paths.
    export LANG=3Den_US.utf8
    export SSL_CERT_DIR=3D/etc/ssl/certs
    export LINUX_MODULE_DIRECTORY=3D/run/booted-system/kernel/lib/modules
    [...]

    source /run/current-system/profile/etc/profile

    if [ -f $HOME/.guix-profile/etc/profile ]; then
      source $HOME/.guix-profile/etc/profile
    fi

    # honor setuid-programs
    export PATH=3D/run/setuid-programs:$PATH

  - /run/current-system/profile/etc/profile:
    export PATH=3D/run/current-system/profile/bin:/run/current-system/profi=
le/sbin:$PATH
    export MANPATH=3D/run/current-system/profile/share/man:$PATH
    [...]
=20=20=20=20
  - ~/.guix-profile/etc/profile:
    export PATH=3D~/.guix-profile/bin:~/.guix-profile/sbin:$PATH
    [...]

The idea to generate profile from search-paths is not new,
I heard it from you IIRC.
I think it's the time to do it.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 05 Apr 2015 18:16:02 +0000
Resent-Message-ID: <handler.20255.B20255.142825775426936 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.142825775426936
          (code B ref 20255); Sun, 05 Apr 2015 18:16:02 +0000
Received: (at 20255) by debbugs.gnu.org; 5 Apr 2015 18:15:54 +0000
Received: from localhost ([127.0.0.1]:45670 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Yep5N-0006zh-65
	for submit <at> debbugs.gnu.org; Sun, 05 Apr 2015 14:15:53 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:54647 ident=Debian-exim)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1Yep5L-0006x5-91
 for 20255 <at> debbugs.gnu.org; Sun, 05 Apr 2015 14:15:51 -0400
Received: from reverse-83.fdn.fr ([80.67.176.83]:48086 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1Yep5K-0002jG-AD; Sun, 05 Apr 2015 14:15:50 -0400
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 16 Germinal an 223 de la =?UTF-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x3D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Sun, 05 Apr 2015 20:15:47 +0200
In-Reply-To: <87d23j1bxk.fsf@HIDDEN> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s
 message of "Sun, 05 Apr 2015 11:39:03 +0800")
Message-ID: <871tjyfnl8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.0 (-----)

=E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> skribis:

> As 'guix package' is for only one profile, that's fine.
> Since we can get search-paths from system profile using:
>   guix package -p /run/current-system/profile --search-paths

Right.

> I think the missing is to check whether we are under GuixSD,
> and then merge those 2 search-paths object in scheme level
> to get a full search-paths.
>
> Or better to generate a 'profile' script for each manifest, and then
> merged in shell level, so it can work out-of-the-box. How about:
>   - /etc/profile:
>     # configuration for the whole system goes here.
>     # shouldn't refer profile paths.
>     export LANG=3Den_US.utf8
>     export SSL_CERT_DIR=3D/etc/ssl/certs
>     export LINUX_MODULE_DIRECTORY=3D/run/booted-system/kernel/lib/modules
>     [...]
>
>     source /run/current-system/profile/etc/profile
>
>     if [ -f $HOME/.guix-profile/etc/profile ]; then
>       source $HOME/.guix-profile/etc/profile
>     fi
>
>     # honor setuid-programs
>     export PATH=3D/run/setuid-programs:$PATH
>
>   - /run/current-system/profile/etc/profile:
>     export PATH=3D/run/current-system/profile/bin:/run/current-system/pro=
file/sbin:$PATH
>     export MANPATH=3D/run/current-system/profile/share/man:$PATH
>     [...]
>=20=20=20=20=20
>   - ~/.guix-profile/etc/profile:
>     export PATH=3D~/.guix-profile/bin:~/.guix-profile/sbin:$PATH
>     [...]
>
> The idea to generate profile from search-paths is not new,
> I heard it from you IIRC.
> I think it's the time to do it.

Agreed, the plan makes sense and I think we have all the bits.

A related question is whether to encode search path environment
variables into the manifest (currently they are =E2=80=9Cguessed=E2=80=9D b=
y looking at
same-named packages; see (guix build package).)  I think that would
probably simplify things and make it easier to share this environment
variable code.

Thoughts?

Thanks,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 06 Apr 2015 04:03:01 +0000
Resent-Message-ID: <handler.20255.B20255.142829292520256 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.142829292520256
          (code B ref 20255); Mon, 06 Apr 2015 04:03:01 +0000
Received: (at 20255) by debbugs.gnu.org; 6 Apr 2015 04:02:05 +0000
Received: from localhost ([127.0.0.1]:45748 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YeyEf-0005Ge-0s
	for submit <at> debbugs.gnu.org; Mon, 06 Apr 2015 00:02:05 -0400
Received: from mail-pa0-f47.google.com ([209.85.220.47]:34881)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <iyzsong@HIDDEN>) id 1YeyEc-0005GA-MF
 for 20255 <at> debbugs.gnu.org; Mon, 06 Apr 2015 00:02:03 -0400
Received: by patj18 with SMTP id j18so32189983pat.2
 for <20255 <at> debbugs.gnu.org>; Sun, 05 Apr 2015 21:01:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:in-reply-to:references:user-agent:date
 :message-id:mime-version:content-type:content-transfer-encoding;
 bh=Zy2TYFZ/KHnOCUl2rPr9n3CwkMfVjtRY5xEBNRRzQBA=;
 b=AGW7BX/Zw1IsJHW57eTNpmhCSE/vPfK0tJtlJ78Lg0Y2LXAnlPPnQdsubJ2HOUc/bI
 fWDxOmf4cRbNXLSotAhnGDbWo+Ob0gUSFsJi+8dPGslgzhzHuWMOsrri0N38M2K5S3wj
 u4Tu1Fz8PPZY2aSx88Zy7paZPR5WK0GJqhVWLcrsGNEzXDVyu4/oILVx5TvY8GVutIIN
 ejKVvOBWY0Vptm+uFIkLkdhOIzZRTyF81hTVwR2rfR76XBRwt7oGdzIAd9rzxLDFgkad
 a5UrYIO+Gp76dV6zikjyH9CuGAyWmlQgVSolVAX/O3dmi9qZNdDAx+/6Rrn2/VJBm2iD
 +cUg==
X-Received: by 10.66.90.168 with SMTP id bx8mr24109755pab.53.1428292916804;
 Sun, 05 Apr 2015 21:01:56 -0700 (PDT)
Received: from localhost ([108.61.250.36])
 by mx.google.com with ESMTPSA id r8sm2942887pdp.10.2015.04.05.21.01.55
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 05 Apr 2015 21:01:56 -0700 (PDT)
From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
In-Reply-To: <871tjyfnl8.fsf@HIDDEN>
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1
 (x86_64-unknown-linux-gnu)
Date: Mon, 06 Apr 2015 12:02:26 +0800
Message-ID: <876199q4z1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -0.7 (/)

> [...]
>>
>> The idea to generate profile from search-paths is not new,
>> I heard it from you IIRC.
>> I think it's the time to do it.
>
> Agreed, the plan makes sense and I think we have all the bits.
>
> A related question is whether to encode search path environment
> variables into the manifest (currently they are =E2=80=9Cguessed=E2=80=9D=
 by looking at
> same-named packages; see (guix build package).)  I think that would
> probably simplify things and make it easier to share this environment
> variable code.
>
> Thoughts?
I see, currently search-paths depends on the packages recipes. If we
update the related scheme code, then search-paths got updated, even we
didn't touch packages in profile at all.  It's a little confusing.
So I think we should encode the search-paths for each package in
manifest.
> Thanks,
> Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Mark H Weaver <mhw@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 06 Apr 2015 08:25:01 +0000
Resent-Message-ID: <handler.20255.B20255.142830867021694 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.142830867021694
          (code B ref 20255); Mon, 06 Apr 2015 08:25:01 +0000
Received: (at 20255) by debbugs.gnu.org; 6 Apr 2015 08:24:30 +0000
Received: from localhost ([127.0.0.1]:45854 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Yf2Kb-0005dn-Gu
	for submit <at> debbugs.gnu.org; Mon, 06 Apr 2015 04:24:29 -0400
Received: from world.peace.net ([50.252.239.5]:56304 ident=hope7)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <mhw@HIDDEN>) id 1Yf2KZ-0005df-17
 for 20255 <at> debbugs.gnu.org; Mon, 06 Apr 2015 04:24:27 -0400
Received: from [10.1.10.78] (helo=jojen)
 by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.72) (envelope-from <mhw@HIDDEN>)
 id 1Yf2KS-00089T-KL; Mon, 06 Apr 2015 04:24:20 -0400
From: Mark H Weaver <mhw@HIDDEN>
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN>
Date: Mon, 06 Apr 2015 04:24:54 -0400
In-Reply-To: <876199q4z1.fsf@HIDDEN> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s
 message of "Mon, 06 Apr 2015 12:02:26 +0800")
Message-ID: <87lhi5zmsp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: 0.0 (/)

=E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> writes:

>> [...]
>>>
>>> The idea to generate profile from search-paths is not new,
>>> I heard it from you IIRC.
>>> I think it's the time to do it.
>>
>> Agreed, the plan makes sense and I think we have all the bits.
>>
>> A related question is whether to encode search path environment
>> variables into the manifest (currently they are =E2=80=9Cguessed=E2=80=
=9D by looking at
>> same-named packages; see (guix build package).)  I think that would
>> probably simplify things and make it easier to share this environment
>> variable code.
>>
>> Thoughts?
> I see, currently search-paths depends on the packages recipes. If we
> update the related scheme code, then search-paths got updated, even we
> didn't touch packages in profile at all.  It's a little confusing.
> So I think we should encode the search-paths for each package in
> manifest.

I agree.

     Mark




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 02 May 2015 22:13:02 +0000
Resent-Message-ID: <handler.20255.B20255.1430604737876 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.1430604737876
          (code B ref 20255); Sat, 02 May 2015 22:13:02 +0000
Received: (at 20255) by debbugs.gnu.org; 2 May 2015 22:12:17 +0000
Received: from localhost ([127.0.0.1]:60027 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Yofdw-0000E4-CI
	for submit <at> debbugs.gnu.org; Sat, 02 May 2015 18:12:16 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:48793 ident=Debian-exim)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1Yofdu-0000Dw-Lo
 for 20255 <at> debbugs.gnu.org; Sat, 02 May 2015 18:12:15 -0400
Received: from reverse-83.fdn.fr ([80.67.176.83]:40890 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1Yofdt-0006Us-OF; Sat, 02 May 2015 18:12:14 -0400
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN>
Date: Sun, 03 May 2015 00:12:11 +0200
In-Reply-To: <876199q4z1.fsf@HIDDEN> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s
 message of "Mon, 06 Apr 2015 12:02:26 +0800")
Message-ID: <87ioca4ojo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.0 (-----)

=E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> skribis:

>> [...]
>>>
>>> The idea to generate profile from search-paths is not new,
>>> I heard it from you IIRC.
>>> I think it's the time to do it.
>>
>> Agreed, the plan makes sense and I think we have all the bits.
>>
>> A related question is whether to encode search path environment
>> variables into the manifest (currently they are =E2=80=9Cguessed=E2=80=
=9D by looking at
>> same-named packages; see (guix build package).)  I think that would
>> probably simplify things and make it easier to share this environment
>> variable code.
>>
>> Thoughts?
> I see, currently search-paths depends on the packages recipes. If we
> update the related scheme code, then search-paths got updated, even we
> didn't touch packages in profile at all.  It's a little confusing.
> So I think we should encode the search-paths for each package in
> manifest.

Done in dedb17a.

That will make it easier to generate environment variable settings.

Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 04 May 2015 21:45:03 +0000
Resent-Message-ID: <handler.20255.B20255.143077586528506 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.143077586528506
          (code B ref 20255); Mon, 04 May 2015 21:45:03 +0000
Received: (at 20255) by debbugs.gnu.org; 4 May 2015 21:44:25 +0000
Received: from localhost ([127.0.0.1]:34076 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YpOA4-0007Pi-Uj
	for submit <at> debbugs.gnu.org; Mon, 04 May 2015 17:44:25 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:59998 ident=Debian-exim)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1YpOA2-0007PY-Q7
 for 20255 <at> debbugs.gnu.org; Mon, 04 May 2015 17:44:23 -0400
Received: from reverse-83.fdn.fr ([80.67.176.83]:41243 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1YpOA1-0005ok-EX; Mon, 04 May 2015 17:44:22 -0400
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN>
Date: Mon, 04 May 2015 23:44:19 +0200
In-Reply-To: <87d23j1bxk.fsf@HIDDEN> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s
 message of "Sun, 05 Apr 2015 11:39:03 +0800")
Message-ID: <87lhh43tn0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.0 (-----)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

=E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> skribis:

> Or better to generate a 'profile' script for each manifest, and then
> merged in shell level, so it can work out-of-the-box. How about:
>   - /etc/profile:
>     # configuration for the whole system goes here.
>     # shouldn't refer profile paths.
>     export LANG=3Den_US.utf8
>     export SSL_CERT_DIR=3D/etc/ssl/certs
>     export LINUX_MODULE_DIRECTORY=3D/run/booted-system/kernel/lib/modules
>     [...]
>
>     source /run/current-system/profile/etc/profile
>
>     if [ -f $HOME/.guix-profile/etc/profile ]; then
>       source $HOME/.guix-profile/etc/profile
>     fi
>
>     # honor setuid-programs
>     export PATH=3D/run/setuid-programs:$PATH
>
>   - /run/current-system/profile/etc/profile:
>     export PATH=3D/run/current-system/profile/bin:/run/current-system/pro=
file/sbin:$PATH
>     export MANPATH=3D/run/current-system/profile/share/man:$PATH
>     [...]
>=20=20=20=20=20
>   - ~/.guix-profile/etc/profile:
>     export PATH=3D~/.guix-profile/bin:~/.guix-profile/sbin:$PATH
>     [...]

There=E2=80=99s a further complication here: =E2=80=98profile-derivation=E2=
=80=99, which builds
the profile, doesn=E2=80=99t know its user-visible name ~/.guix-profile.  It
just knows its store file name.  However, we don=E2=80=99t want etc/profile=
 to
read:

  export PATH=3D/gnu/store/...-profile/bin:$PATH

because then, the user=E2=80=99s environment variables in a running session
would keep pointing to a given profile generation.

So we have to tell =E2=80=98profile-generation=E2=80=99 what the user-visib=
le name of
the profile is going to be.  Attached is a very rough patch to do that.
This is not so nice because all user interfaces will now have to pass
that #:target parameter or etc/profile will be =E2=80=9Cwrong.=E2=80=9D

Another option would be to simply run:

  eval `guix package -p ~/.guix-profile --search-paths`

This has two downsides:

  1. It takes ~200 ms to run on my laptop, which can maybe be
     noticeable; OTOH it=E2=80=99s only for interactive shells, so maybe th=
at=E2=80=99s
     OK.

  2. If there=E2=80=99s a manifest format change and /etc/profile calls a =
=E2=80=98guix=E2=80=99
     command that cannot handle the manifest format (because it=E2=80=99s o=
lder
     than the =E2=80=98guix=E2=80=99 used to build the profile), then it do=
esn=E2=80=99t work at
     all (that=E2=80=99s a bit contrived, but not completely impossible.)

Thoughts?

Ludo=E2=80=99.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline

	Modified   guix/profiles.scm
diff --git a/guix/profiles.scm b/guix/profiles.scm
index 8445e00..308dc23 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -582,10 +582,15 @@ MANIFEST.  Single-file bundles are required by programs such as Git and Lynx."
 
 (define* (profile-derivation manifest
                              #:key
+                             target
                              (hooks %default-profile-hooks))
   "Return a derivation that builds a profile (aka. 'user environment') with
 the given MANIFEST.  The profile includes additional derivations returned by
-the monadic procedures listed in HOOKS--such as an Info 'dir' file, etc."
+the monadic procedures listed in HOOKS--such as an Info 'dir' file, etc.
+
+When TARGET is not #f, it must be a string denoting the file name under which
+the profile will be available--e.g., \"/home/rms/.guix-profile\".  This name
+is used in the profile's 'etc/profile' file (read that again.)"
   (mlet %store-monad ((extras (if (null? (manifest-entries manifest))
                                   (return '())
                                   (sequence %store-monad
@@ -598,20 +603,72 @@ the monadic procedures listed in HOOKS--such as an Info 'dir' file, etc."
 
     (define builder
       #~(begin
-          (use-modules (ice-9 pretty-print)
-                       (guix build union))
+          (use-modules (ice-9 match)
+                       (ice-9 regex)
+                       (ice-9 pretty-print)
+                       (guix build union)
+                       (guix build utils)
+                       (guix search-paths))
+
+          (define target
+            '#$target)
+
+          (define search-paths
+            (map sexp->search-path-specification
+                 '#$(map search-path-specification->sexp
+                         (append-map manifest-entry-search-paths
+                                     (manifest-entries manifest)))))
+
+          (define (use-target value separator)
+            (let ((items ((@@ (guix search-paths) string-tokenize*)
+                          value separator)))
+              (string-join (map (lambda (str)
+                                  (string-append target
+                                                 (string-drop str
+                                                              (string-length
+                                                               #$output))))
+                                items)
+                           separator)))
+
+          (define write-environment-variable-definition
+            (match-lambda
+              ((spec . value)
+               (let ((variable (search-path-specification-variable spec))
+                     (sep      (search-path-specification-separator spec)))
+                 (display
+                  (environment-variable-definition variable
+                                                   (if target
+                                                       (use-target value sep)
+                                                       value)
+                                                   #:separator sep
+                                                   #:kind 'prefix))
+                 (newline)))))
 
           (setvbuf (current-output-port) _IOLBF)
           (setvbuf (current-error-port) _IOLBF)
 
+          ;; Make the symlinks.
           (union-build #$output '#$inputs
                        #:log-port (%make-void-port "w"))
+
+          ;; Store meta-data.
           (call-with-output-file (string-append #$output "/manifest")
             (lambda (p)
-              (pretty-print '#$(manifest->gexp manifest) p)))))
+              (pretty-print '#$(manifest->gexp manifest) p)))
+
+          ;; Store a ready-to-use Bash profile.
+          (mkdir-p (string-append #$output "/etc"))
+          (with-output-to-file (string-append #$output "/etc/profile")
+            (lambda ()
+              (let ((variables (evaluate-search-paths search-paths #$output)))
+                (for-each write-environment-variable-definition
+                          variables))))))
 
     (gexp->derivation "profile" builder
-                      #:modules '((guix build union))
+                      #:modules '((guix build union)
+                                  (guix build utils)
+                                  (guix search-paths)
+                                  (guix records))
                       #:local-build? #t)))
 
 (define (profile-regexp profile)
	Modified   guix/scripts/package.scm
diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm
index 7f53af7..38ec8ed 100644
--- a/guix/scripts/package.scm
+++ b/guix/scripts/package.scm
@@ -833,6 +833,7 @@ more information.~%"))
                (let* ((prof-drv (run-with-store (%store)
                                   (profile-derivation
                                    new
+                                   #:target (user-friendly-profile profile)
                                    #:hooks (if bootstrap?
                                                '()
                                                %default-profile-hooks))))


--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 05 May 2015 08:30:03 +0000
Resent-Message-ID: <handler.20255.B20255.14308145751493 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.14308145751493
          (code B ref 20255); Tue, 05 May 2015 08:30:03 +0000
Received: (at 20255) by debbugs.gnu.org; 5 May 2015 08:29:35 +0000
Received: from localhost ([127.0.0.1]:34317 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YpYEQ-0000Nz-Og
	for submit <at> debbugs.gnu.org; Tue, 05 May 2015 04:29:35 -0400
Received: from mail-pd0-f172.google.com ([209.85.192.172]:35065)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <iyzsong@HIDDEN>) id 1YpYEO-0000NY-1o
 for 20255 <at> debbugs.gnu.org; Tue, 05 May 2015 04:29:32 -0400
Received: by pdbqd1 with SMTP id qd1so188548439pdb.2
 for <20255 <at> debbugs.gnu.org>; Tue, 05 May 2015 01:29:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:in-reply-to:references:user-agent:date
 :message-id:mime-version:content-type:content-transfer-encoding;
 bh=CXk5Yon3X81WaTapx49qsnO6/M6KUgOgNgLhHN7xBB0=;
 b=Qkaqrire4BywxA0EotpgJj6ofeWiX76qLB/kQH75ajaf8sjzXVM54j/XPWUy7MWwAG
 S0Cl4tXdikFNoGsZUzq0Tl2+WeZjft0kQn+KIuBvJCVQR73k1N/LZSTFiX+NhqoDNPx5
 7uTPhsu72NmKGKxlDG/QClU4oeN8Kr3WJrLIGMQ3rlYz0ye2UU5V5p894UJ96isY3ZKk
 x/pnvTP6sYlyrLDcy9LdF5w/UXIMEuIEkk6wQ4ThmmWpl+sAY7ifMBmv1t1DOMbHjwNr
 dTZIkSmcFqWKI2sFeCojZQ1fuaL+ZRZjjUoaZabyuvlszVJinIHj0tjU3ZlDIIOkeYH7
 X5pQ==
X-Received: by 10.70.101.2 with SMTP id fc2mr49871808pdb.77.1430814497324;
 Tue, 05 May 2015 01:28:17 -0700 (PDT)
Received: from localhost ([108.61.250.36])
 by mx.google.com with ESMTPSA id jg3sm15023511pbb.72.2015.05.05.01.28.15
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 05 May 2015 01:28:16 -0700 (PDT)
From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
In-Reply-To: <87lhh43tn0.fsf@HIDDEN>
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <87lhh43tn0.fsf@HIDDEN>
User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.5.1
 (x86_64-unknown-linux-gnu)
Date: Tue, 05 May 2015 16:28:53 +0800
Message-ID: <87k2wnqvga.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -0.7 (/)

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> =E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> skribis:
>
>> Or better to generate a 'profile' script for each manifest, and then
>> merged in shell level, so it can work out-of-the-box. How about:
>>   - /etc/profile:
>>     # configuration for the whole system goes here.
>>     # shouldn't refer profile paths.
>>     export LANG=3Den_US.utf8
>>     export SSL_CERT_DIR=3D/etc/ssl/certs
>>     export LINUX_MODULE_DIRECTORY=3D/run/booted-system/kernel/lib/modules
>>     [...]
>>
>>     source /run/current-system/profile/etc/profile
>>
>>     if [ -f $HOME/.guix-profile/etc/profile ]; then
>>       source $HOME/.guix-profile/etc/profile
>>     fi
>>
>>     # honor setuid-programs
>>     export PATH=3D/run/setuid-programs:$PATH
>>
>>   - /run/current-system/profile/etc/profile:
>>     export PATH=3D/run/current-system/profile/bin:/run/current-system/pr=
ofile/sbin:$PATH
>>     export MANPATH=3D/run/current-system/profile/share/man:$PATH
>>     [...]
>>=20=20=20=20=20
>>   - ~/.guix-profile/etc/profile:
>>     export PATH=3D~/.guix-profile/bin:~/.guix-profile/sbin:$PATH
>>     [...]
>
> There=E2=80=99s a further complication here: =E2=80=98profile-derivation=
=E2=80=99, which builds
> the profile, doesn=E2=80=99t know its user-visible name ~/.guix-profile. =
 It
> just knows its store file name.  However, we don=E2=80=99t want etc/profi=
le to
> read:
>
>   export PATH=3D/gnu/store/...-profile/bin:$PATH
>
> because then, the user=E2=80=99s environment variables in a running sessi=
on
> would keep pointing to a given profile generation.
Indeed.  Run guix to install a package should make it available
immediately.  Currently, we have 'PATH=3D~/.guix-profile/bin' in
profile and print hint for additional variables.
(Note that when profile changes, even we build all variables with the
location they going to be, a hint or re-source is still needed when the
new profile bring new variables.)
>
> So we have to tell =E2=80=98profile-generation=E2=80=99 what the user-vis=
ible name of
> the profile is going to be.  Attached is a very rough patch to do that.
> This is not so nice because all user interfaces will now have to pass
> that #:target parameter or etc/profile will be =E2=80=9Cwrong.=E2=80=9D
>
> Another option would be to simply run:
>
>   eval `guix package -p ~/.guix-profile --search-paths`
>
> This has two downsides:
>
>   1. It takes ~200 ms to run on my laptop, which can maybe be
>      noticeable; OTOH it=E2=80=99s only for interactive shells, so maybe =
that=E2=80=99s
>      OK.
>
>   2. If there=E2=80=99s a manifest format change and /etc/profile calls a=
 =E2=80=98guix=E2=80=99
>      command that cannot handle the manifest format (because it=E2=80=99s=
 older
>      than the =E2=80=98guix=E2=80=99 used to build the profile), then it =
doesn=E2=80=99t work at
>      all (that=E2=80=99s a bit contrived, but not completely impossible.)
>
> Thoughts?
>
How about using a shell variable as input for the location:
(replace /gnu/store/xxx with $GUIX_PROFILE)

  # etc/profile
  export PATH=3D$GUIX_PROFILE/bin:$PATH
  export MANPATH=3D$GUIX_PROFILE/share/man:$MANPATH
  ...

Then when 'source' it, we pass the location:
(we did know where $GUIX_PROFILE is when do the 'source')

  # ~/.bash_profile
  GUIX_PROFILE=3D$HOME/.guix-profile
  if [ -f $GUIX_PROFILE/etc/profile ]; then
    . $GUIX_PROFILE/etc/profile
  fi

  # /etc/profile
  GUIX_PROFILE=3D/run/current-system/profile
  source $GUIX_PROFILE/etc/profile




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 05 May 2015 12:36:02 +0000
Resent-Message-ID: <handler.20255.B20255.143082931432134 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.143082931432134
          (code B ref 20255); Tue, 05 May 2015 12:36:02 +0000
Received: (at 20255) by debbugs.gnu.org; 5 May 2015 12:35:14 +0000
Received: from localhost ([127.0.0.1]:34435 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ypc45-0008M7-Ku
	for submit <at> debbugs.gnu.org; Tue, 05 May 2015 08:35:14 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:36401 ident=Debian-exim)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1Ypc3z-0008Lv-Mx
 for 20255 <at> debbugs.gnu.org; Tue, 05 May 2015 08:35:08 -0400
Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:49167 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1Ypc3y-0006EZ-UY; Tue, 05 May 2015 08:35:03 -0400
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <87lhh43tn0.fsf@HIDDEN>
 <87k2wnqvga.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 16 =?UTF-8?Q?Flor=C3=A9al?= an 223 de la =?UTF-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x3D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Tue, 05 May 2015 14:35:01 +0200
In-Reply-To: <87k2wnqvga.fsf@HIDDEN> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s
 message of "Tue, 05 May 2015 16:28:53 +0800")
Message-ID: <87h9rr5hje.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.0 (-----)

=E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> skribis:

> How about using a shell variable as input for the location:
> (replace /gnu/store/xxx with $GUIX_PROFILE)
>
>   # etc/profile
>   export PATH=3D$GUIX_PROFILE/bin:$PATH
>   export MANPATH=3D$GUIX_PROFILE/share/man:$MANPATH
>   ...
>
> Then when 'source' it, we pass the location:
> (we did know where $GUIX_PROFILE is when do the 'source')
>
>   # ~/.bash_profile
>   GUIX_PROFILE=3D$HOME/.guix-profile
>   if [ -f $GUIX_PROFILE/etc/profile ]; then
>     . $GUIX_PROFILE/etc/profile
>   fi
>
>   # /etc/profile
>   GUIX_PROFILE=3D/run/current-system/profile
>   source $GUIX_PROFILE/etc/profile

Yes, but we would also like users to be able to source
~/.guix-profile/etc/profile themselves directly, and it wouldn=E2=80=99t be=
 nice
to ask them to set GUIX_PROFILE before sourcing it.

Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 06 May 2015 16:36:02 +0000
Resent-Message-ID: <handler.20255.B20255.143093015521161 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.143093015521161
          (code B ref 20255); Wed, 06 May 2015 16:36:02 +0000
Received: (at 20255) by debbugs.gnu.org; 6 May 2015 16:35:55 +0000
Received: from localhost ([127.0.0.1]:36462 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Yq2Ib-0005VE-OZ
	for submit <at> debbugs.gnu.org; Wed, 06 May 2015 12:35:54 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:56751 ident=Debian-exim)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1Yq2IZ-0005V5-1L
 for 20255 <at> debbugs.gnu.org; Wed, 06 May 2015 12:35:51 -0400
Received: from reverse-83.fdn.fr ([80.67.176.83]:43481 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1Yq2IY-0005B9-1C; Wed, 06 May 2015 12:35:50 -0400
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <87lhh43tn0.fsf@HIDDEN>
 <87k2wnqvga.fsf@HIDDEN>
Date: Wed, 06 May 2015 18:35:47 +0200
In-Reply-To: <87k2wnqvga.fsf@HIDDEN> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s
 message of "Tue, 05 May 2015 16:28:53 +0800")
Message-ID: <87fv79u0ik.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.0 (-----)

=E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> skribis:

> How about using a shell variable as input for the location:
> (replace /gnu/store/xxx with $GUIX_PROFILE)
>
>   # etc/profile
>   export PATH=3D$GUIX_PROFILE/bin:$PATH
>   export MANPATH=3D$GUIX_PROFILE/share/man:$MANPATH
>   ...
>
> Then when 'source' it, we pass the location:
> (we did know where $GUIX_PROFILE is when do the 'source')
>
>   # ~/.bash_profile
>   GUIX_PROFILE=3D$HOME/.guix-profile
>   if [ -f $GUIX_PROFILE/etc/profile ]; then
>     . $GUIX_PROFILE/etc/profile
>   fi
>
>   # /etc/profile
>   GUIX_PROFILE=3D/run/current-system/profile
>   source $GUIX_PROFILE/etc/profile

I ended up doing that in d664f1b.  Please check d664f1b and d995942 and
report and issues/bugs.

Part of the initial problem you reported had to do with combining
profiles (perl in one profile, perl-xml-parser in another.)  This part
is not addressed yet, and it turns out to be more common than I
initially thought: consider for instance MANPATH (with man-db installed
in the system profile and man pages in the user=E2=80=99s profile.)

Unfortunately the etc/profile files are not going to allow us to solve
that.  =E2=80=98guix package --search-paths=E2=80=99 could do the actual co=
mbination,
though.

Thanks,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 12 Nov 2015 11:15:01 +0000
Resent-Message-ID: <handler.20255.B20255.144732685413201 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Cc: Mark H Weaver <mhw@HIDDEN>, 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144732685413201
          (code B ref 20255); Thu, 12 Nov 2015 11:15:01 +0000
Received: (at 20255) by debbugs.gnu.org; 12 Nov 2015 11:14:14 +0000
Received: from localhost ([127.0.0.1]:34083 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZwppV-0003Qr-SQ
	for submit <at> debbugs.gnu.org; Thu, 12 Nov 2015 06:14:14 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45623)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1ZwppU-0003Qk-Ik
 for 20255 <at> debbugs.gnu.org; Thu, 12 Nov 2015 06:14:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1ZwppQ-0008Sg-PE
 for 20255 <at> debbugs.gnu.org; Thu, 12 Nov 2015 06:14:12 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49691)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1ZwppC-0008Qp-90; Thu, 12 Nov 2015 06:13:54 -0500
Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:49664 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1ZwppB-0008E4-GN; Thu, 12 Nov 2015 06:13:53 -0500
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <87lhh43tn0.fsf@HIDDEN>
Date: Thu, 12 Nov 2015 12:13:51 +0100
In-Reply-To: <87lhh43tn0.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Mon, 04 May 2015 23:44:19 +0200")
Message-ID: <87y4e3zd00.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.3 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.3 (-----)

Some progress has been made: fc2d233 allows search paths for multiple
profiles to be combined.

So I think I will eventually (=E2=80=98guix-devel=E2=80=99 needs to be upda=
ted first)
change /etc/profile to do:

  eval `guix package -p /run/current-system/profile \
          -p $HOME/.guix-profile --search-paths`

That should solve the combined profile issue.

This operation takes ~400ms on my machine.  This would be a problem if
we had to do it every time a shell is started, but here we only need to
do it for log-in shells, which is rare enough.

WDYT?

Thanks,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 19 Nov 2015 22:33:01 +0000
Resent-Message-ID: <handler.20255.B20255.14479723505614 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.14479723505614
          (code B ref 20255); Thu, 19 Nov 2015 22:33:01 +0000
Received: (at 20255) by debbugs.gnu.org; 19 Nov 2015 22:32:30 +0000
Received: from localhost ([127.0.0.1]:45273 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZzXkk-0001SS-1u
	for submit <at> debbugs.gnu.org; Thu, 19 Nov 2015 17:32:30 -0500
Received: from eggs.gnu.org ([208.118.235.92]:42174)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1ZzXkQ-0001RO-0A
 for 20255 <at> debbugs.gnu.org; Thu, 19 Nov 2015 17:32:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1ZzXkM-0008Ex-BY
 for 20255 <at> debbugs.gnu.org; Thu, 19 Nov 2015 17:32:09 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35633)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1ZzXkM-0008Et-87; Thu, 19 Nov 2015 17:32:06 -0500
Received: from reverse-83.fdn.fr ([80.67.176.83]:46114 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1ZzXkL-0004Fy-Jy; Thu, 19 Nov 2015 17:32:06 -0500
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
Date: Thu, 19 Nov 2015 23:32:03 +0100
In-Reply-To: <87ioca4ojo.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Sun, 03 May 2015 00:12:11 +0200")
Message-ID: <87lh9tvcws.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.6 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.6 (-----)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

ludo@HIDDEN (Ludovic Court=C3=A8s) skribis:

> =E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> skribis:
>
>>> [...]
>>>>
>>>> The idea to generate profile from search-paths is not new,
>>>> I heard it from you IIRC.
>>>> I think it's the time to do it.
>>>
>>> Agreed, the plan makes sense and I think we have all the bits.
>>>
>>> A related question is whether to encode search path environment
>>> variables into the manifest (currently they are =E2=80=9Cguessed=E2=80=
=9D by looking at
>>> same-named packages; see (guix build package).)  I think that would
>>> probably simplify things and make it easier to share this environment
>>> variable code.
>>>
>>> Thoughts?
>> I see, currently search-paths depends on the packages recipes. If we
>> update the related scheme code, then search-paths got updated, even we
>> didn't touch packages in profile at all.  It's a little confusing.
>> So I think we should encode the search-paths for each package in
>> manifest.
>
> Done in dedb17a.
>
> That will make it easier to generate environment variable settings.

Here=E2=80=99s the patch that does that, to try on b2a7223 or later.

Could you comment and give it a try?  My main concern was the latency
introduced at log-in shells, but it=E2=80=99s OK, at least on my i5+SSD lap=
top.

--8<---------------cut here---------------start------------->8---
$ time guix package -p ~/.guix-profile -p /run/current-system/profile --sea=
rch-paths > /dev/null

real    0m0.290s
user    0m0.372s
sys     0m0.028s
$ guix package -I | wc -l
215
$ guix package -p /run/current-system/profile -I | wc -l
43
--8<---------------cut here---------------end--------------->8---

I=E2=80=99ll push it soon if there are no objections.

TIA!

Ludo=E2=80=99.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline

diff --git a/gnu/system.scm b/gnu/system.scm
index 2755d85..7d1d33e 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -429,35 +429,49 @@ export SSL_CERT_DIR=/etc/ssl/certs
 export SSL_CERT_FILE=\"$SSL_CERT_DIR/ca-certificates.crt\"
 export GIT_SSL_CAINFO=\"$SSL_CERT_FILE\"
 
-# Crucial variables that could be missing in the profiles' 'etc/profile'
-# because they would require combining both profiles.
-# FIXME: See <http://bugs.gnu.org/20255>.
-export MANPATH=$HOME/.guix-profile/share/man:/run/current-system/profile/share/man
-export INFOPATH=$HOME/.guix-profile/share/info:/run/current-system/profile/share/info
+# Search paths for GLib schemas, GTK+ icons, and so on.
 export XDG_DATA_DIRS=$HOME/.guix-profile/share:/run/current-system/profile/share
 export XDG_CONFIG_DIRS=$HOME/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg
 
 # Ignore the default value of 'PATH'.
 unset PATH
 
-# Load the system profile's settings.
+if [ -x /run/current-system/profile/bin/guix ]
+then
+  # Crucial variables such as 'MANPATH' or 'INFOPATH' may be missing from the
+  # profiles' individual 'etc/profile'.  Thus, combine both profiles when
+  # computing the search paths.
+  #
+  # This may take a few hundred milliseconds, but it's OK because this is
+  # performed for log-in shells only.
+  eval `/run/current-system/profile/bin/guix package \\
+          -p /run/current-system/profile             \\
+          -p \"$HOME/.guix-profile\" --search-paths`
+else
+  # In the unlikely case that Guix is not in the global profile,
+  # fall back to the simpler, yet less accurate method (see
+  # <http://bugs.gnu.org/20255>.)
   GUIX_PROFILE=/run/current-system/profile \\
   . /run/current-system/profile/etc/profile
 
-# Prepend setuid programs.
-export PATH=/run/setuid-programs:$PATH
-
   if [ -f \"$HOME/.guix-profile/etc/profile\" ]
   then
     # Load the user profile's settings.
     GUIX_PROFILE=\"$HOME/.guix-profile\" \\
     . \"$HOME/.guix-profile/etc/profile\"
-else
+  fi
+fi
+
+if [ ! -f \"$HOME/.guix-profile\" ]
+then
   # At least define this one so that basic things just work
   # when the user installs their first package.
   export PATH=\"$HOME/.guix-profile/bin:$PATH\"
 fi
 
+# Prepend setuid programs.
+export PATH=/run/setuid-programs:$PATH
+
 # Append the directory of 'site-start.el' to the search path.
 export EMACSLOADPATH=:/etc/emacs
 

--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Alex Kost <alezost@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 20 Nov 2015 22:43:02 +0000
Resent-Message-ID: <handler.20255.B20255.144805934226816 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>, 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144805934226816
          (code B ref 20255); Fri, 20 Nov 2015 22:43:02 +0000
Received: (at 20255) by debbugs.gnu.org; 20 Nov 2015 22:42:22 +0000
Received: from localhost ([127.0.0.1]:46511 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZzuNp-0006yS-Le
	for submit <at> debbugs.gnu.org; Fri, 20 Nov 2015 17:42:21 -0500
Received: from mail-lb0-f169.google.com ([209.85.217.169]:34614)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <alezost@HIDDEN>) id 1ZzuNn-0006yH-GQ
 for 20255 <at> debbugs.gnu.org; Fri, 20 Nov 2015 17:42:20 -0500
Received: by lbbcs9 with SMTP id cs9so69778727lbb.1
 for <20255 <at> debbugs.gnu.org>; Fri, 20 Nov 2015 14:42:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type:content-transfer-encoding;
 bh=WD9nAS/upbbUJ69IpoKrkPPYEMDoGyE+4tpEs9ypiN8=;
 b=UJDiRSUeWL8vtHS7c4qxQIXS4m+FWUD48sPEv4tMLRJ+4BZcWFdJ/5Ny6D2qvtb1Gw
 z9vzDePXpVpNjFW3ilm9VI+QCrwYPuYLp++A1U070sIjMgbLAryalIlEk1YHBV/jBJtv
 P5ahotJUutI+zCV/F3u4OEYz2Nz/xH+NT8+HmPvBgmVB0zPdBpbrAilIQ1d8VPeSKsHO
 1taSO+JFUazqab+VlmcqcwWO3ZJS242fR8dQ7xF8FxDjTNzrLMLdWnoyEFRBZgfT8pls
 PsB4vneLR1vHZNf7wtwm2vsASfUJKPMfYdcJY9yWw6sicpacW4C/RkiZWvMq/tBgxEWa
 GBRg==
X-Received: by 10.112.205.10 with SMTP id lc10mr6717992lbc.31.1448059338664;
 Fri, 20 Nov 2015 14:42:18 -0800 (PST)
Received: from leviafan ([217.107.192.146])
 by smtp.gmail.com with ESMTPSA id ea3sm191210lbc.18.2015.11.20.14.42.17
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 20 Nov 2015 14:42:18 -0800 (PST)
From: Alex Kost <alezost@HIDDEN>
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN>
Date: Sat, 21 Nov 2015 01:42:19 +0300
In-Reply-To: <87lh9tvcws.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Thu, 19 Nov 2015 23:32:03 +0100")
Message-ID: <87h9kguwc4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -0.7 (/)

Ludovic Court=C3=A8s (2015-11-20 01:32 +0300) wrote:

> -# Load the system profile's settings.
> +if [ -x /run/current-system/profile/bin/guix ]
> +then
> +  # Crucial variables such as 'MANPATH' or 'INFOPATH' may be missing fro=
m the
> +  # profiles' individual 'etc/profile'.  Thus, combine both profiles when
> +  # computing the search paths.
> +  #
> +  # This may take a few hundred milliseconds, but it's OK because this is
> +  # performed for log-in shells only.
> +  eval `/run/current-system/profile/bin/guix package \\
> +          -p /run/current-system/profile             \\
> +          -p \"$HOME/.guix-profile\" --search-paths`

Sorry, but it's not OK for me.  As a user, I'm *strongly* against
running 'guix' (or any other program) in /etc/profile.  I would really
like to have an option to avoid this.  Is it possible?

--=20
Thanks,
Alex




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 21 Nov 2015 08:59:02 +0000
Resent-Message-ID: <handler.20255.B20255.144809629618663 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Alex Kost <alezost@HIDDEN>
Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>, 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144809629618663
          (code B ref 20255); Sat, 21 Nov 2015 08:59:02 +0000
Received: (at 20255) by debbugs.gnu.org; 21 Nov 2015 08:58:16 +0000
Received: from localhost ([127.0.0.1]:46613 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a03zr-0004qx-Qs
	for submit <at> debbugs.gnu.org; Sat, 21 Nov 2015 03:58:16 -0500
Received: from eggs.gnu.org ([208.118.235.92]:38726)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1a03zX-0004qD-AH
 for 20255 <at> debbugs.gnu.org; Sat, 21 Nov 2015 03:58:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1a03zT-0001id-Ma
 for 20255 <at> debbugs.gnu.org; Sat, 21 Nov 2015 03:57:54 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53551)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1a03zT-0001iZ-J1; Sat, 21 Nov 2015 03:57:51 -0500
Received: from reverse-83.fdn.fr ([80.67.176.83]:44626 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1a03zS-00045O-UH; Sat, 21 Nov 2015 03:57:51 -0500
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 1 Frimaire an 224 de la =?UTF-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x3D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Sat, 21 Nov 2015 09:57:48 +0100
In-Reply-To: <87h9kguwc4.fsf@HIDDEN> (Alex Kost's message of "Sat, 21 Nov
 2015 01:42:19 +0300")
Message-ID: <87ziy7d90z.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.6 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.6 (-----)

Alex Kost <alezost@HIDDEN> skribis:

> Ludovic Court=C3=A8s (2015-11-20 01:32 +0300) wrote:
>
>> -# Load the system profile's settings.
>> +if [ -x /run/current-system/profile/bin/guix ]
>> +then
>> +  # Crucial variables such as 'MANPATH' or 'INFOPATH' may be missing fr=
om the
>> +  # profiles' individual 'etc/profile'.  Thus, combine both profiles wh=
en
>> +  # computing the search paths.
>> +  #
>> +  # This may take a few hundred milliseconds, but it's OK because this =
is
>> +  # performed for log-in shells only.
>> +  eval `/run/current-system/profile/bin/guix package \\
>> +          -p /run/current-system/profile             \\
>> +          -p \"$HOME/.guix-profile\" --search-paths`
>
> Sorry, but it's not OK for me.  As a user, I'm *strongly* against
> running 'guix' (or any other program) in /etc/profile.

Why?  (Honest question.)

> I would really like to have an option to avoid this.  Is it possible?

Not that I know of.  Please read <http://bugs.gnu.org/20255>.

Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Alex Kost <alezost@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 21 Nov 2015 18:42:01 +0000
Resent-Message-ID: <handler.20255.B20255.144813130820138 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144813130820138
          (code B ref 20255); Sat, 21 Nov 2015 18:42:01 +0000
Received: (at 20255) by debbugs.gnu.org; 21 Nov 2015 18:41:48 +0000
Received: from localhost ([127.0.0.1]:47286 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a0D6Z-0005Ek-N8
	for submit <at> debbugs.gnu.org; Sat, 21 Nov 2015 13:41:48 -0500
Received: from mail-lf0-f41.google.com ([209.85.215.41]:34920)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <alezost@HIDDEN>) id 1a0D6X-0005Eb-9M
 for 20255 <at> debbugs.gnu.org; Sat, 21 Nov 2015 13:41:45 -0500
Received: by lfdl133 with SMTP id l133so5784790lfd.2
 for <20255 <at> debbugs.gnu.org>; Sat, 21 Nov 2015 10:41:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type:content-transfer-encoding;
 bh=NACuNREA4/mLCU/oYkkHrW/OVuCq+G/NUC/NpjmXVDA=;
 b=MCz79d7Gsey9NtkeMtH2kdTfgyMdUEz/Xmp4hMhs5wwPHRuifOPUPZ+bD7qKa2uax0
 FwvCTjkGte7uYEUl3Bt0KEz2ydtleL8MYKoOQhOrjB3eEyueDAA699RPwI+7WZDp8ziY
 rfVcXUSCL5K5PtehJjBpjEzdvdTRhl+ARg75IZSgpxd1a5SDTJBKL58+gO+HFPN9kJC9
 qYOtQ//mdQJNohfnJ/9ihER7+89ZDmc6m6/96Gj/8mDwWnl3FAoRdCOtdZ8P86wq9oOa
 kcrbz5l1XF922MmYaPMtappLXfsYlwN3SsE9cuGQ3P7+IzSVd/l9ms8W/LVui6BeH+l0
 GgMA==
X-Received: by 10.25.169.212 with SMTP id s203mr6723036lfe.134.1448131304252; 
 Sat, 21 Nov 2015 10:41:44 -0800 (PST)
Received: from leviafan ([217.107.192.146])
 by smtp.gmail.com with ESMTPSA id 42sm723778lfv.29.2015.11.21.10.41.43
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 21 Nov 2015 10:41:43 -0800 (PST)
From: Alex Kost <alezost@HIDDEN>
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
 <87ziy7d90z.fsf@HIDDEN>
Date: Sat, 21 Nov 2015 21:41:45 +0300
In-Reply-To: <87ziy7d90z.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Sat, 21 Nov 2015 09:57:48 +0100")
Message-ID: <874mgfkxee.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -0.7 (/)

Ludovic Court=C3=A8s (2015-11-21 11:57 +0300) wrote:

> Alex Kost <alezost@HIDDEN> skribis:
>
>> Ludovic Court=C3=A8s (2015-11-20 01:32 +0300) wrote:
>>
>>> -# Load the system profile's settings.
>>> +if [ -x /run/current-system/profile/bin/guix ]
>>> +then
>>> +  # Crucial variables such as 'MANPATH' or 'INFOPATH' may be missing f=
rom the
>>> +  # profiles' individual 'etc/profile'.  Thus, combine both profiles w=
hen
>>> +  # computing the search paths.
>>> +  #
>>> +  # This may take a few hundred milliseconds, but it's OK because this=
 is
>>> +  # performed for log-in shells only.
>>> +  eval `/run/current-system/profile/bin/guix package \\
>>> +          -p /run/current-system/profile             \\
>>> +          -p \"$HOME/.guix-profile\" --search-paths`
>>
>> Sorry, but it's not OK for me.  As a user, I'm *strongly* against
>> running 'guix' (or any other program) in /etc/profile.
>
> Why?  (Honest question.)

At first, because of the slowdown: it may be a few hundred milliseconds
for you, but it's several seconds for me.  But actually, even if it was
several milliseconds, I still wouldn't like it, as (IMHO) /etc/profile
should only set variables, and not run external programs.

>> I would really like to have an option to avoid this.  Is it possible?
>
> Not that I know of.  Please read <http://bugs.gnu.org/20255>.

What about making some environment variable which will be honored by
'operating-system-etc-service' procedure.  So depending on this variable
that 'eval ...' command will or will not be added to "/etc/profile"
during 'guix system ...' process.

For example, when I do:

  GUIX_IGNORE_SYSTEM_PROFILE_ENV=3D1 guix system build my-config.scm

the "etc/profile" of the built system will not contain those 'eval ...'
lines.  WDYT?

--=20
Alex




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 21 Nov 2015 20:11:02 +0000
Resent-Message-ID: <handler.20255.B20255.144813662729312 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Alex Kost <alezost@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144813662729312
          (code B ref 20255); Sat, 21 Nov 2015 20:11:02 +0000
Received: (at 20255) by debbugs.gnu.org; 21 Nov 2015 20:10:27 +0000
Received: from localhost ([127.0.0.1]:47322 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a0EUM-0007ci-Ml
	for submit <at> debbugs.gnu.org; Sat, 21 Nov 2015 15:10:27 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36872)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1a0EUK-0007cS-8G
 for 20255 <at> debbugs.gnu.org; Sat, 21 Nov 2015 15:10:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1a0EUG-0004Vy-RO
 for 20255 <at> debbugs.gnu.org; Sat, 21 Nov 2015 15:10:23 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60291)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1a0EUG-0004Vu-OK; Sat, 21 Nov 2015 15:10:20 -0500
Received: from reverse-83.fdn.fr ([80.67.176.83]:55204 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1a0EUF-0007Ar-W3; Sat, 21 Nov 2015 15:10:20 -0500
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
 <87ziy7d90z.fsf@HIDDEN> <874mgfkxee.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 1 Frimaire an 224 de la =?UTF-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x3D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Sat, 21 Nov 2015 21:10:17 +0100
In-Reply-To: <874mgfkxee.fsf@HIDDEN> (Alex Kost's message of "Sat, 21 Nov
 2015 21:41:45 +0300")
Message-ID: <87wptb5d1y.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.6 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.6 (-----)

Alex Kost <alezost@HIDDEN> skribis:

> Ludovic Court=C3=A8s (2015-11-21 11:57 +0300) wrote:
>
>> Alex Kost <alezost@HIDDEN> skribis:
>>
>>> Ludovic Court=C3=A8s (2015-11-20 01:32 +0300) wrote:
>>>
>>>> -# Load the system profile's settings.
>>>> +if [ -x /run/current-system/profile/bin/guix ]
>>>> +then
>>>> +  # Crucial variables such as 'MANPATH' or 'INFOPATH' may be missing =
from the
>>>> +  # profiles' individual 'etc/profile'.  Thus, combine both profiles =
when
>>>> +  # computing the search paths.
>>>> +  #
>>>> +  # This may take a few hundred milliseconds, but it's OK because thi=
s is
>>>> +  # performed for log-in shells only.
>>>> +  eval `/run/current-system/profile/bin/guix package \\
>>>> +          -p /run/current-system/profile             \\
>>>> +          -p \"$HOME/.guix-profile\" --search-paths`
>>>
>>> Sorry, but it's not OK for me.  As a user, I'm *strongly* against
>>> running 'guix' (or any other program) in /etc/profile.
>>
>> Why?  (Honest question.)
>
> At first, because of the slowdown: it may be a few hundred milliseconds
> for you, but it's several seconds for me.

Really?  Can you show the output of:

  time guix package -p /run/current-system/profile \
                    -p ~/.guix-profile --search-paths

?

> But actually, even if it was several milliseconds, I still wouldn't
> like it, as (IMHO) /etc/profile should only set variables, and not run
> external programs.

I don=E2=80=99t buy this =E2=80=9Cprinciple=E2=80=9D: /etc/profile is a pro=
gram, and the output
of --search-paths is trusted to contain only environment variable
setting.

In the discussion of this bug, we tried hard to avoid resorting to
invoking a program, but ultimately no other solution came out.

>>> I would really like to have an option to avoid this.  Is it possible?
>>
>> Not that I know of.  Please read <http://bugs.gnu.org/20255>.
>
> What about making some environment variable which will be honored by
> 'operating-system-etc-service' procedure.  So depending on this variable
> that 'eval ...' command will or will not be added to "/etc/profile"
> during 'guix system ...' process.
>
> For example, when I do:
>
>   GUIX_IGNORE_SYSTEM_PROFILE_ENV=3D1 guix system build my-config.scm
>
> the "etc/profile" of the built system will not contain those 'eval ...'
> lines.  WDYT?

This would be unreasonable.  We=E2=80=99re talking about a basic feature he=
re.
If basic features are broken to the point that we prefer to offer ways
to bypass them, and have a semi-broken system, then there=E2=80=99s a probl=
em,
IMO.

Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Alex Kost <alezost@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 22 Nov 2015 07:53:02 +0000
Resent-Message-ID: <handler.20255.B20255.144817877021332 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144817877021332
          (code B ref 20255); Sun, 22 Nov 2015 07:53:02 +0000
Received: (at 20255) by debbugs.gnu.org; 22 Nov 2015 07:52:50 +0000
Received: from localhost ([127.0.0.1]:47592 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a0PS6-0005Y0-1N
	for submit <at> debbugs.gnu.org; Sun, 22 Nov 2015 02:52:50 -0500
Received: from mail-lf0-f53.google.com ([209.85.215.53]:32967)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <alezost@HIDDEN>) id 1a0PRl-0005XX-PU
 for 20255 <at> debbugs.gnu.org; Sun, 22 Nov 2015 02:52:49 -0500
Received: by lfaz4 with SMTP id z4so91263017lfa.0
 for <20255 <at> debbugs.gnu.org>; Sat, 21 Nov 2015 23:52:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type:content-transfer-encoding;
 bh=xCOo0R+oQD3otLzq3nwj2q64d3VXmMorE0YCoUgVmQg=;
 b=FpLIY9vGiRRl+7ZW6SBDs5wEQ0dhGcPqcAMMK6n2KQ9JjfAvTmiRmfdWo3NmMCd8WK
 a552rU8caRgR1VGf9nOV4rqXF9cKHGdO4CdSAvICQXIPtuYTBk9PIJg2NWHOo/OvGrwj
 /zK+09wSAIaFiKkXi2QbFlUQwQ6lkroPySD8YXS9NwExQj0VPwYtiNBCAnRSWHOFrV04
 cqPQI0LcVFP8Rv+FAcBRME9GweLvjaGSswwsn4ZDtXl/UumNqfNF66wYCWPWgKsdyEYu
 iF+gEMd4s6X8DRjYbcJUrGcxB2DvtWbgo7UaxG9QwD/tywplFfKL5ISERs3MKqP23Zss
 jS+Q==
X-Received: by 10.25.86.9 with SMTP id k9mr9009116lfb.36.1448178748766;
 Sat, 21 Nov 2015 23:52:28 -0800 (PST)
Received: from leviafan ([217.107.192.146])
 by smtp.gmail.com with ESMTPSA id e9sm1022295lbs.13.2015.11.21.23.52.27
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 21 Nov 2015 23:52:28 -0800 (PST)
From: Alex Kost <alezost@HIDDEN>
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
 <87ziy7d90z.fsf@HIDDEN> <874mgfkxee.fsf@HIDDEN>
 <87wptb5d1y.fsf@HIDDEN>
Date: Sun, 22 Nov 2015 10:52:29 +0300
In-Reply-To: <87wptb5d1y.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Sat, 21 Nov 2015 21:10:17 +0100")
Message-ID: <87r3jisc76.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -0.7 (/)

Ludovic Court=C3=A8s (2015-11-21 23:10 +0300) wrote:

> Alex Kost <alezost@HIDDEN> skribis:
>
>> Ludovic Court=C3=A8s (2015-11-21 11:57 +0300) wrote:
>>
>>> Alex Kost <alezost@HIDDEN> skribis:
>>>
>>>> Ludovic Court=C3=A8s (2015-11-20 01:32 +0300) wrote:
>>>>
>>>>> -# Load the system profile's settings.
>>>>> +if [ -x /run/current-system/profile/bin/guix ]
>>>>> +then
>>>>> +  # Crucial variables such as 'MANPATH' or 'INFOPATH' may be missing=
 from the
>>>>> +  # profiles' individual 'etc/profile'.  Thus, combine both profiles=
 when
>>>>> +  # computing the search paths.
>>>>> +  #
>>>>> +  # This may take a few hundred milliseconds, but it's OK because th=
is is
>>>>> +  # performed for log-in shells only.
>>>>> +  eval `/run/current-system/profile/bin/guix package \\
>>>>> +          -p /run/current-system/profile             \\
>>>>> +          -p \"$HOME/.guix-profile\" --search-paths`
>>>>
>>>> Sorry, but it's not OK for me.  As a user, I'm *strongly* against
>>>> running 'guix' (or any other program) in /etc/profile.
>>>
>>> Why?  (Honest question.)
>>
>> At first, because of the slowdown: it may be a few hundred milliseconds
>> for you, but it's several seconds for me.
>
> Really?  Can you show the output of:
>
>   time guix package -p /run/current-system/profile \
>                     -p ~/.guix-profile --search-paths

real	0m2.634s
user	0m0.568s
sys	0m0.080s

Of course, on the second run the real time reduces (for me it's about
0.5), as HDD already "knows" what I want, but since it is for login
shell, it will always be 2-3 seconds because of HDD.

>> But actually, even if it was several milliseconds, I still wouldn't
>> like it, as (IMHO) /etc/profile should only set variables, and not run
>> external programs.
>
> I don=E2=80=99t buy this =E2=80=9Cprinciple=E2=80=9D: /etc/profile is a p=
rogram, and the output
> of --search-paths is trusted to contain only environment variable
> setting.

Sure, it's just my opinion (OK, let call it "faith"): I consider running
external programs in "/etc/profile" malicious.

> In the discussion of this bug, we tried hard to avoid resorting to
> invoking a program, but ultimately no other solution came out.

I don't need a solution for this bug, I just want to have an option to
avoid invoking "guix package --search-paths" in my "/etc/profile".

>>>> I would really like to have an option to avoid this.  Is it possible?
>>>
>>> Not that I know of.  Please read <http://bugs.gnu.org/20255>.
>>
>> What about making some environment variable which will be honored by
>> 'operating-system-etc-service' procedure.  So depending on this variable
>> that 'eval ...' command will or will not be added to "/etc/profile"
>> during 'guix system ...' process.
>>
>> For example, when I do:
>>
>>   GUIX_IGNORE_SYSTEM_PROFILE_ENV=3D1 guix system build my-config.scm
>>
>> the "etc/profile" of the built system will not contain those 'eval ...'
>> lines.  WDYT?
>
> This would be unreasonable.  We=E2=80=99re talking about a basic feature =
here.
> If basic features are broken to the point that we prefer to offer ways
> to bypass them, and have a semi-broken system, then there=E2=80=99s a pro=
blem,
> IMO.

Sorry, but I would really like to bypass this feature, as I don't like
it.  For me, what you suggest sounds: =C2=ABWe'll not give a freedom to a
user to disable this feature, because we know better what is good for
him/her=C2=BB.  All I ask is to give me such a freedom.

Using --search-paths with several profiles is a great feature (thank you
for it!) and I like it, but consider the following use-case: for some
reason I like to manage several profiles instead of a single
"~/.guix-profile", so I can put:

eval `guix package -p /run/current-system/profile \
                   -p ~/.guix-profile \
                   -p ~/my-guix-profiles/foo \
                   -p ~/my-guix-profiles/bar \
                   --search-paths`

in my "~/.bash_profile".  So I don't like to have the same command but
only for 2 profiles in my "/etc/profile".  Please, give me an option to
disable this feature.

--=20
Alex




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 22 Nov 2015 10:54:01 +0000
Resent-Message-ID: <handler.20255.B20255.14481895846825 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Alex Kost <alezost@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.14481895846825
          (code B ref 20255); Sun, 22 Nov 2015 10:54:01 +0000
Received: (at 20255) by debbugs.gnu.org; 22 Nov 2015 10:53:04 +0000
Received: from localhost ([127.0.0.1]:47660 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a0SGV-0001m0-Ri
	for submit <at> debbugs.gnu.org; Sun, 22 Nov 2015 05:53:04 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43163)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1a0SGC-0001l7-6V
 for 20255 <at> debbugs.gnu.org; Sun, 22 Nov 2015 05:53:02 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1a0SG8-0007L5-Le
 for 20255 <at> debbugs.gnu.org; Sun, 22 Nov 2015 05:52:43 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40975)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1a0SG8-0007L1-If; Sun, 22 Nov 2015 05:52:40 -0500
Received: from reverse-83.fdn.fr ([80.67.176.83]:60590 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1a0SG8-0008V0-1w; Sun, 22 Nov 2015 05:52:40 -0500
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
 <87ziy7d90z.fsf@HIDDEN> <874mgfkxee.fsf@HIDDEN>
 <87wptb5d1y.fsf@HIDDEN> <87r3jisc76.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 2 Frimaire an 224 de la =?UTF-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x3D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Sun, 22 Nov 2015 11:52:37 +0100
In-Reply-To: <87r3jisc76.fsf@HIDDEN> (Alex Kost's message of "Sun, 22 Nov
 2015 10:52:29 +0300")
Message-ID: <87lh9q1f2i.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.6 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.6 (-----)

Alex Kost <alezost@HIDDEN> skribis:

>>> At first, because of the slowdown: it may be a few hundred milliseconds
>>> for you, but it's several seconds for me.
>>
>> Really?  Can you show the output of:
>>
>>   time guix package -p /run/current-system/profile \
>>                     -p ~/.guix-profile --search-paths
>
> real	0m2.634s
> user	0m0.568s
> sys	0m0.080s

Ouch, that=E2=80=99s a problem.  This suggests that this is 2 seconds of I/=
O.
I=E2=80=99m not sure what can be done to improve that.

>> In the discussion of this bug, we tried hard to avoid resorting to
>> invoking a program, but ultimately no other solution came out.
>
> I don't need a solution for this bug, I just want to have an option to
> avoid invoking "guix package --search-paths" in my "/etc/profile".

Are you denying that this is a bug?  Are you denying that there=E2=80=99s a
usability issue at hand?

To me, what =E5=AE=8B=E6=96=87=E6=AD=A6 reported at the beginning of this t=
hread is a
usability issue.  We=E2=80=99ve hacked around it so far, but we know there =
are
cases where the hacks aren=E2=80=99t enough.

We could declare it as =E2=80=9Cwon=E2=80=99t fix=E2=80=9D, but I=E2=80=99m=
 not comfortable with that.

>>> For example, when I do:
>>>
>>>   GUIX_IGNORE_SYSTEM_PROFILE_ENV=3D1 guix system build my-config.scm
>>>
>>> the "etc/profile" of the built system will not contain those 'eval ...'
>>> lines.  WDYT?
>>
>> This would be unreasonable.  We=E2=80=99re talking about a basic feature=
 here.
>> If basic features are broken to the point that we prefer to offer ways
>> to bypass them, and have a semi-broken system, then there=E2=80=99s a pr=
oblem,
>> IMO.
>
> Sorry, but I would really like to bypass this feature

[...]

I very well understand your concern, so thanks for chiming in.
Please let=E2=80=99s also consider the bug at hand.

The solution I came up with might be inadequate.  Then we need to come
up with an alternate proposal, or to resign and mark it as =E2=80=9Cwontfix=
.=E2=80=9D

What would you suggest?

Thanks,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Alex Kost <alezost@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 22 Nov 2015 18:45:05 +0000
Resent-Message-ID: <handler.20255.B20255.144821784630082 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144821784630082
          (code B ref 20255); Sun, 22 Nov 2015 18:45:05 +0000
Received: (at 20255) by debbugs.gnu.org; 22 Nov 2015 18:44:06 +0000
Received: from localhost ([127.0.0.1]:48512 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a0ZcM-0007p5-4r
	for submit <at> debbugs.gnu.org; Sun, 22 Nov 2015 13:44:06 -0500
Received: from mail-lf0-f43.google.com ([209.85.215.43]:35511)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <alezost@HIDDEN>) id 1a0ZcJ-0007ow-H1
 for 20255 <at> debbugs.gnu.org; Sun, 22 Nov 2015 13:44:04 -0500
Received: by lfdl133 with SMTP id l133so14554063lfd.2
 for <20255 <at> debbugs.gnu.org>; Sun, 22 Nov 2015 10:44:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type:content-transfer-encoding;
 bh=eFGiOv9zK8gJykCXkbE2YszzgkyUu/bxQSgKjPHDn08=;
 b=QpTegTzWVRb3NnuTCC/lnOWGwdECMmRsJJpIdYICaNPg9rfVYu5QFlEqYDaR88t8z0
 t+aJzfAeknVHVtNA0Xjc+49bW6GvA7CWVhizOBKteudtG+HnxFeW6sGnGAOxopfLmfec
 NCSJSlGeyP4LMhTkGBev3yvexPZmm4Z4XDie7ewNh55tHVZ+ZYH3slzV0S/UZnMajOF0
 i8fbou8JCF1zE1qhLUFPFpr2CKtbPm4YkPa2epaaKtE12RHDTl2gAgjIWvt1pA9DXGGv
 Mt93A+EZiobpAZ5WhfTS2m8VH4YujXkcW4lyotG5Hzt6qtvDWRX1MFL2NcaxAUv8byy7
 iuqw==
X-Received: by 10.25.21.70 with SMTP id l67mr7759908lfi.27.1448217842519;
 Sun, 22 Nov 2015 10:44:02 -0800 (PST)
Received: from leviafan ([217.107.192.146])
 by smtp.gmail.com with ESMTPSA id l81sm1148934lfb.40.2015.11.22.10.44.01
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 22 Nov 2015 10:44:01 -0800 (PST)
From: Alex Kost <alezost@HIDDEN>
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
 <87ziy7d90z.fsf@HIDDEN> <874mgfkxee.fsf@HIDDEN>
 <87wptb5d1y.fsf@HIDDEN> <87r3jisc76.fsf@HIDDEN>
 <87lh9q1f2i.fsf@HIDDEN>
Date: Sun, 22 Nov 2015 21:44:00 +0300
In-Reply-To: <87lh9q1f2i.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Sun, 22 Nov 2015 11:52:37 +0100")
Message-ID: <877fl9q3gv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -0.7 (/)

Ludovic Court=C3=A8s (2015-11-22 13:52 +0300) wrote:

> Alex Kost <alezost@HIDDEN> skribis:
>
>>>> At first, because of the slowdown: it may be a few hundred milliseconds
>>>> for you, but it's several seconds for me.
>>>
>>> Really?  Can you show the output of:
>>>
>>>   time guix package -p /run/current-system/profile \
>>>                     -p ~/.guix-profile --search-paths
>>
>> real	0m2.634s
>> user	0m0.568s
>> sys	0m0.080s
>
> Ouch, that=E2=80=99s a problem.  This suggests that this is 2 seconds of =
I/O.
> I=E2=80=99m not sure what can be done to improve that.
>
>>> In the discussion of this bug, we tried hard to avoid resorting to
>>> invoking a program, but ultimately no other solution came out.
>>
>> I don't need a solution for this bug, I just want to have an option to
>> avoid invoking "guix package --search-paths" in my "/etc/profile".
>
> Are you denying that this is a bug?  Are you denying that there=E2=80=99s=
 a
> usability issue at hand?

I agree it's a usability issue.

> To me, what =E5=AE=8B=E6=96=87=E6=AD=A6 reported at the beginning of this=
 thread is a
> usability issue.  We=E2=80=99ve hacked around it so far, but we know ther=
e are
> cases where the hacks aren=E2=80=99t enough.
>
> We could declare it as =E2=80=9Cwon=E2=80=99t fix=E2=80=9D, but I=E2=80=
=99m not comfortable with that.

No, no, I'm against =E2=80=9Cwon't fix=E2=80=9D.  I don't mind if it's call=
ed a bug, and
a solution you suggest is the best, but it suits only the default case
of a single user profile.  If I have several user profiles, it does
nothing useful for me, only wastes the time.

>>>> For example, when I do:
>>>>
>>>>   GUIX_IGNORE_SYSTEM_PROFILE_ENV=3D1 guix system build my-config.scm
>>>>
>>>> the "etc/profile" of the built system will not contain those 'eval ...'
>>>> lines.  WDYT?
>>>
>>> This would be unreasonable.  We=E2=80=99re talking about a basic featur=
e here.
>>> If basic features are broken to the point that we prefer to offer ways
>>> to bypass them, and have a semi-broken system, then there=E2=80=99s a p=
roblem,
>>> IMO.
>>
>> Sorry, but I would really like to bypass this feature
>
> [...]
>
> I very well understand your concern, so thanks for chiming in.
> Please let=E2=80=99s also consider the bug at hand.

OK, for the bug at hand, invoking "guix package --search-paths" looks
like the only possible solution, but please don't commit this patch
without giving a user a chance to decide what to put in /etc/profile.

> The solution I came up with might be inadequate.  Then we need to come
> up with an alternate proposal, or to resign and mark it as =E2=80=9Cwontf=
ix.=E2=80=9D

It is adequate and I'm not against it.

> What would you suggest?

After all, I realized what is my main concern: "/etc/profile" is
non-editable.  If I don't like some pieces of this file, I can do
nothing, and I just have to live with it and suffer.  Ideally I would
like to decide what pieces I want to put in /etc/profile and what I
don't.  But it's probably not possible, so=E2=80=A6

=E2=80=A6 what I suggest now is just to give an option to avoid generating =
the
default /etc/profile.  What about making an 'operating-system' field for
this file (similar to 'sudoers-file' or 'hosts-file')?  So when such
'profile-file' is specified, it will be used instead of the default one
(of course, it should be mentioned in the manual that it's only for
those users who are sure what they do).

If this 'profile-file' field appears, I will gladly use it, and I will
not object to any future changes in /etc/profile.

--=20
Alex




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 22 Nov 2015 23:05:02 +0000
Resent-Message-ID: <handler.20255.B20255.144823347923312 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Alex Kost <alezost@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144823347923312
          (code B ref 20255); Sun, 22 Nov 2015 23:05:02 +0000
Received: (at 20255) by debbugs.gnu.org; 22 Nov 2015 23:04:39 +0000
Received: from localhost ([127.0.0.1]:48631 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a0dgU-00063v-4F
	for submit <at> debbugs.gnu.org; Sun, 22 Nov 2015 18:04:38 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46539)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1a0dg9-00063O-AJ
 for 20255 <at> debbugs.gnu.org; Sun, 22 Nov 2015 18:04:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1a0dg4-0004kQ-3I
 for 20255 <at> debbugs.gnu.org; Sun, 22 Nov 2015 18:04:17 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53478)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1a0dg4-0004kM-01; Sun, 22 Nov 2015 18:04:12 -0500
Received: from reverse-83.fdn.fr ([80.67.176.83]:49452 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1a0dg3-0004Co-BR; Sun, 22 Nov 2015 18:04:11 -0500
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
 <87ziy7d90z.fsf@HIDDEN> <874mgfkxee.fsf@HIDDEN>
 <87wptb5d1y.fsf@HIDDEN> <87r3jisc76.fsf@HIDDEN>
 <87lh9q1f2i.fsf@HIDDEN> <877fl9q3gv.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 2 Frimaire an 224 de la =?UTF-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x3D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Mon, 23 Nov 2015 00:04:09 +0100
In-Reply-To: <877fl9q3gv.fsf@HIDDEN> (Alex Kost's message of "Sun, 22 Nov
 2015 21:44:00 +0300")
Message-ID: <87h9kdy6ty.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.6 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.6 (-----)

Alex Kost <alezost@HIDDEN> skribis:

> Ludovic Court=C3=A8s (2015-11-22 13:52 +0300) wrote:

[...]

>> To me, what =E5=AE=8B=E6=96=87=E6=AD=A6 reported at the beginning of thi=
s thread is a
>> usability issue.  We=E2=80=99ve hacked around it so far, but we know the=
re are
>> cases where the hacks aren=E2=80=99t enough.
>>
>> We could declare it as =E2=80=9Cwon=E2=80=99t fix=E2=80=9D, but I=E2=80=
=99m not comfortable with that.
>
> No, no, I'm against =E2=80=9Cwon't fix=E2=80=9D.  I don't mind if it's ca=
lled a bug, and
> a solution you suggest is the best,

OK.

> but it suits only the default case of a single user profile.  If I
> have several user profiles, it does nothing useful for me, only wastes
> the time.

I think this is fine.  ~/.guix-profile is treated specially in many
ways.  I think users do not expect other profiles to be magically taken
into account.

> OK, for the bug at hand, invoking "guix package --search-paths" looks
> like the only possible solution, but please don't commit this patch
> without giving a user a chance to decide what to put in /etc/profile.

OK.

>> The solution I came up with might be inadequate.  Then we need to come
>> up with an alternate proposal, or to resign and mark it as =E2=80=9Cwont=
fix.=E2=80=9D
>
> It is adequate and I'm not against it.

OK.  To me, that it takes 2 seconds on your machines suggests that it=E2=80=
=99s
not great either.

>> What would you suggest?
>
> After all, I realized what is my main concern: "/etc/profile" is
> non-editable.  If I don't like some pieces of this file, I can do
> nothing, and I just have to live with it and suffer.  Ideally I would
> like to decide what pieces I want to put in /etc/profile and what I
> don't.  But it's probably not possible, so=E2=80=A6
>
> =E2=80=A6 what I suggest now is just to give an option to avoid generatin=
g the
> default /etc/profile.  What about making an 'operating-system' field for
> this file (similar to 'sudoers-file' or 'hosts-file')?  So when such
> 'profile-file' is specified, it will be used instead of the default one
> (of course, it should be mentioned in the manual that it's only for
> those users who are sure what they do).

I think we could make an /etc/profile-service that receives snippets
meant to be glued together into the final /etc/profile.  Users could
specify the top or bottom of the file.

There could be a combined-search-paths-service that implements the
solution I proposed here.

WDYT?

> If this 'profile-file' field appears, I will gladly use it, and I will
> not object to any future changes in /etc/profile.

Of course we want to offer this flexibility.  But I think it=E2=80=99s also
important to discuss the defaults, to make sure they are acceptable to
many and that they improve the =E2=80=9Cuser experience.=E2=80=9D

Thanks,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Alex Kost <alezost@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 23 Nov 2015 11:56:02 +0000
Resent-Message-ID: <handler.20255.B20255.14482797412339 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.14482797412339
          (code B ref 20255); Mon, 23 Nov 2015 11:56:02 +0000
Received: (at 20255) by debbugs.gnu.org; 23 Nov 2015 11:55:41 +0000
Received: from localhost ([127.0.0.1]:49010 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a0pie-0000be-Lq
	for submit <at> debbugs.gnu.org; Mon, 23 Nov 2015 06:55:41 -0500
Received: from mail-lf0-f50.google.com ([209.85.215.50]:35879)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <alezost@HIDDEN>) id 1a0piK-0000b9-4R
 for 20255 <at> debbugs.gnu.org; Mon, 23 Nov 2015 06:55:38 -0500
Received: by lfs39 with SMTP id 39so105772115lfs.3
 for <20255 <at> debbugs.gnu.org>; Mon, 23 Nov 2015 03:55:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type:content-transfer-encoding;
 bh=e64FRDSvAe3V4w87T6SIxJdNIVhWT15bepedRCxhUKg=;
 b=irkNsnao6BUWg8IFIQcAje8LWnL8PSJr/BmWwKCvgUFJ7LLoMrIDgVUXXb2tDSEI7z
 mE1As+HrHqhorQbmtMOEJyNZUUVSARgKs0aed8ZBDcJ0EoGBBlcPjavKWm3XbZqcPY6+
 p7h89TF6JhtAWXFIDprEI2mlsWnl7EryUZuYjsgJgm9isrzTwiQvBQLRk0lZfkXqGgSd
 OjvgVCp8V43vWeU2RsKeTS+kaX/0A8Fo7DO88Y14zfINYqxa2r7qz51L8n2a+ADjaaGj
 AXCPazgjgqtVE0NadCW/VG7s+rH6a6ZapltEK0PAQRDRVXWxGqltMyV17Xb3cYz3EQnK
 3P3A==
X-Received: by 10.25.39.19 with SMTP id n19mr8571247lfn.156.1448279719117;
 Mon, 23 Nov 2015 03:55:19 -0800 (PST)
Received: from leviafan ([217.107.192.146])
 by smtp.gmail.com with ESMTPSA id g5sm1757469lbd.26.2015.11.23.03.55.18
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 23 Nov 2015 03:55:18 -0800 (PST)
From: Alex Kost <alezost@HIDDEN>
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
 <87ziy7d90z.fsf@HIDDEN> <874mgfkxee.fsf@HIDDEN>
 <87wptb5d1y.fsf@HIDDEN> <87r3jisc76.fsf@HIDDEN>
 <87lh9q1f2i.fsf@HIDDEN> <877fl9q3gv.fsf@HIDDEN>
 <87h9kdy6ty.fsf@HIDDEN>
Date: Mon, 23 Nov 2015 14:55:18 +0300
In-Reply-To: <87h9kdy6ty.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Mon, 23 Nov 2015 00:04:09 +0100")
Message-ID: <871tbh53rt.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -0.7 (/)

Ludovic Court=C3=A8s (2015-11-23 02:04 +0300) wrote:

> Alex Kost <alezost@HIDDEN> skribis:
>
>> Ludovic Court=C3=A8s (2015-11-22 13:52 +0300) wrote:
>
> [...]
>
>> but it suits only the default case of a single user profile.  If I
>> have several user profiles, it does nothing useful for me, only wastes
>> the time.
>
> I think this is fine.  ~/.guix-profile is treated specially in many
> ways.  I think users do not expect other profiles to be magically taken
> into account.

Yes, this is a good default option, all I wanted to say is if I don't
use Guix in a default way, I would like to change this default option to
suit my needs.

>>> What would you suggest?
>>
>> After all, I realized what is my main concern: "/etc/profile" is
>> non-editable.  If I don't like some pieces of this file, I can do
>> nothing, and I just have to live with it and suffer.  Ideally I would
>> like to decide what pieces I want to put in /etc/profile and what I
>> don't.  But it's probably not possible, so=E2=80=A6
>>
>> =E2=80=A6 what I suggest now is just to give an option to avoid generati=
ng the
>> default /etc/profile.  What about making an 'operating-system' field for
>> this file (similar to 'sudoers-file' or 'hosts-file')?  So when such
>> 'profile-file' is specified, it will be used instead of the default one
>> (of course, it should be mentioned in the manual that it's only for
>> those users who are sure what they do).
>
> I think we could make an /etc/profile-service that receives snippets
> meant to be glued together into the final /etc/profile.  Users could
> specify the top or bottom of the file.
>
> There could be a combined-search-paths-service that implements the
> solution I proposed here.
>
> WDYT?

I agree, the more ways to change a default behaviour, the better.
Although I will not use these things if there will be =E2=80=98profile-file=
=E2=80=99
field that allows to specify my own "/etc/profile".

>> If this 'profile-file' field appears, I will gladly use it, and I will
>> not object to any future changes in /etc/profile.
>
> Of course we want to offer this flexibility.

Great!  So is it OK to send a patch for adding =E2=80=98profile-file=E2=80=
=99 field?

>  But I think it=E2=80=99s also
> important to discuss the defaults, to make sure they are acceptable to
> many and that they improve the =E2=80=9Cuser experience.=E2=80=9D

I'm probably not the person to discuss the defaults, as very often I
find defaults inappropriate.  For example, invoking "guix package
--search-paths" in /etc/profile is a totally unacceptable default for
me (sorry for mentioning it all the time :-))

--=20
Alex




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 23 Nov 2015 14:32:03 +0000
Resent-Message-ID: <handler.20255.B20255.144828910930563 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Alex Kost <alezost@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144828910930563
          (code B ref 20255); Mon, 23 Nov 2015 14:32:03 +0000
Received: (at 20255) by debbugs.gnu.org; 23 Nov 2015 14:31:49 +0000
Received: from localhost ([127.0.0.1]:49163 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a0s9e-0007wk-DG
	for submit <at> debbugs.gnu.org; Mon, 23 Nov 2015 09:31:42 -0500
Received: from eggs.gnu.org ([208.118.235.92]:41341)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1a0s9H-0007vH-B9
 for 20255 <at> debbugs.gnu.org; Mon, 23 Nov 2015 09:31:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1a0s9C-0006b2-VJ
 for 20255 <at> debbugs.gnu.org; Mon, 23 Nov 2015 09:31:18 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37612)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1a0s9C-0006as-Ri; Mon, 23 Nov 2015 09:31:14 -0500
Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:37108 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1a0s9C-0000Y0-8R; Mon, 23 Nov 2015 09:31:14 -0500
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
 <87ziy7d90z.fsf@HIDDEN> <874mgfkxee.fsf@HIDDEN>
 <87wptb5d1y.fsf@HIDDEN> <87r3jisc76.fsf@HIDDEN>
 <87lh9q1f2i.fsf@HIDDEN> <877fl9q3gv.fsf@HIDDEN>
 <87h9kdy6ty.fsf@HIDDEN> <871tbh53rt.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 3 Frimaire an 224 de la =?UTF-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x3D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Mon, 23 Nov 2015 15:31:12 +0100
In-Reply-To: <871tbh53rt.fsf@HIDDEN> (Alex Kost's message of "Mon, 23 Nov
 2015 14:55:18 +0300")
Message-ID: <87vb8sss7j.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.6 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.6 (-----)

Alex Kost <alezost@HIDDEN> skribis:

> Ludovic Court=C3=A8s (2015-11-23 02:04 +0300) wrote:
>
>> Alex Kost <alezost@HIDDEN> skribis:
>>
>>> Ludovic Court=C3=A8s (2015-11-22 13:52 +0300) wrote:
>>
>> [...]
>>
>>> but it suits only the default case of a single user profile.  If I
>>> have several user profiles, it does nothing useful for me, only wastes
>>> the time.
>>
>> I think this is fine.  ~/.guix-profile is treated specially in many
>> ways.  I think users do not expect other profiles to be magically taken
>> into account.
>
> Yes, this is a good default option, all I wanted to say is if I don't
> use Guix in a default way, I would like to change this default option to
> suit my needs.

IMO this is beyond the scope of this discussion: /etc/profile already
sources ~/.guix-profile/etc/profile explicitly, and not anything else.

[...]

>>> =E2=80=A6 what I suggest now is just to give an option to avoid generat=
ing the
>>> default /etc/profile.  What about making an 'operating-system' field for
>>> this file (similar to 'sudoers-file' or 'hosts-file')?  So when such
>>> 'profile-file' is specified, it will be used instead of the default one
>>> (of course, it should be mentioned in the manual that it's only for
>>> those users who are sure what they do).
>>
>> I think we could make an /etc/profile-service that receives snippets
>> meant to be glued together into the final /etc/profile.  Users could
>> specify the top or bottom of the file.
>>
>> There could be a combined-search-paths-service that implements the
>> solution I proposed here.
>>
>> WDYT?
>
> I agree, the more ways to change a default behaviour, the better.
> Although I will not use these things if there will be =E2=80=98profile-fi=
le=E2=80=99
> field that allows to specify my own "/etc/profile".

[...]

> Great!  So is it OK to send a patch for adding =E2=80=98profile-file=E2=
=80=99 field?

Hmm, I=E2=80=99m not sure if we want to give direct access to /etc/profile =
like
this.

The problem is that several things in there are here to make the system
work, and to to make it conform to the =E2=80=98operating-system=E2=80=99 d=
eclaration,
such as:

--8<---------------cut here---------------start------------->8---
export LANG=3D"en_US.utf8"
export TZ=3D"Europe/Paris"
export TZDIR=3D"/gnu/store/rwvf6xqgsyb8bmpi7rwk9fildnwvzrv5-tzdata-2015c/sh=
are/zoneinfo"

# Tell 'modprobe' & co. where to look for modules.
export LINUX_MODULE_DIRECTORY=3D/run/booted-system/kernel/lib/modules
--8<---------------cut here---------------end--------------->8---

The risk I see with adding a raw =E2=80=98profile-file=E2=80=99 option is t=
hat newcomers
may end up getting rid of such things without really noticing, and then
getting a broken system.

What about instead giving a way to populate the top and/or bottom of
this file?  Controversial parts, if any, could still be turned on and
off by adding or removing services that add these lines?

I think we should open a separate bug report to discuss this.

>>  But I think it=E2=80=99s also
>> important to discuss the defaults, to make sure they are acceptable to
>> many and that they improve the =E2=80=9Cuser experience.=E2=80=9D
>
> I'm probably not the person to discuss the defaults, as very often I
> find defaults inappropriate.

Understood.  I=E2=80=99m sure you=E2=80=99ll understand, though, that it=E2=
=80=99s in the
interest of the project and its users to provide a good user experience
firsthand.

Thanks for your feedback,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 24 Nov 2015 17:23:02 +0000
Resent-Message-ID: <handler.20255.B20255.144838575911424 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Alex Kost <alezost@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144838575911424
          (code B ref 20255); Tue, 24 Nov 2015 17:23:02 +0000
Received: (at 20255) by debbugs.gnu.org; 24 Nov 2015 17:22:39 +0000
Received: from localhost ([127.0.0.1]:51595 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a1HId-0002yB-JM
	for submit <at> debbugs.gnu.org; Tue, 24 Nov 2015 12:22:39 -0500
Received: from eggs.gnu.org ([208.118.235.92]:58834)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1a1HIc-0002y4-LT
 for 20255 <at> debbugs.gnu.org; Tue, 24 Nov 2015 12:22:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1a1HIX-0002eR-Ji
 for 20255 <at> debbugs.gnu.org; Tue, 24 Nov 2015 12:22:38 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33474)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1a1HIX-0002eM-Hd; Tue, 24 Nov 2015 12:22:33 -0500
Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:34776 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1a1HIW-00089g-Mf; Tue, 24 Nov 2015 12:22:33 -0500
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
 <87ziy7d90z.fsf@HIDDEN> <874mgfkxee.fsf@HIDDEN>
 <87wptb5d1y.fsf@HIDDEN> <87r3jisc76.fsf@HIDDEN>
Date: Tue, 24 Nov 2015 18:22:30 +0100
In-Reply-To: <87r3jisc76.fsf@HIDDEN> (Alex Kost's message of "Sun, 22 Nov
 2015 10:52:29 +0300")
Message-ID: <877fl7cnxl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.6 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.6 (-----)

Alex Kost <alezost@HIDDEN> skribis:

> Ludovic Court=C3=A8s (2015-11-21 23:10 +0300) wrote:

[...]

>> Really?  Can you show the output of:
>>
>>   time guix package -p /run/current-system/profile \
>>                     -p ~/.guix-profile --search-paths
>
> real	0m2.634s
> user	0m0.568s
> sys	0m0.080s

Could you measure again after cc3de1d?

As it turns out, =E2=80=98guix package=E2=80=99 loads way too much and also=
 stats too
much, at least for simple operations like --search-paths.

Thanks,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
In-Reply-To: <877ftschjt.fsf@HIDDEN>
Resent-From: Alex Kost <alezost@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 30 Nov 2015 09:10:03 +0000
Resent-Message-ID: <handler.20255.B20255.144887454529607 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144887454529607
          (code B ref 20255); Mon, 30 Nov 2015 09:10:03 +0000
Received: (at 20255) by debbugs.gnu.org; 30 Nov 2015 09:09:05 +0000
Received: from localhost ([127.0.0.1]:60080 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a3KSH-0007hS-In
	for submit <at> debbugs.gnu.org; Mon, 30 Nov 2015 04:09:05 -0500
Received: from mail-lf0-f42.google.com ([209.85.215.42]:35230)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <alezost@HIDDEN>) id 1a3KSF-0007hK-0y
 for 20255 <at> debbugs.gnu.org; Mon, 30 Nov 2015 04:09:03 -0500
Received: by lfdl133 with SMTP id l133so187042451lfd.2
 for <20255 <at> debbugs.gnu.org>; Mon, 30 Nov 2015 01:09:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:message-id:user-agent
 :mime-version:content-type:content-transfer-encoding;
 bh=gQiHa5yVAJSW6oXw+8I3JKqeI6GKnZGUd896kRyXYYU=;
 b=y0DL9lZMuprm3Y3ri2yVWNIptauP5dx6aDJ455DXtoLaZvh4sUR86JkMholaawqKDh
 LljuO+xlOt/toZAHqiLVDjpaSK3ToMpRN86q0bfgUHgLqGs1k822UZQi1dbnIbt0XuKy
 Lsp1VtW/sTNr1j9qeUbekMP2XsTgOuqc3mbBRfWjj8rmmmoSPTzCCBDH4Y663+pNLlVZ
 yPgMZevixO7eIBD+sYCcHSS7jl7AfQ5moYTsKzxegNP9eTwUv8FBheVRUR5j5F8lbE8S
 8OD8uUp6ZS5fj9aYsn/5bvjQySMnpW8iHmT76bqcR5AzC5VcrYrE7h5weGR35vwsLY/s
 VEEQ==
X-Received: by 10.25.17.232 with SMTP id 101mr26214402lfr.38.1448874542060;
 Mon, 30 Nov 2015 01:09:02 -0800 (PST)
Received: from leviafan ([217.107.192.146])
 by smtp.gmail.com with ESMTPSA id l81sm6980725lfb.40.2015.11.30.01.09.00
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 30 Nov 2015 01:09:01 -0800 (PST)
From: Alex Kost <alezost@HIDDEN>
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
 <87ziy7d90z.fsf@HIDDEN> <874mgfkxee.fsf@HIDDEN>
 <87wptb5d1y.fsf@HIDDEN> <87r3jisc76.fsf@HIDDEN>
 <877fl7cnxl.fsf@HIDDEN>
Date: Mon, 30 Nov 2015 12:08:59 +0300
Message-ID: <874mg3dfbo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -0.7 (/)

Ludovic Court=C3=A8s (2015-11-24 20:22 +0300) wrote:

> Alex Kost <alezost@HIDDEN> skribis:
>
>> Ludovic Court=C3=A8s (2015-11-21 23:10 +0300) wrote:
>
> [...]
>
>>> Really?  Can you show the output of:
>>>
>>>   time guix package -p /run/current-system/profile \
>>>                     -p ~/.guix-profile --search-paths
>>
>> real	0m2.634s
>> user	0m0.568s
>> sys	0m0.080s
>
> Could you measure again after cc3de1d?
>
> As it turns out, =E2=80=98guix package=E2=80=99 loads way too much and al=
so stats too
> much, at least for simple operations like --search-paths.

real	0m1.122s
user	0m0.244s
sys	0m0.044s

I measured it several times with a "cold" HDD (I mean when appropriate
files were not cached), and the real time was always 1.0=E2=80=941.3s.  Big
improvement!  Thank you very much for this, autoloads are great!

--=20
Alex




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 30 Nov 2015 12:26:01 +0000
Resent-Message-ID: <handler.20255.B20255.144888631214760 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Alex Kost <alezost@HIDDEN>
Cc: 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.144888631214760
          (code B ref 20255); Mon, 30 Nov 2015 12:26:01 +0000
Received: (at 20255) by debbugs.gnu.org; 30 Nov 2015 12:25:12 +0000
Received: from localhost ([127.0.0.1]:60173 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a3NW3-0003pz-UU
	for submit <at> debbugs.gnu.org; Mon, 30 Nov 2015 07:25:12 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43228)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1a3NW1-0003pr-6s
 for 20255 <at> debbugs.gnu.org; Mon, 30 Nov 2015 07:25:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1a3NVv-0000RO-7T
 for 20255 <at> debbugs.gnu.org; Mon, 30 Nov 2015 07:25:09 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45088)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1a3NVv-0000RK-4Q; Mon, 30 Nov 2015 07:25:03 -0500
Received: from [85.119.43.29] (port=41760 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1a3NVu-0002kk-FK; Mon, 30 Nov 2015 07:25:02 -0500
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <877ftschjt.fsf@HIDDEN> <87fv8fip01.fsf@HIDDEN>
 <87d23j1bxk.fsf@HIDDEN> <871tjyfnl8.fsf@HIDDEN>
 <876199q4z1.fsf@HIDDEN> <87ioca4ojo.fsf@HIDDEN>
 <87lh9tvcws.fsf@HIDDEN> <87h9kguwc4.fsf@HIDDEN>
 <87ziy7d90z.fsf@HIDDEN> <874mgfkxee.fsf@HIDDEN>
 <87wptb5d1y.fsf@HIDDEN> <87r3jisc76.fsf@HIDDEN>
 <877fl7cnxl.fsf@HIDDEN> <874mg3dfbo.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 10 Frimaire an 224 de la =?UTF-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x3D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Mon, 30 Nov 2015 13:25:00 +0100
In-Reply-To: <874mg3dfbo.fsf@HIDDEN> (Alex Kost's message of "Mon, 30 Nov
 2015 12:08:59 +0300")
Message-ID: <87r3j7d68z.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -5.0 (-----)

Alex Kost <alezost@HIDDEN> skribis:

> Ludovic Court=C3=A8s (2015-11-24 20:22 +0300) wrote:
>
>> Alex Kost <alezost@HIDDEN> skribis:
>>
>>> Ludovic Court=C3=A8s (2015-11-21 23:10 +0300) wrote:
>>
>> [...]
>>
>>>> Really?  Can you show the output of:
>>>>
>>>>   time guix package -p /run/current-system/profile \
>>>>                     -p ~/.guix-profile --search-paths
>>>
>>> real	0m2.634s
>>> user	0m0.568s
>>> sys	0m0.080s
>>
>> Could you measure again after cc3de1d?
>>
>> As it turns out, =E2=80=98guix package=E2=80=99 loads way too much and a=
lso stats too
>> much, at least for simple operations like --search-paths.
>
> real	0m1.122s
> user	0m0.244s
> sys	0m0.044s
>
> I measured it several times with a "cold" HDD (I mean when appropriate
> files were not cached), and the real time was always 1.0=E2=80=941.3s.  B=
ig
> improvement!  Thank you very much for this, autoloads are great!

Great, thanks for testing!  That=E2=80=99s still too much to my state, but =
it=E2=80=99s
already an improvement.

Ludo=E2=80=99.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 19 Dec 2015 17:23:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 19 12:23:46 2015
Received: from localhost ([127.0.0.1]:57172 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aALEQ-00069T-6C
	for submit <at> debbugs.gnu.org; Sat, 19 Dec 2015 12:23:46 -0500
Received: from eggs.gnu.org ([208.118.235.92]:33561)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <ludo@HIDDEN>) id 1aALEO-00069H-U2
 for control <at> debbugs.gnu.org; Sat, 19 Dec 2015 12:23:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1aALEG-0001bL-Q5
 for control <at> debbugs.gnu.org; Sat, 19 Dec 2015 12:23:39 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44427)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1aALEG-0001bH-NH
 for control <at> debbugs.gnu.org; Sat, 19 Dec 2015 12:23:36 -0500
Received: from reverse-83.fdn.fr ([80.67.176.83]:53760 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1aALEG-0005XK-0l
 for control <at> debbugs.gnu.org; Sat, 19 Dec 2015 12:23:36 -0500
Date: Sat, 19 Dec 2015 18:23:34 +0100
Message-Id: <8737uyz71l.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
Subject: control message for bug #20255
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: control
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: -5.0 (-----)

tags 20255 patch




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: (old)bug#20255: 'search-paths' should respect both user and system profiles
References: <877ftschjt.fsf@HIDDEN>
In-Reply-To: <877ftschjt.fsf@HIDDEN>
Resent-From: zimoun <zimon.toutoune@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 21 Feb 2020 15:55:01 +0000
Resent-Message-ID: <handler.20255.B20255.158230044923830 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: 20255 <at> debbugs.gnu.org
Cc: iyzsong@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Alex Kost <alezost@HIDDEN>, mhw@HIDDEN
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.158230044923830
          (code B ref 20255); Fri, 21 Feb 2020 15:55:01 +0000
Received: (at 20255) by debbugs.gnu.org; 21 Feb 2020 15:54:09 +0000
Received: from localhost ([127.0.0.1]:47861 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j5Acy-0006CI-T4
	for submit <at> debbugs.gnu.org; Fri, 21 Feb 2020 10:54:09 -0500
Received: from mail-qt1-f173.google.com ([209.85.160.173]:34777)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1j5Acx-0006Bl-NE
 for 20255 <at> debbugs.gnu.org; Fri, 21 Feb 2020 10:54:07 -0500
Received: by mail-qt1-f173.google.com with SMTP id l16so1601874qtq.1
 for <20255 <at> debbugs.gnu.org>; Fri, 21 Feb 2020 07:54:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to:cc;
 bh=2kUO9mkpMemzASdzAkMeBGH1sVQihEULydTYggw/OB8=;
 b=XazQHeCO31rg5sJQWV3IcBKhwoRmr4iBTIIxmt8hXgN0J52hJHjI0AhGnQ0gBqJfnN
 P97+KsLh1CTJVEQKIfH2GNeAYSjz82rzKQsZy8wKUGV9zVx+MmZPm7YngmnMJowUcFhs
 ky034jtieyaqFaDeVsN7Pgy5/mDDkJIovXhEZpU/7UUDVyCFGIE/Kw+EGzWmaPDXr+sR
 HEbyfaEumW5cgvD8V8lhA+HMnkOcRWP4tK9EHo6ekmbl8pSyyxn6TNPUld/FNIkZgtmS
 s5CGSJubHf7G/QgLV6RQfkt6vfzQDzKuJ+0iz7rjC7xGME1Ds1igeQDdy6z3FXjS4wi+
 UI9g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc;
 bh=2kUO9mkpMemzASdzAkMeBGH1sVQihEULydTYggw/OB8=;
 b=pkWukRy3KSgJwi6OjXHVHLDAEfktIdU5PiIjVnuGX+c7rAltgdK/6YOPc4qf5gDe0E
 R80DEcx5qr59dbhYySoky3OSmXW4X5YQ0nGUm9cF5tXbb2eXtoaKzwiTkPhLUYlBOx7K
 OFqnPBp67GdeGETCCrI938gGjD7PXwZ9KZzILHvfX8RetDWS82389K/f4MvIXHR8xmnU
 fzaJxeLSkZC6aomF2+jsucmhnhPIr+GmTUtG0HgqvB2jXijda+TtGoclaIekkX6w0BuP
 5I6nPdqjKbKaNiSvq+qne8v6wYu1I1+ElTMqZzGrXXjlrHsfvwvk2/+nUOaMXgdgbp8X
 MnjA==
X-Gm-Message-State: APjAAAXBkkaUhcAZ/uRTJKxuymK5NUxHZJfhlmdwr5h/ASSlteK8awh6
 FtikOF0gqwVnnPho0U/LHLDwt/5UB3sdiAzHI/tjxw9Y
X-Google-Smtp-Source: APXvYqwfqDUg73lnGMlxZ6xVCBq82sNBMNRIGOZSmskJdZ48cEPaCgSkf6JJkNd6UqgRYfcXX8+0FOE4+Q0weoFU6es=
X-Received: by 2002:ac8:319c:: with SMTP id h28mr33229962qte.186.1582300440597; 
 Fri, 21 Feb 2020 07:54:00 -0800 (PST)
MIME-Version: 1.0
From: zimoun <zimon.toutoune@HIDDEN>
Date: Fri, 21 Feb 2020 16:53:49 +0100
Message-ID: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
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 (-)

Dear,

What is the status of the bug#20255 [1]?
It is old; the last activity seems back on 2015, November. So let resume.

The issue is, e.g.:
 - perl installed into the system profile
 - perl-xml-parser installed into an user profile
Then "guix package --search-paths" does not set correctly XML::Parser.


Fixes had been pushed: dedb17a and b2a7223 and cc3de1d.

The final fix is still missing. Because it is a controversial patch
[2] :-) i.e., running 'guix' in '/etc/profile'; see these lines of the
patch:

--8<---------------cut here---------------start------------->8---
+  eval `/run/current-system/profile/bin/guix package \\
+          -p /run/current-system/profile             \\
+          -p \"$HOME/.guix-profile\" --search-paths`
--8<---------------cut here---------------end--------------->8---


The friendly "protest" [3] is about turning these lines optional via
an environment variable. I am not sure to follow where the discussion
had been going then.



Well, is the issue still happening 4 years later?
If yes, what should be the fix? What is the status quo?
If no, let close the bug.



Note that other patches are still pending [4] and [5] -- probably
irrelevant now.



All the best,
simon


[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20255
[2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20255#41
[3] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20255#44
[4] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20255#8
[5] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20255#26




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: (old)bug#20255: 'search-paths' should respect both user and system profiles
Resent-From: Alex Kost <alezost@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 21 Feb 2020 17:19:02 +0000
Resent-Message-ID: <handler.20255.B20255.15823055347906 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: zimoun <zimon.toutoune@HIDDEN>
Cc: iyzsong@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 20255 <at> debbugs.gnu.org, mhw@HIDDEN
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.15823055347906
          (code B ref 20255); Fri, 21 Feb 2020 17:19:02 +0000
Received: (at 20255) by debbugs.gnu.org; 21 Feb 2020 17:18:54 +0000
Received: from localhost ([127.0.0.1]:48010 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j5Bx0-00023S-B7
	for submit <at> debbugs.gnu.org; Fri, 21 Feb 2020 12:18:54 -0500
Received: from mail-lf1-f45.google.com ([209.85.167.45]:44562)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alezost@HIDDEN>) id 1j5Bwz-00023G-3G
 for 20255 <at> debbugs.gnu.org; Fri, 21 Feb 2020 12:18:53 -0500
Received: by mail-lf1-f45.google.com with SMTP id 7so2019593lfz.11
 for <20255 <at> debbugs.gnu.org>; Fri, 21 Feb 2020 09:18:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=VmHHW0xwnVoYVG0IUHqfvmUS4CNowYgeV99ESKIr3NI=;
 b=P+a35f7A21GcbdW9xBG0qDRFacmyaUsSvX44gYlqFu7lsOEi1oibYy4U0+EbsZJYdE
 cCcezOnKoRRaQUalnohaTPD7h+kW9jGfSWxkEXvYo79fN/WOWY3S2eNAPHlAvd7IBi/T
 9nycwfHQywts+jIx1/uvz9f+a6CQJhfhlvHX0OJCAIKISHQr+Wy28m/6Tmj0yGQ7iMUz
 WzvTd1Tt5im4p7iPLkwn6wXkB/hpTEHhoPBkgEyuv1MVkDjRqkMK8KieLAUP4vHXn2Fl
 XmfQmXYDsmHo83D2uSvqOtcEoEh5xr/o4xuYtl5TNc4l2cw9jkcDUSpACEXzWw36vHxf
 Xa+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=VmHHW0xwnVoYVG0IUHqfvmUS4CNowYgeV99ESKIr3NI=;
 b=jOPmUW8kNs57nv0m7f2kpMC9dK+S4nJRbPlD3qMx2HGAThXyqoCNUmXlWaK5RI1LRZ
 rBEYMJ3BBrk90G/C93V8H6FizU/6rdcIvpES5J2TiiPMR+RP7qfskRER5FDbyp38bMml
 JENaoO/3pJ2FFCSI5709rN2t/OpjyYkuuPElquwd4AQaMqwGzNaapM0uqXFQ+WSeRCvL
 8gzsHyMwzIzke/vo30E+zkVTx07WpnCTEWOIjbtR+SOs4f3wAUZcxe2I9xto9hGn7vMg
 UxJyzoq8RJR+a46tqdTs2F0Dw23yGS2nH9xin8cjMIq0Jqe5oOwspS7zMxlB6RxtTUNK
 xKSQ==
X-Gm-Message-State: APjAAAUf9HNQqYfENItZ6T8FHYwJdpVYCdA1vnwnzthnREBMId1qHkgR
 Pkwyxduc2F+8qHERZW+rkSw=
X-Google-Smtp-Source: APXvYqxE17pbVt3WywJ3SupZd1tJY8Ga7CJL2AxeePi0bF9rlj8nWt9mwKoAA9lEXZtygsXXrH/fMg==
X-Received: by 2002:ac2:44d5:: with SMTP id d21mr20150502lfm.188.1582305527005; 
 Fri, 21 Feb 2020 09:18:47 -0800 (PST)
Received: from leviafan ([217.107.194.103])
 by smtp.gmail.com with ESMTPSA id n13sm2015271lji.91.2020.02.21.09.18.45
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 21 Feb 2020 09:18:46 -0800 (PST)
From: Alex Kost <alezost@HIDDEN>
References: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
Date: Fri, 21 Feb 2020 20:18:52 +0300
In-Reply-To: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 (zimoun's message of "Fri, 21 Feb 2020 16:53:49 +0100")
Message-ID: <87eeun97ur.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
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 (-)

zimoun (2020-02-21 16:53 +0100) wrote:

> Dear,
>
> What is the status of the bug#20255 [1]?
> It is old; the last activity seems back on 2015, November. So let resume.
>
> The issue is, e.g.:
>  - perl installed into the system profile
>  - perl-xml-parser installed into an user profile
> Then "guix package --search-paths" does not set correctly XML::Parser.
>
>
> Fixes had been pushed: dedb17a and b2a7223 and cc3de1d.
>
> The final fix is still missing. Because it is a controversial patch
> [2] :-) i.e., running 'guix' in '/etc/profile'; see these lines of the
> patch:
>
> +  eval `/run/current-system/profile/bin/guix package \\
> +          -p /run/current-system/profile             \\
> +          -p \"$HOME/.guix-profile\" --search-paths`
>
>
> The friendly "protest" [3] is about turning these lines optional via
> an environment variable. I am not sure to follow where the discussion
> had been going then.

As for me, I am OK with any default setting as long as there is a way to
change it.  I recall Ludovic proposed a patch that allowed to customize
"/etc/profile" and I was happy about it, but he changed his mind on that
patch so it was never committed.

-- 
Alex




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: =?UTF-8?Q?=C2=ABthe_?= =?UTF-8?Q?Oldest=C2=BB?= [PATCH] 'search-paths' should respect both user and system profiles
Resent-From: zimoun <zimon.toutoune@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 18 Dec 2020 20:36:02 +0000
Resent-Message-ID: <handler.20255.B20255.160832375222566 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: 20255 <at> debbugs.gnu.org, Christopher Baines <mail@HIDDEN>
Cc: iyzsong@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Alex Kost <alezost@HIDDEN>, Maxim Cournoyer <maxim.cournoyer@HIDDEN>, mhw@HIDDEN
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.160832375222566
          (code B ref 20255); Fri, 18 Dec 2020 20:36:02 +0000
Received: (at 20255) by debbugs.gnu.org; 18 Dec 2020 20:35:52 +0000
Received: from localhost ([127.0.0.1]:40088 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kqMTf-0005ru-V2
	for submit <at> debbugs.gnu.org; Fri, 18 Dec 2020 15:35:52 -0500
Received: from mail-wr1-f51.google.com ([209.85.221.51]:43164)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kqMTe-0005rg-6r
 for 20255 <at> debbugs.gnu.org; Fri, 18 Dec 2020 15:35:50 -0500
Received: by mail-wr1-f51.google.com with SMTP id y17so3644387wrr.10
 for <20255 <at> debbugs.gnu.org>; Fri, 18 Dec 2020 12:35:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=uN3CTUkjl3mv5E4sKx5UfyiuQV5tCpqC7pI/ZDxg5Ww=;
 b=BdGzh7QhXBQ4bs24jMg4hj/h92k64olIWek34KYLqK9hMpFruksnaBVVD+GbIOgOm+
 Ike+zIvn1SY8QMK3BvX8fOPbXZju4kWVgKUhAkLWspHJJhhctqsph9ILQ1OmhGLjhuM6
 E1i4bM9oFsj2MPhK2GY/bz2Bn/ch2kFp0/oYAVM8f56UblmDj3nb3oazBkCsBt3j/N/c
 E5dn13XYxoAOS7B8dYMYQ/y686SfT9OihYRKdxzwREotCojoKxq9hrqDNgveVVc2BEmL
 aUVyhmCefCbA95uSXKd1++zrhnFRDm89CoqR3Y5Qrl2qZepTQXbHSbIFG3s7y1vR/vJO
 QH+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=uN3CTUkjl3mv5E4sKx5UfyiuQV5tCpqC7pI/ZDxg5Ww=;
 b=F9CDBzu2GDbxp5L0ZjPv0JupEK6CTNvJZg09v5btVAInRLe6GUM/JTAvhrpzsRf3FQ
 J8DqtKOPbuxym0T6PTbtVvHUZNzujBgZmrR8zY+4JCZOKf+dgTnin9I+7/AdSXGWD9zM
 T6Mt6qoGDvQ8YgD5prUKSM0QOG7qk3u4mjYDRqJXPvFiDHfCgNwtQc0fQApKTjXXIprp
 QqLv/BA0pk4emnUYW/EwIu6M9qs6tRVGNPgs6n0bas5JApMMGq+1pxcn3Pb2YoBKyM5L
 b8JZHsoIpV/BZchCFTVIS+cykaNCrXk5+/3NcGTGFvQdwNc78b5PMwkRjpeEF22O9fO8
 WYvA==
X-Gm-Message-State: AOAM533E4joi/KiS7yjASGsnG3q2X4zI/C2kAEsP+34BFepkkPGcAhBv
 RbOl6SlE1iNEn76Hnd+xdJM=
X-Google-Smtp-Source: ABdhPJxl9JgRdecp5VI0273d3aoA87YSz357c7aCUvtRQKM8IX26WLDl7t2Le/2L2P4SLMMaS043pg==
X-Received: by 2002:adf:97ce:: with SMTP id t14mr6316038wrb.368.1608323744235; 
 Fri, 18 Dec 2020 12:35:44 -0800 (PST)
Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id c4sm16046857wrw.72.2020.12.18.12.35.43
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 18 Dec 2020 12:35:43 -0800 (PST)
From: zimoun <zimon.toutoune@HIDDEN>
References: <877ftschjt.fsf@HIDDEN>
 <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
Date: Fri, 18 Dec 2020 21:27:52 +0100
In-Reply-To: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 (zimoun's message of "Fri, 21 Feb 2020 16:53:49 +0100")
Message-ID: <86v9cyuaev.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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 (-)

Hi,

The bug#20255 [#] is the oldest patch, still there even if almost is
done.  Let enjoy this patch squash day on Dec. the 18th [0] to close
it. ;-)

Below the summary I wrote couple of months ago.  And the Alex=E2=80=99s ans=
wer:

        As for me, I am OK with any default setting as long as there is a w=
ay to
        change it.  I recall Ludovic proposed a patch that allowed to custo=
mize
        "/etc/profile" and I was happy about it, but he changed his mind on=
 that
        patch so it was never committed.

Let=E2=80=99s tackle it! :-)

0: <https://lists.gnu.org/archive/html/guix-devel/2020-12/msg00215.html>


All the best,
simon

#: <http://issues.guix.gnu.org/issue/20255>


On Fri, 21 Feb 2020 at 16:53, zimoun <zimon.toutoune@HIDDEN> wrote:

> What is the status of the bug#20255 [1]?
> It is old; the last activity seems back on 2015, November. So let resume.
>
> The issue is, e.g.:
>  - perl installed into the system profile
>  - perl-xml-parser installed into an user profile
> Then "guix package --search-paths" does not set correctly XML::Parser.
>
> Fixes had been pushed: dedb17a and b2a7223 and cc3de1d.
>
> The final fix is still missing. Because it is a controversial patch
> [2] :-) i.e., running 'guix' in '/etc/profile'; see these lines of the
> patch:
>
> +  eval `/run/current-system/profile/bin/guix package \\
> +          -p /run/current-system/profile             \\
> +          -p \"$HOME/.guix-profile\" --search-paths`
>
>
> The friendly "protest" [3] is about turning these lines optional via
> an environment variable. I am not sure to follow where the discussion
> had been going then.
>
> Well, is the issue still happening 4 years later?
> If yes, what should be the fix? What is the status quo?
> If no, let close the bug.
>
> Note that other patches are still pending [4] and [5] -- probably
> irrelevant now.
>
> All the best,
> simon
>
>
> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20255
> [2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20255#41
> [3] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20255#44
> [4] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20255#8
> [5] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20255#26





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 26 Jun 2021 02:38:02 +0000
Resent-Message-ID: <handler.20255.B20255.162467503122814 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Alex Kost <alezost@HIDDEN>
Cc: mhw@HIDDEN, iyzsong@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 20255 <at> debbugs.gnu.org, zimoun <zimon.toutoune@HIDDEN>
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.162467503122814
          (code B ref 20255); Sat, 26 Jun 2021 02:38:02 +0000
Received: (at 20255) by debbugs.gnu.org; 26 Jun 2021 02:37:11 +0000
Received: from localhost ([127.0.0.1]:46989 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lwyBz-0005vt-10
	for submit <at> debbugs.gnu.org; Fri, 25 Jun 2021 22:37:11 -0400
Received: from mail-qt1-f181.google.com ([209.85.160.181]:36653)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1lwyBx-0005vb-9M
 for 20255 <at> debbugs.gnu.org; Fri, 25 Jun 2021 22:37:09 -0400
Received: by mail-qt1-f181.google.com with SMTP id r20so9055833qtp.3
 for <20255 <at> debbugs.gnu.org>; Fri, 25 Jun 2021 19:37:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=kS2QpeLsQgmYGHaoCmiZ5bmu/9XDZe1nabV6COYMHdA=;
 b=O5J/CBcWojQJUzZG5F+HF4ObEVeg40Q8UxWDN0n7jh4QADNEM+67VcjvtegG5Eg1Fj
 1f+bGRjxP/iVTfoBY7rt22K6hHuPv8+hBwS8cdGNbYwetDYNBv7ZHFxuRwrxn7b1h89z
 IB3tSU//NcVAKAXxEWdKex3zQCkHCvZqJghOb9vQL6d1oKoAbxftH1qoDQS9u7rvluX4
 8A4IlzTwdnrAQYqNVPGxM3/XHNolLzvUzHKmWRDKVpjxf/oW0As/p5s/wAOO2p8klkzU
 xKnA6+37OLeQAimHJBMzWH+BjyYpSDG7Qxne1OI8Bw5UXNneyA6SVEOTp96oAOmUnEwW
 r6HA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=kS2QpeLsQgmYGHaoCmiZ5bmu/9XDZe1nabV6COYMHdA=;
 b=fGZ9zM+VLVSwqcQ8JcnM/EIPtBWALlqai4gakLBNTrOCqhfxNPWxVnxz3RbaEcE9cC
 YzGbyL4HeXcqK9iFMlnJgHM/zzUchAyR7Es8Flb5Yu7E5rKjrTpqHctTJzCElAn7XCf/
 olNWhuUsrLTeyo+uccV4Aqqv2mviITxzUFJNylzASaNIc0cLLbXE+yvWXhOpBKDsaV7q
 kvW9GlQaByGxpcyr3CrWL99AuUrspzbgKcMSSVzqUiHGUGJRYDPgM2PfieObkE7fDPc7
 oCR8au7gZTSHp3bKSH/KED7clVIh8RkcsLLqCk5LHHe7xJwA0ucgyCT2Cd//5oJvGoW5
 2DGw==
X-Gm-Message-State: AOAM532CmHvgBopgK5uqaR4iaYjOaQa4EdLgxhMLF8FMDyQ4Hmx7UAgq
 1fVq2kf6oGCb+kdBUki72E0=
X-Google-Smtp-Source: ABdhPJzyXyXX3ZW68bWLWcgW2NcQVrCNiMRnfHBGs2uRylTY1DYoxnkQt8cn0BZ0EnGzj5wOo9XGxA==
X-Received: by 2002:ac8:5901:: with SMTP id 1mr11851967qty.45.1624675023650;
 Fri, 25 Jun 2021 19:37:03 -0700 (PDT)
Received: from hurd (dsl-10-149-111.b2b2c.ca. [72.10.149.111])
 by smtp.gmail.com with ESMTPSA id y18sm4792638qtx.6.2021.06.25.19.37.02
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 25 Jun 2021 19:37:03 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
References: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <87eeun97ur.fsf@HIDDEN>
Date: Fri, 25 Jun 2021 22:37:02 -0400
In-Reply-To: <87eeun97ur.fsf@HIDDEN> (Alex Kost's message of "Fri, 21 Feb
 2020 20:18:52 +0300")
Message-ID: <874kdlxsfl.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
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 (-)

Hello,

Alex Kost <alezost@HIDDEN> writes:

> zimoun (2020-02-21 16:53 +0100) wrote:
>
>> Dear,
>>
>> What is the status of the bug#20255 [1]?
>> It is old; the last activity seems back on 2015, November. So let resume.
>>
>> The issue is, e.g.:
>>  - perl installed into the system profile
>>  - perl-xml-parser installed into an user profile
>> Then "guix package --search-paths" does not set correctly XML::Parser.
>>
>>
>> Fixes had been pushed: dedb17a and b2a7223 and cc3de1d.
>>
>> The final fix is still missing. Because it is a controversial patch
>> [2] :-) i.e., running 'guix' in '/etc/profile'; see these lines of the
>> patch:
>>
>> +  eval `/run/current-system/profile/bin/guix package \\
>> +          -p /run/current-system/profile             \\
>> +          -p \"$HOME/.guix-profile\" --search-paths`
>>
>>
>> The friendly "protest" [3] is about turning these lines optional via
>> an environment variable. I am not sure to follow where the discussion
>> had been going then.
>
> As for me, I am OK with any default setting as long as there is a way to
> change it.  I recall Ludovic proposed a patch that allowed to customize
> "/etc/profile" and I was happy about it, but he changed his mind on that
> patch so it was never committed.

Do you still have a vetted interest in the issue at hand?  This is a
serious usability problem that's been in limbo for 6 years, apparently
for reasons of purity (not wanting to run a command in /etc/profile).
While I share the sentiment that /etc/profile would better be 'inert' or
static, it seems we haven't been able to come up with a better solution
than calling 'guix package --search-paths'.  Like Ludovic, I also don't
find the idea of allowing users to override /etc/profile very appealing;
even if undocumented, its mere presence in the operating-system field
would be an invitation for problems.  An environment variable to disable
such basic functionality also seems backward to me.

I would personally be in favor of committing the fix as-is.  If < 1 s of
wasted time on boot is an issue, I suggest to look into GNU Shepherd to
offset it; optimization opportunities should abound :-).

Thank you,

Maxim




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Leo Prikler <leo.prikler@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 26 Jun 2021 06:00:02 +0000
Resent-Message-ID: <handler.20255.B20255.162468717820832 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, Alex Kost <alezost@HIDDEN>
Cc: mhw@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, zimoun <zimon.toutoune@HIDDEN>, 20255 <at> debbugs.gnu.org, iyzsong@HIDDEN
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.162468717820832
          (code B ref 20255); Sat, 26 Jun 2021 06:00:02 +0000
Received: (at 20255) by debbugs.gnu.org; 26 Jun 2021 05:59:38 +0000
Received: from localhost ([127.0.0.1]:47069 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lx1Lu-0005Pv-3x
	for submit <at> debbugs.gnu.org; Sat, 26 Jun 2021 01:59:38 -0400
Received: from mailrelay.tugraz.at ([129.27.2.202]:33819)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo.prikler@HIDDEN>) id 1lx1Lr-0005Pl-RI
 for 20255 <at> debbugs.gnu.org; Sat, 26 Jun 2021 01:59:37 -0400
Received: from nijino.local (62-116-34-49.adsl.highway.telekom.at
 [62.116.34.49])
 by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4GBjr42mbxz1LWpg;
 Sat, 26 Jun 2021 07:59:32 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4GBjr42mbxz1LWpg
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;
 s=mailrelay; t=1624687172;
 bh=wXpT3zHL4L2lC5p5eccbDqQVdNyMzF6TRzIYMFB+zNU=;
 h=Subject:From:To:Cc:Date:In-Reply-To:References:From;
 b=mI7lGsuNa1nrLCEh8jPpVt9mpfbYpqftEEIW2hgOZfJumh/ljUpIdcNgz89GPNZKQ
 Ivj8LadZgSjycaOT7WTmrbN7rUg/d6MSlUv8EeKsZLo1CM7PmbDuj1pzh7YCUVn70z
 ZqzxJe6ONwu2PAkW00oKwW/28rBRPm5ksiYw/r34=
Message-ID: <5f385b99827c7c069094e1ed0fb2bd52f5345445.camel@HIDDEN>
From: Leo Prikler <leo.prikler@HIDDEN>
Date: Sat, 26 Jun 2021 07:59:30 +0200
In-Reply-To: <874kdlxsfl.fsf_-_@HIDDEN>
References: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <87eeun97ur.fsf@HIDDEN> <874kdlxsfl.fsf_-_@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.34.2 
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw
X-Spam-Scanner: SpamAssassin 3.003001 
X-Spam-Score-relay: -1.9
X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116
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 (---)

Am Freitag, den 25.06.2021, 22:37 -0400 schrieb Maxim Cournoyer:
> Hello,
> 
> Alex Kost <alezost@HIDDEN> writes:
> 
> > zimoun (2020-02-21 16:53 +0100) wrote:
> > 
> > > Dear,
> > > 
> > > What is the status of the bug#20255 [1]?
> > > It is old; the last activity seems back on 2015, November. So let
> > > resume.
> > > 
> > > The issue is, e.g.:
> > >  - perl installed into the system profile
> > >  - perl-xml-parser installed into an user profile
> > > Then "guix package --search-paths" does not set correctly
> > > XML::Parser.
> > > 
> > > 
> > > Fixes had been pushed: dedb17a and b2a7223 and cc3de1d.
> > > 
> > > The final fix is still missing. Because it is a controversial
> > > patch
> > > [2] :-) i.e., running 'guix' in '/etc/profile'; see these lines
> > > of the
> > > patch:
> > > 
> > > +  eval `/run/current-system/profile/bin/guix package \\
> > > +          -p /run/current-system/profile             \\
> > > +          -p \"$HOME/.guix-profile\" --search-paths`
> > > 
> > > 
> > > The friendly "protest" [3] is about turning these lines optional
> > > via
> > > an environment variable. I am not sure to follow where the
> > > discussion
> > > had been going then.
> > 
> > As for me, I am OK with any default setting as long as there is a
> > way to
> > change it.  I recall Ludovic proposed a patch that allowed to
> > customize
> > "/etc/profile" and I was happy about it, but he changed his mind on
> > that
> > patch so it was never committed.
> 
> Do you still have a vetted interest in the issue at hand?  This is a
> serious usability problem that's been in limbo for 6 years,
> apparently
> for reasons of purity (not wanting to run a command in /etc/profile).
> While I share the sentiment that /etc/profile would better be 'inert'
> or
> static, it seems we haven't been able to come up with a better
> solution
> than calling 'guix package --search-paths'.  Like Ludovic, I also
> don't
> find the idea of allowing users to override /etc/profile very
> appealing;
> even if undocumented, its mere presence in the operating-system field
> would be an invitation for problems.  An environment variable to
> disable
> such basic functionality also seems backward to me.
> 
> I would personally be in favor of committing the fix as-is.  If < 1 s
> of
> wasted time on boot is an issue, I suggest to look into GNU Shepherd
> to
> offset it; optimization opportunities should abound :-).
I think there is a solution, that works not only for the case of
disabling this unwanted feature, but also to add in support for
multiple profiles, i.e. if the user has more than just their .guix-
profile to load.

If we made this feature opt-in in that a user would first have to write
their profiles to $HOME/.config/guix/default-profiles or a similarly
named file in $HOME/.config/guix, we could simply not run the command
if the file doesn't exist, and if it exists run it using the profiles
in there.

Most users will likely have
--8<---------------cut here---------------start------------->8---
/home/myself/.guix-profile
/run/current-system/profile
--8<---------------cut here---------------end--------------->8---
in it, but you could also have
--8<---------------cut here---------------start------------->8---
/home/myself/.guix-extra-profiles/emacs
/home/myself/.guix-extra-profiles/hundreds-of-npm-packages
/home/myself/.guix-extra-profiles/rusty-rust
/home/myself/.guix-profile
/run/current-system/profile
--8<---------------cut here---------------end--------------->8---

Of course, having to type out /home/myself is somewhat weird, and the
last two lines are a bit of boilerplate, that one might want to avoid. 
We could alternatively make it so that an empty file means "use
$HOME/.guix-profile and /run/current-system/profile", such that those
are always sourced no matter what.  WDYT?

Regards,
Leo





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Alex Kost <alezost@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 27 Jun 2021 10:00:02 +0000
Resent-Message-ID: <handler.20255.B20255.162478796327827 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Cc: iyzsong@HIDDEN, 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.162478796327827
          (code B ref 20255); Sun, 27 Jun 2021 10:00:02 +0000
Received: (at 20255) by debbugs.gnu.org; 27 Jun 2021 09:59:23 +0000
Received: from localhost ([127.0.0.1]:48948 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lxRZT-0007El-1V
	for submit <at> debbugs.gnu.org; Sun, 27 Jun 2021 05:59:23 -0400
Received: from mail-lj1-f179.google.com ([209.85.208.179]:45757)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alezost@HIDDEN>) id 1lxRZP-0007EW-7X
 for 20255 <at> debbugs.gnu.org; Sun, 27 Jun 2021 05:59:21 -0400
Received: by mail-lj1-f179.google.com with SMTP id d13so20110309ljg.12
 for <20255 <at> debbugs.gnu.org>; Sun, 27 Jun 2021 02:59:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=HJzUHcWwSHnOcLnOoeWhXGRRGxMgoDvd7zYD43sFO0A=;
 b=J222r4VXdriJQ78wZ0sylgCsFf/JDgzlGim24AQkJn77Yxk6ueM5phb2lTm84BH0AO
 79V4ZcWwPf6yEOGEECMH68+E19QbyE98KTtPETPEH2EzQUDihE8yIQj0BxWvxEnV0w9+
 Y1mE5CarM97XbTpVJk+Y54nAGEjtLyjoDIilyO4DtQLC3GVE/y5HFCLqWAoAcMyGIvke
 y/E80goWJ0f+Or/5y8BMAJEAVOegHNz+zSHm+grvPJNKBjMPPh5CdClSm9I4/af/uAGF
 5IESwoA4SERHeGqR3AE8zpM53vFYeHYGBx4mJHYzv0Nlqj4sAz1TrB2vagKuXxpsohwT
 s0wA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=HJzUHcWwSHnOcLnOoeWhXGRRGxMgoDvd7zYD43sFO0A=;
 b=hgqICJsvFA0ug4bX5GVHjArqYVg2L1Up6hhc7CX3L/rv8VHTx68807VUS8cdeWJhbX
 WklZt2NR31r0XOF20aeFClxUWmlIqA6sbdbFRr4gmuE0d3rIXgbZtIuNLZJ/zPCiEnDS
 Z1mUuX3taT464+1iuMJaHeN6mytS7igRJIYiBs2iWBnPQoDIKJ+exrWF5jbGQRsCky24
 OkA2UncYckU0CYJzj/Kt26Rzqk8enkm+vgme5xT0rmAcx+DN/Hn2DbwD+utw43h3vGMM
 vodnm2g89ta76/scptPWOBezktR07O4aG6914ax0Y7zG0jTey+kJ3xdjAEVQzl/jiR5N
 bS6w==
X-Gm-Message-State: AOAM533epvPWS0nLS9A5llCFatzD/Rtu9nc5E0A16FwMI/6R19CfKLxS
 pqAKtGNUpLeCQx6dWW8sATE=
X-Google-Smtp-Source: ABdhPJyhqDq//IJpQypyhqS0Tz8qgqmF0ZIbub+UVBL3WJaSjpSaxqj9ORdesst/1pd6TQinkKCDIA==
X-Received: by 2002:a2e:9cd8:: with SMTP id g24mr5426831ljj.359.1624787953117; 
 Sun, 27 Jun 2021 02:59:13 -0700 (PDT)
Received: from leviafan ([217.107.194.21])
 by smtp.gmail.com with ESMTPSA id d4sm998112lfa.12.2021.06.27.02.59.11
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 27 Jun 2021 02:59:12 -0700 (PDT)
From: Alex Kost <alezost@HIDDEN>
References: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <87eeun97ur.fsf@HIDDEN> <874kdlxsfl.fsf_-_@HIDDEN>
Date: Sun, 27 Jun 2021 12:59:28 +0300
In-Reply-To: <874kdlxsfl.fsf_-_@HIDDEN> (Maxim Cournoyer's message of "Fri, 
 25 Jun 2021 22:37:02 -0400")
Message-ID: <8735t3d3wf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
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 (-)

Maxim Cournoyer (2021-06-25 22:37 -0400) wrote:

[...]
> Do you still have a vetted interest in the issue at hand?  This is a
> serious usability problem that's been in limbo for 6 years, apparently
> for reasons of purity (not wanting to run a command in /etc/profile).
> While I share the sentiment that /etc/profile would better be 'inert' or
> static, it seems we haven't been able to come up with a better solution
> than calling 'guix package --search-paths'.  Like Ludovic, I also don't
> find the idea of allowing users to override /etc/profile very appealing;
> even if undocumented, its mere presence in the operating-system field
> would be an invitation for problems.  An environment variable to disable
> such basic functionality also seems backward to me.
>
> I would personally be in favor of committing the fix as-is.  If < 1 s of
> wasted time on boot is an issue, I suggest to look into GNU Shepherd to
> offset it; optimization opportunities should abound :-).

I can modify /etc/profile with any "normal" linux distribution but I
cannot do it with the Guix System.  And I find it awful that you think
it should stay like that.  I am for providing as much freedom for a user
(to configure their system) as possible.

The current /etc/profile is bearable for me, but if you add a "guix ..."
call there without providing a way to modify that file, I will probably
stop using the Guix System.

Or maybe there is a hacky way to change /etc/profile ?  If so, please
share a code how this can be done.  (Then I will not complain anymore)

-- 
Alex




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 28 Jun 2021 04:37:02 +0000
Resent-Message-ID: <handler.20255.B20255.162485497223362 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Leo Prikler <leo.prikler@HIDDEN>
Cc: zimoun <zimon.toutoune@HIDDEN>, mhw@HIDDEN, Alex Kost <alezost@HIDDEN>, 20255 <at> debbugs.gnu.org, iyzsong@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.162485497223362
          (code B ref 20255); Mon, 28 Jun 2021 04:37:02 +0000
Received: (at 20255) by debbugs.gnu.org; 28 Jun 2021 04:36:12 +0000
Received: from localhost ([127.0.0.1]:50617 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lxj0G-00064j-Jn
	for submit <at> debbugs.gnu.org; Mon, 28 Jun 2021 00:36:12 -0400
Received: from mail-qv1-f42.google.com ([209.85.219.42]:33559)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1lxj0C-00064T-0O
 for 20255 <at> debbugs.gnu.org; Mon, 28 Jun 2021 00:36:10 -0400
Received: by mail-qv1-f42.google.com with SMTP id u8so5374504qvg.0
 for <20255 <at> debbugs.gnu.org>; Sun, 27 Jun 2021 21:36:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=lgVjI0DnQupN2R1xVW/fHdnG4rj3ED9lUlz961UJP5w=;
 b=fR0xk6TlAgw5gClhlZSA/FRGvHMGk+7OjlLATZeVKcxAT9cTfX6CaEuwvbcSn/yMAv
 039BILB662T83foS4GR7MG8LC5rt2MzWxUV7oj4Br41oBM8xX3hM5Mo4Svr54zMlDnOa
 +/qV2MjY5/GoN3z0AMc3wAwrbhgGxn7ZEgany18gjucc4uZX660g1x+fuBaivrguVPu1
 vQJE9oqWaFlLVdeRRtoNWoQR5yRl2eBcC8ark6MFS0bS6psNb+fkIiNMMDyEfXq8szcj
 FvQom+4SvUqqq/h1JUvtzsgGWmiacZHco30ZqTVm9Xw6RqUrDt0BHRzLXvrUInXp2H+T
 3+xA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=lgVjI0DnQupN2R1xVW/fHdnG4rj3ED9lUlz961UJP5w=;
 b=MVzrxbbNRNvljfHs14XyN3nMLWo4UJmKpJCQdMflWf9rla19FS3qwKY6OBH9aoiNwA
 JPgN7G6QDJINR83lIQb66zcRwQCiX9VNLlEbfCym/L3Xcmh7wL15Y1wvBp2DBHsTK4sk
 0zTqJda1XhtK4XWrz33bJuVr/V8jMUT9Nguv3+WtYlTGjGEI+J3dtEi0d99BBVcKqk90
 dTyoCoGtIw52dOIzT7BqdOfMzeby4Av97fhlFW0k5e4yKF57xsmWR5DoDejkhNyGcvH5
 /+b6/3r35pTMBWvSO1mHM1x1iEAsgBVph97j0RxQ4nCvk2ODkWdK4KBs4w17OCxwcD1D
 y4ug==
X-Gm-Message-State: AOAM531BufGe5sqHDNmIJMIYqPCstgNE1dSere3HX4TpsBYwCfi3W+Qq
 Czln/IxgqiNcO6LI0QV2CZ0=
X-Google-Smtp-Source: ABdhPJy7pDJ7K2SygOyVdWRaR2sSerIqraE+6fyzELIxDvDk47a3s8ppZcbarrJON3K37bV9GdhlvA==
X-Received: by 2002:ad4:4022:: with SMTP id q2mr23602274qvp.43.1624854962082; 
 Sun, 27 Jun 2021 21:36:02 -0700 (PDT)
Received: from hurd ([207.35.94.165])
 by smtp.gmail.com with ESMTPSA id b21sm2870329qkh.55.2021.06.27.21.36.00
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 27 Jun 2021 21:36:01 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
References: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <87eeun97ur.fsf@HIDDEN> <874kdlxsfl.fsf_-_@HIDDEN>
 <5f385b99827c7c069094e1ed0fb2bd52f5345445.camel@HIDDEN>
Date: Mon, 28 Jun 2021 00:35:59 -0400
In-Reply-To: <5f385b99827c7c069094e1ed0fb2bd52f5345445.camel@HIDDEN>
 (Leo Prikler's message of "Sat, 26 Jun 2021 07:59:30 +0200")
Message-ID: <87mtrawqq8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
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 (-)

Hi Leo,

[...]

> I think there is a solution, that works not only for the case of
> disabling this unwanted feature, but also to add in support for
> multiple profiles, i.e. if the user has more than just their .guix-
> profile to load.
>
> If we made this feature opt-in in that a user would first have to write
> their profiles to $HOME/.config/guix/default-profiles or a similarly
> named file in $HOME/.config/guix, we could simply not run the command
> if the file doesn't exist, and if it exists run it using the profiles
> in there.
>
> Most users will likely have
>
> /home/myself/.guix-profile
> /run/current-system/profile
>
> in it, but you could also have
>
> /home/myself/.guix-extra-profiles/emacs
> /home/myself/.guix-extra-profiles/hundreds-of-npm-packages
> /home/myself/.guix-extra-profiles/rusty-rust
> /home/myself/.guix-profile
> /run/current-system/profile
>
> Of course, having to type out /home/myself is somewhat weird, and the
> last two lines are a bit of boilerplate, that one might want to avoid. 
> We could alternatively make it so that an empty file means "use
> $HOME/.guix-profile and /run/current-system/profile", such that those
> are always sourced no matter what.  WDYT?

I like this later idea (does what a user would reasonably expect by
default, which is to consider both the system and the user profile by
default).  A user specifying that file manually could then override the
default behavior to have it source extra profiles, or none at all.

Some small difference I'd propose:

An non-existing $HOME/.config/guix/default-profiles file would be
equivalent to an existing file containing:

- $HOME/.guix-profile
- /run/current-system/profile

as the default behavior.

Now we'd need to look at how feasible it is to implement such a feature.

Thanks for this clever suggestion!  It seems we may be able to find a
good middle ground :-).

Maxim




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 28 Jun 2021 04:49:02 +0000
Resent-Message-ID: <handler.20255.B20255.162485569324456 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Alex Kost <alezost@HIDDEN>
Cc: iyzsong@HIDDEN, 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.162485569324456
          (code B ref 20255); Mon, 28 Jun 2021 04:49:02 +0000
Received: (at 20255) by debbugs.gnu.org; 28 Jun 2021 04:48:13 +0000
Received: from localhost ([127.0.0.1]:50625 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lxjBs-0006MN-WA
	for submit <at> debbugs.gnu.org; Mon, 28 Jun 2021 00:48:13 -0400
Received: from mail-qk1-f174.google.com ([209.85.222.174]:40719)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1lxjBq-0006MA-Ah
 for 20255 <at> debbugs.gnu.org; Mon, 28 Jun 2021 00:48:12 -0400
Received: by mail-qk1-f174.google.com with SMTP id b2so177895qka.7
 for <20255 <at> debbugs.gnu.org>; Sun, 27 Jun 2021 21:48:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=/pzpqWoFy4bmhB+iX8z+JZp4S8PzMBjaDMIS/9AvI3s=;
 b=INw5sri4DnRK3MLjX15IjzfojOY5TFjLTWT1E7yc1ty8o6I8ijnSAmELJPHFiTfbDA
 Kb2q6I2f74Yzx8wQ8A4TPsXTVU3ea/GeE7ZNem+KzomwQWodVz0tPaIYu294psKk1bND
 IpOeM7qGSVDRipx5Sg1hYVnr8+7ioPUebw1PqSLgmlrUDOKM31Lg8Da6yXLJUkFyDN27
 yjgOeTMrRrSOWUy6VeBjcuPlJ9fS8oYkNjGwxlhnaNKGumozUBa6movp61s5xeHat5Nn
 mSBzthk4JY4lnz+63oTWPgLNWp1XBAf/xFaomheI9kWYH+GLzkcOsiDlnTkTuNm1pG8p
 Ig+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=/pzpqWoFy4bmhB+iX8z+JZp4S8PzMBjaDMIS/9AvI3s=;
 b=DEzbNlM+o2qkXCcLwjGZAPaQVx6m4qUHHfS26xhFlWuCQG6oG+r4Qbdb+5MvEPYhDH
 jHPAh/n1IWvZi/h9Fx83ZuTCPcNd8LFFIs5Z8KwWg5XuIdhxtZGQop/Ob/Q2ozUXcEmk
 2hPDRzzMueJqFKw5eNSwjFr0espay65h4Bi5ZfwuIpRpYkkXDBWrDX436LDg/HXTPOhn
 567pC/82ZxjmtddJV+Yiqe6HxO1RnIgZyb/OAJKbBlsZax/ZRowdbOJUtVWMgUKuPPCu
 gtMlhsDdssW5ivhytAAFeEQgboHHyxMUszkaOvw6Kg5T2xrrc6jaqIaoSPjBk5vWuVm7
 x5qQ==
X-Gm-Message-State: AOAM530BefSVGC4Ucccpl8k7a010H0uDRSH+4kYZvY+haEh+MosQuXiL
 Dx6q8IktoTDeC5i6PFFWzJg=
X-Google-Smtp-Source: ABdhPJygNQl4uzcigHYlt8c2sPxGOl/F/a+UneeZX4CNsetnj8uHIuPo2v2gu0XNsIZuPwHgt6kfHA==
X-Received: by 2002:ae9:e310:: with SMTP id v16mr11886872qkf.169.1624855684835; 
 Sun, 27 Jun 2021 21:48:04 -0700 (PDT)
Received: from hurd ([207.35.94.165])
 by smtp.gmail.com with ESMTPSA id d20sm7689187qtw.92.2021.06.27.21.48.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 27 Jun 2021 21:48:04 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
References: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <87eeun97ur.fsf@HIDDEN> <874kdlxsfl.fsf_-_@HIDDEN>
 <8735t3d3wf.fsf@HIDDEN>
Date: Mon, 28 Jun 2021 00:48:03 -0400
In-Reply-To: <8735t3d3wf.fsf@HIDDEN> (Alex Kost's message of "Sun, 27 Jun
 2021 12:59:28 +0300")
Message-ID: <87im1ywq64.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
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 (-)

Hi Alex,

Alex Kost <alezost@HIDDEN> writes:

> Maxim Cournoyer (2021-06-25 22:37 -0400) wrote:
>
> [...]
>> Do you still have a vetted interest in the issue at hand?  This is a
>> serious usability problem that's been in limbo for 6 years, apparently
>> for reasons of purity (not wanting to run a command in /etc/profile).
>> While I share the sentiment that /etc/profile would better be 'inert' or
>> static, it seems we haven't been able to come up with a better solution
>> than calling 'guix package --search-paths'.  Like Ludovic, I also don't
>> find the idea of allowing users to override /etc/profile very appealing;
>> even if undocumented, its mere presence in the operating-system field
>> would be an invitation for problems.  An environment variable to disable
>> such basic functionality also seems backward to me.
>>
>> I would personally be in favor of committing the fix as-is.  If < 1 s of
>> wasted time on boot is an issue, I suggest to look into GNU Shepherd to
>> offset it; optimization opportunities should abound :-).
>
> I can modify /etc/profile with any "normal" linux distribution but I
> cannot do it with the Guix System.  And I find it awful that you think
> it should stay like that.  I am for providing as much freedom for a user
> (to configure their system) as possible.
> The current /etc/profile is bearable for me, but if you add a "guix ..."
> call there without providing a way to modify that file, I will probably
> stop using the Guix System.
>
> Or maybe there is a hacky way to change /etc/profile ?  If so, please
> share a code how this can be done.  (Then I will not complain anymore)

Thanks for the reply!  I just wanted to make sure the extra energy to be
spent on the search & implementation of a better solution would not be
in vain; now I that know that it won't!

I like the idea proposed by Leo Prikler; the one about giving the
possibility to users to override the list of default profiles considered
under a file such as ~/.config/guix/default-profiles.

The default would be to load both combine the environment variables of
the system and user profiles using 'guix package --search-paths', but a
user could opt-out of that by providing an empty file, or customize the
list of profiles the way they'd like.

Would that be an acceptable solution from your point of view?

Thank you,

Maxim




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Leo Prikler <leo.prikler@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 28 Jun 2021 06:59:01 +0000
Resent-Message-ID: <handler.20255.B20255.16248634884927 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Cc: zimoun <zimon.toutoune@HIDDEN>, mhw@HIDDEN, Alex Kost <alezost@HIDDEN>, 20255 <at> debbugs.gnu.org, iyzsong@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.16248634884927
          (code B ref 20255); Mon, 28 Jun 2021 06:59:01 +0000
Received: (at 20255) by debbugs.gnu.org; 28 Jun 2021 06:58:08 +0000
Received: from localhost ([127.0.0.1]:50796 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lxlDc-0001HP-Gn
	for submit <at> debbugs.gnu.org; Mon, 28 Jun 2021 02:58:08 -0400
Received: from mailrelay.tugraz.at ([129.27.2.202]:50544)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo.prikler@HIDDEN>) id 1lxlDa-0001HF-Ds
 for 20255 <at> debbugs.gnu.org; Mon, 28 Jun 2021 02:58:07 -0400
Received: from nijino.local (62-116-34-49.adsl.highway.telekom.at
 [62.116.34.49])
 by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4GCz2d0Tlfz3wmX;
 Mon, 28 Jun 2021 08:58:01 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;
 s=mailrelay; t=1624863483;
 bh=72iDOKLKQRikC7e38nTpYxuJwN+RPtPQ0tt7CRPnAMM=;
 h=Subject:From:To:Cc:Date:In-Reply-To:References;
 b=kNmt3RzMbHss7h/2OB32THb89XDI8pRnAQ8TWKDvd6gSNfq8Mjz5RMWQAWwS9Ra4W
 /nJe7evknKMaFWjITeRQjcA/UT2QyB5Nc+QE6Ut4GMYUX9goE2pUw+6yAeR245puKF
 aGbgQnh12Vj8Z0iylajsEwS3TTZZbNsqR2/2KFoI=
Message-ID: <ee5f723a79e54535ef3eba5f6efb9694235ecd5c.camel@HIDDEN>
From: Leo Prikler <leo.prikler@HIDDEN>
Date: Mon, 28 Jun 2021 08:58:00 +0200
In-Reply-To: <87mtrawqq8.fsf@HIDDEN>
References: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <87eeun97ur.fsf@HIDDEN> <874kdlxsfl.fsf_-_@HIDDEN>
 <5f385b99827c7c069094e1ed0fb2bd52f5345445.camel@HIDDEN>
 <87mtrawqq8.fsf@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.34.2 
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw
X-Spam-Scanner: SpamAssassin 3.003001 
X-Spam-Score-relay: -1.9
X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116
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 (---)

Am Montag, den 28.06.2021, 00:35 -0400 schrieb Maxim Cournoyer:
> Hi Leo,
> 
> [...]
> 
> > I think there is a solution, that works not only for the case of
> > disabling this unwanted feature, but also to add in support for
> > multiple profiles, i.e. if the user has more than just their .guix-
> > profile to load.
> > 
> > If we made this feature opt-in in that a user would first have to
> > write
> > their profiles to $HOME/.config/guix/default-profiles or a
> > similarly
> > named file in $HOME/.config/guix, we could simply not run the
> > command
> > if the file doesn't exist, and if it exists run it using the
> > profiles
> > in there.
> > 
> > Most users will likely have
> > 
> > /home/myself/.guix-profile
> > /run/current-system/profile
> > 
> > in it, but you could also have
> > 
> > /home/myself/.guix-extra-profiles/emacs
> > /home/myself/.guix-extra-profiles/hundreds-of-npm-packages
> > /home/myself/.guix-extra-profiles/rusty-rust
> > /home/myself/.guix-profile
> > /run/current-system/profile
> > 
> > Of course, having to type out /home/myself is somewhat weird, and
> > the
> > last two lines are a bit of boilerplate, that one might want to
> > avoid. 
> > We could alternatively make it so that an empty file means "use
> > $HOME/.guix-profile and /run/current-system/profile", such that
> > those
> > are always sourced no matter what.  WDYT?
> 
> I like this later idea (does what a user would reasonably expect by
> default, which is to consider both the system and the user profile by
> default).  A user specifying that file manually could then override
> the
> default behavior to have it source extra profiles, or none at all.
> 
> Some small difference I'd propose:
> 
> An non-existing $HOME/.config/guix/default-profiles file would be
> equivalent to an existing file containing:
> 
> - $HOME/.guix-profile
> - /run/current-system/profile
> 
> as the default behavior.
The behaviour for a missing default-profiles is nothing so as to
address the concerns raised by Alex Kost about running the guix binary
without the user's consent.  It still runs external binaries such as
test, but IIRC those are already run in our existing setup, so that's
not really a concern worth raising.

I do agree, that your solution is more reasonable if there's nothing
else to consider.

> Now we'd need to look at how feasible it is to implement such a
> feature.
A naïve implementation would be a pipe with sed and xargs, but I don't
know how well that'd guard against shell code exploits.  A more
complicated approach might take a few lines of shell code, but I don't
think it would be excessively large.

> Thanks for this clever suggestion!  It seems we may be able to find a
> good middle ground :-).
> 
> Maxim





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Alex Kost <alezost@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 29 Jun 2021 17:30:02 +0000
Resent-Message-ID: <handler.20255.B20255.162498774211663 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Cc: iyzsong@HIDDEN, 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.162498774211663
          (code B ref 20255); Tue, 29 Jun 2021 17:30:02 +0000
Received: (at 20255) by debbugs.gnu.org; 29 Jun 2021 17:29:02 +0000
Received: from localhost ([127.0.0.1]:55241 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lyHXi-00031u-8J
	for submit <at> debbugs.gnu.org; Tue, 29 Jun 2021 13:29:02 -0400
Received: from mail-lj1-f182.google.com ([209.85.208.182]:38497)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alezost@HIDDEN>) id 1lyHXg-00031Z-At
 for 20255 <at> debbugs.gnu.org; Tue, 29 Jun 2021 13:29:01 -0400
Received: by mail-lj1-f182.google.com with SMTP id x20so25330346ljc.5
 for <20255 <at> debbugs.gnu.org>; Tue, 29 Jun 2021 10:29:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=5GC+0M+Ew3B7iu5Re6kh+StjbrlECHUVyd8mnr9smkk=;
 b=YuP4bFL4ybEb3SSr8lAz8wMYuRp3biBSRDoeuM3ylM5a4OlMmwy/lS554YCGckCRwL
 052N0G5X0teb+TzW1mxXcQVCffxvxfSy/iFGqoJV/+bOVbCGjL86mkTtEuayYjp3BUH6
 Hm2iTlw7hFIYfipr29ke2jSI1MGL+6xafgYaHP7NrnXTXOuT4xQXeO9JPQAxz6RpxLiV
 KR8zP09iZqLdwiahDTJrxu8ih+deYB8JQVyCXHjgd5xJJn222nCBjKm/p3EG2s7k4SUY
 j5k7SWBWqW6mGs5ESxgjqqNwS4z05Iw5Q49I9Eb5c67uKOGl5AUHzKtXfKcirJF4sQQG
 9Eew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=5GC+0M+Ew3B7iu5Re6kh+StjbrlECHUVyd8mnr9smkk=;
 b=ByGOrfeE+yNralxLHpEmuLktx6ctlVLDvh3tSeIafc214S2BKjCXJDvIvMS79qG4nY
 UMj4FykDmSua4bDrCuX4SjoltOiwd0AlJGzCwGotN6POcNJm4JrmYJqBnAM4G+b50/hx
 C69NR5XNehfJxToayoL8ymv4/UXyC4o8aMpH13FCbmnFU9ky+soZNHDVZQhSYGYgDCWZ
 vVCBUn9QaKgqOL6WK+qeGCSJQLrkE3ChThWiP9MXbwnmzHTLENJKs3J2qXCPtBkpATfa
 PMQXbVMUPlrM1xF23kr99l2dQJeJTXeq/iwbz6WKCb6SCTiMoIUltuDyizJfpWZgMlpB
 VShg==
X-Gm-Message-State: AOAM53165pRsnObxbbW7THM9e2cBaqNlRWSyklo3/fUmDj4zfvtOBUfZ
 T7SdqJHQIPq+Hq2nBRLIKfE=
X-Google-Smtp-Source: ABdhPJz/uskR8HNH+ZWAMWmJhP/RtYpnbfJBxiQHrCJlX9IbQoebk7B/XUpc0dJceVsXqJW1m1LXWw==
X-Received: by 2002:a2e:969a:: with SMTP id q26mr4750630lji.89.1624987734122; 
 Tue, 29 Jun 2021 10:28:54 -0700 (PDT)
Received: from leviafan ([217.107.194.17])
 by smtp.gmail.com with ESMTPSA id h3sm1681423lfg.204.2021.06.29.10.28.49
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 29 Jun 2021 10:28:51 -0700 (PDT)
From: Alex Kost <alezost@HIDDEN>
References: <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <87eeun97ur.fsf@HIDDEN> <874kdlxsfl.fsf_-_@HIDDEN>
 <8735t3d3wf.fsf@HIDDEN> <87im1ywq64.fsf@HIDDEN>
Date: Tue, 29 Jun 2021 20:29:08 +0300
In-Reply-To: <87im1ywq64.fsf@HIDDEN> (Maxim Cournoyer's message of "Mon, 28
 Jun 2021 00:48:03 -0400")
Message-ID: <8735t0inq3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
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 (-)

Maxim Cournoyer (2021-06-28 00:48 -0400) wrote:

> Alex Kost <alezost@HIDDEN> writes:
[...]
>> I can modify /etc/profile with any "normal" linux distribution but I
>> cannot do it with the Guix System.  And I find it awful that you think
>> it should stay like that.  I am for providing as much freedom for a user
>> (to configure their system) as possible.
>> The current /etc/profile is bearable for me, but if you add a "guix ..."
>> call there without providing a way to modify that file, I will probably
>> stop using the Guix System.
>>
>> Or maybe there is a hacky way to change /etc/profile ?  If so, please
>> share a code how this can be done.  (Then I will not complain anymore)
>
> Thanks for the reply!  I just wanted to make sure the extra energy to be
> spent on the search & implementation of a better solution would not be
> in vain; now I that know that it won't!
>
> I like the idea proposed by Leo Prikler; the one about giving the
> possibility to users to override the list of default profiles considered
> under a file such as ~/.config/guix/default-profiles.
>
> The default would be to load both combine the environment variables of
> the system and user profiles using 'guix package --search-paths', but a
> user could opt-out of that by providing an empty file, or customize the
> list of profiles the way they'd like.
>
> Would that be an acceptable solution from your point of view?

Sure!  Any solution that I can configure for my needs is good for me,
thank you!

-- 
Alex




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: [bug#56382] [PATCH] gnu: gajim: Use hicolor-icon-theme to avoid crashing on startup
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 18 Jul 2022 09:31:01 +0000
Resent-Message-ID: <handler.20255.B20255.165813661419287 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Cc: Raghav Gururajan <rg@HIDDEN>, 56382 <at> debbugs.gnu.org, 20255 <at> debbugs.gnu.org, Morgan.J.Smith@HIDDEN
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.165813661419287
          (code B ref 20255); Mon, 18 Jul 2022 09:31:01 +0000
Received: (at 20255) by debbugs.gnu.org; 18 Jul 2022 09:30:14 +0000
Received: from localhost ([127.0.0.1]:49180 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oDN4t-00050v-0Q
	for submit <at> debbugs.gnu.org; Mon, 18 Jul 2022 05:30:14 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55072)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>)
 id 1oDN4n-0004yo-LH; Mon, 18 Jul 2022 05:30:10 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:59218)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oDN4h-0008Fi-IX; Mon, 18 Jul 2022 05:29:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=cx/RkAi8vCzdWqXQ+zSox2x5BmqlDz+0CqSfENtLXr8=; b=WFH1BNxNKlFLi7BK0TZv
 1261q4AFXq5UaE5Ue5X6fbpIBBvuJ8MBSxg1yFQZgSGTgnIYlhVFMqxiVUYewNH2JGyN/uM87zwtr
 MJkvjXsBUekyRepytBeTfSQPS8QfBdQ6UkyNv+zFKPRocGjwQ2hgNUKcXa2zITxTLcqpWtOj2EKHP
 bOyWQlSNGPzUiJRfMQZavtaOGp5JPso/4T4szgUa7l9l+4+9j9H06kd83Zw9Q0TxL2i/UJ4JCegsR
 iXmm/SQS2MEDMwtN54DKEt1ai0Qy6vOgQnj4iFLO1P/HJNE5gPcWMuNl36hT6C5o+CuAAKO3KgfaK
 01kYpwrxbPLOIQ==;
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=41642 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oDN4g-0000R6-NP; Mon, 18 Jul 2022 05:29:59 -0400
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <87sfn6asfz.fsf@HIDDEN>
 <DM5PR03MB31633E3B8D7FB6CF9CD13BE5C5BE9@HIDDEN>
 <ff47ca4d7bfe0148f827dac382ca6211@HIDDEN>
 <877d4e8r79.fsf@HIDDEN> <87tu7hsupr.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: =?UTF-8?Q?D=C3=A9cadi?= 30 Messidor an 230 de la
 =?UTF-8?Q?R=C3=A9volution,?= jour de la
 =?UTF-8?Q?Chal=C3=A9mie?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Mon, 18 Jul 2022 11:29:55 +0200
In-Reply-To: <87tu7hsupr.fsf@HIDDEN> (Maxim Cournoyer's message of "Fri, 15
 Jul 2022 21:38:08 -0400")
Message-ID: <87k08a3h0s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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,

Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:

> Hi Ludovic,
>
> Ludovic Court=C3=A8s <ludo@HIDDEN> writes:
>
>> Hi,
>>
>> "Raghav Gururajan" <rg@HIDDEN> skribis:
>>
>>>> Does simply adding =E2=80=98hicolor-icon-theme=E2=80=99 to =E2=80=98in=
puts=E2=80=99 fix the issue?
>>>
>>> Most gtk-based apps expect hicolor-icon-theme and adwaita-icon-theme to=
 be in the profile. Adding these in either system or user profile would pre=
vent this error from occurring.
>>
>> Right, so the proposed patch (adding =E2=80=98hicolor-icon-theme=E2=80=
=99 to =E2=80=98inputs=E2=80=99,
>> not =E2=80=98propagated-inputs=E2=80=99) shouldn=E2=80=99t make any diff=
erence I guess?
>
> I think it works as inputs because of our wrappers (perhaps
> XDG_DATA_DIRS)?  But it's kind at odds with our policy which is to let
> users manage icons themselves.

Yeah.

> Probably because of #20255 that wouldn't help currently (system and user
> profiles are not merged), but if we fixed that bug we could make the
> situation better by adding 'hicolor-icon-theme' to the default packages
> of our desktop system templates.

Right.

BTW, the reason the solution at <https://issues.guix.gnu.org/20255#12>
was rejected could be revisited.  Since that time, search paths made it
into the manifest itself, which brings a speed up:

--8<---------------cut here---------------start------------->8---
$ sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches '
$ time guix package -p ~/.guix-home/profile -p /run/current-system/profile =
--search-paths > /dev/null

real    0m0.540s
user    0m0.131s
sys     0m0.063s
$ time guix package -p ~/.guix-home/profile -p /run/current-system/profile =
--search-paths > /dev/null

real    0m0.135s
user    0m0.130s
sys     0m0.024s
--8<---------------cut here---------------end--------------->8---

Thoughts?

Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: [bug#56382] [PATCH] gnu: gajim: Use hicolor-icon-theme to avoid crashing on startup
Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 18 Jul 2022 11:22:02 +0000
Resent-Message-ID: <handler.20255.B20255.165814331431101 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: Raghav Gururajan <rg@HIDDEN>, 56382 <at> debbugs.gnu.org, 20255 <at> debbugs.gnu.org, Morgan.J.Smith@HIDDEN
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.165814331431101
          (code B ref 20255); Mon, 18 Jul 2022 11:22:02 +0000
Received: (at 20255) by debbugs.gnu.org; 18 Jul 2022 11:21:54 +0000
Received: from localhost ([127.0.0.1]:49318 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oDOp0-00085Y-0K
	for submit <at> debbugs.gnu.org; Mon, 18 Jul 2022 07:21:54 -0400
Received: from mail-qt1-f175.google.com ([209.85.160.175]:43727)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1oDOou-00084y-HW; Mon, 18 Jul 2022 07:21:49 -0400
Received: by mail-qt1-f175.google.com with SMTP id a9so8409974qtw.10;
 Mon, 18 Jul 2022 04:21:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=QnebC4v9Of8Z3sryzCjXmI7hUlxj3D7aIiV4baEPYEg=;
 b=d/qIEgAl6iboPOFeEeXl/Lq8KjdjDD28iQ89s+OHO/yETXEqFeGXPKr6YQIp9mqAoJ
 7tAQIefG8teGuX1hDZpH+WECWtulXRmaNGdK5CiLlbk8MqFBGUVlTVltxnPAYO/NK4mG
 1Xv48dy35XByRgzFErKiwHkQTHd1YSl3ixt4KY3p4aEUNTi8vrkto/DHMbIAgEOMe0l1
 SJWY/6BBlUyX6LSqSM0/sw7zYYea7gLrH68ftjSKvW0cW6OkqOjYMQR9v1tSzSevXhXj
 FC0Ttf3PdWtrcr5OazylVrZQU3hXAV1s+Qq1Ri+LorrZ3SCFLTOIaqxnL29TU9uC+xF0
 ezqg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=QnebC4v9Of8Z3sryzCjXmI7hUlxj3D7aIiV4baEPYEg=;
 b=2eZrSYjMQVCBX+y+tWVNtl1jBXX6dRiB+A7FGFXgedqPfiCIJms8cE4dqHo2cbMJv2
 UbnmVvmJBooUN1pWi2sVqnmBkpraqjAuGpG7TcCI1H3CgLLI2j5or+MX/fShfWrKCrEz
 pjOD+oap9tZ14+eLRA0mm4paguGK6AN7vW/EJ8w7b5yyxxGm6pr1ucqlVBxB/DTuOeqY
 a8i5LgqGuAZgRdo8zugw869nAcknUtY4E/XRMVx932sneWakh32yybJKMhCQV0f7OBZZ
 B2PpZ0qpvuEtaIb49CiHo+swmsR5pXRNe1mFzpJYK1OY64K37vtUAZgtACZrIRqBlPl1
 VExw==
X-Gm-Message-State: AJIora/1SOlCWi7MqpMdg8XiA4SfqmgllRbh405B+4iaDcX644bknXeF
 8E1urWOtSE1b/NgpgX+aINYnMPU5py5QdQ==
X-Google-Smtp-Source: AGRyM1uNc5OFOLHhen7XP7oZJWULBsvfHVsMk7MF4nyXqOJQnA/oyrF+6ECCvdc5AKHNLYM3hUWRSA==
X-Received: by 2002:a05:622a:30c:b0:31e:bc56:98e4 with SMTP id
 q12-20020a05622a030c00b0031ebc5698e4mr20909493qtw.679.1658143302732; 
 Mon, 18 Jul 2022 04:21:42 -0700 (PDT)
Received: from hurd (dsl-205-151-56-157.b2b2c.ca. [205.151.56.157])
 by smtp.gmail.com with ESMTPSA id
 z25-20020ac87cb9000000b0031d283f4c4dsm8630169qtv.60.2022.07.18.04.21.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 18 Jul 2022 04:21:42 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
References: <87sfn6asfz.fsf@HIDDEN>
 <DM5PR03MB31633E3B8D7FB6CF9CD13BE5C5BE9@HIDDEN>
 <ff47ca4d7bfe0148f827dac382ca6211@HIDDEN>
 <877d4e8r79.fsf@HIDDEN> <87tu7hsupr.fsf@HIDDEN>
 <87k08a3h0s.fsf@HIDDEN>
Date: Mon, 18 Jul 2022 07:21:40 -0400
In-Reply-To: <87k08a3h0s.fsf@HIDDEN> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 18 Jul 2022 11:29:55 +0200")
Message-ID: <87edyism2j.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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 (-)

Hello!

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

[...]

>>> Right, so the proposed patch (adding =E2=80=98hicolor-icon-theme=E2=80=
=99 to =E2=80=98inputs=E2=80=99,
>>> not =E2=80=98propagated-inputs=E2=80=99) shouldn=E2=80=99t make any dif=
ference I guess?
>>
>> I think it works as inputs because of our wrappers (perhaps
>> XDG_DATA_DIRS)?  But it's kind at odds with our policy which is to let
>> users manage icons themselves.
>
> Yeah.
>
>> Probably because of #20255 that wouldn't help currently (system and user
>> profiles are not merged), but if we fixed that bug we could make the
>> situation better by adding 'hicolor-icon-theme' to the default packages
>> of our desktop system templates.
>
> Right.
>
> BTW, the reason the solution at <https://issues.guix.gnu.org/20255#12>
> was rejected could be revisited.  Since that time, search paths made it
> into the manifest itself, which brings a speed up:
>
> $ sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches '
> $ time guix package -p ~/.guix-home/profile -p /run/current-system/profil=
e --search-paths > /dev/null
>
> real    0m0.540s
> user    0m0.131s
> sys     0m0.063s
> $ time guix package -p ~/.guix-home/profile -p /run/current-system/profil=
e --search-paths > /dev/null
>
> real    0m0.135s
> user    0m0.130s
> sys     0m0.024s
>
> Thoughts?

Re-reading the bug report, we had come up with a blueprint of a possible
solution  but failed short of implementing it [0]

[0]  https://issues.guix.gnu.org/20255#35

Even the --search-paths command become 0.2 s, I don't think it'll
satisfy all parties, so the solution above still has merit, I think.
Perhaps we should try to implement it, unless you see a problem with it.

Thanks,

Maxim




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: [bug#56382] [PATCH] gnu: gajim: Use hicolor-icon-theme to avoid crashing on startup
Resent-From: bokr@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 18 Jul 2022 13:34:01 +0000
Resent-Message-ID: <handler.20255.B20255.165815122320253 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: Raghav Gururajan <rg@HIDDEN>, Morgan.J.Smith@HIDDEN, 56382 <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer@HIDDEN>, 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.165815122320253
          (code B ref 20255); Mon, 18 Jul 2022 13:34:01 +0000
Received: (at 20255) by debbugs.gnu.org; 18 Jul 2022 13:33:43 +0000
Received: from localhost ([127.0.0.1]:49555 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oDQsZ-0005Ga-1J
	for submit <at> debbugs.gnu.org; Mon, 18 Jul 2022 09:33:43 -0400
Received: from mailout.easymail.ca ([64.68.200.34]:41878)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bokr@HIDDEN>)
 id 1oDQsU-0005GH-Tz; Mon, 18 Jul 2022 09:33:41 -0400
Received: from localhost (localhost [127.0.0.1])
 by mailout.easymail.ca (Postfix) with ESMTP id 4BA09E2846;
 Mon, 18 Jul 2022 13:33:33 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail;
 t=1658151213; bh=YWaedQzFVAxzN77LVePc8QihnE0Xeatd+IbYGZJgIw4=;
 h=From:Date:To:Cc:Subject:References:In-Reply-To:From;
 b=USXNCC942TEt9OaeJqwvLv9w0OdnaTbJCEZu64iSdIaYm3C1Ydzw7rbVEvBnNBnbJ
 DW6zJ7h5RWkW/98nnyKkO6HQeTxH/62+6HJen40kyG0uMx3XIWYoUpkLqyKleC0TB3
 LF4X7qFl1Qs3b1ZAH91EZucxp5HifLo8UF4M/AvKdB9gAD0sYbuUn6qlBmASsDb1rg
 dICUXBijg4wP5Chs1hB96kAm2AW4Et1mfExHKfcvlYBjKBxiqZWZ+AN99ZK9N69zYS
 dTMGfrl7V1OU8eB5f5qE5Ma4mLZNByfroJ8g38UUVsu008q77SyYTM3894LM8bGBt8
 xdgKtShSc62EQ==
X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn
Received: from mailout.easymail.ca ([127.0.0.1])
 by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id TeYpSuVLeBCg; Mon, 18 Jul 2022 13:33:32 +0000 (UTC)
Received: from localhost (m90-129-211-26.cust.tele2.se [90.129.211.26])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mailout.easymail.ca (Postfix) with ESMTPSA id BD477E29C6;
 Mon, 18 Jul 2022 13:33:31 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail;
 t=1658151212; bh=YWaedQzFVAxzN77LVePc8QihnE0Xeatd+IbYGZJgIw4=;
 h=From:Date:To:Cc:Subject:References:In-Reply-To:From;
 b=jtEfxLgAZAXc0qso/4Vn98tM3F+BCX6M37ngLxP28RMAnqEl8oT2hLJgIAyBuJDwr
 eIbSeExAr4RXtGivsBNs+DQFPoOeX53kxzP7/XuFLyyqsANAehmy9r/MGl+fl2OzMw
 r3SULVTNXed23jJRWtom3NJYfQ6eqJ1ZkfjwJjTkpFDVxeOhJ0KXR75QILeKi1BS/m
 f3b+6y5GvmGKLlIbrJC0NW1Aty2ekwgFkVcln5eSFz0QVteKMnbekyG2/OAypc7IBw
 cgV3yrh85rWEMzli+KLjomjeq51HMWwvVrlgXrIZzlwRjAC93Bw4QTVtI6SyArMjxh
 erGv5KqjNoFIg==
From: bokr@HIDDEN
Date: Mon, 18 Jul 2022 15:33:18 +0200
Message-ID: <20220718133318.GA2771@LionPure>
References: <87sfn6asfz.fsf@HIDDEN>
 <DM5PR03MB31633E3B8D7FB6CF9CD13BE5C5BE9@HIDDEN>
 <ff47ca4d7bfe0148f827dac382ca6211@HIDDEN>
 <877d4e8r79.fsf@HIDDEN> <87tu7hsupr.fsf@HIDDEN>
 <87k08a3h0s.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <87k08a3h0s.fsf@HIDDEN>
User-Agent: Mutt/1.10.1 (2018-07-13)
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 Ludo,

On +2022-07-18 11:29:55 +0200, Ludovic Courtès wrote:
> Hi,
> 
> Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:
> 
> > Hi Ludovic,
> >
> > Ludovic Courtès <ludo@HIDDEN> writes:
> >
> >> Hi,
> >>
> >> "Raghav Gururajan" <rg@HIDDEN> skribis:
> >>
> >>>> Does simply adding ‘hicolor-icon-theme’ to ‘inputs’ fix the issue?
> >>>
> >>> Most gtk-based apps expect hicolor-icon-theme and adwaita-icon-theme to be in the profile. Adding these in either system or user profile would prevent this error from occurring.
> >>
> >> Right, so the proposed patch (adding ‘hicolor-icon-theme’ to ‘inputs’,
> >> not ‘propagated-inputs’) shouldn’t make any difference I guess?
> >
> > I think it works as inputs because of our wrappers (perhaps
> > XDG_DATA_DIRS)?  But it's kind at odds with our policy which is to let
> > users manage icons themselves.
> 
> Yeah.
> 
> > Probably because of #20255 that wouldn't help currently (system and user
> > profiles are not merged), but if we fixed that bug we could make the
> > situation better by adding 'hicolor-icon-theme' to the default packages
> > of our desktop system templates.
> 
> Right.
> 
> BTW, the reason the solution at <https://issues.guix.gnu.org/20255#12>
> was rejected could be revisited.  Since that time, search paths made it
> into the manifest itself, which brings a speed up:
> 
> --8<---------------cut here---------------start------------->8---
> $ sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches '
> $ time guix package -p ~/.guix-home/profile -p /run/current-system/profile --search-paths > /dev/null
> 
> real    0m0.540s
> user    0m0.131s
> sys     0m0.063s
> $ time guix package -p ~/.guix-home/profile -p /run/current-system/profile --search-paths > /dev/null
> 
> real    0m0.135s
> user    0m0.130s
> sys     0m0.024s
> --8<---------------cut here---------------end--------------->8---
> 
> Thoughts?
> 
> Ludo’.

I'm sure you were just after a quick indication and know what can affect timing,
but I'm curious:

What would the above results be if you did the second timing
first, after a power down and cold start?

I'm guessing the kernel file systems are pretty clever about
caching stuff, especially if you have lots of ram :)

I.e., what cached state could the first timing have left for the second to profit from?

(I've been fooled maany times, benchmarking and timing :)

--
Regards,
Bengt Richter




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: [bug#56382] [PATCH] gnu: gajim: Use hicolor-icon-theme to avoid crashing on startup
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 19 Jul 2022 08:31:02 +0000
Resent-Message-ID: <handler.20255.B20255.16582194211979 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: bokr@HIDDEN
Cc: Raghav Gururajan <rg@HIDDEN>, Morgan.J.Smith@HIDDEN, 56382 <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer@HIDDEN>, 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.16582194211979
          (code B ref 20255); Tue, 19 Jul 2022 08:31:02 +0000
Received: (at 20255) by debbugs.gnu.org; 19 Jul 2022 08:30:21 +0000
Received: from localhost ([127.0.0.1]:52745 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oDicW-0000Vo-LF
	for submit <at> debbugs.gnu.org; Tue, 19 Jul 2022 04:30:21 -0400
Received: from eggs.gnu.org ([209.51.188.92]:45712)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>)
 id 1oDicN-0000UF-7O; Tue, 19 Jul 2022 04:30:19 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:59998)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oDicF-0007bG-4a; Tue, 19 Jul 2022 04:30:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=XFv7coPNgEmt8EUxuz6aCPAOAWc1w6otd6EaGMPioqo=; b=D43fk+/AmmZwAegniEYP
 zYCKlZUqv+4yZdK9ij8IDcoARHpGjAGKLBU3T8DCmx87puqbDqfeOabh+cxB7JwRBkg2fHcLb8sNo
 u8XcChjoqwepywJOA16ar34gDFa6u05WBQ2+lZ6sfY9QHJHUI62I3Ack8T34MXeX+dkZU/VQVei1s
 ncCX9N4pS10vnGX+xQ5DZ1h7/IQ7qH9FoAHNbSABYvqoOxBoTtbxtX4oZ2t3tCDoMpJvJY5sU1v24
 qOQk/hwtRjABojenHPOlHZvAAPRJKLuQCWvwe7R3ujyPUzj3YRkp8qZQe0YEVrjw5Pj3jJbGuaP+w
 uCblSYOSJK4cag==;
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=54716 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oDicE-00048r-Lq; Tue, 19 Jul 2022 04:30:02 -0400
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <87sfn6asfz.fsf@HIDDEN>
 <DM5PR03MB31633E3B8D7FB6CF9CD13BE5C5BE9@HIDDEN>
 <ff47ca4d7bfe0148f827dac382ca6211@HIDDEN>
 <877d4e8r79.fsf@HIDDEN> <87tu7hsupr.fsf@HIDDEN>
 <87k08a3h0s.fsf@HIDDEN> <20220718133318.GA2771@LionPure>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Primidi 1 Thermidor an 230 de la =?UTF-8?Q?R=C3=A9volution,?= jour de =?UTF-8?Q?l'=C3=89pautre?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Tue, 19 Jul 2022 10:29:59 +0200
In-Reply-To: <20220718133318.GA2771@LionPure> (bokr@HIDDEN's message of
 "Mon, 18 Jul 2022 15:33:18 +0200")
Message-ID: <871quhwlmg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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: -3.3 (---)

Hi,

bokr@HIDDEN skribis:

> I'm sure you were just after a quick indication and know what can affect =
timing,
> but I'm curious:
>
> What would the above results be if you did the second timing
> first, after a power down and cold start?
>
> I'm guessing the kernel file systems are pretty clever about
> caching stuff, especially if you have lots of ram :)

The =E2=80=98drop_caches=E2=80=99 command is meant to drop all caches, as i=
f I were
doing it on a cold start.

Ludo=E2=80=99.




Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Subject: bug#20255: closed ('search-paths' should respect both user and
 system profile.)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.20255.D20255.168389485721191.ackdone <at> debbugs.gnu.org>
References: <87v8gx91ad.fsf_-_@HIDDEN> <877ftschjt.fsf@HIDDEN>
X-Gnu-PR-Message: closed 20255
X-Gnu-PR-Package: guix
X-Gnu-PR-Keywords: patch
Date: Fri, 12 May 2023 12:35:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1683894902-21268-0"

This is a multi-part message in MIME format...

------------=_1683894902-21268-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Fri, 12 May 2023 20:34:02 +0800
with message-id <87v8gx91ad.fsf_-_@HIDDEN>
and subject line Re: bug#20255: 'search-paths' should respect both user and=
 system profile.
has caused the debbugs.gnu.org bug report #20255,
regarding 'search-paths' should respect both user and system profile.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)


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

------------=_1683894902-21268-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 4 Apr 2015 10:29:43 +0000
Received: from localhost ([127.0.0.1]:44344 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YeLKg-0006mw-Er
	for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49766)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKe-0006mh-AR
 for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKY-00033u-IP
 for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:35 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:60041)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKY-00033q-FS
 for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51484)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKX-0006mP-H2
 for bug-guix@HIDDEN; Sat, 04 Apr 2015 06:29:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKU-000338-C3
 for bug-guix@HIDDEN; Sat, 04 Apr 2015 06:29:33 -0400
Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]:34585)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKU-000331-5F
 for bug-guix@HIDDEN; Sat, 04 Apr 2015 06:29:30 -0400
Received: by pdbni2 with SMTP id ni2so148159933pdb.1
 for <bug-guix@HIDDEN>; Sat, 04 Apr 2015 03:29:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:user-agent:date:message-id:mime-version
 :content-type; bh=MxvZliEufHR77gjiVphQ1jGyf09M2hnrpvuZzqLE4ZI=;
 b=cKVCnE5jNcDoshbAF4Qpq7Fo24xuTQIJSUgpEIyKIXwFk6UH55O7oBvUIRfz1MGEcx
 GWU8gtss2xGGSGsU7xSRZWXx/aqQ1Bpu40sc9/tQvzxmyaHqep4TGQvihZS8Gsa7G1Ub
 owflqYQFgr8/xW+tV9K0UcM6xfMDG9kN8zmNuAnhA6yt8ztTwP6eUYxy4x6KUYxE4Fsu
 IKDsQRiZtTIpuZA273lye1lKwqQiIeOriH6jFOt/XxcJ/UaPuIRmyFW3iDEswJ+3Afhu
 KpL/3Hjt5XwzlM9Npk434YejUM39e8DNQKx6Sur1Spz6xnXi8PpMc2OprVQkeDDwo/u+
 E5ig==
X-Received: by 10.66.55.74 with SMTP id q10mr11172872pap.94.1428143369058;
 Sat, 04 Apr 2015 03:29:29 -0700 (PDT)
Received: from localhost ([108.61.250.36])
 by mx.google.com with ESMTPSA id oq7sm10663684pac.32.2015.04.04.03.29.27
 for <bug-guix@HIDDEN>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 04 Apr 2015 03:29:28 -0700 (PDT)
From: =?utf-8?B?5a6L5paH5q2m?= <iyzsong@HIDDEN>
To: bug-guix@HIDDEN
Subject: 'search-paths' should respect both user and system profile.
User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1
 (x86_64-unknown-linux-gnu)
Date: Sat, 04 Apr 2015 18:29:58 +0800
Message-ID: <877ftschjt.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -4.0 (----)

Currently, search-paths built only from packages in user's profile.
As reported by Andy Wingo in #guix, when I have:
  perl installed into system profile
  perl-xml-parser installed into user profile
  
guix package --search-paths won't give a hint about PERL5LIB,
so it's very likely end up with a broken XML::Parser.
Another interesting fact is that we have both guile and guix in
system profile, but the guix modules isn't work out-of-the-box
on GuixSD.



------------=_1683894902-21268-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 20255-done) by debbugs.gnu.org; 12 May 2023 12:34:17 +0000
Received: from localhost ([127.0.0.1]:54362 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pxRyT-0005Vj-0t
	for submit <at> debbugs.gnu.org; Fri, 12 May 2023 08:34:17 -0400
Received: from mail.envs.net ([5.199.136.28]:51144)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pxRyR-0005Va-5H
 for 20255-done <at> debbugs.gnu.org; Fri, 12 May 2023 08:34:16 -0400
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id 264A738A18AE;
 Fri, 12 May 2023 12:34:14 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1683894854; bh=c6r17M+eZTdvGB8eQrxPqOh/fQ5fX2Z5MsZxcKL5Qdg=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=iWxU+0NK09mhuOWZGu4XDS6XHFb848mqg4/RoTT5Ge3CNMktp40P6qakid+NOF4u6
 CCkGX9rLpOKKFOkAVf13qFHs6f2QYBCa8JNMEGFmsrd+hj7kl3NfKa0Jtht5i74u4c
 runUc5jKFu9aQxK9sXQTb0EMvDA2TiaOeEYB7LJvmnmCfIZ7SQwZMfUJViayUHcF9p
 VsdiftGNxKPuANAQIwrMxu1x4Z4kIDwSPXkJTbzdn6sjYRlWSn//krYx3jZqtjUugq
 3bgghTJ5BZ47IPQNRAwedliFNoBH7m+xlUoBaqGwzYTX7DzthjzciOchJKQokesqKW
 6qcCIWfB2Pp/d2+jJJSU+7edx+QxKpn3iCu/9urAjXjwf55T/zA0PTo0EK1FqxGmWi
 0eEW8V+8PAbBwqq9sS6TSUNuNdxr8I23RZqq//Gr+KMa8ef7/R8n0ANy3/M7vdrZv4
 OPJhpamghyM+2eStBClB757y9u668piyshIw2RRaX4/KuX8BF34Fh3wWqniQYt7nuI
 Wmi88aElRFbBG5C7lcHlYxFvBYCouyxN2rKlvkuEHsmraIlRAv1W/JR9gvS4v/XZgu
 HxMoDoS6n0xVsMxk2EmLCq+wqPRwYyiDTt/YFHNh10XxghouKZcPjo0d0DjhjNFHHN
 e4Zaz502z0jJQIExUGuJ1GOM=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id JSr65M-Da_5y; Fri, 12 May 2023 12:34:02 +0000 (UTC)
Received: from localhost (unknown [36.170.44.145])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA;
 Fri, 12 May 2023 12:34:02 +0000 (UTC)
Received: from localhost (localhost [local])
 by localhost (OpenSMTPD) with ESMTPA id a04a8ed9;
 Fri, 12 May 2023 12:34:02 +0000 (UTC)
From: =?utf-8?B?5a6L5paH5q2m?= <iyzsong@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: bug#20255: 'search-paths' should respect both user and system
 profile.
References: <877ftschjt.fsf@HIDDEN>
 <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <86v9cyuaev.fsf_-_@HIDDEN>
Date: Fri, 12 May 2023 20:34:02 +0800
In-Reply-To: <86v9cyuaev.fsf_-_@HIDDEN> (zimoun's message of "Fri, 18 Dec
 2020 21:27:52 +0100")
Message-ID: <87v8gx91ad.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20255-done
Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, mhw@HIDDEN,
 Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>,
 Christopher Baines <mail@HIDDEN>, iyzsong@HIDDEN,
 20255-done <at> debbugs.gnu.org, Alex Kost <alezost@HIDDEN>
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 (-)



Hello, commit 40310efde9b4a4f2cf98081d6cd10f843685ebb6 fix this by merge
search-paths from multiple profiles by `guix package --search-paths`, in
~/.bashrc and ~/.zprofile (skeletons, so existed systems need manual
update).  


Close now!


------------=_1683894902-21268-0--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Subject: bug#20255: closed (Re: bug#20255: 'search-paths' should respect
 both user and system profile.)
Message-ID: <handler.20255.D20255.168389485721191.notifdone <at> debbugs.gnu.org>
References: <87v8gx91ad.fsf_-_@HIDDEN> <877ftschjt.fsf@HIDDEN>
X-Gnu-PR-Message: they-closed 20255
X-Gnu-PR-Package: guix
X-Gnu-PR-Keywords: patch
Reply-To: 20255 <at> debbugs.gnu.org
Date: Fri, 12 May 2023 12:35:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1683894902-21268-1"

This is a multi-part message in MIME format...

------------=_1683894902-21268-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your bug report

#20255: 'search-paths' should respect both user and system profile.

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 20255 <at> debbugs.gnu.org.

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

------------=_1683894902-21268-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 20255-done) by debbugs.gnu.org; 12 May 2023 12:34:17 +0000
Received: from localhost ([127.0.0.1]:54362 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pxRyT-0005Vj-0t
	for submit <at> debbugs.gnu.org; Fri, 12 May 2023 08:34:17 -0400
Received: from mail.envs.net ([5.199.136.28]:51144)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pxRyR-0005Va-5H
 for 20255-done <at> debbugs.gnu.org; Fri, 12 May 2023 08:34:16 -0400
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id 264A738A18AE;
 Fri, 12 May 2023 12:34:14 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1683894854; bh=c6r17M+eZTdvGB8eQrxPqOh/fQ5fX2Z5MsZxcKL5Qdg=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=iWxU+0NK09mhuOWZGu4XDS6XHFb848mqg4/RoTT5Ge3CNMktp40P6qakid+NOF4u6
 CCkGX9rLpOKKFOkAVf13qFHs6f2QYBCa8JNMEGFmsrd+hj7kl3NfKa0Jtht5i74u4c
 runUc5jKFu9aQxK9sXQTb0EMvDA2TiaOeEYB7LJvmnmCfIZ7SQwZMfUJViayUHcF9p
 VsdiftGNxKPuANAQIwrMxu1x4Z4kIDwSPXkJTbzdn6sjYRlWSn//krYx3jZqtjUugq
 3bgghTJ5BZ47IPQNRAwedliFNoBH7m+xlUoBaqGwzYTX7DzthjzciOchJKQokesqKW
 6qcCIWfB2Pp/d2+jJJSU+7edx+QxKpn3iCu/9urAjXjwf55T/zA0PTo0EK1FqxGmWi
 0eEW8V+8PAbBwqq9sS6TSUNuNdxr8I23RZqq//Gr+KMa8ef7/R8n0ANy3/M7vdrZv4
 OPJhpamghyM+2eStBClB757y9u668piyshIw2RRaX4/KuX8BF34Fh3wWqniQYt7nuI
 Wmi88aElRFbBG5C7lcHlYxFvBYCouyxN2rKlvkuEHsmraIlRAv1W/JR9gvS4v/XZgu
 HxMoDoS6n0xVsMxk2EmLCq+wqPRwYyiDTt/YFHNh10XxghouKZcPjo0d0DjhjNFHHN
 e4Zaz502z0jJQIExUGuJ1GOM=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id JSr65M-Da_5y; Fri, 12 May 2023 12:34:02 +0000 (UTC)
Received: from localhost (unknown [36.170.44.145])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA;
 Fri, 12 May 2023 12:34:02 +0000 (UTC)
Received: from localhost (localhost [local])
 by localhost (OpenSMTPD) with ESMTPA id a04a8ed9;
 Fri, 12 May 2023 12:34:02 +0000 (UTC)
From: =?utf-8?B?5a6L5paH5q2m?= <iyzsong@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: bug#20255: 'search-paths' should respect both user and system
 profile.
References: <877ftschjt.fsf@HIDDEN>
 <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <86v9cyuaev.fsf_-_@HIDDEN>
Date: Fri, 12 May 2023 20:34:02 +0800
In-Reply-To: <86v9cyuaev.fsf_-_@HIDDEN> (zimoun's message of "Fri, 18 Dec
 2020 21:27:52 +0100")
Message-ID: <87v8gx91ad.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20255-done
Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, mhw@HIDDEN,
 Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>,
 Christopher Baines <mail@HIDDEN>, iyzsong@HIDDEN,
 20255-done <at> debbugs.gnu.org, Alex Kost <alezost@HIDDEN>
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 (-)



Hello, commit 40310efde9b4a4f2cf98081d6cd10f843685ebb6 fix this by merge
search-paths from multiple profiles by `guix package --search-paths`, in
~/.bashrc and ~/.zprofile (skeletons, so existed systems need manual
update).  


Close now!


------------=_1683894902-21268-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 4 Apr 2015 10:29:43 +0000
Received: from localhost ([127.0.0.1]:44344 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YeLKg-0006mw-Er
	for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49766)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKe-0006mh-AR
 for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKY-00033u-IP
 for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:35 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:60041)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKY-00033q-FS
 for submit <at> debbugs.gnu.org; Sat, 04 Apr 2015 06:29:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51484)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKX-0006mP-H2
 for bug-guix@HIDDEN; Sat, 04 Apr 2015 06:29:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKU-000338-C3
 for bug-guix@HIDDEN; Sat, 04 Apr 2015 06:29:33 -0400
Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]:34585)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1YeLKU-000331-5F
 for bug-guix@HIDDEN; Sat, 04 Apr 2015 06:29:30 -0400
Received: by pdbni2 with SMTP id ni2so148159933pdb.1
 for <bug-guix@HIDDEN>; Sat, 04 Apr 2015 03:29:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:user-agent:date:message-id:mime-version
 :content-type; bh=MxvZliEufHR77gjiVphQ1jGyf09M2hnrpvuZzqLE4ZI=;
 b=cKVCnE5jNcDoshbAF4Qpq7Fo24xuTQIJSUgpEIyKIXwFk6UH55O7oBvUIRfz1MGEcx
 GWU8gtss2xGGSGsU7xSRZWXx/aqQ1Bpu40sc9/tQvzxmyaHqep4TGQvihZS8Gsa7G1Ub
 owflqYQFgr8/xW+tV9K0UcM6xfMDG9kN8zmNuAnhA6yt8ztTwP6eUYxy4x6KUYxE4Fsu
 IKDsQRiZtTIpuZA273lye1lKwqQiIeOriH6jFOt/XxcJ/UaPuIRmyFW3iDEswJ+3Afhu
 KpL/3Hjt5XwzlM9Npk434YejUM39e8DNQKx6Sur1Spz6xnXi8PpMc2OprVQkeDDwo/u+
 E5ig==
X-Received: by 10.66.55.74 with SMTP id q10mr11172872pap.94.1428143369058;
 Sat, 04 Apr 2015 03:29:29 -0700 (PDT)
Received: from localhost ([108.61.250.36])
 by mx.google.com with ESMTPSA id oq7sm10663684pac.32.2015.04.04.03.29.27
 for <bug-guix@HIDDEN>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 04 Apr 2015 03:29:28 -0700 (PDT)
From: =?utf-8?B?5a6L5paH5q2m?= <iyzsong@HIDDEN>
To: bug-guix@HIDDEN
Subject: 'search-paths' should respect both user and system profile.
User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1
 (x86_64-unknown-linux-gnu)
Date: Sat, 04 Apr 2015 18:29:58 +0800
Message-ID: <877ftschjt.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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: -4.0 (----)

Currently, search-paths built only from packages in user's profile.
As reported by Andy Wingo in #guix, when I have:
  perl installed into system profile
  perl-xml-parser installed into user profile
  
guix package --search-paths won't give a hint about PERL5LIB,
so it's very likely end up with a broken XML::Parser.
Another interesting fact is that we have both guile and guix in
system profile, but the guix modules isn't work out-of-the-box
on GuixSD.



------------=_1683894902-21268-1--


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 15 May 2023 13:54:01 +0000
Resent-Message-ID: <handler.20255.D20255.168415879731890 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Cc: zimoun <zimon.toutoune@HIDDEN>, mhw@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Christopher Baines <mail@HIDDEN>, iyzsong@HIDDEN, 20255-done <at> debbugs.gnu.org, Alex Kost <alezost@HIDDEN>
Received: via spool by 20255-done <at> debbugs.gnu.org id=D20255.168415879731890
          (code D ref 20255); Mon, 15 May 2023 13:54:01 +0000
Received: (at 20255-done) by debbugs.gnu.org; 15 May 2023 13:53:17 +0000
Received: from localhost ([127.0.0.1]:43033 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pyYdY-0008II-Nm
	for submit <at> debbugs.gnu.org; Mon, 15 May 2023 09:53:16 -0400
Received: from mail-qk1-f179.google.com ([209.85.222.179]:62739)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1pyYdU-0008I2-Nd
 for 20255-done <at> debbugs.gnu.org; Mon, 15 May 2023 09:53:15 -0400
Received: by mail-qk1-f179.google.com with SMTP id
 af79cd13be357-759413d99afso414259185a.1
 for <20255-done <at> debbugs.gnu.org>; Mon, 15 May 2023 06:53:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1684158787; x=1686750787;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=+3CzpIbX6MHJxS8/Hezp/7XK0CMukz+kaqo8Zff+oLM=;
 b=Cn5OHeoe/gq5PIZ6CVS8BpvNfx8yDBlaG/sWmYz2F4MqVmN5nu7XrUfAWGXI0JUIna
 KTW7L5hKanop9N84BaK3jy5Y4Nj+KZhKpI9MYA3N6Jqp3mjT2nSqxOK2rvJsVZ0BrtZx
 1ZamEcDlWxhJ528yMsGwieWk3FuNKiW+KwJPu75Tg6i/5MuBWrhZSD4r3ic/z5y+V0RE
 9raitEsW4v1qNxmfX2xXSQIiCyFuENVKIE7IZXius6jMe+IvpZaHCCQTSCoeJwiPuARx
 8seXIbX5lzXuX7LUzlDUKukXcxqSzn8Zeyb1lL8E1Ome21/7UV5FE21PhGkmK/EV7Bm2
 RU9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1684158787; x=1686750787;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=+3CzpIbX6MHJxS8/Hezp/7XK0CMukz+kaqo8Zff+oLM=;
 b=e2giy7N1e/olZw8iJDkPhKaiiH8soPhdq+UXBmYUNKvpJ1lftS9ovCyyQIgQoFkQlq
 vsVfifsH9O26rRDVLbw/eXCfY4pSYpWdmVVdWAP5qBzc5j+gFbRD/ZhDk1jMDtbe9J+b
 T3RVEungDHbQQ+KelGrHXxnGaGXbrR1YUU0G3XPfCXfZ6Q0jUWsmX44yBnFgr0OYaoHs
 W14xmzeNDFBNiZBt52hdrk+CTWvc//Ap8fkq22hc+xbu7rASV2o9VbxVTCtlIGQ7Xsc4
 D+D71nczwQWugAVsGAMh/rrA5TTlfz2Ef7b6lXnc2nH6zQyijrs5fDwqbnxVG6/Hbcu1
 kltA==
X-Gm-Message-State: AC+VfDxlWsmeDgcpFoHo1txaUX74pMKn4BUe7GXDhUJPtADRlETmz6Ex
 HZZanSonmselS0cnRk4G/QI=
X-Google-Smtp-Source: ACHHUZ48IcdKn7WkLwTnJpkEWkCeAzYzmHx6vUdr10ZOwB11H6dKFKG2F9JXz0bGM8jHzV7zYZ7zfA==
X-Received: by 2002:ac8:57c3:0:b0:3f3:9065:f3a6 with SMTP id
 w3-20020ac857c3000000b003f39065f3a6mr46138260qta.25.1684158786995; 
 Mon, 15 May 2023 06:53:06 -0700 (PDT)
Received: from hurd (dsl-205-236-230-106.b2b2c.ca. [205.236.230.106])
 by smtp.gmail.com with ESMTPSA id
 bv24-20020a05622a0a1800b003f3c9754e1dsm4822095qtb.17.2023.05.15.06.53.05
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 15 May 2023 06:53:06 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
References: <877ftschjt.fsf@HIDDEN>
 <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <86v9cyuaev.fsf_-_@HIDDEN> <87v8gx91ad.fsf_-_@HIDDEN>
Date: Mon, 15 May 2023 09:53:04 -0400
In-Reply-To: <87v8gx91ad.fsf_-_@HIDDEN> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s
 message of "Fri, 12 May 2023 20:34:02 +0800")
Message-ID: <87jzx9vgzj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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 (-)

Hi,

=E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> writes:

> Hello, commit 40310efde9b4a4f2cf98081d6cd10f843685ebb6 fix this by merge
> search-paths from multiple profiles by `guix package --search-paths`, in
> ~/.bashrc and ~/.zprofile (skeletons, so existed systems need manual
> update).=20=20
>
>
> Close now!

Cool, thanks for the update.  Perhaps a NEWS entry would be useful to
keep Guix System existing users in the loop?  Until we have a better
mechanism/approach to these stateful files that don't change past the
original installation.

--=20
Thanks,
Maxim




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Josselin Poiret <dev@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 15 May 2023 17:15:02 +0000
Resent-Message-ID: <handler.20255.D20255.168417086923477 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>, zimoun <zimon.toutoune@HIDDEN>
Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, mhw@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Christopher Baines <mail@HIDDEN>, iyzsong@HIDDEN, 20255-done <at> debbugs.gnu.org, Alex Kost <alezost@HIDDEN>
Received: via spool by 20255-done <at> debbugs.gnu.org id=D20255.168417086923477
          (code D ref 20255); Mon, 15 May 2023 17:15:02 +0000
Received: (at 20255-done) by debbugs.gnu.org; 15 May 2023 17:14:29 +0000
Received: from localhost ([127.0.0.1]:44268 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pybmG-00066b-NX
	for submit <at> debbugs.gnu.org; Mon, 15 May 2023 13:14:28 -0400
Received: from jpoiret.xyz ([206.189.101.64]:35766)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dev@HIDDEN>) id 1pybmD-00066S-SU
 for 20255-done <at> debbugs.gnu.org; Mon, 15 May 2023 13:14:27 -0400
Received: from authenticated-user (jpoiret.xyz [206.189.101.64])
 by jpoiret.xyz (Postfix) with ESMTPA id B93F9184BE9;
 Mon, 15 May 2023 17:14:18 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim;
 t=1684170859;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=OCck3VIWVKX/1ENcldpYHND6A9rp96K+O47L/fI4j7c=;
 b=kfP0H77KxtosC+oPJ7zFQvWG6XnvtkHqqhZszsSTLSQ/tNbRsL5qUOdiR7FXRZNEu3Wmzr
 zM5DKaN/20J3Xe4NYfNNZno+TTtJQH02SezrsWRa3NrALEhS0UQFOpLkw6QBTxP1IXwcUJ
 kZrdwfKHIMq0+S06Qo7yGWGWPM3Fn/qndEBdjjSMSxlkzUhnqAzT+MvTvxxQlAM5IoDd+w
 2qLXhxEJacqkuQGsjp+lCJO5kw4n7mFitYPoo0KpIH5PS29ll5idn4VR9FvSIUeAJqgPal
 VHEbn48HeQO+rjgp3PUBK4+HNA7ikcGQBmxguyt6zOZPvzg/jIrHDghBQ2FRsg==
From: Josselin Poiret <dev@HIDDEN>
In-Reply-To: <87v8gx91ad.fsf_-_@HIDDEN>
References: <877ftschjt.fsf@HIDDEN>
 <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <86v9cyuaev.fsf_-_@HIDDEN> <87v8gx91ad.fsf_-_@HIDDEN>
Date: Mon, 15 May 2023 19:14:15 +0200
Message-ID: <87jzx934bc.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spamd-Bar: /
Authentication-Results: jpoiret.xyz;
 auth=pass smtp.auth=jpoiret@HIDDEN smtp.mailfrom=dev@HIDDEN
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: 0.0 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,

=E5=AE=8B=E6=96=87=E6=AD=A6 via Bug reports for GNU Guix <bug-guix@HIDDEN>=
 writes:

> Hello, commit 40310efde9b4a4f2cf98081d6cd10f843685ebb6 fix this by merge
> search-paths from multiple profiles by `guix package --search-paths`, in
> ~/.bashrc and ~/.zprofile (skeletons, so existed systems need manual
> update).=20=20
>
>
> Close now!

I just checked and zsh does load /etc/profile by default on login, and
on guix system that also loads the user's profile by default.  Should we
remove this so that profiles are only loaded once?

Best,
=2D-=20
Josselin Poiret

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmRiaGcQHGRldkBqcG9p
cmV0Lnh5egAKCRBQXkC5FhcairhMDAC7rkqNX2gZNehrfHxjfYBs7vQP9b+2BrYx
UCB6upDFf0lWV8sOPOKGQv2a1ihvsnGQdOTlLkUtxVT4K/6VnEyO+wBFMFVxRHN+
DxsOBGHchE96gGt6MbhAAxkUwl93KDrrmIWuH9tGz1nO0kG8x9V5DnITjZLWtbI9
+duG+HrvmitNZFVmq5u+xsVqh8GHV7OjhgOxOt/IsS1BxdDrLg7EsEgKasxYP1So
YUPogCskgCKtBhiU0FGyNNKVEyiFofvaD6Z5yrKQQRVRF+doE+qm6gJmOK2rLnox
DsbgIxc/IBkQvv319tgNuGQulgcbM12sHUGd9tNWuAajgM3YM4m2Zcf6NkugTSz3
jq3pflx4tZ2yJbuV0BH9wCJrfRXLRYGh/YA46wp9mYv8l0s6BccPLy0wJyHzZsyb
Bnv8JQ7zfew/qvMQ6yGSwnt43G8UxhfXGRNClOdjIZddOvASmo7bSC79QB5p57DS
Vso87Nh2XgTptIJeJ2KKxXI9ofIDLr8=
=Y2cD
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 15 May 2023 17:47:03 +0000
Resent-Message-ID: <handler.20255.D20255.168417279426496 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Josselin Poiret <dev@HIDDEN>
Cc: zimoun <zimon.toutoune@HIDDEN>, mhw@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Christopher Baines <mail@HIDDEN>, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>, iyzsong@HIDDEN, 20255-done <at> debbugs.gnu.org, Alex Kost <alezost@HIDDEN>
Received: via spool by 20255-done <at> debbugs.gnu.org id=D20255.168417279426496
          (code D ref 20255); Mon, 15 May 2023 17:47:03 +0000
Received: (at 20255-done) by debbugs.gnu.org; 15 May 2023 17:46:34 +0000
Received: from localhost ([127.0.0.1]:44300 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pycHJ-0006tI-Vx
	for submit <at> debbugs.gnu.org; Mon, 15 May 2023 13:46:34 -0400
Received: from mail-qv1-f49.google.com ([209.85.219.49]:46377)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1pycHF-0006sp-4l
 for 20255-done <at> debbugs.gnu.org; Mon, 15 May 2023 13:46:30 -0400
Received: by mail-qv1-f49.google.com with SMTP id
 6a1803df08f44-61b71b7803bso62681696d6.1
 for <20255-done <at> debbugs.gnu.org>; Mon, 15 May 2023 10:46:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1684172783; x=1686764783;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=yOrED1MzVjCbkj+CCaA2W+3xgGK7b/7bXgJBSldf08c=;
 b=nETxfCex+c4xTpqLJOX6cOkcOBrtpyJZunr+oEMZZamCuaUfxZpVedIhE/ayCiEjzK
 rNMaxAb3RVJ+MD5JrJukcjJ8oUTHW4ZlL3iu3ojyHzi49z1AlBWTlVYQlvs5O68w+oVp
 7Sgl2RxwAbMwviwaRSYom3EPdJAACI6TeyDO6YsjRaAFrhsIvd/QCsJcgsaQrZ+z2B1i
 RToOqmGgP5aCLFoNDna5OS4Kd+R40zi73uqKneTXD9q+SXnhNOcfNGr22+N41RQFaZya
 56QPyquAhf6rCk7U9Q0Z2agjQjvG3zyG0z/CxzwRaQohM5LuDMu3o3KWpdqZkqscFDqz
 fTug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1684172783; x=1686764783;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=yOrED1MzVjCbkj+CCaA2W+3xgGK7b/7bXgJBSldf08c=;
 b=Y4Wh4N+RiDAYi1O2/hoggQfSvs60hxLBQQz0PIIJ+HXiJMHGWx5MjQhx82U7Hrt6Dq
 oVg3IiR+TQf/3LWhZRdW3kwzp6U2pKV6qw1s/mCwtDjNzegCewohZtbSZA3ii9FaDto9
 fwSrk+DQJGqM9+C1zRE5tE+Mm69Ld3YpA6mZ1QbFgdmK6Wo1HyNVRnKsxtamm6B5w+JE
 BK/TViPcrCpacRBpH8XnPZgMzaFUX6lGrJ1c7s1sFwttN9+7qlWStjI/F/uMZwm4sLFG
 Nl+Ar2TXclcPYJqm4dW9TEwtuUY2nJk46MMX1SuoDzXm3HrQsLKSwW51fANLOMlN/VCf
 6q3g==
X-Gm-Message-State: AC+VfDxvZGdKogfUfiPjUvoiwoXDyINLXyCou8pHnTVhF33drKCVj/0b
 t71bdYRx9zB0sWhd+YtQV9E=
X-Google-Smtp-Source: ACHHUZ7e31qR49fXAmUjy8SvIYYWGJerfHAhh5dPn2XawP2MNJMw9GNNGS5CLDqjdGw0cqTg++Ac4g==
X-Received: by 2002:a05:6214:27c7:b0:621:712c:fa03 with SMTP id
 ge7-20020a05621427c700b00621712cfa03mr19587450qvb.44.1684172783502; 
 Mon, 15 May 2023 10:46:23 -0700 (PDT)
Received: from hurd (dsl-205-236-230-106.b2b2c.ca. [205.236.230.106])
 by smtp.gmail.com with ESMTPSA id
 b3-20020a0cf043000000b0061b62c15351sm5079340qvl.90.2023.05.15.10.46.22
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 15 May 2023 10:46:22 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
References: <877ftschjt.fsf@HIDDEN>
 <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <86v9cyuaev.fsf_-_@HIDDEN> <87v8gx91ad.fsf_-_@HIDDEN>
 <87jzx934bc.fsf@HIDDEN>
Date: Mon, 15 May 2023 13:46:21 -0400
In-Reply-To: <87jzx934bc.fsf@HIDDEN> (Josselin Poiret's message of "Mon, 
 15 May 2023 19:14:15 +0200")
Message-ID: <87sfbxtrma.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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 (-)

Hi,

Josselin Poiret <dev@HIDDEN> writes:

> Hi,
>
> =E5=AE=8B=E6=96=87=E6=AD=A6 via Bug reports for GNU Guix <bug-guix@HIDDEN=
g> writes:
>
>> Hello, commit 40310efde9b4a4f2cf98081d6cd10f843685ebb6 fix this by merge
>> search-paths from multiple profiles by `guix package --search-paths`, in
>> ~/.bashrc and ~/.zprofile (skeletons, so existed systems need manual
>> update).=20=20
>>
>>
>> Close now!
>
> I just checked and zsh does load /etc/profile by default on login, and
> on guix system that also loads the user's profile by default.  Should we
> remove this so that profiles are only loaded once?

Just to make sure, remove what exactly?

--=20
Thanks,
Maxim




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: Josselin Poiret <dev@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 16 May 2023 09:38:01 +0000
Resent-Message-ID: <handler.20255.D20255.168422983222890 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Cc: zimoun <zimon.toutoune@HIDDEN>, mhw@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Christopher Baines <mail@HIDDEN>, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>, iyzsong@HIDDEN, 20255-done <at> debbugs.gnu.org, Alex Kost <alezost@HIDDEN>
Received: via spool by 20255-done <at> debbugs.gnu.org id=D20255.168422983222890
          (code D ref 20255); Tue, 16 May 2023 09:38:01 +0000
Received: (at 20255-done) by debbugs.gnu.org; 16 May 2023 09:37:12 +0000
Received: from localhost ([127.0.0.1]:45232 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pyr7I-0005x8-Fk
	for submit <at> debbugs.gnu.org; Tue, 16 May 2023 05:37:12 -0400
Received: from jpoiret.xyz ([206.189.101.64]:53374)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dev@HIDDEN>) id 1pyr7F-0005wy-CO
 for 20255-done <at> debbugs.gnu.org; Tue, 16 May 2023 05:37:10 -0400
Received: from authenticated-user (jpoiret.xyz [206.189.101.64])
 by jpoiret.xyz (Postfix) with ESMTPA id A9E721851E0;
 Tue, 16 May 2023 09:37:05 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim;
 t=1684229827;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=umhKCk3J0K/cUbw1zzmke5HP8PkCfuDhZRBkZZAqGEQ=;
 b=WEbmo/rwUH5qp7SX+z9AWAx52Mw4kShaiqQBpZiHC2T2JF12aWsqduVa633R2iVpaJbKrJ
 JfVUX3LcGgVTO/Onfs+SqxQMpBdtO+QfU248AjKpRHrK83PySnecPKtjgia0v1qL8WIA4U
 yGfhNbYumqLuc6mH1+eetyzs2Sq1bN/If9Z7C9byI6GMEmibKFYkWQWsEcKH5f+Rk1/C+1
 SkHPhurk7yeAYXKmgiwQ+rCjKBZum9eyPy94alazPOKEYmkKsSxiuPYOeEjsmsTqG8qKhU
 A2hzDY0bQgqXWl6QsWP74hA6VgpJOprYDB+3jmP7z1gAJaRdJsoAFx1EfRjlgg==
From: Josselin Poiret <dev@HIDDEN>
In-Reply-To: <87sfbxtrma.fsf@HIDDEN>
References: <877ftschjt.fsf@HIDDEN>
 <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <86v9cyuaev.fsf_-_@HIDDEN> <87v8gx91ad.fsf_-_@HIDDEN>
 <87jzx934bc.fsf@HIDDEN> <87sfbxtrma.fsf@HIDDEN>
Date: Tue, 16 May 2023 11:37:02 +0200
Message-ID: <87fs7whb29.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spamd-Bar: +
Authentication-Results: jpoiret.xyz;
 auth=pass smtp.auth=jpoiret@HIDDEN smtp.mailfrom=dev@HIDDEN
X-Spam-Level: *
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: 0.0 (/)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi Maxim,

Maxim Cournoyer <maxim.cournoyer@HIDDEN> writes:

> Just to make sure, remove what exactly?

Remove the bit in /etc/profile that loads the user's profile, if it is
indeed supposed to be loaded by the user's own ~/.zprofile or
~/.bash_profile.  At least, I don't know if there is a general agreement
on what should be done in /etc/profile vs. the user's own config.

Best,
=2D-=20
Josselin Poiret

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmRjTr8QHGRldkBqcG9p
cmV0Lnh5egAKCRBQXkC5FhcaiktcC/0f0HopzxZNI4Rh0bdqEp+SRuiJ0lu3L6hj
zyU7RfSydnV95HYmKrtncZaUMeRZB+oYIahzMNR+NHdBvZNuYBRt1DIQMRC0rEh5
zIIikVVy7TdgT/6oj76rf25RzbVKKu5Gh6SX+Z8r9K4fwA2//nE4U90y04xkiZgn
NgxWJoUFJRhXCOcP4NG+9VYDYxlkecfEoJ0ez2VlSQyf6GUaZK58OCQLATiwUru0
D1bDV+yW4VEU6N74y2P/2ZZILcXHd1TY8cG/AMEvK2v0sFrrDjssn7l+fEbjx5mf
/MC34xv6PKSKKRuZV5+q+ydCfo4e/OzqyewPW9JXV/HDwivUmi40B4m6Kyg1t1Sl
RzyQyxY2GyU8po9LKzeJZU0YRq5sxlAIwLR5eRP4RtpE9vwlHLXyQZ6pscYvnSRf
bRuV/3KM5rWMYbojNEeE2oFt6zuINoQRUQ38uZtpb4+gKNlapRvcPWicx/2qpAx7
oO8H4malkZiDHX4dH/yN+ITDQ5/gDYQ=
=t+4b
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 16 May 2023 11:01:02 +0000
Resent-Message-ID: <handler.20255.D20255.16842348611945 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: patch
To: Josselin Poiret <dev@HIDDEN>
Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, zimoun <zimon.toutoune@HIDDEN>, mhw@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Christopher Baines <mail@HIDDEN>, iyzsong@HIDDEN, 20255-done <at> debbugs.gnu.org, Alex Kost <alezost@HIDDEN>
Received: via spool by 20255-done <at> debbugs.gnu.org id=D20255.16842348611945
          (code D ref 20255); Tue, 16 May 2023 11:01:02 +0000
Received: (at 20255-done) by debbugs.gnu.org; 16 May 2023 11:01:01 +0000
Received: from localhost ([127.0.0.1]:45339 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pysQO-0000VJ-O9
	for submit <at> debbugs.gnu.org; Tue, 16 May 2023 07:01:01 -0400
Received: from mail.envs.net ([5.199.136.28]:38136)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pysQJ-0000V3-P6
 for 20255-done <at> debbugs.gnu.org; Tue, 16 May 2023 07:00:59 -0400
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id 8CD9538A1912;
 Tue, 16 May 2023 11:00:53 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1684234853; bh=DaXfW1RYKpeRaXcDK2CDDwa73HWptt0779Tsy+QIR7M=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=TMLb2BLfycZyYTsaV3lduHERn0qfmILe7HmvVLcMEVHiwAfbu/zBncq9TF/ROKgkL
 xTSjQmlkcDaRxYLIPEV3gc721xAYLiQ+qj3wVxcxPuiGKTf5eUsJ/HIlQqeXFZfMYu
 rHRQVoD4KHTol61vnRa/DFmgTZTjkpsqOZv1ms1nRjY+Bv0oBpnWSOgSqsNwjdhB2r
 BJlq/DW9hKAAp48sbWmkB0mWouMBNGTZgK5RRjIegBdx5HBfmNwBMWmtvezTiep6OL
 qrQSPi0dz9pi6pkPNKfX3qvSNzuTgTVlL40QnDdN1qrTjsv3cmQdQbpFEh3TbuoMIx
 w0OpP1eA7x6laB2feJVgqWf44mLuhUYLuXLDOOxZER0LVMgtkqfIUv5AZy5SXAbD72
 Hll4WRfgPDEB6dpSsiYvTgfDzVXdEvQ39HWvCM6DgMoF/0suir/N9wOTD1pIuASfga
 jM+CNRxBLdlpyTowxhhGB/DkA2RsaV155pMARPXUqbwW72fyibeGE8uH4j2PMRm/hC
 vRpsrsFvLc5uaJ3IPWDVVggL9DRpMKN8A1O0c8bWk6Vsn9gyt/wPrbgP1o1zGl3QfA
 KWyjsbQZ2ZjT/HbdOjyfmdjJmz8WfLncQuyqZIeqW21s4t/g2uEJVT/cHH2gKwHEjv
 lg/k1D2c0SmiSVKLspZYEz9g=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id JB_sPC4U5GmZ; Tue, 16 May 2023 11:00:41 +0000 (UTC)
Received: from localhost (unknown [36.170.57.163])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA;
 Tue, 16 May 2023 11:00:41 +0000 (UTC)
Received: from localhost (localhost [local])
 by localhost (OpenSMTPD) with ESMTPA id 5854b6a1;
 Tue, 16 May 2023 11:00:32 +0000 (UTC)
From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
References: <877ftschjt.fsf@HIDDEN>
 <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <86v9cyuaev.fsf_-_@HIDDEN> <87v8gx91ad.fsf_-_@HIDDEN>
 <87jzx934bc.fsf@HIDDEN> <87sfbxtrma.fsf@HIDDEN>
 <87fs7whb29.fsf@HIDDEN>
Date: Tue, 16 May 2023 19:00:32 +0800
In-Reply-To: <87fs7whb29.fsf@HIDDEN> (Josselin Poiret's message of "Tue, 
 16 May 2023 11:37:02 +0200")
Message-ID: <87r0rgr167.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
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 (-)

Josselin Poiret <dev@HIDDEN> writes:

> Hi Maxim,
>
> Maxim Cournoyer <maxim.cournoyer@HIDDEN> writes:
>
>> Just to make sure, remove what exactly?
>
> Remove the bit in /etc/profile that loads the user's profile, if it is
> indeed supposed to be loaded by the user's own ~/.zprofile or
> ~/.bash_profile.

Remove will break existed systems, so need a NEWS entry as Maxim
mentioned, and maybe some explainations and examples in the manual about
how to setup the environments as needed.

I could make a patch for it this weekend if no one beats me..


> At least, I don't know if there is a general agreement
> on what should be done in /etc/profile vs. the user's own config.

I think hopefully we can agree that /etc/profile only handle the system
profile, and user's own config can decide what it want.

Despite mitigation, it still work out of the box with skeletons, and
user can arrange priorities among profiles, or disable the system one.
Or configure it via home-shell-profile (TODO: need some changes).




Message received at fakecontrol@fakecontrolmessage:


Received: (at fakecontrol) by fakecontrolmessage;
To: internal_control <at> debbugs.gnu.org
From: Debbugs Internal Request <help-debbugs@HIDDEN>
Subject: Internal Control
Message-Id: Did not alter fixed versions and reopened.
Date: Wed, 17 May 2023 14:04:01 +0000
User-Agent: Fakemail v42.6.9

# This is a fake control message.
#
# The action:
# Did not alter fixed versions and reopened.
thanks
# This fakemail brought to you by your local debbugs
# administrator


Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 17 May 2023 14:03:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 17 10:03:34 2023
Received: from localhost ([127.0.0.1]:50510 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pzHkb-00027O-Ut
	for submit <at> debbugs.gnu.org; Wed, 17 May 2023 10:03:34 -0400
Received: from mail.envs.net ([5.199.136.28]:45630)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pzHka-00027C-7I
 for control <at> debbugs.gnu.org; Wed, 17 May 2023 10:03:33 -0400
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id E7C1238A1431
 for <control <at> debbugs.gnu.org>; Wed, 17 May 2023 14:03:29 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1684332209; bh=FBpQMO0Y6jr9Wticia6i7XMGs+nJ2TjVPiIDY4Zv7ig=;
 h=Date:To:From:Subject:From;
 b=I41KDKneArteJ6pdeKZIBWCMwzr5E0tthtxxudEJba1qe7Uyx5mY10ytsqNyJ9quw
 S/lwx1XrruB6Kso8Ic1ff8hkVNwr8tqmunxmBOZxsAd3MziJmG5R5cz5LvlK+Js1Kb
 zIrx16U2k7uLiuBuGwOTcR3IIjkEw0EuhZwdmzVfVNpQzePcM9G3yYQ/W/dWMDGBEM
 Zd6ivBeCqD/k2MCeYiI8oRm8dfTGefR48Zp/ueYlvBoQDYZsvuq3WEwVAtLJU62GaS
 Wnd4Ss+TMUkRfcNYoPa+XU5x9fqXT/eHCCOy2fWLssdC96S37hhGlOjPigzxm2LHBG
 IKSyqZvFeaEpHwiibUVrPD73qHcONblXfOp+/AXcQMqn72DlqcJTC+kUDiGQmdgMgZ
 9D95kUvNJmcIxo+f8Yds82KJZNmiBYjBpGoo+SBLB2tSNvvWTIK0KTNTTHz1ZvQ/sK
 o8oAZLVb0fRfH8/H+3RsqR4Qto+bK3O0nO2fR4QiMKf7NmN2iQgOleFIByXX19HzMD
 0RhjcMkMbfht+QVq7Zw1yCYksFClrartiy+GdpAddTHvjjF6D79aOVRuY5zb3Tw/GP
 BTWOZIA5PTfQhSiyK+74WB3Ji75STtCpGcuQsMg2eHij3t5NYo4AGyhlOVjwXukUWV
 pdwUexQcLN9mVs3DkvAux2NE=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id AmLHA7H4tG1c for <control <at> debbugs.gnu.org>;
 Wed, 17 May 2023 14:03:27 +0000 (UTC)
Received: from localhost (unknown [36.170.57.133])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA
 for <control <at> debbugs.gnu.org>; Wed, 17 May 2023 14:03:27 +0000 (UTC)
Received: from localhost (localhost [local])
 by localhost (OpenSMTPD) with ESMTPA id 70d87884
 for <control <at> debbugs.gnu.org>; Wed, 17 May 2023 14:03:20 +0000 (UTC)
Date: Wed, 17 May 2023 22:03:20 +0800 (CST)
To: control <at> debbugs.gnu.org
From: =?utf-8?B?5a6L5paH5q2m?= <iyzsong@HIDDEN>
Subject: control message for bug #20255
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-ID: <7e7b1bfcd8d196a3@localhost>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
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 (-)

reopen 20255
tags 20255 - fixed patch
quit





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: [PATCH 3/4] system: Only source system profile's settings in '/etc/profile'.
Resent-From: iyzsong@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 17 May 2023 14:05:01 +0000
Resent-Message-ID: <handler.20255.B20255.16843322678267 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 20255 <at> debbugs.gnu.org
Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.16843322678267
          (code B ref 20255); Wed, 17 May 2023 14:05:01 +0000
Received: (at 20255) by debbugs.gnu.org; 17 May 2023 14:04:27 +0000
Received: from localhost ([127.0.0.1]:50518 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pzHlT-00029H-Af
	for submit <at> debbugs.gnu.org; Wed, 17 May 2023 10:04:27 -0400
Received: from mail.envs.net ([5.199.136.28]:38260)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pzHlR-000298-Oo
 for 20255 <at> debbugs.gnu.org; Wed, 17 May 2023 10:04:26 -0400
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id 4026338A1436;
 Wed, 17 May 2023 14:04:25 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1684332265; bh=YP2DkoVYFV4PeI6NhD8VZsmXIRRZDMihEIw6QFO7I3s=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
 b=E/FDCfaDlAw+HVun+YiqnmAqfXrH95fpDncQhm0hnvfIu7Ro55dBMNs+T8jyLmUxU
 Jo28I7vsVIZvjCwsoefmUnJ+0FIFf1lIfnlxGyo7jvIXWZDoAdVEIaOlUS2jUvwwig
 M97bi7J86TWRuS4CGcSvcg1ds1giJ+RMaDvcKK14BdjQNN2Wcp4xPqFpN7qH7YjZ3v
 OqFQMgP7LE35L7+k2kmUcFOiqT6sjta9IMxZ/fUT5ppZV2eKaFISb5ik/GMesVaQSQ
 1wrMbx+2T7m0vkaLb4SAeeY9x7epheaBPfwmAphwxC6CfsrlkLlX3yKpdym8Ga/Wnf
 2nOjBJIQIsRqkPgjsyG9gd9qbru1YR3CddDE4ilPcotgFayT0Yxi5p0jbCX1o5cldo
 eaW798IGT6QXRxWaqN3yWfU26Vq7KAFrWS1YlW8J/T4jnQh0ANJ4tajEb9XtWhNUQS
 Iu7SG8aXM78Udm5dpFtVMNbommNPMMRmYsL6OYAzfVD8ie2NJytVg8E0cGBVDj8xm5
 OFakjBMAOaXSmvmk1Sa0ZSKGUyExbMS6omRXypleI1YzJoBkAcbns1/eMNoAYuSuWX
 8tc1SUN1E7ktZmIT8Iudd5uKturGjvoJLcn0hcfZb0gYiCfrcTBofGuVBjX4OVqUK6
 2YhhqWd592y1J/DQAjNyqgS0=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id SZdiYRM71J3d; Wed, 17 May 2023 14:04:22 +0000 (UTC)
Received: from localhost (unknown [36.170.57.133])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA;
 Wed, 17 May 2023 14:04:21 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
 by localhost (OpenSMTPD) with ESMTP id dcd4eb43;
 Wed, 17 May 2023 14:04:19 +0000 (UTC)
From: iyzsong@HIDDEN
Date: Wed, 17 May 2023 22:04:10 +0800
Message-Id: <2e888b4d07c67ad74fbb4ec9afb812a236852027.1684331588.git.iyzsong@HIDDEN>
X-Mailer: git-send-email 2.40.1
In-Reply-To: <10665650174637a1b70629b864509a0a68920154.1684331588.git.iyzsong@HIDDEN>
References: <10665650174637a1b70629b864509a0a68920154.1684331588.git.iyzsong@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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 (-)

From: 宋文武 <iyzsong@HIDDEN>

This is a followup to 40310efde9b4a4f2cf98081d6cd10f843685ebb6.

* gnu/system.scm (operating-system-etc-service)[profile]:
Don't source profile of '~/.guix-profile' and '~/.config/guix/current'.
---
 gnu/system.scm | 23 ++++-------------------
 1 file changed, 4 insertions(+), 19 deletions(-)

diff --git a/gnu/system.scm b/gnu/system.scm
index 354f58f55b..a48c206e18 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -1009,8 +1009,8 @@ (define* (operating-system-etc-service os)
         ;; environment variables.
         (profile    (mixed-text-file "profile"  "\
 # Crucial variables that could be missing in the profiles' 'etc/profile'
-# because they would require combining both profiles.
-# FIXME: See <http://bugs.gnu.org/20255>.
+# because they would require honoring search paths of dependencies.
+# FIXME: See <http://bugs.gnu.org/22138>.
 export MANPATH=$HOME/.guix-profile/share/man:/run/current-system/profile/share/man
 export INFOPATH=$HOME/.guix-profile/share/info:/run/current-system/profile/share/info
 export XDG_DATA_DIRS=$HOME/.guix-profile/share:/run/current-system/profile/share
@@ -1037,27 +1037,12 @@ (define* (operating-system-etc-service os)
   export `cat /etc/environment | cut -d= -f1`
 fi
 
-# Arrange so that ~/.config/guix/current comes first.
-for profile in \"$HOME/.guix-profile\" \"$HOME/.config/guix/current\"
-do
-  if [ -f \"$profile/etc/profile\" ]
-  then
-    # Load the user profile's settings.
-    GUIX_PROFILE=\"$profile\" ; \\
-    . \"$profile/etc/profile\"
-  else
-    # At least define this one so that basic things just work
-    # when the user installs their first package.
-    export PATH=\"$profile/bin:$PATH\"
-  fi
-done
+# Make basic things just work when the user installs their first package.
+export PATH=\"$HOME/.config/guix/current/bin:$HOME/.guix-profile/bin:$PATH\"
 
 # Prepend setuid programs.
 export PATH=/run/setuid-programs:$PATH
 
-# Arrange so that ~/.config/guix/current/share/info comes first.
-export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"
-
 # Set the umask, notably for users logging in via 'lsh'.
 # See <http://bugs.gnu.org/22650>.
 umask 022
-- 
2.40.1





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: [PATCH 2/4] system: default-skeletons: Set up Guix home profile when it exists.
Resent-From: iyzsong@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 17 May 2023 14:05:02 +0000
Resent-Message-ID: <handler.20255.B20255.16843322718285 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 20255 <at> debbugs.gnu.org
Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.16843322718285
          (code B ref 20255); Wed, 17 May 2023 14:05:02 +0000
Received: (at 20255) by debbugs.gnu.org; 17 May 2023 14:04:31 +0000
Received: from localhost ([127.0.0.1]:50522 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pzHlW-00029X-PL
	for submit <at> debbugs.gnu.org; Wed, 17 May 2023 10:04:31 -0400
Received: from mail.envs.net ([5.199.136.28]:38266)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pzHlS-00029F-MN
 for 20255 <at> debbugs.gnu.org; Wed, 17 May 2023 10:04:28 -0400
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id 2DC8638A1439;
 Wed, 17 May 2023 14:04:26 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1684332266; bh=fXzUDy4nn4XdKVH499mSkR5xnOdrJd0XoMTmJ0KtnWA=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
 b=nvL+K3p3xryqJGhkPw2swlEQpRt34bvnC6pavTw07dBKFjDqkgDr3Dg8iCRkJyeYJ
 2omxP5z/ueJ+CkSEsb53ODO8jElDNj450rK1wNT0xs8dBZset32L5FLlwN5jkYZBNe
 JjaItTiIq1f0J7LtAcqxN6+Yq38ZIgVVs1icocS3Uww+XtkxwSV/90Hbp3kbEwxKmd
 N21/U6wSTEzefihpcpomtFL0BoLhCD3VgsC91VVKpTMVzHHnECOVxED+lENbtnLCph
 qnoVQFEtZj9QBtDho2CJiawquDwTMqMOTMAQv2PK+6Izejor1VHTtRqdTVU+PXudTB
 5eBfBR540tTEzGtulo9KzNRWOevEjqHGNR+aG2wlFW+a1tWQdr1v4c81tVsvZr8/9f
 k+1eNWVKWBOdgmlpT66jg3qYcHQDwWHoRGHCOoBCKwkX/GoA2HXh1VJPxwcN+sa1qO
 xfVnVmowNEyfZP2NOMfJPX00h8S37gu5sgDbZ0Xp9HN14/LIQKDxH1fcsRMY87WGMJ
 n/3gz9dcPW06ZOyrfoLzs7/ctDhsfcxxbPgPzAej4ejJlAZf1rYggfdyyV//iQjXp4
 0PnaZdkfgJHgYDSHuC5Nmkwd8jbtStlXTkQ5nKv0LOVF0a67HroA0W+178QerJYblk
 8nXrdXylA0z2kkuvYwrSSSug=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id ckkuy8kskZKi; Wed, 17 May 2023 14:04:23 +0000 (UTC)
Received: from localhost (unknown [36.170.57.133])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA;
 Wed, 17 May 2023 14:04:21 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
 by localhost (OpenSMTPD) with ESMTP id 07513384;
 Wed, 17 May 2023 14:04:18 +0000 (UTC)
From: iyzsong@HIDDEN
Date: Wed, 17 May 2023 22:04:09 +0800
Message-Id: <aebd484298147829c9f19c0a57835bf434a237ec.1684331588.git.iyzsong@HIDDEN>
X-Mailer: git-send-email 2.40.1
In-Reply-To: <10665650174637a1b70629b864509a0a68920154.1684331588.git.iyzsong@HIDDEN>
References: <10665650174637a1b70629b864509a0a68920154.1684331588.git.iyzsong@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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 (-)

From: 宋文武 <iyzsong@HIDDEN>

This is a followup to 40310efde9b4a4f2cf98081d6cd10f843685ebb6.

* gnu/system/shadow.scm (default-skeletons)[bash_profile, zprofile]:
Source '~/.profile' when '~/.guix-home' exists.
---
 gnu/system/shadow.scm | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 4a8cc87f0f..afb47fc42d 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -151,9 +151,6 @@ (define (default-skeletons)
 'useradd' in the home directory of newly created user accounts."
 
   (let ((profile (plain-file "bash_profile" "\
-# Set up Guix Home profile
-if [ -f ~/.profile ]; then . ~/.profile; fi
-
 # Honor per-interactive-shell startup file
 if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
 
@@ -165,6 +162,9 @@ (define (default-skeletons)
 
 # Prepend setuid programs.
 export PATH=/run/setuid-programs:$PATH
+
+# Set up Guix Home profile
+if [ -d ~/.guix-home ]; then . ~/.profile; fi
 "))
         (bashrc  %default-bashrc)
         (zprofile    (plain-file "zprofile" "\
@@ -179,6 +179,9 @@ (define (default-skeletons)
 
 # Prepend setuid programs.
 export PATH=/run/setuid-programs:$PATH
+
+# Set up Guix Home profile
+if [ -d ~/.guix-home ]; then . ~/.profile; fi
 "))
         (xdefaults (plain-file "Xdefaults" "\
 XTerm*utf8: always
-- 
2.40.1





Message sent to , bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: [PATCH 1/4] home: shells: Merge search-paths of multiple profiles.
References: <877ftschjt.fsf@HIDDEN>
In-Reply-To: <877ftschjt.fsf@HIDDEN>
Resent-From: iyzsong@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: , bug-guix@HIDDEN
Resent-Date: Wed, 17 May 2023 14:05:02 +0000
Resent-Message-ID: <handler.20255.B20255.16843322758317 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 20255 <at> debbugs.gnu.org
Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>, ( <paren@HIDDEN>, Andrew Tropin <andrew@HIDDEN>, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
X-Debbugs-Original-Xcc: ( <paren@HIDDEN>, Andrew Tropin <andrew@HIDDEN>, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.16843322758317
          (code B ref 20255); Wed, 17 May 2023 14:05:02 +0000
Received: (at 20255) by debbugs.gnu.org; 17 May 2023 14:04:35 +0000
Received: from localhost ([127.0.0.1]:50527 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pzHlb-0002A4-8l
	for submit <at> debbugs.gnu.org; Wed, 17 May 2023 10:04:35 -0400
Received: from mail.envs.net ([5.199.136.28]:38250)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pzHlN-000291-VI
 for 20255 <at> debbugs.gnu.org; Wed, 17 May 2023 10:04:33 -0400
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id 735D038A1431;
 Wed, 17 May 2023 14:04:21 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1684332261; bh=4lP/qre2fEH84WVMWGLGqsYIMtbrdYvn2xbmWwDrfGE=;
 h=From:To:Cc:Subject:Date:From;
 b=ip8PHuF/mPtSqAgAZg8dn00LNOYw7KyjQRpnDxKeDqAk0cT7ecgP7gZxTasDYyw1C
 K/hZeL4eWZyDbkdFX8X/XN6u3jfIUiK9zMYiGRMOfGsm4jtDOyGXN9ZGBPFz0PqsmQ
 JmtiohoRitgmqIiG3wc3RBwpMRdSp5pBEVjgiNIH+l/4Um8+RRQLiHM8GwTaGxWJsD
 b9fIryi2o26jfsBTiPL+fh/kEp9oR660A/DewBsjYARiH7vXWSvrgBv3YR34GUiyAI
 LI4dH08s4FowN2Rtee27iuXbePYCm4TTVVYs0vy5S+oUu9byTnPWYDdrj1uxEZ71Sj
 lo9vi2f+G4Lk9TeVybAJDrnqBGBqOFTtryJYISN7FwsN/icR6SEwMqCuhvm9NKExzV
 K6o9vbZTmGXUreZC1QeO/Z9CVjvWyuv+ZqC8/e4zg/Psoo854EKvQTXXM1FpH/I6GD
 GevxI0JnPBH937BkLnxqXlDs3PrLQ1fxW9efZJ19jlCEB0v+Ta4Vqn01mnvJPYny9C
 7okJ19G9Q9ajRF9qM6Mraa2Ne0UoP8Hzjy9MaTHjEaabtqaalm2w6OXB8isCat6DF5
 YC19pJH7+kObw5CoDy3leOv+yXP0iVFXsKeoe0GBryQwacMetBd8Of7W9iaK9skzPm
 yAZHXq/EcsbdRgKiM7aja2Z0=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id WuZSTcPUxNtm; Wed, 17 May 2023 14:04:18 +0000 (UTC)
Received: from localhost (unknown [36.170.57.133])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA;
 Wed, 17 May 2023 14:04:17 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
 by localhost (OpenSMTPD) with ESMTP id bacb00de;
 Wed, 17 May 2023 14:04:18 +0000 (UTC)
From: iyzsong@HIDDEN
Date: Wed, 17 May 2023 22:04:08 +0800
Message-Id: <10665650174637a1b70629b864509a0a68920154.1684331588.git.iyzsong@HIDDEN>
X-Mailer: git-send-email 2.40.1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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 (-)

From: 宋文武 <iyzsong@HIDDEN>

This is a followup to 40310efde9b4a4f2cf98081d6cd10f843685ebb6.

* gnu/home/services.scm (environment-variables->setup-environment-script):
Merge search-paths from multiple profiles via "guix package".
* gnu/home/services/shells.scm (zsh-file-zprofile, add-bash-configuration):
Adjust comments.
---
 gnu/home/services.scm        | 14 ++++++++++----
 gnu/home/services/shells.scm |  6 ++----
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/gnu/home/services.scm b/gnu/home/services.scm
index b17a34d19d..3a061cf310 100644
--- a/gnu/home/services.scm
+++ b/gnu/home/services.scm
@@ -260,11 +260,17 @@ (define (environment-variables->setup-environment-script vars)
                            (lambda (port)
                              (set-port-encoding! port "UTF-8")
                              (display "\
-HOME_ENVIRONMENT=$HOME/.guix-home
-GUIX_PROFILE=\"$HOME_ENVIRONMENT/profile\"
-PROFILE_FILE=\"$HOME_ENVIRONMENT/profile/etc/profile\"
-[ -f $PROFILE_FILE ] && . $PROFILE_FILE
+# Merge search-paths from multiple profiles, the order matters.
+eval \"$(guix package --search-paths \\
+-p $HOME/.config/guix/current \\
+-p $HOME/.guix-home/profile \\
+-p $HOME/.guix-profile \\
+-p /run/current-system/profile)\"
+
+# Prepend setuid programs.
+export PATH=/run/setuid-programs:$PATH
 
+HOME_ENVIRONMENT=$HOME/.guix-home
 case $XDG_DATA_DIRS in
   *$HOME_ENVIRONMENT/profile/share*) ;;
   *) export XDG_DATA_DIRS=$HOME_ENVIRONMENT/profile/share:$XDG_DATA_DIRS ;;
diff --git a/gnu/home/services/shells.scm b/gnu/home/services/shells.scm
index f05f2221d6..7c8908083e 100644
--- a/gnu/home/services/shells.scm
+++ b/gnu/home/services/shells.scm
@@ -185,9 +185,8 @@ (define (zsh-file-zprofile config)
   (mixed-text-file
    "zprofile"
    "\
-# Set up the system, user profile, and related variables.
+# Set up environment variables of profiles.
 source /etc/profile
-# Set up the home environment profile.
 source ~/.profile
 
 # It's only necessary if zsh is a login shell, otherwise profiles will
@@ -399,9 +398,8 @@ (define (add-bash-configuration config)
       ,(mixed-text-file
         "bash_profile"
         "\
-# Set up the system, user profile, and related variables.
+# Set up environment variables of profiles.
 # /etc/profile will be sourced by bash automatically
-# Set up the home environment profile.
 if [ -f ~/.profile ]; then source ~/.profile; fi
 
 # Honor per-interactive-shell startup file

base-commit: cf82526ac400fe953ddfbf9d7458d62ea4871d10
-- 
2.40.1





Message sent to pelzflorian@HIDDEN, julien@HIDDEN, bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: [PATCH 4/4] news: Add entry for '/etc/profile' changes.
Resent-From: iyzsong@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: pelzflorian@HIDDEN, julien@HIDDEN, bug-guix@HIDDEN
Resent-Date: Wed, 17 May 2023 14:05:03 +0000
Resent-Message-ID: <handler.20255.B20255.16843322808338 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 20255 <at> debbugs.gnu.org
Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>, Florian Pelz <pelzflorian@HIDDEN>, Julien Lepiller <julien@HIDDEN>
X-Debbugs-Original-Xcc: Florian Pelz <pelzflorian@HIDDEN>, Julien Lepiller <julien@HIDDEN>
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.16843322808338
          (code B ref 20255); Wed, 17 May 2023 14:05:03 +0000
Received: (at 20255) by debbugs.gnu.org; 17 May 2023 14:04:40 +0000
Received: from localhost ([127.0.0.1]:50531 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pzHlg-0002AQ-7R
	for submit <at> debbugs.gnu.org; Wed, 17 May 2023 10:04:40 -0400
Received: from mail.envs.net ([5.199.136.28]:38274)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pzHlX-00029Y-5a
 for 20255 <at> debbugs.gnu.org; Wed, 17 May 2023 10:04:35 -0400
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id A76B038A1439;
 Wed, 17 May 2023 14:04:30 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1684332270; bh=Xq8YF/5GiTr7ba2KySzDcjgj+FB/kAmPlI3SFSqUNCY=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
 b=NbcKq0KZIA6LkCMNdYbDQaRPduJ3OHW5cRXgj1lQM0ZVQ4tU/PqFx8nkMBiPL5wNh
 dBFimA/pKr/H+URhPyQIiJd73p1spfCvAXw5an+qy7S0m4CLP3mseuy3NBkUaKQ28C
 p5M3gwJrm8IDl2VWATQWCrmSjXw4JoXnvRTT0rPtRTQBJErhTaAlxhndJr6cSQh8xn
 Co+tSD1+XLbZB3KARMOU7rwin6f9H9vO7s0P7xSQQRZOvuol6IqaDePItfsWLx9L+W
 mMCk+O4QQere08cKKNtJZPTtEfEL9kLc4xCXU6cXcz5EjA95nnNPz8MfRoHKQGHmCs
 mb+ZkopKoMC/FtbEURC83c/Sv2/wNc1/6yUKsy8Q1VlsRLaM87ytkdQMMLTDSX2f8f
 cZPHRfh5f5ECfZdjhAYMGU7DfcqaX9Aq/kl3JtVU0V59EmIsUb1h6ncxH1abS4qx7q
 jlYrVtVbmIpTFwjulXWcec7IVhb2nMHqNKp6B4QwsYbHxfLhskvSeskKw8QwRqbHGt
 ObO0CYRIdtJWJ5VYhiSwLpPghmtchzh9CDo3Bst1NAJcUmPeRFIkssuXm2OzXDDZTY
 BMOSjvDUzR9R8J7OCceO61REQE0hDwqZA0LoW2UZDviQkgkXwLAy1PFjCa5abCgsEL
 e1GFgWIuahWEjdO7IkrVHw8o=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id lKtFrF29MGST; Wed, 17 May 2023 14:04:26 +0000 (UTC)
Received: from localhost (unknown [36.170.57.133])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA;
 Wed, 17 May 2023 14:04:25 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
 by localhost (OpenSMTPD) with ESMTP id 7e673051;
 Wed, 17 May 2023 14:04:19 +0000 (UTC)
From: iyzsong@HIDDEN
Date: Wed, 17 May 2023 22:04:11 +0800
Message-Id: <e3e0c7198f23986140a339e2cfd4a6dd530d9ee6.1684331588.git.iyzsong@HIDDEN>
X-Mailer: git-send-email 2.40.1
In-Reply-To: <10665650174637a1b70629b864509a0a68920154.1684331588.git.iyzsong@HIDDEN>
References: <10665650174637a1b70629b864509a0a68920154.1684331588.git.iyzsong@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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 (-)

From: 宋文武 <iyzsong@HIDDEN>

* etc/news.scm: Add entry.
---
 etc/news.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/etc/news.scm b/etc/news.scm
index f5dc3ca0d5..2da92eeac3 100644
--- a/etc/news.scm
+++ b/etc/news.scm
@@ -26,6 +26,39 @@
 (channel-news
  (version 0)
 
+ (entry (commit "2e888b4d07c67ad74fbb4ec9afb812a236852027")
+        (title
+         (en "@file{/etc/profile} changes require manual intervention"))
+        (body
+         (en "On Guix System, now the personal shell startup file
+@file{~/.bash_profile} or @file{~/.zprofile} will be used to set up
+environment variables for the user instead of @file{/etc/profile}.  And
+search-paths from multiple profiles are honored, which means a system
+configured Xfce desktop environment can find its panel plugins in the user
+profile.
+
+Before run @command{guix system reconfigure}, append the snippet below to each
+user's @file{~/.bash_profile} or @file{~/.zprofile}:
+
+@example
+# Merge search-paths from multiple profiles, the order matters.
+eval \"$(guix package --search-paths \\
+-p $HOME/.config/guix/current \\
+-p $HOME/.guix-profile \\
+-p /run/current-system/profile)\"
+
+# Prepend setuid programs.
+export PATH=/run/setuid-programs:$PATH
+
+# Set up Guix Home profile
+if [ -d ~/.guix-home ]; then . ~/.profile; fi
+@end example
+
+Or you can override them with updated skeleton files after system reconfigure.
+In addition, Guix Home users need to upgrade via @command{guix home
+reconfigure}.  See @uref{https://issues.guix.gnu.org/20255} for the
+rationale.")))
+
  (entry (commit "ae11fcb84ac478dfa56d322ef08890645183a087")
         (title
          (en "New @option{--with-configure-flag} transformation option")
-- 
2.40.1





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20255: 'search-paths' should respect both user and system profile.
Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 17 May 2023 14:13:02 +0000
Resent-Message-ID: <handler.20255.B20255.16843327569264 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20255
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Cc: zimoun <zimon.toutoune@HIDDEN>, mhw@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Christopher Baines <mail@HIDDEN>, guix-devel@HIDDEN, Alex Kost <alezost@HIDDEN>, 20255 <at> debbugs.gnu.org
Received: via spool by 20255-submit <at> debbugs.gnu.org id=B20255.16843327569264
          (code B ref 20255); Wed, 17 May 2023 14:13:02 +0000
Received: (at 20255) by debbugs.gnu.org; 17 May 2023 14:12:36 +0000
Received: from localhost ([127.0.0.1]:50565 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pzHtL-0002PL-OJ
	for submit <at> debbugs.gnu.org; Wed, 17 May 2023 10:12:36 -0400
Received: from mail.envs.net ([5.199.136.28]:59650)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1pzHtJ-0002P1-1d
 for 20255 <at> debbugs.gnu.org; Wed, 17 May 2023 10:12:34 -0400
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id 57EC638A0F27;
 Wed, 17 May 2023 14:12:30 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1684332750; bh=Y7HM8k/925nhHBnDPk/S9aQVgs8Xy358fMVmcHt2jhI=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=HjYTLc8bD3gwrH3jCQuakN7DfRQW4vwnTOdnB4c9mGIPk8TdvVBvyV5XFMRGB7SGB
 +ne4n3I98E76b96mOZOQtWDT9jY8C/ds8kQoWnK+g3QvLxqVVxIEtsmLZP9gGwMIGH
 pWKGkJx+R8GJznrHXrMicFtKohISQqwjekxgG7u4/vAWzh9EeCYv6jL8njOywWWe22
 4M2gzMM7Op08XNMw5VUp+T4NCsysEKUtKfeOlxnLtxgMXDPM2wtNBE1eMyj49gcfwa
 MJLnbZV1RyibpG+Eq3yCa5YrMbLcq4hck24bo2xbihNQ6ZhH0DxBh3biLbKCdfpDMn
 39rtf8EPxrW5VxHjSaVkclrpuBAflO6CWtNNH+utNRwp7uyhYs2ha+r0f3rv8NkvLc
 0SKZr8C9XUiQvyyb/VZpHPO/LfolLJhEVWySigPmj0Xe3lrm+ctV0RobAItw1KPOAF
 nWgtlo2x40xtRE2eOsNLiDpRmIJoI6SjoVGywCf+1af2/6sBpzJnFbWcvuHMacz5Ek
 U75dcl4lBdV0VFxVu1MJwsGPuGugG60f3Od9MNaTnexOH+UfMqsqp4Y/PBpxjwX8F4
 NP36qBb5TUXjSSuzzdderlcaz/r7o8NUxl/9MK/7c+94JrC3mIu2FSadbNdZqlYzpM
 reDQ5g89lQJ/1uJnoGtNvpMA=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id j7wSuT0ZGGmn; Wed, 17 May 2023 14:12:18 +0000 (UTC)
Received: from localhost (unknown [36.170.57.133])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA;
 Wed, 17 May 2023 14:12:18 +0000 (UTC)
Received: from localhost (localhost [local])
 by localhost (OpenSMTPD) with ESMTPA id 3cd2c5cb;
 Wed, 17 May 2023 14:12:19 +0000 (UTC)
From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@HIDDEN>
References: <877ftschjt.fsf@HIDDEN>
 <CAJ3okZ3pg6q=Z29tfuDtdCwRrC6FYbFma_qAtAb2mVw4CTMW3A@HIDDEN>
 <86v9cyuaev.fsf_-_@HIDDEN> <87v8gx91ad.fsf_-_@HIDDEN>
 <87jzx9vgzj.fsf@HIDDEN>
Date: Wed, 17 May 2023 22:12:19 +0800
In-Reply-To: <87jzx9vgzj.fsf@HIDDEN> (Maxim Cournoyer's message of "Mon, 15
 May 2023 09:53:04 -0400")
Message-ID: <87r0rfhwsc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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 (-)

Maxim Cournoyer <maxim.cournoyer@HIDDEN> writes:

> Hi,
>
> =E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> writes:
>
>> Hello, commit 40310efde9b4a4f2cf98081d6cd10f843685ebb6 fix this by merge
>> search-paths from multiple profiles by `guix package --search-paths`, in
>> ~/.bashrc and ~/.zprofile (skeletons, so existed systems need manual
>> update).=20=20
>>
>>
>> Close now!

Well, I reopen this since the changes is not totaly (duplicates in
/etc/profile, guix home changes) done, sorry...

>
> Cool, thanks for the update.  Perhaps a NEWS entry would be useful to
> keep Guix System existing users in the loop?  Until we have a better
> mechanism/approach to these stateful files that don't change past the
> original installation.

Now, I send more patches with NEWS entry.


Add guix-devel to CC for more reviews, TIA!





Last modified: Wed, 17 May 2023 14:15:02 UTC

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