From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4Hl5CThUpWATKQAAgWs5BA (envelope-from ) for ; Wed, 19 May 2021 20:08:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wLMnBThUpWCIagAA1q6Kng (envelope-from ) for ; Wed, 19 May 2021 18:08:56 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 68A99CE15 for ; Wed, 19 May 2021 20:08:55 +0200 (CEST) Received: from localhost ([::1]:38214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljQco-0003UP-ID for larch@yhetil.org; Wed, 19 May 2021 14:08:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljP2E-000110-SC for bug-guix@gnu.org; Wed, 19 May 2021 12:27:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49006) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljP2E-0004Mk-Ik for bug-guix@gnu.org; Wed, 19 May 2021 12:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljP2E-0008TL-Fs for bug-guix@gnu.org; Wed, 19 May 2021 12:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#30093: what manual workaround? References: In-Reply-To: Resent-From: tomas.almeida@astrolabium.io Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 19 May 2021 16:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30093 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 30093@debbugs.gnu.org Received: via spool by 30093-submit@debbugs.gnu.org id=B30093.162144161432519 (code B ref 30093); Wed, 19 May 2021 16:27:02 +0000 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: tomas.almeida@astrolabium.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 MIME-Version: 1.0 Message-ID: <4557-60a53980-3e3-412dc980@34221159> User-Agent: SOGoMail 5.1.0 X-Mailman-Approved-At: Wed, 19 May 2021 12:26:51 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 19 May 2021 14:07:20 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andre.gomes@astrolabium.io Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621447735; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=KUMDxGkS8vPKX95uIrqOTeUzIQe91sV4Iu2/OVQNumk=; b=m/wZ0TFweUuhXLhNhZBkxZ7Prg88U7+URjAfuGEy++rIAjcw2EYZPiw2yORtzwqyXO5Qox B+cqFZU6LHdj5/aObZ2viVn0piHCxkGTnwhuKr8ZZHEQH32t9RaLDN76awzPV97amngAJw A8KCbJByO+BO6M24k//OfSRiqKoE4jyayX+mJK9RX/lNWE7sNnFV4gmPcjNaY8EOEW1RLW edq3DuBvMaavEqyzhVrdP7ne/t/CBMaCSeEAteh+kXQDHml36ipciyxWzbd8o8NJy/WfM5 CIp35HSZ2cqAs+Qa7C2oui6W4HO1a1g0VRCuI7Q8M8waHEvnnGpQR+J90/R0bg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621447735; a=rsa-sha256; cv=none; b=Hs+wRphADHJgBWHYFRIQlynOLiCqJp11jr2JEKvVEo7wl42WjKbUOBpBX41skyi1DQe8kC sqFUdW8HSVviikAhlxhswNkVHShbqsDpBmEc3hcdLBlz1NmWR8SBlrq2S+S5Adas1v0xy+ kiwx0bYsNb1Kncr5Vgk+KEd5r6FryX7Bjb/mEiBqIHxZzPR3MJ4h5FS84Bm6uALnxWz6lv m9fyrUWkvR/vGaf9g+RNl+G8kFBjCUzD/5QyjCHpkVwENLdVs3PGIQ6eaof/T2GDTY+IHT qdwXIaJZD8wtEEAevgKnSIGh9nu4Mqg4Qhg25FzT8L9RxSbdR/bpv7Bw6sVpuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=astrolabium.io header.s=gm1 header.b=H6ie3ply; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: 1.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=astrolabium.io header.s=gm1 header.b=H6ie3ply; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 68A99CE15 X-Spam-Score: 1.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: BaE+kSnRIHuV ------=_=-_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--------