From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KADpKjOSYmOAVgAAbAwnHQ (envelope-from ) for ; Wed, 02 Nov 2022 16:52:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AJHLKjOSYmN7BgEA9RJhRA (envelope-from ) for ; Wed, 02 Nov 2022 16:52:19 +0100 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 5FC453E475 for ; Wed, 2 Nov 2022 16:52:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqG27-00033V-9M; Wed, 02 Nov 2022 11:52:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqG26-00033C-1Q for bug-guix@gnu.org; Wed, 02 Nov 2022 11:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqG25-0002ZX-Qe for bug-guix@gnu.org; Wed, 02 Nov 2022 11:52:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqG25-0002FC-Kj for bug-guix@gnu.org; Wed, 02 Nov 2022 11:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58861: guix shell emulate-fhs option can have wrong glibc package Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 02 Nov 2022 15:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58861 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: John Kehayias Cc: 58861@debbugs.gnu.org Received: via spool by 58861-submit@debbugs.gnu.org id=B58861.16674042668558 (code B ref 58861); Wed, 02 Nov 2022 15:52:01 +0000 Received: (at 58861) by debbugs.gnu.org; 2 Nov 2022 15:51:06 +0000 Received: from localhost ([127.0.0.1]:47011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqG1B-0002Dx-PG for submit@debbugs.gnu.org; Wed, 02 Nov 2022 11:51:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqG19-0002DN-NZ for 58861@debbugs.gnu.org; Wed, 02 Nov 2022 11:51:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqG14-0002PT-Hv; Wed, 02 Nov 2022 11:50:58 -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=x/31c/1jFVjBQjmmKT2jm9xH10CQKt7YOadeTatJ5Y0=; b=pDac+GbThpBgkxJXwPuo EdbJGd0z7EDUvQaggn+S+q2Avu7yqQJNx578uvx6GW0kFJXGDRAd1BgPaRMrWzOZKdkJlVpa2HIrL yIS0UnTsXPU5EO8rUgo3XmhglQ7iIvk99FALkm3wv8Ms+mwtBXTZt9vvyBo/Aqw5TPhV4R5jE0v7h aodnSMO93ivdHyMySotSpbdirDsT0O2kvvSvMrBjb7BBEyFdzIbbRDLDcDImakQWFRsGSFXtvOzfQ JX8nxDLajrbTk2U6gHMWlNwzrJ4To26irdfPxFVtmD6GO901jTS6jv6+cUvAL3kCQY8H65KIToSPe PUFQ7O9NG/zdXw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqG12-0005vd-7k; Wed, 02 Nov 2022 11:50:58 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87tu3n9oxd.fsf@protonmail.com> Date: Wed, 02 Nov 2022 16:50:53 +0100 In-Reply-To: <87tu3n9oxd.fsf@protonmail.com> (John Kehayias's message of "Sat, 29 Oct 2022 05:31:05 +0000") Message-ID: <87sfj1tkwy.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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: , Sender: "bug-Guix" Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667404339; 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=x/31c/1jFVjBQjmmKT2jm9xH10CQKt7YOadeTatJ5Y0=; b=dCLYmE8r0htXmWdaWRNXGtsa96hZIz5ZFitQW/YpGxmRNOY4qf5uFBzabwj9GfAFsSNB8c mZnc23U2AGyJccQC0QlPifj6iyaKbY2LQAKuAiq0YjpdIiPpcauaUXaIqrZCSEqJ9a18qQ CITSyJ/bhwmuzRVBB2cQYthft1oPHClBnMpQI1f+3mmar/VF7fuZ1JiDdNx43lIDKobQnq sHiIfj5aaAuzZxlqsUpCp8U6HN5NKJwGMlsN+2UY7of5TPEj1ZlFvL3YFDT1mq7i2W21S7 5cOdnsEm3hxjN66T3lXlYyLeB6hWpWFhSrx57NI4gCO7jOxMmPifDgh4AOLVHg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667404339; a=rsa-sha256; cv=none; b=IzBDojB2cxariamOvv2T2UZmaEOLumxvY3GR0xpbq/FbXpg5+FJFx7kBvZiSOxwLcDJHq6 m+C6QEhWW1rRCXBO1+I1P43XHwfqm0Ur3jbMhcVcDHZkUDvd9uCWCUhaIjOLlj1T1ktmnF ZCPQX8+r48Nw2ZUFfmVfdwB3pNTfx/cQmSBlZSNyYoVflFN1LoUpQ8vyV6HzDLsHo4/CS/ nuB2GN1SV316NVcwh+0gom3OplknRSs5aa9k6lud4GSEPyaBSM+zum9vNKCMnuZDrXsnWv QoOgDaS1KaKniBiVEnebRcJwMp3UyH5+5D6HjHzgrTCWWplgLWd3CscQx57Yzg== 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=pDac+GbT; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.89 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=pDac+GbT; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5FC453E475 X-Spam-Score: -3.89 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8ZAzdz8N/Ahe Hi John, John Kehayias skribis: > After commit I noticed a changed in behavior of g= uix shell with the emulate-fhs option for a container. I tracked it down to= the wrong glibc package appearing in the container, i.e. the standard Guix= version rather than glibc-for-fhs (which reads a global ld cache). > > The cause I believe is related to , na= mely that package input order for a profile can matter. But it is slightly = different here since the glibc-for-fhs package is added internally. > > We can see this demonstrated by comparing the FHS container with a -D inp= ut so that a glibc package is implicitly included (here from the gnu-build-= system): > > =E2=9D=AF guix shell -CFD hello coreutils > john@narya ~/Files/UPenn/canvasgrading [env]$ ls /lib/ld* -la > lrwxrwxrwx 1 65534 overflow 69 Jan 1 1970 /lib/ld-2.33.so -> /gnu/store= /5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-2.33.so > lrwxrwxrwx 1 65534 overflow 79 Jan 1 1970 /lib/ld-linux-x86-64.so.2 -> = /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.= so.2 How about fixing it by moving the (alist-cons 'expression =E2=80=A6) thing = right before the =E2=80=98options-with-caching=E2=80=99 call in =E2=80=98parse-ar= gs=E2=80=99? That way it would no longer be sensitive to the position of =E2=80=98-F=E2= =80=99 on the command line. Could you give it a try and add a test? Thanks, Ludo=E2=80=99.