From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wPKUOkLQRF8sVgAA0tVLHw (envelope-from ) for ; Tue, 25 Aug 2020 08:48:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CDJiNkLQRF8JbwAAB5/wlQ (envelope-from ) for ; Tue, 25 Aug 2020 08:48:02 +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 18EAD940145 for ; Tue, 25 Aug 2020 08:48:01 +0000 (UTC) Received: from localhost ([::1]:52408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAUcZ-0008Gc-EI for larch@yhetil.org; Tue, 25 Aug 2020 04:47:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAUYl-0007mJ-Ut for bug-guix@gnu.org; Tue, 25 Aug 2020 04:44:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48713) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAUYj-0001rU-L4 for bug-guix@gnu.org; Tue, 25 Aug 2020 04:44:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAUYj-0007SY-Iu for bug-guix@gnu.org; Tue, 25 Aug 2020 04:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 25 Aug 2020 08:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42983 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Bengt Richter , 42983@debbugs.gnu.org Received: via spool by 42983-submit@debbugs.gnu.org id=B42983.159834502828647 (code B ref 42983); Tue, 25 Aug 2020 08:44:01 +0000 Received: (at 42983) by debbugs.gnu.org; 25 Aug 2020 08:43:48 +0000 Received: from localhost ([127.0.0.1]:60259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAUYW-0007Rz-4u for submit@debbugs.gnu.org; Tue, 25 Aug 2020 04:43:48 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:47604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAUYS-0007Ro-D0 for 42983@debbugs.gnu.org; Tue, 25 Aug 2020 04:43:47 -0400 Received: from localhost (80-110-126-103.cgn.dynamic.surfer.at [80.110.126.103]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 871203362155; Tue, 25 Aug 2020 10:43:42 +0200 (CEST) Date: Tue, 25 Aug 2020 10:43:39 +0200 From: Danny Milosavljevic Message-ID: <20200825104246.2f92dbcc@scratchpost.org> In-Reply-To: <20200824023829.GA18670@LionPure> References: <20200822122750.78ddc111@scratchpost.org> <20200822162009.GA2810@LionPure> <20200824015320.669fb70c@scratchpost.org> <20200824023829.GA18670@LionPure> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/4dapqnuQrxie6=T_XwNboPx"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; 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-Spam-Score: -1.11 X-TUID: +bPP3KFFWUVk --Sig_/4dapqnuQrxie6=T_XwNboPx Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, On Mon, 24 Aug 2020 04:38:29 +0200 Bengt Richter wrote: > On +2020-08-24 01:53:20 +0200, Danny Milosavljevic wrote: > > Hi, > >=20 > > On Sat, 22 Aug 2020 18:20:09 +0200 > > Bengt Richter wrote: > > =20 > > > BTW, what would sudo guix describe without the -E (preserving user en= vironment) have produced? =20 > ^^^^^^^^^^^^^^ > ^^^^^^^ > >=20 > > I've tried it again (it's 100% reproducible) and I get (after "sudo -E = guix pull"): > >=20 > > dannym@dayas ~$ export LC_ALL=3DC > > dannym@dayas ~$ sudo -E guix describe =20 > ^^^^^^^-- ?? Ohh, yeah, sudo without "-E" works fine (sudo guix pull, too). $ sudo guix describe Passwort:=20 guix 3d9fddb Repository-URL: https://git.savannah.gnu.org/git/guix.git Branch: master Commit: 3d9fddb2683790df26c53e18d4ff9468442e2368 heads 50b97d4 Repository-URL: https://github.com/daym/heads-guix.git Branch: wip-musl Commit: 50b97d446ebafd0be7a0e19d87cd236882093244 > Maybe it would throw some light to try > sudo -iu root env SHELL=3D/gnu/store/87kif0bpf0anwbsaw0jvg8fyciw4sz67-bash-5.0.16/bin/bash XDG_CONFIG_DIRS=3D/root/.guix-profile/etc/xdg:/run/current-system/profile/e= tc/xdg SUDO_GID=3D998 BASH_LOADABLES_PATH=3D/run/current-system/profile/lib/bash LINUX_MODULE_DIRECTORY=3D/run/booted-system/kernel/lib/modules XCURSOR_PATH=3D/root/.icons:/root/.guix-profile/share/icons:/run/current-sy= stem/profile/share/icons SUDO_COMMAND=3D/gnu/store/87kif0bpf0anwbsaw0jvg8fyciw4sz67-bash-5.0.16/bin/= bash -c env NM_VPN_PLUGIN_DIR=3D/gnu/store/mnq8x522qp0f0dd6v9p85xqrsx9pjx4a-network-man= ager-vpn-plugins/lib/NetworkManager/VPN SUDO_USER=3Ddannym GTK_DATA_PREFIX=3D/run/current-system/profile PWD=3D/root LOGNAME=3Droot MANPATH=3D/run/current-system/profile/share/man:/root/.guix-profile/share/m= an:/run/current-system/profile/share/man GUILE_LOAD_PATH=3D/run/current-system/profile/share/guile/site/3.0 XAUTHORITY=3D/run/user/27481/gdm/Xauthority HOME=3D/root GIT_SSL_CAINFO=3D/etc/ssl/certs/ca-certificates.crt LANG=3Dde_AT.utf8 COLUMNS=3D1600 SSL_CERT_DIR=3D/etc/ssl/certs GIO_EXTRA_MODULES=3D/run/current-system/profile/lib/gio/modules PULSE_CLIENTCONFIG=3D/gnu/store/zc4dsmvdabi00nvisrjhi9w00ff4igs7-client.conf GUILE_LOAD_COMPILED_PATH=3D/run/current-system/profile/lib/guile/3.0/site-c= cache:/run/current-system/profile/share/guile/site/3.0 INFOPATH=3D/root/.config/guix/current/share/info:/run/current-system/profil= e/share/info:/root/.guix-profile/share/info:/run/current-system/profile/sha= re/info DICPATH=3D/root/.guix-profile/share/hunspell:/run/current-system/profile/sh= are/hunspell DBUS_FATAL_WARNINGS=3D0 PYTHONPATH=3D/root/.guix-profile/lib/python3.7/site-packages TERM=3Dxterm USER=3Droot TZDIR=3D/gnu/store/pyk3skinp1f72afpd2xdjdi2j80xngr0-tzdata-2020a/share/zone= info DISPLAY=3D:1.0 SHLVL=3D0 GUIX_LOCPATH=3D/run/current-system/locale LC_MEASUREMENT=3Dde_DE.utf8 GST_PLUGIN_PATH=3D/root/.guix-profile/lib/gstreamer-1.0 SSL_CERT_FILE=3D/etc/ssl/certs/ca-certificates.crt NODE_PATH=3D/root/.guix-profile/lib/node_modules LC_TIME=3Dde_DE.utf8 LC_ALL=3Dde_DE.utf8 PULSE_CONFIG=3D/gnu/store/i90b7c63gxd7jf8jqvw2giry88jy3hx0-daemon.conf XDG_DATA_DIRS=3D/run/current-system/profile/share:/root/.guix-profile/share= :/run/current-system/profile/share PATH=3D/run/setuid-programs:/root/.config/guix/current/bin:/root/.guix-prof= ile/bin:/root/.guix-profile/sbin:/run/current-system/profile/bin:/run/curre= nt-system/profile/sbin SUDO_UID=3D27481 MAIL=3D/var/mail/root GUIX_GTK3_PATH=3D/run/current-system/profile/lib/gtk-3.0 _=3D/run/current-system/profile/bin/env > vs > sudo -u root env XAUTHORITY=3D/run/user/27481/gdm/Xauthority LANG=3Dde_AT.utf8 TERM=3Dxterm DISPLAY=3D:1.0 LC_MEASUREMENT=3Dde_DE.utf8 PS1=3D${?#0} \u@\h \w\$=20 LC_TIME=3Dde_DE.utf8 LC_ALL=3Dde_DE.utf8 PATH=3D/home/dannym/.meteor:/home/dannym/.local/scala/bin:/home/dannym/.loc= al/bin:/home/dannym/.local/rust/bin:/home/dannym/.meteor:/home/dannym/.loca= l/scala/bin:/home/dannym/.local/bin:/home/dannym/.local/rust/bin:/run/setui= d-programs:/home/dannym/.config/guix/current/bin:/home/dannym/.guix-profile= /bin:/home/dannym/.guix-profile/sbin:/run/current-system/profile/bin:/run/c= urrent-system/profile/sbin MAIL=3D/var/mail/root LOGNAME=3Droot USER=3Droot HOME=3D/root SHELL=3D/gnu/store/87kif0bpf0anwbsaw0jvg8fyciw4sz67-bash-5.0.16/bin/bash SUDO_COMMAND=3D/run/current-system/profile/bin/env SUDO_USER=3Ddannym SUDO_UID=3D27481 SUDO_GID=3D998 TZDIR=3D/gnu/store/pyk3skinp1f72afpd2xdjdi2j80xngr0-tzdata-2020a/share/zone= info LINUX_MODULE_DIRECTORY=3D/run/booted-system/kernel/lib/modules SSL_CERT_DIR=3D/etc/ssl/certs SSL_CERT_FILE=3D/etc/ssl/certs/ca-certificates.crt GIT_SSL_CAINFO=3D/etc/ssl/certs/ca-certificates.crt GTK_DATA_PREFIX=3D/run/current-system/profile DBUS_FATAL_WARNINGS=3D0 GUIX_LOCPATH=3D/run/current-system/locale PULSE_CONFIG=3D/gnu/store/i90b7c63gxd7jf8jqvw2giry88jy3hx0-daemon.conf PULSE_CLIENTCONFIG=3D/gnu/store/zc4dsmvdabi00nvisrjhi9w00ff4igs7-client.conf NM_VPN_PLUGIN_DIR=3D/gnu/store/mnq8x522qp0f0dd6v9p85xqrsx9pjx4a-network-man= ager-vpn-plugins/lib/NetworkManager/VPN ># should most likely be the same as sudo env It is. >, and maybe also same as sudo -E env No. SHELL=3D/gnu/store/87kif0bpf0anwbsaw0jvg8fyciw4sz67-bash-5.0.16/bin/bash WINDOWID=3D48234509 XDG_CONFIG_DIRS=3D/home/dannym/.guix-profile/etc/xdg:/run/current-system/pr= ofile/etc/xdg GTK_IM_MODULE=3Duim XTERM_VERSION=3DXTerm(353) HISTSIZE=3D BASH_LOADABLES_PATH=3D/run/current-system/profile/lib/bash SSH_AUTH_SOCK=3D/tmp/ssh-LxjFPNecF9So/agent.886 KICAD_TEMPLATE_DIR=3D/home/dannym/.guix-profile/share/kicad/template LINUX_MODULE_DIRECTORY=3D/run/booted-system/kernel/lib/modules PACKAGEPATH=3D/home/dannym/.local/guix/gnu/packages XMODIFIERS=3D@im=3Duim DESKTOP_SESSION=3Dmate SSH_AGENT_PID=3D994 NM_VPN_PLUGIN_DIR=3D/gnu/store/mnq8x522qp0f0dd6v9p85xqrsx9pjx4a-network-man= ager-vpn-plugins/lib/NetworkManager/VPN XTERM_SHELL=3D/gnu/store/87kif0bpf0anwbsaw0jvg8fyciw4sz67-bash-5.0.16/bin/b= ash GDM_DBUS_DAEMON=3D/gnu/store/c34bs9dzcw2nblcmjpvaq97a95ywqbps-gdm-dbus-wrap= per GTK_DATA_PREFIX=3D/run/current-system/profile EDITOR=3Dnano -w XDG_SEAT=3Dseat0 PWD=3D/home/dannym PURPLE_PLUGIN_PATH=3D/home/dannym/.guix-profile/lib/purple-2:/home/dannym/.= guix-profile/lib/pidgin LOGNAME=3Droot XDG_SESSION_DESKTOP=3Dmate XDG_SESSION_TYPE=3Dx11 MANPATH=3D/run/current-system/profile/share/man:/home/dannym/.guix-profile/= share/man:/run/current-system/profile/share/man R_LIBS_SITE=3D/home/dannym/.guix-profile/site-library/ GUILE_LOAD_PATH=3D/run/current-system/profile/share/guile/site/3.0 XAUTHORITY=3D/run/user/27481/gdm/Xauthority WINDOWPATH=3D8 GDM_LANG=3Dde_AT.utf8 GIT_EXEC_PATH=3D/home/dannym/.guix-profile/libexec/git-core GI_TYPELIB_PATH=3D/home/dannym/.guix-profile/lib/girepository-1.0 HOME=3D/home/dannym USERNAME=3Ddannym GIT_SSL_CAINFO=3D/etc/ssl/certs/ca-certificates.crt LANG=3Dde_AT.utf8 XDG_CURRENT_DESKTOP=3DMATE SSL_CERT_DIR=3D/etc/ssl/certs GIO_EXTRA_MODULES=3D/home/dannym/.guix-profile/lib/gio/modules:/run/current= -system/profile/lib/gio/modules:/gnu/store/nsxp18n8yk2k773719a5qc5h6l11f1yq= -dconf-0.34.0/lib/gio/modules PROMPT_COMMAND=3Dexport PREV_COMMAND=3D"" PULSE_CLIENTCONFIG=3D/gnu/store/zc4dsmvdabi00nvisrjhi9w00ff4igs7-client.conf XTERM_LOCALE=3Dde_DE.utf8 GUILE_LOAD_COMPILED_PATH=3D/run/current-system/profile/lib/guile/3.0/site-c= cache:/run/current-system/profile/share/guile/site/3.0 INFOPATH=3D/home/dannym/.config/guix/current/share/info:/home/dannym/.guix-= profile/share/info:/run/current-system/profile/share/info:/home/dannym/.gui= x-profile/share/info:/run/current-system/profile/share/info DICPATH=3D/home/dannym/.guix-profile/share/hunspell:/run/current-system/pro= file/share/hunspell GDM_X_SESSION=3D/gnu/store/q8bc2cv7dcbx97ka6lq82dbkg4v2v283-xinitrc GDM_CUSTOM_CONF=3D/gnu/store/x9jrhvajqpdfk4hhkw5bxplg7fisx6pg-gdm-custom.co= nf XDG_SESSION_CLASS=3Duser DBUS_FATAL_WARNINGS=3D0 TERM=3Dxterm GTK_PATH=3D/gnu/store/c4dspf0c3p445rx4hsddsd2dv962i4b1-libcanberra-0.30/lib= /gtk-3.0:/gnu/store/067bymbx50ng0fll7zi3mpmsjwbrlja4-gtk+-3.24.20/lib/gtk-3= .0 CPLUS_INCLUDE_PATH=3D/home/dannym/.guix-profile/include/c++:/home/dannym/.g= uix-profile/include USER=3Droot LIBRARY_PATH=3D/home/dannym/.guix-profile/lib PYTHONIOENCODING=3Dutf-8 DISPLAY=3D:1.0 SHLVL=3D1 GUIX_LOCPATH=3D/run/current-system/locale QT_IM_MODULE=3Duim LC_MEASUREMENT=3Dde_DE.utf8 XDG_VTNR=3D8 XDG_SESSION_ID=3Dc2 GST_PLUGIN_PATH=3D/home/dannym/.guix-profile/lib/gstreamer-1.0 XDG_RUNTIME_DIR=3D/run/user/27481 SSL_CERT_FILE=3D/etc/ssl/certs/ca-certificates.crt PREV_COMMAND=3D PS1=3D${?#0} \u@\h \w\$=20 NODE_PATH=3D/home/dannym/.guix-profile/lib/node_modules LC_TIME=3Dde_DE.utf8 GST_PLUGIN_SYSTEM_PATH=3D/home/dannym/.guix-profile/lib/gstreamer-1.0 LC_ALL=3Dde_DE.utf8 PULSE_CONFIG=3D/gnu/store/i90b7c63gxd7jf8jqvw2giry88jy3hx0-daemon.conf XDG_DATA_DIRS=3D/home/dannym/.guix-profile/share:/run/current-system/profil= e/share:/home/dannym/.guix-profile/share:/run/current-system/profile/share BROWSER=3Dicecat PATH=3D/home/dannym/.meteor:/home/dannym/.local/scala/bin:/home/dannym/.loc= al/bin:/home/dannym/.local/rust/bin:/home/dannym/.meteor:/home/dannym/.loca= l/scala/bin:/home/dannym/.local/bin:/home/dannym/.local/rust/bin:/run/setui= d-programs:/home/dannym/.config/guix/current/bin:/home/dannym/.guix-profile= /bin:/home/dannym/.guix-profile/sbin:/run/current-system/profile/bin:/run/c= urrent-system/profile/sbin GDMSESSION=3Dmate GHC_PACKAGE_PATH=3D/home/dannym/.guix-profile/lib/ghc-8.6.5/package.conf.d GDM_X_SERVER=3D/gnu/store/1lcxxwl5rmbqqvbr8rbfyhyc7v10s27l-X-wrapper DBUS_SESSION_BUS_ADDRESS=3Dunix:abstract=3D/tmp/dbus-dRjt5ThTHH,guid=3D5feb= 1b57970b7afe5fea4e5b5f39031f C_INCLUDE_PATH=3D/home/dannym/.guix-profile/include EMACSLOADPATH=3D/home/dannym/.guix-profile/share/emacs/site-lisp:/home/dann= ym/.guix-profile/share/emacs/26.3/lisp GUIX_GTK3_PATH=3D/home/dannym/.guix-profile/lib/gtk-3.0:/run/current-system= /profile/lib/gtk-3.0 MICRO_TRUECOLOR=3D1 _=3D/run/setuid-programs/sudo SUDO_COMMAND=3D/run/current-system/profile/bin/env SUDO_USER=3Ddannym SUDO_UID=3D27481 SUDO_GID=3D998 TZDIR=3D/gnu/store/pyk3skinp1f72afpd2xdjdi2j80xngr0-tzdata-2020a/share/zone= info --Sig_/4dapqnuQrxie6=T_XwNboPx Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl9EzzsACgkQ5xo1VCww uqXp9wf/RRz41DswZoIQootVi4WZPWAlu9htctDV8IGLqLUpNRdLt7FDJD7UTPq5 Hg5O5+kaoJVjHs+jnZiv3kbK0Sw6LziKdptouFaYcK1z0zaUiUb2/Nk3MtzXuJkD Wm10y2ztG0ODcmKnSkFmj0kGQdkDTRrzfFpm2rNK8BQmiYMeiaGGVfkeNSkbF/ZL hsI2ppcwXRG29fMCX0Eavl4cJiiwFcMvLlXSWHcL+hAzlSPLj0IRkVg8GhhO+2l6 Okj7Eg76CYU7Xs6BdCUJBrVX0GBpVL0c3/8MmFCvvxUD+L7E4VEEGrPMlpPHZX/b JjxBaPkOUu6GZmXsp1Z7Gg5Kdz9F9Q== =76oW -----END PGP SIGNATURE----- --Sig_/4dapqnuQrxie6=T_XwNboPx--