zimoun <zimon.toutoune@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 45308) by debbugs.gnu.org; 18 Dec 2020 17:21:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 18 12:21:16 2020 Received: from localhost ([127.0.0.1]:39835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1kqJRL-0007Nf-R3 for submit <at> 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 <ludo@HIDDEN>) id 1kqJRL-0007NT-2E for 45308 <at> 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 <ludo@HIDDEN>) 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 <ludo@HIDDEN>) id 1kqJRF-0003cH-40; Fri, 18 Dec 2020 12:21:09 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> To: zimoun <zimon.toutoune@HIDDEN> Subject: Re: bug#45308: Unexpected fail with build transformation --with-commit References: <86sg83n7ro.fsf@HIDDEN> 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@HIDDEN> (zimoun's message of "Fri, 18 Dec 2020 03:54:35 +0100") Message-ID: <875z4z9gjg.fsf@HIDDEN> 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45308 Cc: 45308 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Hi! zimoun <zimon.toutoune@HIDDEN> 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.
bug-guix@HIDDEN
:bug#45308
; Package guix
.
Full text available.Received: (at submit) by debbugs.gnu.org; 18 Dec 2020 02:58:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 17 21:58:05 2020 Received: from localhost ([127.0.0.1]:37428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1kq5y0-0004N6-VX for submit <at> debbugs.gnu.org; Thu, 17 Dec 2020 21:58:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:55226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <zimon.toutoune@HIDDEN>) id 1kq5xy-0004Mo-9K for submit <at> debbugs.gnu.org; Thu, 17 Dec 2020 21:58:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>) id 1kq5xq-0002sl-Hq for bug-guix@HIDDEN; Thu, 17 Dec 2020 21:57:55 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:40017) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>) id 1kq5xl-0008EE-T6 for bug-guix@HIDDEN; Thu, 17 Dec 2020 21:57:54 -0500 Received: by mail-wr1-x42e.google.com with SMTP id 91so522857wrj.7 for <bug-guix@HIDDEN>; Thu, 17 Dec 2020 18:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PkGNpjmJPWcgqAK52Fu6296w3KmJzyPv0eU/AopOcRo=; b=iDOfthgvUj3NtG/Lmh24tsysjX7c4rnH3k4ETO5u+yaBk11fK7uIBD4hSj33U3w4cB uBh5/Z75AvlLvZu+YsYUVoEFYBuXn2Pl8NSa6nTvXxMavhxXnBH7swSwKMow4hCAFJ73 5T78lh518RL+F2bZKbFQOrZ/hcK61IqoQNjj65ln49308gaLzyI77+70L7iguwUeikBl 4qQxgtho0zIey5I8B6gOxlNtbSM+c1TIh2H9O4/ElUCk/dkMHeTyHcjm9MBTiPp5LZL1 c/h/uVGOpU7qKFDubqcKigqTl9kNN7aVCT8EK/RYU2gxnKlBZS+5yzBAcIEQMt+hw2tf Ao2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PkGNpjmJPWcgqAK52Fu6296w3KmJzyPv0eU/AopOcRo=; b=XrD5b6hBFPGYPRI3a1JdVWdiZmXqCb0HcbKfKolQSoEFke66ebGg2V/JV29aZ4gsTO KeUq3z+gOERrXAmZp6n4robYWuzKNLLc/SnWybscTgGTui/sSxRYCkdDwWwKe/6uhJ0N yO4qc1eCXfCPVj4/HGibamw0rY8X5XPhxbW2gwoSirWp6zLlcaW3/lFVQ8dhiI93yCZr KejpS1Jl+Zk2HeijjlUBBDldOC2ir0WpMoe3Epb8bjT1DQUmW4q55YHBELqCvP7y/p8o ZQNrGU6dIJn7YcV+LlUYRICmiPIn8vxOhD/1ikThd5yF3GGo9CS5SXKX88bEElEHdm3U PeTg== X-Gm-Message-State: AOAM531MF4xTIqrm5ZkBcenkt/jXW6QtY9o0caxXwNILTV46lss/eAcr WprvSbChBhvndjkT9YEg93LUW0lx3uE= X-Google-Smtp-Source: ABdhPJwIlUtJKXxdwoTDdkIUnhG3l9IaLS7eNv5O2cy8V55ZYxBqxyjuqzC38jtgFAOKcACk1cFbHQ== X-Received: by 2002:a05:6000:1d1:: with SMTP id t17mr1881050wrx.164.1608260268483; Thu, 17 Dec 2020 18:57:48 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id j59sm12111250wrj.13.2020.12.17.18.57.47 for <bug-guix@HIDDEN> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 18:57:48 -0800 (PST) From: zimoun <zimon.toutoune@HIDDEN> To: bug-guix@HIDDEN Subject: Unexpected fail with build transformation --with-commit Date: Fri, 18 Dec 2020 03:54:35 +0100 Message-ID: <86sg83n7ro.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=zimon.toutoune@HIDDEN; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, WEIRD_QUOTING=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) Dear, Using Guix f4450e8, the package emacs-next builds: $ guix build emacs-next /gnu/store/93hb0g731f64avayj8rdz26bz48xg2ri-emacs-next-28.0.50-0.2ea3466 and the recipe reads: --8<---------------cut here---------------start------------->8--- (define-public emacs-next (let ((commit "2ea34662c20f71d35dd52a5ed996542c7386b9cb") (revision "0")) (package/inherit emacs (name "emacs-next") (version (git-version "28.0.50" revision commit)) (source (origin (inherit (package-source emacs)) (method git-fetch) (uri (git-reference (url "https://git.savannah.gnu.org/git/emacs.git/") (commit commit))) [...]=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 --8<---------------cut here---------------end--------------->8--- However, the equivalent but specifying the exact same commit fails: --8<---------------cut here---------------start------------->8--- $ guix build emacs-next --with-commit=3Demacs-next=3D2ea34662c20f71d35dd52a= 5ed996542c7386b9cb [...] In end of data: site-start.el:3:1: Warning: the function =E2=80=98guix-emacs-autoload-packa= ges=E2=80=99 is not known to be defined. Done (Total of 2 files compiled) phase `install-site-start' succeeded after 0.1 seconds starting phase `glib-or-gtk-wrap' phase `glib-or-gtk-wrap' succeeded after 0.0 seconds starting phase `strip-double-wrap' Backtrace: 9 (primitive-load "/gnu/store/nqja2pn6mqyqq8gpvsp8jnjaz9c=E2=80= =A6") In ice-9/eval.scm: 191:35 8 (_ _) In guix/build/gnu-build-system.scm: 838:2 7 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #) In ice-9/boot-9.scm: 1736:10 6 (with-exception-handler _ _ #:unwind? _ # _) In srfi/srfi-1.scm: 857:16 5 (every1 #<procedure 7ffff4befc40 at guix/build/gnu-bui=E2=80= =A6> =E2=80=A6) In guix/build/gnu-build-system.scm: 847:30 4 (_ _) In ice-9/boot-9.scm: 142:2 3 (dynamic-wind #<procedure 7ffff4ba7ca0 at ice-9/eval.s=E2=80= =A6> =E2=80=A6) In ice-9/eval.scm: 619:8 2 (_ #(#(#<directory (guile-user) 7ffff5bb8f00>))) In unknown file: 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.2ea= 3466.drv' failed with exit code 1 build of /gnu/store/h7s176h5d0fqjzz0ac4pdvzb7rb0dm9i-emacs-next-git.2ea3466= .drv failed View build log at '/var/log/guix/drvs/h7/s176h5d0fqjzz0ac4pdvzb7rb0dm9i-emacs-next-git.2ea346= 6.drv.bz2'. guix build: error: build of `/gnu/store/h7s176h5d0fqjzz0ac4pdvzb7rb0dm9i-em= acs-next-git.2ea3466.drv' failed --8<---------------cut here---------------end--------------->8--- Note that the items in the derivation are not ordered the same way (which should not be, IMHO, i.e., should be sorted): --8<---------------cut here---------------start------------->8--- Derive ([("out","/gnu/store/93hb0g731f64avayj8rdz26bz48xg2ri-emacs-next-28.0.50-0.= 2ea3466","","")] ,[("/gnu/store/09224jzfa4albcdp321czpjxf6b7s9az-librsvg-2.40.21.drv",["out= "]) ,("/gnu/store/097awwm6ypakc4hgzak3nbhhnax1kb4n-dbus-1.12.16.drv",["out"]) ,("/gnu/store/0x7akam0zda5cyaarxjxmcrph801ldf5-glib-2.62.6.drv",["out"]) [...] ,("/gnu/store/z7hfbdl9xrjjx1nq6v94xwq1ivy82zn3-fontconfig-2.13.1.drv",["= out"])] ,["/gnu/store/dqbd35sjzmj1hb4s83p6x2k65dyh28xx-emacs-next-28.0.50-0.2ea346= 6-guile-builder","/gnu/store/jm5y2ys7fwasip9gy6pdv0pn5nf1k49k-module-import= "] ,"x86_64-linux","/gnu/store/2wrp7x9aclqsapm58dz5i654qds8nbb8-guile-2.0.14/= bin/guile",["--no-auto-compile","-L","/gnu/store/jm5y2ys7fwasip9gy6pdv0pn5n= f1k49k-module-import","/gnu/store/dqbd35sjzmj1hb4s83p6x2k65dyh28xx-emacs-ne= xt-28.0.50-0.2ea3466-guile-builder"] ,[("GUILE_LOAD_COMPILED_PATH","/gnu/store/57arpl064shmcfnszyi93cm6xhpkm1sr= -module-import-compiled") ,("allowSubstitutes","0") ,("guix properties","((type . graft) (graft (count . 24)))") ,("out","/gnu/store/93hb0g731f64avayj8rdz26bz48xg2ri-emacs-next-28.0.50-= 0.2ea3466") ,("preferLocalBuild","1")]) --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- Derive ([("out","/gnu/store/9a8labbn5r7c6aavazvi9zhy75srxp0a-emacs-next-git.2ea346= 6","","")] ,[("/gnu/store/0914wj4m75qvn2wlxi5gw85dna6n2v7f-mesa-20.1.9.drv",["out"]) ,("/gnu/store/09224jzfa4albcdp321czpjxf6b7s9az-librsvg-2.40.21.drv",["ou= t"]) ,("/gnu/store/097awwm6ypakc4hgzak3nbhhnax1kb4n-dbus-1.12.16.drv",["out"]) [...] ,("/gnu/store/yshx9iapfwhk90wn3c1nw5jp1hqzx09x-util-linux-2.35.1.drv",["= lib"]) ,("/gnu/store/z7hfbdl9xrjjx1nq6v94xwq1ivy82zn3-fontconfig-2.13.1.drv",["= out"])] ,["/gnu/store/8qm8aklnh0937bvy9kpy8n7jy8nqwldj-guix-emacs.el","/gnu/store/= nqja2pn6mqyqq8gpvsp8jnjaz9cb71js-emacs-next-git.2ea3466-guile-builder","/gn= u/store/s48w5zmgchqp8rjl9z2bg8wb0v3j44gj--2ea3466","/gnu/store/ziqkzr6gbllc= 2rbp0cg18vmr02grf8xi-module-import"] ,"x86_64-linux","/gnu/store/0m0vd873jp61lcm4xa3ljdgx381qa782-guile-3.0.2/b= in/guile",["--no-auto-compile","-L","/gnu/store/ziqkzr6gbllc2rbp0cg18vmr02g= rf8xi-module-import","/gnu/store/nqja2pn6mqyqq8gpvsp8jnjaz9cb71js-emacs-nex= t-git.2ea3466-guile-builder"] ,[("GUILE_LOAD_COMPILED_PATH","/gnu/store/hr3djx0ls96i9llwqhi8abfk72nym0jv= -module-import-compiled") ,("out","/gnu/store/9a8labbn5r7c6aavazvi9zhy75srxp0a-emacs-next-git.2ea3= 466")]) --8<---------------cut here---------------end--------------->8--- Three things appears in the transformed build only: 1. util-linux-2.35.1.drv,["lib"] 2. guix-emacs.el 3. /gnu/store/s48w5zmgchqp8rjl9z2bg8wb0v3j44gj--2ea3466 Do I miss something? Is it Emacs specific because of =E2=80=99inherit=E2= =80=99? Or coming from the =E2=80=99transform=E2=80=99 option? All the best, simon
zimoun <zimon.toutoune@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#45308
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.