From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MA4YLHlVamNQYQAAbAwnHQ (envelope-from ) for ; Tue, 08 Nov 2022 14:11:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uDdEK3lVamMGUQAAG6o9tA (envelope-from ) for ; Tue, 08 Nov 2022 14:11:21 +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 7DF4F3A512 for ; Tue, 8 Nov 2022 14:11:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osONc-00080l-E9; Tue, 08 Nov 2022 08:11:04 -0500 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 1osONa-000808-TC for guix-patches@gnu.org; Tue, 08 Nov 2022 08:11:03 -0500 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 1osONa-0005E6-Dw for guix-patches@gnu.org; Tue, 08 Nov 2022 08:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osONa-0003z0-4z for guix-patches@gnu.org; Tue, 08 Nov 2022 08:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59073] [PATCH] gnu: r-minimal: Avoid referencing /gnu/store/[^-]+-glibc-[^-]+-static. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 08 Nov 2022 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59073 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: 59073@debbugs.gnu.org Received: via spool by 59073-submit@debbugs.gnu.org id=B59073.166791300515219 (code B ref 59073); Tue, 08 Nov 2022 13:11:02 +0000 Received: (at 59073) by debbugs.gnu.org; 8 Nov 2022 13:10:05 +0000 Received: from localhost ([127.0.0.1]:36621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osOMf-0003xP-Ee for submit@debbugs.gnu.org; Tue, 08 Nov 2022 08:10:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osOMe-0003wq-3N for 59073@debbugs.gnu.org; Tue, 08 Nov 2022 08:10:04 -0500 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 1osOMY-0004kc-Ts; Tue, 08 Nov 2022 08:09:58 -0500 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=Xif9AZEaYNGiQXOTTnFZAqL54oma0S8I4A0TKTj4JCg=; b=YBaITqfJ2eai38cfpsrT rSzmWW/BaSel2vfnnFjet1ofaGNLvvxX77sEaTQKKAG/RcumAzgKHlNM2sreUvsQrp6Qk6JJpEr4C Ti+qF+PNrFdI1nM2YBlDM1Cx/78bkPuL3h363Pk0yEgm1QMNZCW3JwrskfRI9XV9K5YH6mS8VdVn+ z6BdH8wqOFP98ME6PoH5XPREGz7UXthNxEtJvb6NYkkVvD0nQdPKqNMeLQqdJj1HMTMUtdpZmfNyW JQYxKdNm+ohDGqqZm3u6AMIT6s4hBtTSso/56+k3Oq9EohdEBCqgX8DIb58GNTsBbadXME0uq/H1d NPlkO6EEbtljrQ==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osOMY-0007wt-Ff; Tue, 08 Nov 2022 08:09:58 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20221106090558.24507-1-mail@cbaines.net> <87mt92sazd.fsf@gnu.org> <875yfpor0s.fsf@cbaines.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 18 Brumaire an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de la Dentelaire 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: Tue, 08 Nov 2022 14:09:55 +0100 In-Reply-To: <875yfpor0s.fsf@cbaines.net> (Christopher Baines's message of "Tue, 08 Nov 2022 08:13:32 +0100") Message-ID: <87fsetpp7g.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: 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-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=1667913081; 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=Xif9AZEaYNGiQXOTTnFZAqL54oma0S8I4A0TKTj4JCg=; b=dKvzayTwkuI0mbWou7W70909Y0U1C5C/N1vtU3ldzY5+Ru9itVU7JHlFZb53SOORBf/wmE eso3zi+PGXwmlbdlvZbjkoUrDdX4PQVp+Uy3DVzr9bwbzdOLU/ywINAFDuL9IBwcQ5GeVi yypf5akax+VOuDUOCt3wsyMR+g7U6HnHepkElMbbGkHtrzGLGrVq1x4Ja6ZqKS0E2T6AZQ BW/En0Vmjp4YGCcLG9+QAw5lAVF9hymTsN02wJDO+IZT4/m9dsQ64nFOE0Bfi2ugIFrFQv djOKk6VKipDeWqr437ZlwmRGvfEgiqQDvOsjIwJGWOXdqXE3UTFnf5pBBEmmeA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667913081; a=rsa-sha256; cv=none; b=IIfLK+pu2yHek53p2sfwOuMrRMZoBgsqVnp2U+W7Mx/PfPRSphWItscNt/i1Tjt2wASiEA FUzXyqgytY8gKl9p0jBFfhXJ5pP3VH3Y/EP74zmCxFAv7jE5NxxNsSNcn0TQl4qK4aqpU2 qzkrCHjF9iWrLDkqvQzI896amAoc3fx7qufLRy3Q2w96WfBzAFo3CRuGjwz2+k2DHXcqis 3jKR6TzDv99qgs1nKI30SNggd5lQujz6CYAmJL2IH2QeN4d1RlaQLeFXLSXRF0gnHq3JXP XGUQgudhU+0tcUiidfdtmUX3OU0t4X+dPRP0ctfw0qx77XNrS3dD9re+xHwLQw== 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=YBaITqfJ; dmarc=pass (policy=none) header.from=gnu.org; 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: -3.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=YBaITqfJ; dmarc=pass (policy=none) header.from=gnu.org; 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: 7DF4F3A512 X-Spam-Score: -3.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: xuiya4/LF+QS Hi, Christopher Baines skribis: > =E2=86=92 guix build --target=3Daarch64-linux-gnu r-minimal > guix build: error: path =E2=80=98/gnu/store/[^-]+-glibc-[^-]+-static=E2= =80=99 is not valid Interesting bug! I pushed a fix and explanation: --8<---------------cut here---------------start------------->8--- commit 3bd4b92f55f40119349e39902a9b800de98040d2 build-system/gnu: Turn #:phases into a gexp when cross-compiling. =20=20=20=20 Previously, we'd get this error: =20=20=20=20 $ guix build --target=3Daarch64-linux-gnu r-minimal -d --no-grafts guix build: error: path =E2=80=98/gnu/store/[^-]+-glibc-[^-]+-static= =E2=80=99 is not valid =20=20=20=20 This is because the sexp would be passed as an input of the surrounding gexp in 'gnu-cross-build', and thus "/gnu/store/[^-]+-glibc-[^-]+-static" would be interpreted as a source file name, as in this example: =20=20=20=20 scheme@(guix gexp)> #~(foo #$(list 'whatever "/gnu/store/[^-]+-glibc-= [^-]+-static")) $11 =3D #) 7f098badec30> scheme@(guix gexp)> (gexp-inputs $11) $12 =3D (#) =20=20=20=20 Fixes . Reported by Christopher Baines . =20=20=20=20 * guix/build-system/gnu.scm (gnu-cross-build): When PHASES is a pair, pass it through 'sexp->gexp'. --8<---------------cut here---------------end--------------->8--- That said, this code is bogus: 1. We should refrain from using non-literal strings as patterns in =E2=80=98substitute*=E2=80=99. 2. We should call =E2=80=98%store-directory=E2=80=99 from (guix build uti= ls) instead of hardcoding =E2=80=9C/gnu/store=E2=80=9D. Both of these should be fixed at some point. Thanks, Ludo=E2=80=99.