From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#20255: 'search-paths' should respect both user and system profile. Date: Sat, 04 Apr 2015 23:04:46 +0200 Message-ID: <87fv8fip01.fsf@gnu.org> References: <877ftschjt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeVFX-0001WF-Fa for bug-guix@gnu.org; Sat, 04 Apr 2015 17:05:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YeVFW-0001LL-Dz for bug-guix@gnu.org; Sat, 04 Apr 2015 17:05:03 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:55161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeVFW-0001JV-Bi for bug-guix@gnu.org; Sat, 04 Apr 2015 17:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YeVFV-0002Gt-MF for bug-guix@gnu.org; Sat, 04 Apr 2015 17:05:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <877ftschjt.fsf@gmail.com> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s message of "Sat, 04 Apr 2015 18:29:58 +0800") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Cc: 20255@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 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 --=-=-=--