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 6E4rFhRVfWExFQEAgWs5BA (envelope-from ) for ; Sat, 30 Oct 2021 16:22:12 +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 SAjkERRVfWGZWAAAbx9fmQ (envelope-from ) for ; Sat, 30 Oct 2021 14:22:12 +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 053769CC9 for ; Sat, 30 Oct 2021 16:22:12 +0200 (CEST) Received: from localhost ([::1]:54574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgpFL-0002gD-6w for larch@yhetil.org; Sat, 30 Oct 2021 10:22:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgpFC-0002g4-Kz for bug-guix@gnu.org; Sat, 30 Oct 2021 10:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46555) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgpFC-0006J4-C6 for bug-guix@gnu.org; Sat, 30 Oct 2021 10:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgpFC-000362-7w for bug-guix@gnu.org; Sat, 30 Oct 2021 10:22:02 -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: Sat, 30 Oct 2021 14:22:02 +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.163560369811852 (code B ref 51466); Sat, 30 Oct 2021 14:22:02 +0000 Received: (at 51466) by debbugs.gnu.org; 30 Oct 2021 14:21:38 +0000 Received: from localhost ([127.0.0.1]:58099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgpEk-000351-Uk for submit@debbugs.gnu.org; Sat, 30 Oct 2021 10:21:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgpEj-00034m-Cn for 51466@debbugs.gnu.org; Sat, 30 Oct 2021 10:21:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54362) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgpEd-0005pv-JZ; Sat, 30 Oct 2021 10:21:27 -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=x1sDf2DFW+7J17UtvkUvRlkDCPGBCHtts97TmSqm9lA=; b=gSlMEwIDuzWGyxpOwlZo 7W5uLA6NvsKCGXgZ/2VqCRAOvRCKnXtK+J3WsarxPyn3rJgTWub3TaF5dDx/3YuD7Yi/HZUNQH24c TBKaUO1it764Dw+s9FI199YcgQ7Gl1ZDIfqXBxij7MiQrklkp3F5R3mJd9vxZk5C7CYoooujH86jB xd8molsSstOaaMMaPjI6Lodpk4HEBzEF6d1MN9vsRqskueSeaSueAejV4QQWsUOqCjOhhgWIJOj/e Ej0ZVRRoSy9LD/PbES4IFYT7IY+eBPZipzW5FeYB57WWq6pDkaIb+14tEDmn8buPr/DhiRKZXyxU2 MDcnPAAychH7Sw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55484 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgpEd-0008Op-6h; Sat, 30 Oct 2021 10:21:27 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87r1c5c6gk.fsf@ponder> <87o877y7kd.fsf@gnu.org> <87k0hvggu1.fsf@yucca> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Brumaire an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 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-pc-linux-gnu Date: Sat, 30 Oct 2021 16:21:25 +0200 In-Reply-To: <87k0hvggu1.fsf@yucca> (Vagrant Cascadian's message of "Fri, 29 Oct 2021 23:35:50 -0700") Message-ID: <87lf2atwyi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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=1635603732; 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: dkim-signature; bh=x1sDf2DFW+7J17UtvkUvRlkDCPGBCHtts97TmSqm9lA=; b=oMdv69Omq+mIEca9KrAexzRsn1P2xTQg4BzuaZK9m6xds80GVOOI4mdeLZtFMmI+D8GFKJ DP5TENsdJC+rIqwguJEO6aYxq6CHpsKxfwmK683ZL5Gvl3gi1E3g8CIFE2OPReOZeXNGXs UeXU0+mf7eOHm9xxGTCacn/dEIEvPCGDxm0Mb9ch09I1zW4Yf1yXVohy5UxqP0f9viZnFD 9h8kjSSUj2ssvM1DelMu4NsSMdAOaRbCdf6Fa/ZC7AN2U9NkdOpP4c1roOl42GRhNB5LZY siIQFigIEQfVV7RisHk0gqbL66d57HEnc0Lw54CNITo95zb5FNxg9xsG2iPF8w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635603732; a=rsa-sha256; cv=none; b=lebsp7xnQYmWimbCnNAgEuxdTBHgaYWCp9U7tXRD/Gg+FbaNa3FUKWLodQpcnebnyBzyrl 3ifXqYL2O2UL1VE7INU8TZfTYX7ux1kp65ZF3CEncViRaG3PvHr+RtbpD0t+5voKefx6By z3NT9EBZmVEHXmsiUfUmfi1pNzGk1kuqpC+pq0guCHmF7TTgr15HRyIlqr6ORGkxQ3ii9o vDa/YvVmkoKcVX79q74qDgRNTndbAR/KjEy+7NYaBt/C7DJvZQTT6Z0gXYhGc/63d7OWDE XsJE7RiTOLCXId0+mpbRDS3KPWubZqNtTM3Tcyb+Z8KIvdVWa83q9X21R1sPKA== 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=gSlMEwID; 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=gSlMEwID; 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: 053769CC9 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: X+8EuK0KbIP3 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Howdy! Vagrant Cascadian skribis: > On 2021-10-29, Ludovic Court=C3=A8s wrote: [...] >> If you look at =E2=80=98child-shell-environment=E2=80=99 in (guix script= s 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 = swallowed 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/b= ash 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? Yes, =E2=80=98--check=E2=80=99 runs $SHELL. To make sure, could you try with the attached patch to see exactly which variables =E2=80=98guix shell=E2=80=99 =E2=80=9Csees=E2=80=9D, and whether = it drops a line it shouldn=E2=80=99t drop? TIA, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index cca0ad991b..7f3d3b9db8 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -452,10 +452,10 @@ (define lines ;; but it also truncates values anyway, so don't try to support it. (let ((index (string-index line #\=))) (if index - (vhash-cons (string-take line index) + (vhash-cons (pk 'variable line (string-take line index)) (string-drop line (+ 1 index)) table) - table))) + (pk 'dropped line table)))) vlist-null lines)) --=-=-=--