From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 30 02:36:05 2021 Received: (at 51466) by debbugs.gnu.org; 30 Oct 2021 06:36:06 +0000 Received: from localhost ([127.0.0.1]:56570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mghyH-0004N1-MG for submit@debbugs.gnu.org; Sat, 30 Oct 2021 02:36:05 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:42152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mghyC-0004MR-Vo for 51466@debbugs.gnu.org; Sat, 30 Oct 2021 02:36:04 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 0F3CD1AA2C; Fri, 29 Oct 2021 23:35:55 -0700 (PDT) From: Vagrant Cascadian To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#51466: guix shell --check reports missing PKG_CONFIG_PATH on Debian bookworm In-Reply-To: <87o877y7kd.fsf@gnu.org> References: <87r1c5c6gk.fsf@ponder> <87o877y7kd.fsf@gnu.org> Date: Fri, 29 Oct 2021 23:35:50 -0700 Message-ID: <87k0hvggu1.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51466 Cc: 51466@debbugs.gnu.org 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.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2021-10-29, Ludovic Court=C3=A8s wrote: > Vagrant Cascadian skribis: > >> Most things seem to work fine, but noticed an oddity with guix shell: >> >> vagrant@vagranttdgxbookworm:~$ guix shell --pure --check --development g= uix guix git less >> >> guix shell: checking the environment variables visible from shell >> '/bin/bash'... >> guix shell: warning: variable 'PKG_CONFIG_PATH' is missing from shell > > [...] > >> vagrant@vagranttdgxbookworm:~$ guix shell --pure --development guix guix= git less >> >> vagrant@vagranttdgxbookworm:~$ echo $PKG_CONFIG_PATH >> /gnu/store/9vk59alg27y0cp1za91nfdjiy718cn1f-profile/lib/pkgconfig > > Notice that it doesn=E2=80=99t complain about any of the other environment > variables (there are 10 of them according to =E2=80=98guix shell -D guix > --search-paths|wc -l=E2=80=99). > > If you look at =E2=80=98child-shell-environment=E2=80=99 in (guix scripts= environment), > it runs this in the child shell: > > env || /usr/bin/env || set; echo GUIX-CHECK-DONE; read x; exit > > If the shell prints non-newline-terminated stuff before the output of > =E2=80=98env=E2=80=99, the first line of =E2=80=98env=E2=80=99 would be s= wallowed by the parser below. > > Could you run: > > strace -o log -s 500 guix shell --check -D guix > > to see exactly what =E2=80=98guix shell=E2=80=99 reads? That showed nothing obvious to me; the log it spits out is about 3MB (~320k compressed with zstd) I could attach if it is useful... I did notice SHELL=3D/bin/bash, and tried an experiment: $ SHELL=3D/gnu/store/87kif0bpf0anwbsaw0jvg8fyciw4sz67-bash-5.0.16/bin/bas= h guix shell --check -D guix guix shell: checking the environment variables visible from shell '/gnu/store/87kif0bpf0anwbsaw0jvg8fyciw4sz67-bash-5.0.16/bin/bash'... guix shell: All is good! The shell gets correct environment variables. So, somehow the value of SHELL and/or the user's default shell is triggering the issue? live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYXznxgAKCRDcUY/If5cW qpfbAP9089bV8OFTOUgGd2qJo+nVRx8mnMlTow4V+p63ONpotwD+Itq3TH9KiVRb TQ90cqEOIb8M/QVRpyN0I2imW1+yXQ0= =Dy+s -----END PGP SIGNATURE----- --=-=-=--