From debbugs-submit-bounces@debbugs.gnu.org Wed May 19 12:26:54 2021 Received: (at 30093) by debbugs.gnu.org; 19 May 2021 16:26:54 +0000 Received: from localhost ([127.0.0.1]:60540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljP25-0008SO-1W for submit@debbugs.gnu.org; Wed, 19 May 2021 12:26:54 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:33747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljOqY-00083d-5V for 30093@debbugs.gnu.org; Wed, 19 May 2021 12:14:59 -0400 Received: (Authenticated sender: tomas.almeida@astrolabium.io) by relay11.mail.gandi.net (Postfix) with ESMTPA id 7F76C100009; Wed, 19 May 2021 16:14:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=astrolabium.io; s=gm1; t=1621440891; 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; bh=KUMDxGkS8vPKX95uIrqOTeUzIQe91sV4Iu2/OVQNumk=; b=H6ie3ply8WDIZsRwVgT2zkCLBT5nJTounD4PW9L7lX1FHIaRuekFb+16xYRDof2urTRwMY JJ6relQ5pLJhl6BJrO2nJT4TS+ojvzcjFv2ybItV7TZAS3V13D687BHWsGrloJJ2DLk7xt pgQTiElXAnLX5qXX1H1bDTnCwZpL+1ZBVyBi27OZCBKKyjSxRWi8FqqEl+kOMjPVq6Kd10 9tk9euib8jeiJYw/CpM2yaQhDb9c7PSAOWi6Y2F8VHqAyQdSUigBcOG78rGWETkdRSVIkd 8NOfqcp9ST5lUB8DqeHqnb/0ZcuCvhLXRuVQYcAGDkMVhGha3zluUMz7Niq/6A== From: =?utf-8?q?tomas.almeida=40astrolabium.io?= Content-Type: multipart/alternative; boundary="----=_=-_OpenGroupware_org_NGMime-17751-1621440890.897658-551------" X-Forward: 127.0.0.1 Date: Wed, 19 May 2021 18:14:50 +0200 To: 30093@debbugs.gnu.org MIME-Version: 1.0 Message-ID: <4557-60a53980-3e3-412dc980@34221159> Subject: bug#30093 what manual =?utf-8?q?workaround=3F?= User-Agent: SOGoMail 5.1.0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30093 X-Mailman-Approved-At: Wed, 19 May 2021 12:26:51 -0400 Cc: andre.gomes@astrolabium.io X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) ------=_=-_OpenGroupware_org_NGMime-17751-1621440890.897658-551------ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 3240 Hello, I see people mentioning here that there doesn't seem to be a general so= lution to be included in Guix for this, but I als do not understand wha= t the particular solution (for my machine, for example) is supposed to = be. I'm a new user to Guix and also not technically very experienced with L= inux OS's, so feel free to point me out something obvious I have missed= . I currently have Guix on top of Ubuntu 20.04, and I have this exact pro= blem with XDG=5FDATA=5FDIRS being exported on startup of Gnome and brea= king it, and i happend when this variable is added to ~/.guix-profile/e= tc/profile when installing certain packages; the ones detected so far w= here python-ipython, python-ipykernel and python-notebook. As far as I unedrstand, when Ubuntu starts up, it runs /etc/profile, wh= ich in turn reads through all scripts inside /etc/profile.d. In that di= r, we have guix.sh, which I will paste here: # =5FGUIX=5FPROFILE: `guix pull` profile =5FGUIX=5FPROFILE=3D"$HOME/.config/guix/current" export PATH=3D"$=5FGUIX=5FPROFILE/bin${PATH:+:}$PATH" # Export INFOPATH so that the updated info pages can be found # and read by both /usr/bin/info and/or $GUIX=5FPROFILE/bin/info # When INFOPATH is unset, add a trailing colon so that Emacs # searches 'Info-default-directory-list'. export INFOPATH=3D"$=5FGUIX=5FPROFILE/share/info:$INFOPATH" # GUIX=5FPROFILE: User's default profile GUIX=5FPROFILE=3D"$HOME/.guix-profile" [ -L $GUIX=5FPROFILE ] || return GUIX=5FLOCPATH=3D"$GUIX=5FPROFILE/lib/locale" export GUIX=5FPROFILE GUIX=5FLOCPATH [ -f "$GUIX=5FPROFILE/etc/profile" ] && . "$GUIX=5FPROFILE/etc/profile"= # set XDG=5FDATA=5FDIRS to include Guix installations export XDG=5FDATA=5FDIRS=3D"$GUIX=5FPROFILE/share:${XDG=5FDATA=5FDIRS:-= /usr/local/share/:/usr/share/}" The culprit in this case seems to be [ -f "$GUIX=5FPROFILE/etc/profile"= ] && . "$GUIX=5FPROFILE/etc/profile", and this is because it is gettin= g the following two lines from $GUIX=5FPROFILE/etc/profile which are in= troduced by installing python-ipython (for example): export GI=5FTYPELIB=5FPATH=3D"${GUIX=5FPROFILE:-/gnu/store/22lc31mr4h00= x5swzk73293pm2xpaahi-profile}/lib/girepository-1.0${GI=5FTYPELIB=5FPATH= :+:}$GI=5FTYPELIB=5FPATH" export XDG=5FDATA=5FDIRS=3D"${GUIX=5FPROFILE:-/gnu/store/22lc31mr4h00x5= swzk73293pm2xpaahi-profile}/share${XDG=5FDATA=5FDIRS:+:}$XDG=5FDATA=5FD= IRS" In fact, when this happens, the last line in guix.sh is only duplicatin= g what the line inside .guix-profile/etc/profile had already exported: export XDG=5FDATA=5FDIRS=3D"$GUIX=5FPROFILE/share:${XDG=5FDATA=5FDIRS:-= /usr/local/share/:/usr/share/}" What is the workaround that can be used here? I only see two possible solutions, which are unsatisfactory to me: * Re= frain from installing packages that alter this variable; * Comment all = lines inside guix.sh and add . "$GUIX=5FPROFILE/etc/profile to my .bash= =5Frc file, focing me to open a terminal everytime I want to launch gui= x installed packages.Is there another alternative for this? Eagerly awating for feedback on this, as it's completely destroying my = workflow; I am never sure when=C2=A0 will install a package that wll br= eak Ubuntu. Thanks, Tom=C3=A1s ------=_=-_OpenGroupware_org_NGMime-17751-1621440890.897658-551------ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 3679

Hello,

I see people mentioning here that = there doesn't seem to be a general solution to be included in Guix for = this, but I als do not understand what the particular solution (for my = machine, for example) is supposed to be.
I'm a new user to Guix an= d also not technically very experienced with Linux OS's, so feel free t= o point me out something obvious I have missed.

I currently = have Guix on top of Ubuntu 20.04, and I have this exact problem with XD= G=5FDATA=5FDIRS being exported on startup of Gnome and breaking it, and= i happend when this variable is added to ~/.guix-profile/etc/profile w= hen installing certain packages; the ones detected so far where python-= ipython, python-ipykernel and python-notebook.

As far as I u= nedrstand, when Ubuntu starts up, it runs /etc/profile, which in turn r= eads through all scripts inside /etc/profile.d. In that dir, we have gu= ix.sh, which I will paste here:

# =5FGUIX=5FPROFILE: = `guix pull` profile
=5FGUIX=5FPROFILE=3D"$HOME/.config/guix/curren= t"
export PATH=3D"$=5FGUIX=5FPROFILE/bin${PATH:+:}$PATH"
# Ex= port INFOPATH so that the updated info pages can be found
# and re= ad by both /usr/bin/info and/or $GUIX=5FPROFILE/bin/info
# When IN= FOPATH is unset, add a trailing colon so that Emacs
# searches 'In= fo-default-directory-list'.
export INFOPATH=3D"$=5FGUIX=5FPROFILE/= share/info:$INFOPATH"

# GUIX=5FPROFILE: User's default profi= le
GUIX=5FPROFILE=3D"$HOME/.guix-profile"
[ -L $GUIX=5FPROFIL= E ] || return
GUIX=5FLOCPATH=3D"$GUIX=5FPROFILE/lib/locale"
e= xport GUIX=5FPROFILE GUIX=5FLOCPATH

[ -f "$GUIX=5FPROFILE/et= c/profile" ] && . "$GUIX=5FPROFILE/etc/profile"

# se= t XDG=5FDATA=5FDIRS to include Guix installations
export XDG=5FDAT= A=5FDIRS=3D"$GUIX=5FPROFILE/share:${XDG=5FDATA=5FDIRS:-/usr/local/share= /:/usr/share/}"


The culprit in this case seems= to be [ -f "$GUIX=5FPROFILE/etc/profile" ] && . "$GUIX= =5FPROFILE/etc/profile", and this is because it is getting the= following two lines from $GUIX=5FPROFILE/etc/profile which are introdu= ced by installing python-ipython (for example):

expor= t GI=5FTYPELIB=5FPATH=3D"${GUIX=5FPROFILE:-/gnu/store/22lc31mr4h00x5swz= k73293pm2xpaahi-profile}/lib/girepository-1.0${GI=5FTYPELIB=5FPATH:+:}$= GI=5FTYPELIB=5FPATH"
export XDG=5FDATA=5FDIRS=3D"${GUIX=5FPROFILE:= -/gnu/store/22lc31mr4h00x5swzk73293pm2xpaahi-profile}/share${XDG=5FDATA= =5FDIRS:+:}$XDG=5FDATA=5FDIRS"


In fact, when t= his happens, the last line in guix.sh is only duplicating what the line= inside .guix-profile/etc/profile had already exported:

=

export XDG=5FDATA=5FDIRS=3D"$GUIX=5FPROFILE/share:${XDG=5FDATA=5FDIR= S:-/usr/local/share/:/usr/share/}"

What is the worka= round that can be used here?
I only see two possible solutions, wh= ich are unsatisfactory to me:

  1. Refrain from installing packag= es that alter this variable;
  2. Comment all lines inside guix.sh a= nd add . "$GUIX=5FPROFILE/etc/profile to my .bash=5Frc file, focing me = to open a terminal everytime I want to launch guix installed packages.<= /li>
Is there another alternative for this?

Eagerly awat= ing for feedback on this, as it's completely destroying my workflow; I = am never sure when  will install a package that wll break Ubuntu.<= br />
Thanks,
Tom=C3=A1s
------=_=-_OpenGroupware_org_NGMime-17751-1621440890.897658-551--------