From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: Package recommended environment variables Date: Thu, 16 May 2019 13:21:12 +0200 Message-ID: <87tvduhcgn.fsf@nckx> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:33202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hREU4-0000Wc-Ul for help-guix@gnu.org; Thu, 16 May 2019 07:23:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRERx-0007kW-SM for help-guix@gnu.org; Thu, 16 May 2019 07:21:26 -0400 Received: from tobias.gr ([80.241.217.52]:47750) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRERw-0007hg-TK for help-guix@gnu.org; Thu, 16 May 2019 07:21:25 -0400 In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Tk Cc: "help-guix@gnu.org" --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Tk, Tk wrote: > When installing packages, I often get warnings about adding=20 > variables to .profile . Which warnings are these? Are you sure that's what they mean? Something like =E2=80=98the following variable definitions might be=20 needed=E2=80=99 doesn't mean you should go edit your .profile, but you're=20 far from the first to do so. They are printed because guix cannot=20 change the environment of the shell that invoked it, so =E2=80=98guix=20 install foo; foo=E2=80=99 won't work if foo needs a certain environment=20 variable to be set. It will work if you open a new shell. That's=20 a Unix limitation=C2=B9. There was some talk about rephrasing that warning, but IIRC that=20 was difficult to do without making other assumptions. I don't=20 know if anything came of it. > These warnings, however, get easily lost when installing bunch=20 > of stuff automatically. Is there a way of extracting this info=20 > again? Should I grep through package definitions? Grepping won't help since these variables (=E2=80=98search paths=E2=80=99) = are=20 almost always propagated from dependencies, such as glib. Take a=20 look at the =E2=80=98--search-paths=E2=80=99 argument to =E2=80=98guix pack= age=E2=80=99. It will=20 probably do what you want. Note that it's not limited to a single=20 package. However, why are you interested in this information? =2D If it's because you're manually adding variables to .profile:=20 don't; Guix already takes care of this automatically, you should=20 simply source /etc/profile if you aren't already. =2D If it's because you're using an incompatible shell and are=20 maintaining your own =E2=80=98port=E2=80=99 of that file: you're *probabl= y*=20 better off with a simple =E2=80=98bash -c ". guix-profile/etc/profile &&= =20 exec myshell"=E2=80=99 wrapper. =2D If it's because Guix's =E2=80=A6/etc/profile is otherwise lacking for=20 you, please let us know why. Kind regards, T G-R [1]: There are horrible ways to fake this but let's not. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXN1HqAAKCRANsP+IT1Vt ecjuAP9PsSZudA0rckTLCX6mD2q/qqtk9RYzIRhS2usiNQb2YAD+JMk+QLN6a549 YcvJo7O4eGRxWUTJFj6YLrTLr58FYAk= =4chE -----END PGP SIGNATURE----- --=-=-=--