“guix build racket” different from “guix shell racket”

  • Open
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Simon Tournier
Owner
unassigned
Submitted by
Simon Tournier
Severity
normal
S
S
Simon Tournier wrote on 8 Dec 2023 17:45
(address . bug-guix@gnu.org)
877clo8wyy.fsf@gmail.com
Hi,

Using Guix aabfddb (Oct 2023),

Toggle snippet (4 lines)
$ guix build racket-minimal --no-grafts -d
/gnu/store/hcdvhp36c51f6854mzggacsylkks24jj-racket-minimal-8.10.drv

Toggle snippet (8 lines)
$ guix shell racket-minimal --no-grafts --dry-run
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
The following derivations would be built:
/gnu/store/vy5y76f25ni3kxjfa8x6c3rjgvrvach1-profile.drv
/gnu/store/jxbm1inf8mj7fvs8z9xxxcrlqv9i1hs7-racket-minimal-8.10.drv

Well, the derivations are not the same and their output neither.

Toggle snippet (7 lines)
$ guix build /gnu/store/hcdvhp36c51f6854mzggacsylkks24jj-racket-minimal-8.10.drv
/gnu/store/rvvyiy90dh2dpwn52r84xx4rsvvijz8q-racket-minimal-8.10

$ guix build /gnu/store/jxbm1inf8mj7fvs8z9xxxcrlqv9i1hs7-racket-minimal-8.10.drv
/gnu/store/f2vky2mswm2h7w3jjiw7s28d25kzbmrl-racket-minimal-8.10

Hum?! Looking more closely, their builder reads,

From “guix build”:

(apply invoke racket
"/gnu/store/xgaj5m1yhyrc80jhx9djsvg4r7lgrz05-configure-layer.rkt"

From “guix shell”:

(apply invoke racket
"/gnu/store/3k9f2j9arycxd5r6fw1dpidj51pbv41n-configure-layer.rkt"

And the bug is:

Toggle snippet (6 lines)
$ diff \
/gnu/store/xgaj5m1yhyrc80jhx9djsvg4r7lgrz05-configure-layer.rkt \
/gnu/store/3k9f2j9arycxd5r6fw1dpidj51pbv41n-configure-layer.rkt
diff: /gnu/store/xgaj5m1yhyrc80jhx9djsvg4r7lgrz05-configure-layer.rkt: No such file or directory

Well, on more more recent revisions, e.g., 06f25a9a85, I am not able to
reproduce. Other said, I am not able to tell if the bug had been fixed
or if it is not hit.

Cheers,
simon
L
L
Ludovic Courtès wrote on 8 Dec 2023 19:08
Re: bug#67714: “guix build racket ” different from “guix shell racket”
(name . Simon Tournier)(address . zimon.toutoune@gmail.com)(address . 67714@debbugs.gnu.org)
87plzga7ok.fsf@gnu.org
Hi,

Simon Tournier <zimon.toutoune@gmail.com> skribis:

Toggle quote (21 lines)
> Using Guix aabfddb (Oct 2023),
>
> $ guix build racket-minimal --no-grafts -d
> /gnu/store/hcdvhp36c51f6854mzggacsylkks24jj-racket-minimal-8.10.drv
>
> $ guix shell racket-minimal --no-grafts --dry-run
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
> The following derivations would be built:
> /gnu/store/vy5y76f25ni3kxjfa8x6c3rjgvrvach1-profile.drv
> /gnu/store/jxbm1inf8mj7fvs8z9xxxcrlqv9i1hs7-racket-minimal-8.10.drv
>
>
> Well, the derivations are not the same and their output neither.
>
> $ guix build /gnu/store/hcdvhp36c51f6854mzggacsylkks24jj-racket-minimal-8.10.drv
> /gnu/store/rvvyiy90dh2dpwn52r84xx4rsvvijz8q-racket-minimal-8.10
>
> $ guix build /gnu/store/jxbm1inf8mj7fvs8z9xxxcrlqv9i1hs7-racket-minimal-8.10.drv
> /gnu/store/f2vky2mswm2h7w3jjiw7s28d25kzbmrl-racket-minimal-8.10

This is likely https://issues.guix.gnu.org/66662, fixed on Oct. 27th
with commit 67effc1560fc175dfbcb58ef5b965b08b3942d6c.

I guess we can close if it’s not reproducible now?

Thanks,
Ludo’.
S
S
Simon Tournier wrote on 8 Dec 2023 19:33
Re: bug#67714: “guix build racket” different fro m “guix shell racket”
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 67714-done@debbugs.gnu.org)
CAJ3okZ3vwSqbT7AVLenkegYYN99U_PBxPxFMA0H4JA_i47CwvQ@mail.gmail.com
Hi Ludo,

On Fri, 8 Dec 2023 at 19:08, Ludovic Courtès <ludo@gnu.org> wrote:

Toggle quote (3 lines)
> This is likely https://issues.guix.gnu.org/66662, fixed on Oct. 27th
> with commit 67effc1560fc175dfbcb58ef5b965b08b3942d6c.

Cool! Thanks for the quick answer. You saved me some investigation time. :-)

Toggle quote (2 lines)
> I guess we can close if it’s not reproducible now?

Yeah, done.

Cheers,
simon
Closed
S
S
Simon Tournier wrote on 11 Dec 2023 13:05
Re: bug#67714: “guix build racket ” different from “guix shell racket”
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 67714@debbugs.gnu.org)
87o7exlzah.fsf@gmail.com
Hi,

On ven., 08 déc. 2023 at 19:08, Ludovic Courtès <ludo@gnu.org> wrote:

Toggle quote (2 lines)
> I guess we can close if it’s not reproducible now?

Well, I reproduce the issue with my laptop using Guix 8e61e63 pulled on
Dec. 11th. Running “guix shell” launches the ’install’ phase when “guix
build” just fetches the substitute; see below.

From “guix shell”, the derivation builder reads:

(apply invoke racket "/gnu/store/ajvaxayiqk7wgzxxkwvkjn5cbi313f0m-configure-layer.rkt"

And from “guix build”, the derivation builder reads:

(apply invoke racket "/gnu/store/xgaj5m1yhyrc80jhx9djsvg4r7lgrz05-configure-layer.rkt"


Now, let checkout:

$ ./pre-inst-env guix describe
Git checkout:
repository: /home/simon/src/guix/guix/
branch: HEAD
commit: 8e61e6351510f5665d09c6debc0584b3ed218e73

Then, it just works:

Toggle snippet (19 lines)
$ ./pre-inst-env guix shell racket --no-grafts
The following derivation will be built:
/gnu/store/ylwx5qdv5lqjmd476fld8gzwv5ngw01p-profile.drv

0,2 MB will be downloaded
module-import-compiled 177KiB 646KiB/s 00:00 ???????????????????? 100.0%
building CA certificate bundle...
listing Emacs sub-directories...
building fonts directory...
generating GdkPixbuf loaders cache...
generating GLib schema cache...
creating GTK+ icon theme cache...
building cache files for GTK+ input methods...
building directory of Info manuals...
building XDG desktop file cache...
building XDG MIME database...
building profile with 1 package...

The profile derivation refers to the item:

/gnu/store/ygf3aip0r2fl8mjnanwf03sxbjmdr1qj-racket-8.10.drv

which compares to:

$ guix build racket -d --no-grafts
/gnu/store/ygf3aip0r2fl8mjnanwf03sxbjmdr1qj-racket-8.10.drv


Hum, the bug is probably trickier than I initially thought.

Cheers,
simon


Toggle snippet (80 lines)
$ guix shell chez-scheme racket guile --pure
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
9,9 MB will be downloaded
chez-scheme-9.5.8-doc 2.1MiB 763KiB/s 00:03 ???????????????????? 100.0%
chez-scheme-9.5.8 2.4MiB 600KiB/s 00:04 ???????????????????? 100.0%
cups-minimal-2.4.7 4.9MiB 711KiB/s 00:07 ???????????????????? 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
5,4 MB will be downloaded
cups-2.4.7 533KiB/s 00:11 | 5.5MiB transferred
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
The following derivations will be built:
/gnu/store/5wkp5xwbrn4qqyrnfk9v9vzaiahk3h4k-racket-8.10.drv
/gnu/store/ll9dxprspbjm2phqpbz58imgpiy9rbnr-racket-minimal-8.10.drv

26,6 MB will be downloaded
glu-9.0.2 265KiB 2.0MiB/s 00:00 ???????????????????? 100.0%
racket-vm-cs-8.10 25.1MiB 450KiB/s 00:57 ???????????????????? 100.0%
building /gnu/store/ll9dxprspbjm2phqpbz58imgpiy9rbnr-racket-minimal-8.10.drv...
building /gnu/store/5wkp5xwbrn4qqyrnfk9v9vzaiahk3h4k-racket-8.10.drv...
/ 'install' phase C-c C-c

$ guix build racket
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
125,7 MB will be downloaded:
/gnu/store/cbm1pbg9zgpj6wg9m0l0xjz72gi6cp8f-racket-minimal-8.10
/gnu/store/4bwp8syfwdlkzxbhx52i6l9yjfp1znkh-racket-8.10
substituting /gnu/store/cbm1pbg9zgpj6wg9m0l0xjz72gi6cp8f-racket-minimal-8.10...
downloading from https://ci.guix.gnu.org/nar/lzip/cbm1pbg9zgpj6wg9m0l0xjz72gi6cp8f-racket-minimal-8.10 ...
racket-minimal-8.10 11KiB 1.5MiB/s 00:00 ???????????????????? 100.0%

substituting /gnu/store/4bwp8syfwdlkzxbhx52i6l9yjfp1znkh-racket-8.10...
downloading from https://ci.guix.gnu.org/nar/zstd/4bwp8syfwdlkzxbhx52i6l9yjfp1znkh-racket-8.10 ...
racket-8.10 132.1MiB 440KiB/s 05:08 ???????????????????? 100.0%

The following grafts will be made:
/gnu/store/1cdi64z69h2fq1sdhzwqmhjqdir4yd90-racket-8.10.drv
/gnu/store/8w5mgd0s4lrjh541kq36k9i8fq2nsy35-glu-9.0.2.drv
/gnu/store/bg0ajbgqbvc8sxgj48grcqnmy4iq1kyr-racket-vm-cs-8.10.drv
/gnu/store/yknjcsgp0asimg2ik99d42q3xspsds96-lz4-1.9.3.drv
/gnu/store/i2p2k7v7l0cv6wrb7iafb9mhzccc7lj7-gtk+-3.24.37.drv
/gnu/store/0c6cyncz0g5yyx0rs63i1ymg6s3pphsw-cups-2.4.7.drv
/gnu/store/0qmw4vj1by85bmdj1l35iv9122pnnzjr-cups-filters-1.28.15.drv
/gnu/store/8vvbr8khaqg9v8in2b3g09y3yrxx6la7-cups-minimal-2.4.7.drv
/gnu/store/l5sjy9jn0ydlvgcsdwvndzp9jz2v0kcz-ghostscript-with-cups-9.56.1.drv
/gnu/store/vd49ihqmrf5jnmnmv6n5c8gyqdc30d2f-racket-minimal-8.10.drv
applying 3 grafts for glu-9.0.2 ...
grafting '/gnu/store/p6h3qkzh7azp0djcwhks6cr3z7jj3cmw-glu-9.0.2' -> '/gnu/store/n7df20wiwjmqj96cxrdgvydydd1z7k92-glu-9.0.2'...
successfully built /gnu/store/8w5mgd0s4lrjh541kq36k9i8fq2nsy35-glu-9.0.2.drv
applying 12 grafts for cups-minimal-2.4.7 ...
grafting '/gnu/store/jnbdnn8x1hr4smlxx53migv0bnzsc9m9-cups-minimal-2.4.7' -> '/gnu/store/97d4pyag67py10gzlj0j27wfc6sh862y-cups-minimal-2.4.7'...
successfully built /gnu/store/8vvbr8khaqg9v8in2b3g09y3yrxx6la7-cups-minimal-2.4.7.drv
applying 2 grafts for lz4-1.9.3 ...
grafting '/gnu/store/qym8x2bhabj79cqx51jihlz0hd7nkch0-lz4-1.9.3' -> '/gnu/store/h2i1rj2nn7hada0dhsqc5pm93343zydm-lz4-1.9.3'...
successfully built /gnu/store/yknjcsgp0asimg2ik99d42q3xspsds96-lz4-1.9.3.drv
applying 23 grafts for ghostscript-with-cups-9.56.1 ...
grafting '/gnu/store/l546pfngkkk0xb84j2svrvax3h4rcsdx-ghostscript-with-cups-9.56.1-doc' -> '/gnu/store/kvxbxpk2cg6y7lmr0aiq4gbxqq6nz80y-ghostscript-with-cups-9.56.1-doc'...
grafting '/gnu/store/1fv5dv221zcp1080p3kdxfsd6b10nllj-ghostscript-with-cups-9.56.1' -> '/gnu/store/h2jmnszansk01rsa40h7ws45mr89blrv-ghostscript-with-cups-9.56.1'...
successfully built /gnu/store/l5sjy9jn0ydlvgcsdwvndzp9jz2v0kcz-ghostscript-with-cups-9.56.1.drv
applying 5 grafts for racket-vm-cs-8.10 ...
grafting '/gnu/store/apxq5vmqqxlcxmqdndnwb6cshwnvm6yw-racket-vm-cs-8.10' -> '/gnu/store/nrzsbqijrphs9j5spy171rq0h6j5ngg1-racket-vm-cs-8.10'...
successfully built /gnu/store/bg0ajbgqbvc8sxgj48grcqnmy4iq1kyr-racket-vm-cs-8.10.drv
applying 29 grafts for cups-filters-1.28.15 ...
grafting '/gnu/store/7d64r375qwsvfqyx235p5zgh6dc133bj-cups-filters-1.28.15' -> '/gnu/store/p12dwhnqwa861lagmzvv2nnpqyxb4kxv-cups-filters-1.28.15'...
successfully built /gnu/store/0qmw4vj1by85bmdj1l35iv9122pnnzjr-cups-filters-1.28.15.drv
applying 9 grafts for racket-minimal-8.10 ...
grafting '/gnu/store/cbm1pbg9zgpj6wg9m0l0xjz72gi6cp8f-racket-minimal-8.10' -> '/gnu/store/h1s4211ym2xzfffxkrzsqx7qjyhwgb2y-racket-minimal-8.10'...
successfully built /gnu/store/vd49ihqmrf5jnmnmv6n5c8gyqdc30d2f-racket-minimal-8.10.drv
applying 16 grafts for cups-2.4.7 ...
grafting '/gnu/store/m3i72ximavwa480l4piv9zjfha4v639p-cups-2.4.7' -> '/gnu/store/414fi9w41yg776vi2pxam0x64xvwz8cm-cups-2.4.7'...
successfully built /gnu/store/0c6cyncz0g5yyx0rs63i1ymg6s3pphsw-cups-2.4.7.drv
applying 28 grafts for gtk+-3.24.37 ...
grafting '/gnu/store/6p5snzv6mkwkxpyr9cf1idi93lj5m8np-gtk+-3.24.37' -> '/gnu/store/bxcrh60vx2xg86p2lvddkyhxxxypk8p1-gtk+-3.24.37'...
successfully built /gnu/store/i2p2k7v7l0cv6wrb7iafb9mhzccc7lj7-gtk+-3.24.37.drv
applying 24 grafts for racket-8.10 ...
grafting '/gnu/store/4bwp8syfwdlkzxbhx52i6l9yjfp1znkh-racket-8.10' -> '/gnu/store/am5ilghrzkcyxpmbxdacdbijygvvbglp-racket-8.10'...
successfully built /gnu/store/1cdi64z69h2fq1sdhzwqmhjqdir4yd90-racket-8.10.drv
/gnu/store/am5ilghrzkcyxpmbxdacdbijygvvbglp-racket-8.10
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 67714@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 67714
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch