From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qDMkHl1KfGH3fAAAgWs5BA (envelope-from ) for ; Fri, 29 Oct 2021 21:24:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aALCGV1KfGHbXAAAbx9fmQ (envelope-from ) for ; Fri, 29 Oct 2021 19:24:13 +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 3A8B734111 for ; Fri, 29 Oct 2021 21:24:13 +0200 (CEST) Received: from localhost ([::1]:55780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgXU4-0003Dz-DS for larch@yhetil.org; Fri, 29 Oct 2021 15:24:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgXDS-00068e-DF for bug-guix@gnu.org; Fri, 29 Oct 2021 15:07:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44381) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgXDS-0004X7-3G for bug-guix@gnu.org; Fri, 29 Oct 2021 15:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgXDR-000825-Qv for bug-guix@gnu.org; Fri, 29 Oct 2021 15:07:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51466: guix shell --check reports missing PKG_CONFIG_PATH on Debian bookworm Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 29 Oct 2021 19:07: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: Vagrant Cascadian Received: via spool by 51466-submit@debbugs.gnu.org id=B51466.163553439830832 (code B ref 51466); Fri, 29 Oct 2021 19:07:01 +0000 Received: (at 51466) by debbugs.gnu.org; 29 Oct 2021 19:06:38 +0000 Received: from localhost ([127.0.0.1]:55927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgXD3-00081D-O1 for submit@debbugs.gnu.org; Fri, 29 Oct 2021 15:06:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgXD1-00080t-M1 for 51466@debbugs.gnu.org; Fri, 29 Oct 2021 15:06:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50396) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgXCw-0004SF-4D; Fri, 29 Oct 2021 15:06:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=jx3LZTwkn3BdCehjDELtvlqzISY/VHpu03vUcYVB7c8=; b=bbMX5Fo9Whq6RVQE//d8 Xmd5lra4kygT1JZKaiTBhCS17ju78zLcYaz2RZrCFLXuAPaYuXLvPTVbL9Cu6q/JIaIBaH6XyMG4h cRYUjgiI/2AgK/8S5ErhKThMvChqnnOJ6/WmL3CYHbXIHTGrmmVjJoVSzY5j3nAOlGbzKL9+WIimJ 97kAVZozZslbAm6AgKSEmks4fIR5qykajTJDF2dZLedRq61r+vGbsC5tM0KZmk7X0+HGrhPSiuZ3s /mfg/kNoFqn+8I9PigrLXD0x+GxPnaZT9bsW/S1Rbz9gsZNVEx/oEoaQ6CW6KLKaIqLdGIpmnYnFY GCVK/XHHnCMbcg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:54874 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgXCv-0000dd-Mq; Fri, 29 Oct 2021 15:06:29 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87r1c5c6gk.fsf@ponder> Date: Fri, 29 Oct 2021 21:06:26 +0200 In-Reply-To: <87r1c5c6gk.fsf@ponder> (Vagrant Cascadian's message of "Thu, 28 Oct 2021 12:08:59 -0700") Message-ID: <87o877y7kd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1635535453; 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: content-transfer-encoding:content-transfer-encoding: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=jx3LZTwkn3BdCehjDELtvlqzISY/VHpu03vUcYVB7c8=; b=bnrxC5dnvAbKEVEOieiVSHeE/nMWWmGmMHjUWAGHcINvsqNRE7QlgSIsodEDKbdXJBBjjE JFp+PVLP74UpO4ynGrvaH9W3GmDUu0GLUMbhWUo67nICHOIThX1NjPwhrN0ZG+ycEKtL+W TbLCUhouO+vJzNuAUgXZYYAuE9wODZ/M5sLYPyWkiRoNZrJ15D/yiUu/6QWrClDtS1mQVi iV9jSEwhIjEEYXuNEuGUhq8gmUDwNQKwlmcqSV7ViMU05rHb091BTNCoHxvHwvu/uIaQeM Yp+oYLdyI1pmj6bFmSS8aS+B+P3Yyq9PKpDEhauDrXYP99n+WrKyBcBsghQiyQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635535453; a=rsa-sha256; cv=none; b=S1P1yx9ReK5NsRVuFzOoUdoTV7qDpLdZYYHGl78kaE7Y3ba4wFJsJeveWLiWTrG1CT5EhA 2LGpCM7pFVo6HkjHR40KdXAxHw72j+gregemsdpQ4f/IHhZmDUCpco35Gy5+1JW5tqnWLr PEGKQLAxooZTFR3ouWGcHe2uii/r+tXU4Ql1HWKk62EbDhEiVgUzJGDTQedaeGlic9hF20 gr5W44Fi13JJraRy5zjVLgsp6FU2x40FChvN9aq7Fk81djU3dcM6dyt7NbbYSU3DT+Ym0q 6HVW4rDj2ep45eQexbZC127wPFSWJ4TfIjW6V9degClTm9Yf2jxGBH++jx7Pwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=bbMX5Fo9; dmarc=pass (policy=none) header.from=gnu.org; 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.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=bbMX5Fo9; dmarc=pass (policy=none) header.from=gnu.org; 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: 3A8B734111 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: xJ/Ak7RfM/PQ Hi! Vagrant Cascadian skribis: > Most things seem to work fine, but noticed an oddity with guix shell: > > vagrant@vagranttdgxbookworm:~$ guix shell --pure --check --development gu= ix 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 e= nvironment), 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 swa= llowed 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? If there=E2=80=99s nothing obvious, you know the story: we can always add = =E2=80=98pk=E2=80=99 calls in =E2=80=98child-shell-environment=E2=80=99. :-) Thanks, Ludo=E2=80=99.