GNU logs - #23118, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#23118: Duplicate entries in various environment variables
Resent-From: Chris Marusich <cmmarusich@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 26 Mar 2016 04:01:02 +0000
Resent-Message-ID: <handler.23118.B.145896480426233 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 23118
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 23118 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.145896480426233
          (code B ref -1); Sat, 26 Mar 2016 04:01:02 +0000
Received: (at submit) by debbugs.gnu.org; 26 Mar 2016 04:00:04 +0000
Received: from localhost ([127.0.0.1]:38232 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ajfON-0006p2-O0
	for submit <at> debbugs.gnu.org; Sat, 26 Mar 2016 00:00:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42062)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cmmarusich@HIDDEN>) id 1ajfOL-0006nU-Gi
 for submit <at> debbugs.gnu.org; Sat, 26 Mar 2016 00:00:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cmmarusich@HIDDEN>) id 1ajfOE-0006AL-Sg
 for submit <at> debbugs.gnu.org; Fri, 25 Mar 2016 23:59:56 -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]:49446)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cmmarusich@HIDDEN>) id 1ajfOE-0006AH-Oj
 for submit <at> debbugs.gnu.org; Fri, 25 Mar 2016 23:59:54 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33033)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cmmarusich@HIDDEN>) id 1ajfOD-0003fL-7W
 for bug-guix@HIDDEN; Fri, 25 Mar 2016 23:59:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cmmarusich@HIDDEN>) id 1ajfO8-0006A1-51
 for bug-guix@HIDDEN; Fri, 25 Mar 2016 23:59:53 -0400
Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]:32836)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cmmarusich@HIDDEN>) id 1ajfO7-00069x-Ps
 for bug-guix@HIDDEN; Fri, 25 Mar 2016 23:59:48 -0400
Received: by mail-pa0-x232.google.com with SMTP id fl4so58125501pad.0
 for <bug-guix@HIDDEN>; Fri, 25 Mar 2016 20:59:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:mime-version;
 bh=frqoHI1jY/l5MR/4w7LxI0/g/Z6yrLk5p3A3Hb3Sct8=;
 b=S9q6YLYF+LIZJunzfYcQI2ER2+frVqd6t6Fkw1ZgOiB1u0vefG5UBzOJv5kgvTputv
 VivXq3iedZouX+io/FuaUtO/Jf5sPeS5dkvk/mHnVtkBEZLojTZ70NLGD1K516qDnMJt
 N4bMYEJAJtwV11erc2mZIDXsiuNpxp3nEqQAwWsdLvPw2hZRXb07HBStV4xPQmMTg06c
 gOjyWy93irwF4zLGDaLdnc30bGwFpWmAldhsbC2EiyOphhKtAzYTtNOnEA4Vu4K1xtFe
 in8/n/buaS+RHVT+eMx0BQG/ykjfKl3wG2/pQTXTNWjNDJzlZ/0bISpNmYQ/mBPwMuzx
 6I9g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=frqoHI1jY/l5MR/4w7LxI0/g/Z6yrLk5p3A3Hb3Sct8=;
 b=KpYCrEjthA0/Tz7o/Q6rfRvKOnbhwdlOPlJquP3rGmohQYiEjF/AhlX2FsbAZQ/oJ1
 Wji5P7mrz46PF9u0yCVrp6atp4AlFyM6CKYogXy4xLFFUTDgQCMcdHknafi2ZTr5NPGC
 DQ3cUO8HcCiD2iRc+dRqHpXLOzdCvsJTVhiDwQ9Rclfo8X8ksb7TgRNy1E7jh0/sHVH9
 U333ivS/T5bf0k1Gk+JT6hIVfkruxqemqEgMdnduOTvq6FjZWhSYGUjVQn2wfN/NHEIw
 bC10r8js7E91OVEUw7BQRny4eJkUVVa/eOvCzud0FQCLhDIN9stuQZ9nM/IS98u8+05u
 UtNA==
X-Gm-Message-State: AD7BkJLMECW44uPTS9eF86fsb7I32v94VR71jMoJcFe7badaelWNC89DtWjlKr5HXYzuIw==
X-Received: by 10.66.172.167 with SMTP id bd7mr26050479pac.116.1458964786601; 
 Fri, 25 Mar 2016 20:59:46 -0700 (PDT)
Received: from carbuncle (c-73-169-163-30.hsd1.wa.comcast.net. [73.169.163.30])
 by smtp.gmail.com with ESMTPSA id r68sm19448904pfa.33.2016.03.25.20.59.45
 for <bug-guix@HIDDEN> (version=TLSv1/SSLv3 cipher=OTHER);
 Fri, 25 Mar 2016 20:59:45 -0700 (PDT)
From: Chris Marusich <cmmarusich@HIDDEN>
Date: Fri, 25 Mar 2016 20:59:39 -0700
Message-ID: <874mbt28k4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
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.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: -4.0 (----)

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

Hi,

I've noticed that my environment variables contain duplicate (sometimes
more) entries.  This occurs regardless of whether the user logs in
directly via a tty or via a desktop environment like GNOME.

This behavior should be reproducible.  I created a new user to test
this.  When I logged into GNOME on GuixSD (built via "guix system
reconfigure" using git commit 43a58615bfc37a053ddaca1fcf11af5c14c0b4b6)
as the new user, I opened up the "Terminal" program (which launched bash
as an interactive, non-login shell).  I then typed

=2D-8<---------------cut here---------------start------------->8---
env > /tmp/myenv
=2D-8<---------------cut here---------------end--------------->8---

Then, I analyzed the results.  First, I defined a little helper function
to do the analysis.  For each environment variable, it counts the number
of times each colon-delimited entry occurs in that environment variable
and prints them out:

=2D-8<---------------cut here---------------start------------->8---
count_env_var_occurrences ()=20
{=20
    for environment_variable in $(cat $1 | cut -d =3D -f 1 | sort);
    do
        echo $environment_variable;
        cat $1 | grep ^${environment_variable}=3D | cut -d =3D -f 2 | tr : =
'\n' | sort | uniq -c;
    done
}
=2D-8<---------------cut here---------------end--------------->8---

Then I ran it, and got the following results:

=2D-8<---------------cut here---------------start------------->8---
$ count_env_var_occurrences /tmp/myenv=20
_
      1 /run/current-system/profile/bin/env
DBUS_FATAL_WARNINGS
      1 0
DBUS_SESSION_BUS_ADDRESS
      1 abstract
      1 unix
DISPLAY
      1=20
      1 0.0
GIO_EXTRA_MODULES
      9 /gnu/store/lbkdykh3aa1469li01rwyya02q50r3b9-glib-2.46.1/lib/gio/mod=
ules
      1 /gnu/store/ygn4vavcgr79p86jrlmvdycjs81ki4dl-dconf-0.24.0/lib/gio/mo=
dules
      1 /run/current-system/profile/lib/gio/modules
GIT_SSL_CAINFO
      1 /etc/ssl/certs/ca-certificates.crt
GI_TYPELIB_PATH
      1 /gnu/store/1sp33d4j5gx2xd64mncc30q0x01hjbf4-cogl-1.22.0/lib/girepos=
itory-1.0
      1 /gnu/store/38ir3s81qxhbpa8v8rwf8cbjdcmsr2q0-atk-2.18.0/lib/gireposi=
tory-1.0
      1 /gnu/store/3k8lhk39979kbi3m26fa191wq5jgxf7f-polkit-0.113/lib/girepo=
sitory-1.0
      1 /gnu/store/5l1fab8vi6zpiy8m61aiv2qbr8gfsjha-json-glib-1.0.4/lib/gir=
epository-1.0
      1 /gnu/store/67a1962vx46b5shf3myxi23jvziwaclj-gdm-3.18.2/lib/gireposi=
tory-1.0
      1 /gnu/store/73wzvqzffyx867r1rbck5w65by6lbapy-gnome-bluetooth-3.18.1/=
lib/girepository-1.0
      1 /gnu/store/apf78hww8abnhsg0pr6d00gc5w1g7y5h-libgweather-3.18.1/lib/=
girepository-1.0
      1 /gnu/store/b2qdk8kxcb6ls2hdbzgv51smljk2bqh3-clutter-1.24.2/lib/gire=
pository-1.0
      1 /gnu/store/bxb7i5qiml1vlxbsks4fxnv4vv5pzac3-gnome-desktop-3.18.1/li=
b/girepository-1.0
      1 /gnu/store/cr289j8247p0mv39j26l4gxbdf6b7g11-network-manager-1.0.10/=
lib/girepository-1.0
      1 /gnu/store/dzdqr0yh7csf3j4ash6akzxjdbqgfln2-network-manager-applet-=
1.0.10/lib/girepository-1.0
      1 /gnu/store/fqp33841n42qn6qx3ma1w9xyq329abyh-gst-plugins-base-1.6.3/=
lib/girepository-1.0
      1 /gnu/store/g7ii95bmy2aq4z5x17wvsqlz4f8lmn5a-gcr-3.18.0/lib/gireposi=
tory-1.0
      1 /gnu/store/h4p0b9qp1v1pxnmlgdpcy53xxddjzajp-gobject-introspection-1=
.46.0/lib/girepository-1.0
      1 /gnu/store/hkl1hwx7cqgb23115rnacin4lywy39fq-libxklavier-5.3/lib/gir=
epository-1.0
      1 /gnu/store/l2qcfja7vspdki8birvm80xs82acm2va-gdk-pixbuf-2.32.3/lib/g=
irepository-1.0
      1 /gnu/store/m67pffz37qvkr63a7d5i92z10cwznsy9-accountsservice-0.6.40/=
lib/girepository-1.0
      1 /gnu/store/mfdgb0i95bf4j89zc4mnnbd6hp3v08yx-at-spi2-core-2.18.1/lib=
/girepository-1.0
      1 /gnu/store/p79p86324sb5yc80m21nk7q8cjsixb3s-libgee-0.18.0/lib/girep=
ository-1.0
      1 /gnu/store/pc9w7sz63d0mims6hbxnzc47g3jy55id-pango-1.38.1/lib/girepo=
sitory-1.0
      1 /gnu/store/pil657vzrprd2bfdhg7q8vhd3f6jwzpb-libsoup-2.52.1/lib/gire=
pository-1.0
      1 /gnu/store/rdmyj3ylsfbw57kpdgi9iz15s7xfzxzr-libsecret-0.18.3/lib/gi=
repository-1.0
      1 /gnu/store/rjhhm5ixkmgqpxfiik6k1rncwrvdz0z1-upower-0.99.3/lib/girep=
ository-1.0
      1 /gnu/store/rsywwl626s8fmmwf154sn2x9si62b4k1-evolution-data-server-3=
.18.2/lib/girepository-1.0
      1 /gnu/store/s1nig50yjs5g6fnbl29dyi0d6cp1vza9-telepathy-glib-0.24.1/l=
ib/girepository-1.0
      1 /gnu/store/sm1i06dhgpkhvgj2bhcn6nfi275slgjz-gsettings-desktop-schem=
as-3.18.0/lib/girepository-1.0
      1 /gnu/store/sqd3q1xq5fsbga00bwhghi9shi7xdaac-gtk+-3.18.2/lib/girepos=
itory-1.0
      1 /gnu/store/vmh2w8bsh5w3arrrkcvb468j98nvbjqf-gstreamer-1.6.3/lib/gir=
epository-1.0
      1 /gnu/store/ymx1l8l2gm1jmljh5y24p4f5gk8i2j3c-caribou-0.4.19/lib/gire=
pository-1.0
      1 /gnu/store/z2dh08qp3k1829dcsz7wcrinccmj6743-ibus-1.5.11/lib/girepos=
itory-1.0
      1 /gnu/store/zlq812qd3cykkizdip0l7qw7m2pffj1h-telepathy-logger-0.8.2/=
lib/girepository-1.0
      1 /gnu/store/zvi3k12q95i992gnvhddqs0iildyz4lp-harfbuzz-1.0.6/lib/gire=
pository-1.0
GJS_DEBUG_OUTPUT
      1 stderr
GJS_DEBUG_TOPICS
      1 JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID
      1 this-is-deprecated
GST_PLUGIN_PATH
      1 /home/alice/.guix-profile/lib/gstreamer-1.0
GTK_PATH
      3 /gnu/store/7hdyj0dkzp3dbl878g042g300yycasrx-libcanberra-0.30/lib/gt=
k-3.0
      9 /gnu/store/sqd3q1xq5fsbga00bwhghi9shi7xdaac-gtk+-3.18.2/lib/gtk-3.0
      3 /gnu/store/ymx1l8l2gm1jmljh5y24p4f5gk8i2j3c-caribou-0.4.19/lib/gtk-=
3.0
      3 /gnu/store/z2dh08qp3k1829dcsz7wcrinccmj6743-ibus-1.5.11/lib/gtk-3.0
GUILE_LOAD_COMPILED_PATH
      1 /run/current-system/profile/lib/guile/2.0/ccache
      1 /run/current-system/profile/share/guile/site/2.0
GUILE_LOAD_PATH
      1 /run/current-system/profile/share/guile/site/2.0
GUIX_GTK2_PATH
      1 /run/current-system/profile/lib/gtk-2.0
GUIX_GTK3_PATH
      1 /run/current-system/profile/lib/gtk-3.0
HOME
      1 /home/alice
INFOPATH
      1 /home/alice/.guix-profile/share/info
      2 /run/current-system/profile/share/info
LANG
      1 en_US.UTF-8
LINUX_MODULE_DIRECTORY
      1 /run/booted-system/kernel/lib/modules
LOGNAME
      1 alice
MAIL
      1 /var/mail/alice
MANPATH
      1 /home/alice/.guix-profile/share/man
      2 /run/current-system/profile/share/man
PATH
      1 /gnu/store/a9sqlwcl02z89kh6v5n6yzxvxw5qbs14-glib-2.46.1-bin/bin
      1 /home/alice/.guix-profile/bin
      1 /run/current-system/profile/bin
      1 /run/current-system/profile/sbin
      1 /run/setuid-programs
PS1
      1 \u@\h \w\$=20
PWD
      1 /home/alice
SESSION_MANAGER
      1 local/carbuncle
      1 /tmp/.ICE-unix/383
      1 @/tmp/.ICE-unix/383,unix/carbuncle
SHELL
      1 /gnu/store/7cdd8s466qyjh64m0byq0rz9gk1jid40-bash-4.3.42/bin/bash
SHLVL
      1 2
SSH_AUTH_SOCK
      1 /run/user/30011/keyring/ssh
SSL_CERT_DIR
      1 /etc/ssl/certs
SSL_CERT_FILE
      1 /etc/ssl/certs/ca-certificates.crt
TERM
      1 xterm-256color
TZ
      1 America/Los_Angeles
TZDIR
      1 /gnu/store/n80pk0smpzdlshkcgccgga8xy5p2vwz3-tzdata-2015g/share/zone=
info
USER
      1 alice
VTE_VERSION
      1 4203
WINDOWID
      1 23068678
XAUTHORITY
      1 /home/alice/.Xauthority
XDG_CONFIG_DIRS
      1 /home/alice/.guix-profile/etc/xdg
      1 /run/current-system/profile/etc/xdg
XDG_CURRENT_DESKTOP
      1 GNOME
XDG_DATA_DIRS
      3 /gnu/store/27c82f3szfn2d97ms56hkpsb78q9myhd-gnome-settings-daemon-3=
.18.2/share
      3 /gnu/store/67a1962vx46b5shf3myxi23jvziwaclj-gdm-3.18.2/share
      3 /gnu/store/73wzvqzffyx867r1rbck5w65by6lbapy-gnome-bluetooth-3.18.1/=
share
      3 /gnu/store/apf78hww8abnhsg0pr6d00gc5w1g7y5h-libgweather-3.18.1/share
      5 /gnu/store/bahndy6sxfxw6g49djc10mpa7292na40-gnome-session-3.18.1.2/=
share
      3 /gnu/store/dzdqr0yh7csf3j4ash6akzxjdbqgfln2-network-manager-applet-=
1.0.10/share
      3 /gnu/store/g7ii95bmy2aq4z5x17wvsqlz4f8lmn5a-gcr-3.18.0/share
      3 /gnu/store/kc8j8zcwjzr04nlkm16gy44a7vfr26i8-mutter-3.18.1/share
      3 /gnu/store/km25kxpv999ihj058xnvniwycl1zhajl-gnome-control-center-3.=
18.2/share
      9 /gnu/store/lbkdykh3aa1469li01rwyya02q50r3b9-glib-2.46.1/share
      3 /gnu/store/rsywwl626s8fmmwf154sn2x9si62b4k1-evolution-data-server-3=
.18.2/share
      9 /gnu/store/sm1i06dhgpkhvgj2bhcn6nfi275slgjz-gsettings-desktop-schem=
as-3.18.0/share
      9 /gnu/store/sqd3q1xq5fsbga00bwhghi9shi7xdaac-gtk+-3.18.2/share
      1 /gnu/store/x2hz7q806ry8lmwdya0jlff01w7djbn2-gnome-terminal-3.18.2/s=
hare
      3 /gnu/store/xnkkvlwvwbv2zzvbca3sclf41m6jxzza-gnome-shell-3.18.3/share
      3 /gnu/store/ymx1l8l2gm1jmljh5y24p4f5gk8i2j3c-caribou-0.4.19/share
      3 /gnu/store/z2dh08qp3k1829dcsz7wcrinccmj6743-ibus-1.5.11/share
      3 /gnu/store/zlq812qd3cykkizdip0l7qw7m2pffj1h-telepathy-logger-0.8.2/=
share
      1 /home/alice/.guix-profile/share
      2 /run/current-system/profile/share
XDG_MENU_PREFIX
      1 gnome-
XDG_RUNTIME_DIR
      1 /run/user/30011
XDG_SEAT
      1 seat0
XDG_SESSION_ID
      1 c1
XDG_VTNR
      1 7
X_XFCE4_LIB_DIRS
      1 /run/current-system/profile/lib/xfce4
=2D-8<---------------cut here---------------end--------------->8---

As you can see, there are some environment variables with up to 9
duplicate entries.  Is this expected?  Is it a problem?  Why is it
happening?  Assuming that it is not expected and that it is a problem,
how can we prevent it from happening?

I've tried opening multiple subshells (e.g., by running "bash" on the
command line) to see if the number of duplicate entries increases with
each subshell, but that is not the case.  Opening up a new subshell does
not seem to trigger (in the default GuixSD configuration with GNOME, at
least) whatever it is that it causing this duplication.

=2D-=20
Chris

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJW9gkuAAoJEN1AmhXYIkadJCsP/R/uxvRiYgaIxlPKdBgosIZM
a9N9thDFhii/xbiWPJdFoxT/on+jNLB2phfseFGjkA8ezftJfTppj993JPfMwcve
0OZaQbL+ZLIvmLprQg62j8LJ3VHgSrmf1kp7nU1wb9N8wWbPlSfrSCSCjaVL/n63
vNWa+3LlNpHMIWbaOJbjUOaet/FXvqHDKd4klXymacBLt4v9LUU2eayZZhcCkoq0
csnGKiVvsnEOcIzL7G3tmeh+w/2f3hLlMu2kvL3//B9YB7Nn4IIqAKHAeWNtOg3H
jdR/gWfGMrP9FKJtTwnuk5Bo/GRgyBc3uc83WoNb3LkZQLEUikVIKSWiF3jkNonP
wrolqd8FhV9uTNXebI/Y+2ssabW4RU6tUW+uQwmDRNRQxwQAuryJHjI7OeN0JYWS
Asavd6edxRwH9qhmE9vn7owuIGN3t1tSoKbUgOuvCM56ZQ6tmSR9CNaSBJ0s73Q7
5SVs9AL4BpGSAL1jcxvbsZ2q2qPvq7MRSRy3FRUBJ2NJr7G81bmoxk5Vn08k+nKS
qGdEtnGWnqOlbT/4Uw70tqrkbE9jwmq6NKsN2rciCc2rO/wP2TSvJTjsNpp/XqlB
9XTj9WVJ+9l7k42O0E/tPSjV0Y5/qdxspOut4CXt+4yPE/jzCgfdVzz7J0S/spcp
s+TqkK5THz215gydpwpI
=494g
-----END PGP SIGNATURE-----
--=-=-=--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Chris Marusich <cmmarusich@HIDDEN>
Subject: bug#23118: Acknowledgement (Duplicate entries in various
 environment variables)
Message-ID: <handler.23118.B.145896480426233.ack <at> debbugs.gnu.org>
References: <874mbt28k4.fsf@HIDDEN>
X-Gnu-PR-Message: ack 23118
X-Gnu-PR-Package: guix
Reply-To: 23118 <at> debbugs.gnu.org
Date: Sat, 26 Mar 2016 04:01:02 +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 23118 <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
23118: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23118
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#23118: Duplicate entries in various environment variables
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, 26 Mar 2016 18:54:02 +0000
Resent-Message-ID: <handler.23118.B23118.145901840221714 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 23118
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Chris Marusich <cmmarusich@HIDDEN>
Cc: 23118 <at> debbugs.gnu.org
Received: via spool by 23118-submit <at> debbugs.gnu.org id=B23118.145901840221714
          (code B ref 23118); Sat, 26 Mar 2016 18:54:02 +0000
Received: (at 23118) by debbugs.gnu.org; 26 Mar 2016 18:53:22 +0000
Received: from localhost ([127.0.0.1]:38914 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ajtKs-0005eA-Hj
	for submit <at> debbugs.gnu.org; Sat, 26 Mar 2016 14:53:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54732)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1ajtKr-0005dy-2g
 for 23118 <at> debbugs.gnu.org; Sat, 26 Mar 2016 14:53:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1ajtKi-0001OW-OU
 for 23118 <at> debbugs.gnu.org; Sat, 26 Mar 2016 14:53:15 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.9 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]:58728)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1ajtKi-0001OS-Ky; Sat, 26 Mar 2016 14:53:12 -0400
Received: from reverse-83.fdn.fr ([80.67.176.83]:33100 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1ajtKi-0001st-0C; Sat, 26 Mar 2016 14:53:12 -0400
From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <874mbt28k4.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 7 Germinal 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, 26 Mar 2016 19:53:09 +0100
In-Reply-To: <874mbt28k4.fsf@HIDDEN> (Chris Marusich's message of "Fri, 25
 Mar 2016 20:59:39 -0700")
Message-ID: <87io09ystm.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: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -6.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: -6.0 (------)

Chris Marusich <cmmarusich@HIDDEN> skribis:

> This behavior should be reproducible.  I created a new user to test
> this.  When I logged into GNOME on GuixSD (built via "guix system
> reconfigure" using git commit 43a58615bfc37a053ddaca1fcf11af5c14c0b4b6)
> as the new user, I opened up the "Terminal" program (which launched bash
> as an interactive, non-login shell).  I then typed

[...]

I think the main problem is that gnome-terminal is wrapped:

--8<---------------cut here---------------start------------->8---
$ cat /gnu/store/x2hz7q806ry8lmwdya0jlff01w7djbn2-gnome-terminal-3.18.2/bin=
/gnome-terminal=20
#!/gnu/store/b1yqjimbdh5bf9jnizd4h7yf110744j2-bash-4.3.42/bin/bash
export XDG_DATA_DIRS=3D"/gnu/store/lbkdykh3aa1469li01rwyya02q50r3b9-glib-2.=
46.1/share:/gnu/store/sm1i06dhgpkhvgj2bhcn6nfi275slgjz-gsettings-desktop-sc=
hemas-3.18.0/share:/gnu/store/sqd3q1xq5fsbga00bwhghi9shi7xdaac-gtk+-3.18.2/=
share:/gnu/store/x2hz7q806ry8lmwdya0jlff01w7djbn2-gnome-terminal-3.18.2/sha=
re${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
export GTK_PATH=3D"/gnu/store/sqd3q1xq5fsbga00bwhghi9shi7xdaac-gtk+-3.18.2/=
lib/gtk-3.0${GTK_PATH:+:}$GTK_PATH"
export GIO_EXTRA_MODULES=3D"/gnu/store/lbkdykh3aa1469li01rwyya02q50r3b9-gli=
b-2.46.1/lib/gio/modules:/gnu/store/ygn4vavcgr79p86jrlmvdycjs81ki4dl-dconf-=
0.24.0/lib/gio/modules${GIO_EXTRA_MODULES:+:}$GIO_EXTRA_MODULES"
exec -a "$0" "/gnu/store/x2hz7q806ry8lmwdya0jlff01w7djbn2-gnome-terminal-3.=
18.2/bin/.gnome-terminal-real" "$@"
--8<---------------cut here---------------end--------------->8---

This is done automatically by =E2=80=98glib-or-gtk-build-system=E2=80=99, b=
ut obviously
it=E2=80=99s not so great here.

I suppose that in practice, it would work to simply switch
gnome-terminal to =E2=80=98gnu-build-system=E2=80=99.

Could you try that?

There may still be other places that add extra entries, though.

Ludo=E2=80=99.




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


Received: (at control) by debbugs.gnu.org; 28 Mar 2016 16:53:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 28 12:53:17 2016
Received: from localhost ([127.0.0.1]:42263 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1akaPk-00078P-Q2
	for submit <at> debbugs.gnu.org; Mon, 28 Mar 2016 12:53:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52217)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1akaPj-00078D-EO
 for control <at> debbugs.gnu.org; Mon, 28 Mar 2016 12:53:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1akaPb-0001T4-13
 for control <at> debbugs.gnu.org; Mon, 28 Mar 2016 12:53:10 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.9 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]:57959)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1akaPa-0001T0-U6
 for control <at> debbugs.gnu.org; Mon, 28 Mar 2016 12:53:06 -0400
Received: from reverse-83.fdn.fr ([80.67.176.83]:37644 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1akaPa-0002La-AC
 for control <at> debbugs.gnu.org; Mon, 28 Mar 2016 12:53:06 -0400
Date: Mon, 28 Mar 2016 18:53:04 +0200
Message-Id: <877fgmr1cf.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
Subject: control message for bug #23118
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: -6.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: -6.0 (------)

severity 23118 important




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#23118: Duplicate entries in various environment variables
Resent-From: Leo Famulari <leo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 28 Mar 2016 17:54:02 +0000
Resent-Message-ID: <handler.23118.B23118.145918758813355 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 23118
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: Chris Marusich <cmmarusich@HIDDEN>, 23118 <at> debbugs.gnu.org
Received: via spool by 23118-submit <at> debbugs.gnu.org id=B23118.145918758813355
          (code B ref 23118); Mon, 28 Mar 2016 17:54:02 +0000
Received: (at 23118) by debbugs.gnu.org; 28 Mar 2016 17:53:08 +0000
Received: from localhost ([127.0.0.1]:42336 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1akbLg-0003TL-47
	for submit <at> debbugs.gnu.org; Mon, 28 Mar 2016 13:53:08 -0400
Received: from out2-smtp.messagingengine.com ([66.111.4.26]:36411)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo@HIDDEN>) id 1akbLe-0003TE-Vd
 for 23118 <at> debbugs.gnu.org; Mon, 28 Mar 2016 13:53:07 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.nyi.internal (Postfix) with ESMTP id B05BB21B8E
 for <23118 <at> debbugs.gnu.org>; Mon, 28 Mar 2016 13:53:06 -0400 (EDT)
Received: from frontend2 ([10.202.2.161])
 by compute4.internal (MEProxy); Mon, 28 Mar 2016 13:53:06 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=famulari.name; h=
 cc:content-transfer-encoding:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-sasl-enc
 :x-sasl-enc; s=mesmtp; bh=zqRXFH2fPfAb04ZGfce0RKkxD5w=; b=joMiIy
 MxpW4sKsbnd1TgJjM4SlsQiYb0CIxCh0zgBIL/IwPR4O1NnknYSrzeIvgCaqCNN0
 FsH2cCDs/9rM6yCuMk5L8witWpUnjrBeImGu7zFRxP3p4TQIXvxR9pl3pYxs6ATq
 CVgpjfk45d3EIUy8uOY6jzA6E8U1z5XMO2I2o=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=zqRXFH2fPfAb04Z
 Gfce0RKkxD5w=; b=u3CcVKcwvLGFZTkAuziFPTO0QIi3gKPEV2vpMdFQvO1hRdL
 vBQZoEZqQmsjrG5zriuS0ApgBSFWdtFAon45by6WkTwGxIGVGC6UvvGIUfe8xCZB
 94ZeO882FQzkhWkmtApkgS5amhDMK1db5GoO+37yJW5QeAo+HRo9rv3bUspE=
X-Sasl-enc: uPzJkfc+WhssPm/O5seGEErsry765MTj3f3rZ7qBmoF5 1459187586
Received: from localhost (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231])
 by mail.messagingengine.com (Postfix) with ESMTPA id 6AA3E680089;
 Mon, 28 Mar 2016 13:53:06 -0400 (EDT)
Date: Mon, 28 Mar 2016 13:53:01 -0400
From: Leo Famulari <leo@HIDDEN>
Message-ID: <20160328175301.GA9856@jasmine>
References: <874mbt28k4.fsf@HIDDEN>
 <87io09ystm.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <87io09ystm.fsf@HIDDEN>
User-Agent: Mutt/1.5.24 (2015-08-30)
X-Spam-Score: -0.7 (/)
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.7 (/)

On Sat, Mar 26, 2016 at 07:53:09PM +0100, Ludovic Courtès wrote:
> Chris Marusich <cmmarusich@HIDDEN> skribis:
> 
> > This behavior should be reproducible.  I created a new user to test
> > this.  When I logged into GNOME on GuixSD (built via "guix system
> > reconfigure" using git commit 43a58615bfc37a053ddaca1fcf11af5c14c0b4b6)
> > as the new user, I opened up the "Terminal" program (which launched bash
> > as an interactive, non-login shell).  I then typed
> 
> [...]
> 
> I think the main problem is that gnome-terminal is wrapped:
> 
> --8<---------------cut here---------------start------------->8---
> $ cat /gnu/store/x2hz7q806ry8lmwdya0jlff01w7djbn2-gnome-terminal-3.18.2/bin/gnome-terminal 
> #!/gnu/store/b1yqjimbdh5bf9jnizd4h7yf110744j2-bash-4.3.42/bin/bash
> export XDG_DATA_DIRS="/gnu/store/lbkdykh3aa1469li01rwyya02q50r3b9-glib-2.46.1/share:/gnu/store/sm1i06dhgpkhvgj2bhcn6nfi275slgjz-gsettings-desktop-schemas-3.18.0/share:/gnu/store/sqd3q1xq5fsbga00bwhghi9shi7xdaac-gtk+-3.18.2/share:/gnu/store/x2hz7q806ry8lmwdya0jlff01w7djbn2-gnome-terminal-3.18.2/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
> export GTK_PATH="/gnu/store/sqd3q1xq5fsbga00bwhghi9shi7xdaac-gtk+-3.18.2/lib/gtk-3.0${GTK_PATH:+:}$GTK_PATH"
> export GIO_EXTRA_MODULES="/gnu/store/lbkdykh3aa1469li01rwyya02q50r3b9-glib-2.46.1/lib/gio/modules:/gnu/store/ygn4vavcgr79p86jrlmvdycjs81ki4dl-dconf-0.24.0/lib/gio/modules${GIO_EXTRA_MODULES:+:}$GIO_EXTRA_MODULES"
> exec -a "$0" "/gnu/store/x2hz7q806ry8lmwdya0jlff01w7djbn2-gnome-terminal-3.18.2/bin/.gnome-terminal-real" "$@"
> --8<---------------cut here---------------end--------------->8---
> 
> This is done automatically by ‘glib-or-gtk-build-system’, but obviously
> it’s not so great here.
> 
> I suppose that in practice, it would work to simply switch
> gnome-terminal to ‘gnu-build-system’.
> 
> Could you try that?

I tried it. I had to add glib:bin as a native-input.

Trying to run gnome-terminal produces this error (I wrapped the lines):

$ gnome-terminal
Error constructing proxy for
org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling
StartServiceByName for org.gnome.Terminal:
GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process
org.gnome.Terminal received signal 5

> 
> There may still be other places that add extra entries, though.
> 
> Ludo’.
> 
> 
> 




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#23118: Duplicate entries in various environment variables
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: Thu, 03 Dec 2020 10:59:01 +0000
Resent-Message-ID: <handler.23118.B23118.160699312713083 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 23118
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Chris Marusich <cmmarusich@HIDDEN>
Cc: 23118 <at> debbugs.gnu.org
Received: via spool by 23118-submit <at> debbugs.gnu.org id=B23118.160699312713083
          (code B ref 23118); Thu, 03 Dec 2020 10:59:01 +0000
Received: (at 23118) by debbugs.gnu.org; 3 Dec 2020 10:58:47 +0000
Received: from localhost ([127.0.0.1]:38595 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kkmJy-0003Ox-Op
	for submit <at> debbugs.gnu.org; Thu, 03 Dec 2020 05:58:47 -0500
Received: from mailrelay.tugraz.at ([129.27.2.202]:48330)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo.prikler@HIDDEN>) id 1kkmJw-0003On-Os
 for 23118 <at> debbugs.gnu.org; Thu, 03 Dec 2020 05:58:45 -0500
Received: from nijino.local (217-149-166-73.nat.highway.telekom.at
 [217.149.166.73])
 by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Cmt9r2rp4z1LBCr;
 Thu,  3 Dec 2020 11:58:40 +0100 (CET)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4Cmt9r2rp4z1LBCr
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;
 s=mailrelay; t=1606993120;
 bh=iZ2WKAiQU19E+L7RSufjHCuqwyDyfbFA2vNDqiAhhm8=;
 h=Subject:From:To:Cc:Date:In-Reply-To:References:From;
 b=A3ek2Bqw4NvSYh2rvLFxiKLlCBl2vvoaw1k/lRrpBBQ7vBjWPVZMlS3o5/Oc4lNgD
 SAT5raxJexBlQunCX2NRf3Jo/RNez3BQa1q+7ypdVZWKNJcl6ydmgXk0jbyO9qnCPx
 bBQnT7jMwkoRQm8pPjfzRG+ThtyC8n/8fYhZP4Bo=
Message-ID: <6ca9bc2b5bb96b0ea6740c3412d6aa4379d553e9.camel@HIDDEN>
From: Leo Prikler <leo.prikler@HIDDEN>
Date: Thu, 03 Dec 2020 11:58:39 +0100
In-Reply-To: <874mbt28k4.fsf@HIDDEN>
References: <874mbt28k4.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.117
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 (---)

Hello, Chris

Am Freitag, den 25.03.2016, 20:59 -0700 schrieb Chris Marusich:
> Hi,
> 
> I've noticed that my environment variables contain duplicate
> (sometimes
> more) entries.  This occurs regardless of whether the user logs in
> directly via a tty or via a desktop environment like GNOME.
> 
> [...]
> 
> As you can see, there are some environment variables with up to 9
> duplicate entries.  Is this expected?  Is it a problem?  Why is it
> happening?  Assuming that it is not expected and that it is a
> problem,
> how can we prevent it from happening?
It has been pointed out, that this is somewhat expected when wrapping
the same environment variable multiple times.  For instance, you as a
GNOME user might already have gtk+ in your GTK path if you run GNOME,
but GNOME applications can not rely on that and thus need to add their
own.  As the number of software components, that use it increases, so
does the number of mentions.  
In the special case of gnome-terminal, this is user-visible by printing
out env, but other applications get launched in a similar manner all
the time without you noticing.  Perhaps one could patch GNOME terminal
to clear those variables before spawning the shell, but that's going to
be a bit fiddly.  Alternatively, one could enforce GTK_PATH by using
"=" instead of prefix.

More generally, this can become an issue when environment variables
reach a certain size (and has led to bug reports in Guix before, which
have since been fixed).  POSIX mandates a syntax, that would allow
removing already present components first (see [1]), but I can hardly
imagine what monstrosities we would need to cook up to do this
reliably.  Not to mention, that some otherwise POSIX-compliant shells
might not implement that syntax (correctly).

Regards,
Leo

[1] 
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02






Last modified: Thu, 3 Dec 2020 11:00:02 UTC

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