From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EC5JBVDl3F8RIQAA0tVLHw (envelope-from ) for ; Fri, 18 Dec 2020 17:22:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IDQoAVDl3F/DXgAAB5/wlQ (envelope-from ) for ; Fri, 18 Dec 2020 17:22:24 +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 8DC0B9402A5 for ; Fri, 18 Dec 2020 17:22:23 +0000 (UTC) Received: from localhost ([::1]:58286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqJSQ-0005Oe-9z for larch@yhetil.org; Fri, 18 Dec 2020 12:22:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqJS6-0005O3-PM for bug-guix@gnu.org; Fri, 18 Dec 2020 12:22:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqJS6-0002ss-Er for bug-guix@gnu.org; Fri, 18 Dec 2020 12:22:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqJS6-0007Of-8a for bug-guix@gnu.org; Fri, 18 Dec 2020 12:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45308: Unexpected fail with build transformation --with-commit Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 18 Dec 2020 17:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45308 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun Received: via spool by 45308-submit@debbugs.gnu.org id=B45308.160831207628379 (code B ref 45308); Fri, 18 Dec 2020 17:22:02 +0000 Received: (at 45308) by debbugs.gnu.org; 18 Dec 2020 17:21:16 +0000 Received: from localhost ([127.0.0.1]:39835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqJRL-0007Nf-R3 for submit@debbugs.gnu.org; Fri, 18 Dec 2020 12:21:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqJRL-0007NT-2E for 45308@debbugs.gnu.org; Fri, 18 Dec 2020 12:21:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36243) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqJRF-0002c9-SH; Fri, 18 Dec 2020 12:21:09 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=53556 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kqJRF-0003cH-40; Fri, 18 Dec 2020 12:21:09 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <86sg83n7ro.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 Frimaire an 229 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: Fri, 18 Dec 2020 18:21:07 +0100 In-Reply-To: <86sg83n7ro.fsf@gmail.com> (zimoun's message of "Fri, 18 Dec 2020 03:54:35 +0100") Message-ID: <875z4z9gjg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: , Cc: 45308@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.82 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 8DC0B9402A5 X-Spam-Score: -2.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: LPfgXJOH6ki8 Hi! zimoun skribis: > 1 (copy-file "bin/emacs-git.2ea3466" "bin/emacs") > In ice-9/boot-9.scm: > 1669:16 0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1669:16: In procedure raise-exception: > In procedure copy-file: No such file or directory > builder for `/gnu/store/h7s176h5d0fqjzz0ac4pdvzb7rb0dm9i-emacs-next-git.2= ea3466.drv' failed with exit > code 1 This comes from this phase in the =E2=80=98emacs=E2=80=99 package: --8<---------------cut here---------------start------------->8--- (with-directory-excursion (assoc-ref outputs "out") (copy-file (string-append "bin/emacs-" ,(let ((this-version (package-version this-packa= ge))) (or (false-if-exception (version-major+minor+point this-version)) (version-major+minor this-version)))) "bin/emacs") #t) --8<---------------cut here---------------end--------------->8--- When using =E2=80=98--with-commit=E2=80=99, the =E2=80=98version=E2=80=99 f= ield you end up with is =E2=80=98git.2ea3466=E2=80=99 as shown above, and so the trick above that c= onstructs the file name from the =E2=80=98version=E2=80=99 field no longer works. Probably, instead of constructing the =E2=80=98emacs-X.Y=E2=80=99 file name= like this, we should instead use =E2=80=98scandir=E2=80=99 or =E2=80=98find-files=E2= =80=99 and pick =E2=80=98bin/emacs-[0-9]+.[0-9]+=E2=80=99. HTH! Ludo=E2=80=99.