From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OKuxBrHY8mKHlwAAbAwnHQ (envelope-from ) for ; Tue, 09 Aug 2022 23:59:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GEW1BrHY8mKNHQEA9RJhRA (envelope-from ) for ; Tue, 09 Aug 2022 23:59:13 +0200 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 25E2A16D61 for ; Tue, 9 Aug 2022 23:59:12 +0200 (CEST) Received: from localhost ([::1]:56812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLXFn-0007Mn-8C for larch@yhetil.org; Tue, 09 Aug 2022 17:59:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLXFf-0007Me-Dv for guix-patches@gnu.org; Tue, 09 Aug 2022 17:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLXFd-00065V-Td for guix-patches@gnu.org; Tue, 09 Aug 2022 17:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLXFd-0003o4-MW for guix-patches@gnu.org; Tue, 09 Aug 2022 17:59:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57050] [PATCH 3/6] gnu: chez-scheme: Fix use of "/bin/sh". Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Aug 2022 21:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57050 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos , 57050@debbugs.gnu.org, Liliana Marie Prikler , "(" Received: via spool by 57050-submit@debbugs.gnu.org id=B57050.166008232514586 (code B ref 57050); Tue, 09 Aug 2022 21:59:01 +0000 Received: (at 57050) by debbugs.gnu.org; 9 Aug 2022 21:58:45 +0000 Received: from localhost ([127.0.0.1]:45393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLXFN-0003nB-3p for submit@debbugs.gnu.org; Tue, 09 Aug 2022 17:58:45 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:47055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLXFH-0003mb-Dg for 57050@debbugs.gnu.org; Tue, 09 Aug 2022 17:58:44 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 65C8A5C0274; Tue, 9 Aug 2022 17:58:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 09 Aug 2022 17:58:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1660082312; x= 1660168712; bh=I9aNYA4kpCMCjKPkq5rtSw0nWQo/caA41nouwgiGhQQ=; b=K 1rPmxHsikVQK1aJgSiUwsuXEgCtYIOrmOXCcYHmI2I+IBKFrBAzSDFu35+rzUPCW dtOZLQmX0RYS+ndjKslkoTZNnVF7EkKEEy0N6AfAzr44sNo3WxgHvJ9pYZIySJWO QJVhfUxaTG1xDs0ArRhC4ndrFAzAFvuKnJQ7Xwzu3lrV9pGdRwEfJv/F8VcszXfU FzpygIJroGTm3MY0kNSSa5PB/QGNu5Z6wQtWri2mjQu5+dWtONFaOj5PScr3uMHz Uh79hSHHOJ0LPeVOX9BmAOpijnASmBZ3qNj8W+mV1dkBO3OUKKnEgGEvnEMR288F B21HhPSowZGjYRA9hV6rA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1660082312; x=1660168712; bh=I9aNYA4kpCMCjKPkq5rtSw0nWQo/ caA41nouwgiGhQQ=; b=vLzx6Y3r5pDe5ULJasL+Ey0WAZXR/WXteuUuiUaE5tlj IdT9mPXpjVTGQkbzphcxN2d6lDvyYk3chlCsJRxrs4dHbhlSvX01j1+pJUdCphF6 4m2azIcDUhqbhYgiYC/YYs6oznMwZIwSe2l3R7Zg6//fqrR49fkpvyI7/89kCAnY gA4/IsG+qayysykyx1KRViRVFaAXrvFDpcGy+QoNDWGLmIasEqo86Wej1iwpHegx p9Y57TrmwFlCx6ASfmImGT/CN73OgUqpL4kK7tL32WLNP4SK4eNzmNc+Rb68+ojU nFNk7kouPikXDw9m2KGESNb6bC/sDaSAmKkXrL96kw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeguddgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhggtgesghdtreertddtvdenucfhrhhomheprfhhihhlihhp ucfotgfirhgrthhhuceophhhihhlihhpsehphhhilhhiphhmtghgrhgrthhhrdgtohhmqe enucggtffrrghtthgvrhhnpefhffefjeffheeuveefleduueehvefhieegfeekgfejveef tefggeeltedtgeelheenucffohhmrghinheptghpphhrvghfvghrvghntggvrdgtohhmpd hophgvnhhgrhhouhhprdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepphhhihhlihhpsehphhhilhhiphhmtghgrhgrthhhrdgtohhm X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 9 Aug 2022 17:58:31 -0400 (EDT) From: Philip McGrath Date: Tue, 09 Aug 2022 17:58:18 -0400 Message-ID: <4968242.72vocr9iq0@avalon> In-Reply-To: References: <7494a36b-f80d-2365-6148-48b809607b86@telenet.be> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5363460.7s5MMGUR32"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660082352; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=I9aNYA4kpCMCjKPkq5rtSw0nWQo/caA41nouwgiGhQQ=; b=UIoKbWOOL4nWNsxenuTO1Im6e1D9eaTv9eZyzp5H4R3NfWgdlwM85j2B33/TCMWsclRwWN TM3a0ukJvIOTSl2F2i5UA2i2c8s+LVTucu3hX/aXrr25n4XWqfY+wKf9UHk2BRtDVvBTRn 3Ee5Grv1UxQyBqgSlKTYFwk0kv9vyfdy5oMU/GOebRXzjkwZkR//EfM3Y6czgs/GVQIBZ6 Re0H6YHov07hroD4AxVgACB+RUnUA6eqeTq5yANwCznn29jgX0sx6TTFGb15BsNl2qkW6n rr/kNyUJyo5ci/cf30RubR/XVfrJUQPuvWgVOB005NrNvo8Kwvz0IGjnWAmabQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660082352; a=rsa-sha256; cv=none; b=h+6bguxDufGu9cLhi8gqZ64l2b147zn+8kepYhRZoQaWE+ZEc6IAaQMok7pd+CeGn00dfT o7sG8HlqCojtOxf09A5ZYmZy6+qMi0NJ7EBAan5ZMFaNSfNgFutjWFDDhBJLwAmZvlZdNW lQvhQEJBJgacVB8HkqSL/uXXflkWPQzdtlIFLX9M2brP1QtIoVyqNW9/1q81wjNae1HccS ifOjW+AuIFIG1N4y5d8WMM+iDXzeVdPjLMOCsVTj+C/HvLetkL0dMDlbgGZ5pcrasfKPnF jfw7Rw+fqFrEPRlo6J34kTEARBdsJrFS1pnY8V9WSGRL7+V1onip+lmLAv/wXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm1 header.b="K 1rPmxH"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=vLzx6Y3r; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm1 header.b="K 1rPmxH"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=vLzx6Y3r; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 25E2A16D61 X-Spam-Score: -2.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7nn3/AsI2BBz --nextPart5363460.7s5MMGUR32 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Philip McGrath Date: Tue, 09 Aug 2022 17:58:18 -0400 Message-ID: <4968242.72vocr9iq0@avalon> In-Reply-To: On Tuesday, August 9, 2022 5:38:56 PM EDT ( wrote: > On Tue Aug 9, 2022 at 10:24 PM BST, Maxime Devos wrote: > > In the glibc headers, there's some (POSIX?) standard macro that points > > at "/gnu/store/.../bin/sh" (I don't recall the name), any reason we > > aren't using that macro? That would be Guix-independent. I'm not sure > > if a /gnu/store/... prefix is included, but if not, maybe we could try > > overriding it with -D...="/gnu/store/...", or failing that, add a > > post-unpack substitute* replacing [the macro name] -> > > "/gnu/store/.../bin/sh". > > I believe you might be referring to , which defines _PATH_BSHELL. > > It's not standard C nor POSIX > though. > > -- ( I'd love to be wrong, but I also can't find such a macro. In the glibc source tree, "stdlib/system.c" defines a stub implementation that always fails with ENOSYS, and "sysdeps/posix/system.c" contains: #define SHELL_PATH "/bin/sh" /* Path of the shell. */ #define SHELL_NAME "sh" /* Name to give it. */ Concretely, I think Guix's glibc currently uses /bin/sh dynamically: in my Chez example above, if you replace `process` with `system` (which uses libc's `system`), the result is always "/bin/sh\n". -Philip --nextPart5363460.7s5MMGUR32 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE9GWrrNY3rqwUFVXPygNjjfo/HHoFAmLy2HoACgkQygNjjfo/ HHpaaRAApknkIY7JrOl0de5PgY5Ol6NmP9SGNOnPR4LhYcA+0cIBZkQhQrtGxatV KGaBhRAfcSwJygA8FTTA4S2cHRSOQaBKPXZRaytWJjZBJSHKv34MiBI+n0kQvRQf wb8y9p8n42tl8RafProB7iWyYhVV3XBVfNzu3IZEOD0zqAF1uY0qCQ5vGdodZ/iP +lIj0p+yJPXYRFUNMkroDiRP2brYZBGZdS9rqgM7JaYmDyo1dljwRirt49o0kXiX fxy9r5pAdhoNI0XbNDeSe0Uy++C2Ca208rQKedC56nR+uVXuICzuXJG7oaN86lby IouI1ioj+Fd4uPhTjER+4RZsIBrGU+EJ2brIxImmuBROHPTGj4t2jJkw1qDlKLCD CKez7CXPpfuZlgEieOUF5SPn+WluuWgSuz7ymrDKgqmrFziZh6ybSz6uox/aWc0s UjGXToB4enuut6RS8qbLMIWkMt5taZHg0H7am0YgXChiM8pAJbD1WgLuMQQYzXv1 54lAFhSm21zj8ifDQY2Kru9PTlgoE+dQiLpas3W14vjdKDX9pNgTSZBsSxMudzhX Z4AJymct33HmvKILq+tBR5BbrSXpNPg6cm3DZSRzCRMZzDeNUAFCR6zv/XInUPKg v2WHAjht32T+BhWC79cfLcF96OUn1UMwTVNk87rxUBvGcfx1JU0= =bmvv -----END PGP SIGNATURE----- --nextPart5363460.7s5MMGUR32--