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 ms0.migadu.com with LMTPS id s3AtMoLofGHPMwAAgWs5BA (envelope-from ) for ; Sat, 30 Oct 2021 08:38:58 +0200 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 iM1KLYLofGFNdQAAB5/wlQ (envelope-from ) for ; Sat, 30 Oct 2021 06:38:58 +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 3462A324B5 for ; Sat, 30 Oct 2021 08:38:58 +0200 (CEST) Received: from localhost ([::1]:56848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgi13-0004G1-4d for larch@yhetil.org; Sat, 30 Oct 2021 02:38:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mghzC-00030o-8O for bug-guix@gnu.org; Sat, 30 Oct 2021 02:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mghzB-0006i6-W4 for bug-guix@gnu.org; Sat, 30 Oct 2021 02:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mghzB-0004OM-Mj for bug-guix@gnu.org; Sat, 30 Oct 2021 02:37:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51466: guix shell --check reports missing PKG_CONFIG_PATH on Debian bookworm Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 30 Oct 2021 06:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51466 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 51466-submit@debbugs.gnu.org id=B51466.163557576616808 (code B ref 51466); Sat, 30 Oct 2021 06:37:01 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 51466@debbugs.gnu.org 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=1635575938; 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; bh=Iqk0fbwWZmmM895NPS0WkFYD4BxjFxTfVTtU0S6Mk1U=; b=TnJVS99EcGHSxYk3SYc/k28CBanaXiCowK7qmfdrkptM58C7PD3Hmt3HlNNCbcv5C9RXRl 3xoJe+cw1A7mQKrmTmu+WXMHFirmn8AhnACIMU7Tu+ImGy0iIGbSp6v3vvniVpSZ10mqi2 kLktFvXJPvPwIOo3UYYDehonWvZrDrE8TfbVkDpag3fgfQ8HJSxLPHQnqMq2VJqV/twQ1d 2QAe19J0DxRK/5/TgM5F9mn/Scpm3XbHv0ZegCi+XkJauxSLJ8X7hhgyGu49uB3I3YboAN xTC3QEbdV0Y3Zo5/LJmPcD6v8Xj6a7XOCK7Oqf+YafjL7/yy8K7z1bVFwOR5IA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635575938; a=rsa-sha256; cv=none; b=dOc+QkkP6EA1N+1vwR5rSH8AZwISIb+4pa5vlZhz34BF3FoZ2kjV1yBfdC9QKkrU9/DPhD XRcTLUFKsy1f2r43ZRkwjdoHffa25lUQst/usIaG89dSSIYvWRrCxKl9aIGN/alIucgroR QbKNG/99oPqQBjYmYiKGyUd9CMw5LsWnrmmQR9JdUqmjqFjItrm8z/B6qDrdrpzc3fps+c eW/2e1tn757OL39BWLvxZZuyI1eLh+5VizYElMxIPmGTeB+CZFHXhMQ342ag3Iq+rTB+lH KDGqZRu1V4GI81D0Cj06PYbCgisxQRmAD8qserZc5h1gYqve2LdwqPH3OvislQ== ARC-Authentication-Results: i=1; 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-Migadu-Spam-Score: -2.52 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-Migadu-Queue-Id: 3462A324B5 X-Spam-Score: -2.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: OmeCRI9DTi6o --=-=-= 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----- --=-=-=--