unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Failure with “guix copy“
@ 2022-08-20 10:16 zimoun
  2022-09-02 13:35 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: zimoun @ 2022-08-20 10:16 UTC (permalink / raw)
  To: Guix Devel

Hi,

Using Guix 65cabb0, I do not understand why ‘guix copy’ fails.


Well, I have some items in the store of my remote desktop machine.

--8<---------------cut here---------------start------------->8---
$ ssh desktop -t guix build hledger ghc-lucid
/gnu/store/f23gh2padz9xwsjgz5znfk9azn5l101z-ghc-lucid-2.9.12.1
/gnu/store/wp3h1iq4pyi65krglzmrqnr63jb3828s-ghc-lucid-2.9.12.1-static
/gnu/store/jknl1gncifkj8qv8j3vl9mnbnl9kniz9-hledger-1.21
/gnu/store/icybdxadks9qn3725r95i60q2fawk0k9-hledger-1.21-static
Connection to x.x.x.x closed.
--8<---------------cut here---------------end--------------->8---


Then, I am confused…

--8<---------------cut here---------------start------------->8---
$ guix copy --from=desktop hledger
The following derivations will be built:
  /gnu/store/gz1qzalbg3dzwvfvj81f13n8pd47rzw2-hledger-1.21.drv
  /gnu/store/9m71fs1i0anv89f5zq44hbh2wn2lavxz-ghc-lucid-2.9.12.1.drv
  /gnu/store/i62zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv
  /gnu/store/vhxlqj1d5pll79vfdi06wl77k5mx45vb-ghc-hledger-lib-1.21.drv
process 307420 acquired build slot '/var/guix/offload/x.x.x.x:22/0'
normalized load on machine 'x.x.x.x' is 0.01
building /gnu/store/vhxlqj1d5pll79vfdi06wl77k5mx45vb-ghc-hledger-lib-1.21.drv...
building /gnu/store/i62zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv...

Starting download of /gnu/store/rj33x41i86vgw6c0iwffzwrgzrib1shb-ghc-lucid-2.9.12.1-1.cabal
From https://hackage.haskell.org/package/lucid-2.9.12.1/revision/1.cabal...
downloading from https://hackage.haskell.org/package/lucid-2.9.12.1/revision/1.cabal ...

sha256 hash mismatch for /gnu/store/rj33x41i86vgw6c0iwffzwrgzrib1shb-ghc-lucid-2.9.12.1-1.cabal:
  expected hash: 1f0whk5ncanxfjjanrf6rqyncig2xgc5mh2j0sqy3nrlyjr9aqq9
  actual hash:   1xllyf26ypk37k807g5v6fl1449mhpvk18dljmqgwj723n0v8rpj
hash mismatch for store item '/gnu/store/rj33x41i86vgw6c0iwffzwrgzrib1shb-ghc-lucid-2.9.12.1-1.cabal'
build of /gnu/store/i62zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv failed
View build log at '/var/log/guix/drvs/i6/2zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv.gz'.
cannot build derivation `/gnu/store/9m71fs1i0anv89f5zq44hbh2wn2lavxz-ghc-lucid-2.9.12.1.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/gz1qzalbg3dzwvfvj81f13n8pd47rzw2-hledger-1.21.drv': 1 dependencies couldn't be built
guix copy: error: build of `/gnu/store/gz1qzalbg3dzwvfvj81f13n8pd47rzw2-hledger-1.21.drv' failed
--8<---------------cut here---------------end--------------->8---

Well, I was expecting that the items were just copied.  Why ‘guix copy’
tries to locally build something?

--8<---------------cut here---------------start------------->8---
$ guix copy --from=desktop ghc-lucid
The following derivations will be built:
  /gnu/store/9m71fs1i0anv89f5zq44hbh2wn2lavxz-ghc-lucid-2.9.12.1.drv
  /gnu/store/i62zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv
building /gnu/store/i62zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv...

Starting download of /gnu/store/rj33x41i86vgw6c0iwffzwrgzrib1shb-ghc-lucid-2.9.12.1-1.cabal
From https://hackage.haskell.org/package/lucid-2.9.12.1/revision/1.cabal...
downloading from https://hackage.haskell.org/package/lucid-2.9.12.1/revision/1.cabal ...
 1.cabal                                                                            3.6MiB/s 00:00 | 3KiB transferred
sha256 hash mismatch for /gnu/store/rj33x41i86vgw6c0iwffzwrgzrib1shb-ghc-lucid-2.9.12.1-1.cabal:
  expected hash: 1f0whk5ncanxfjjanrf6rqyncig2xgc5mh2j0sqy3nrlyjr9aqq9
  actual hash:   1xllyf26ypk37k807g5v6fl1449mhpvk18dljmqgwj723n0v8rpj
hash mismatch for store item '/gnu/store/rj33x41i86vgw6c0iwffzwrgzrib1shb-ghc-lucid-2.9.12.1-1.cabal'
build of /gnu/store/i62zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv failed
View build log at '/var/log/guix/drvs/i6/2zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv.gz'.
cannot build derivation `/gnu/store/9m71fs1i0anv89f5zq44hbh2wn2lavxz-ghc-lucid-2.9.12.1.drv': 1 dependencies couldn't be built
guix copy: error: build of `/gnu/store/9m71fs1i0anv89f5zq44hbh2wn2lavxz-ghc-lucid-2.9.12.1.drv' failed
--8<---------------cut here---------------end--------------->8---


What do I do wrong?  Thanks in advance for any comment.


Cheers,
simon


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Failure with “guix copy“
  2022-08-20 10:16 Failure with “guix copy“ zimoun
@ 2022-09-02 13:35 ` Ludovic Courtès
  2022-09-05 17:07   ` zimoun
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2022-09-02 13:35 UTC (permalink / raw)
  To: zimoun; +Cc: Guix Devel

Hi,

zimoun <zimon.toutoune@gmail.com> skribis:

> $ guix copy --from=desktop hledger
> The following derivations will be built:
>   /gnu/store/gz1qzalbg3dzwvfvj81f13n8pd47rzw2-hledger-1.21.drv
>   /gnu/store/9m71fs1i0anv89f5zq44hbh2wn2lavxz-ghc-lucid-2.9.12.1.drv
>   /gnu/store/i62zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv
>   /gnu/store/vhxlqj1d5pll79vfdi06wl77k5mx45vb-ghc-hledger-lib-1.21.drv
> process 307420 acquired build slot '/var/guix/offload/x.x.x.x:22/0'
> normalized load on machine 'x.x.x.x' is 0.01
> building /gnu/store/vhxlqj1d5pll79vfdi06wl77k5mx45vb-ghc-hledger-lib-1.21.drv...
> building /gnu/store/i62zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv...
>
> Starting download of /gnu/store/rj33x41i86vgw6c0iwffzwrgzrib1shb-ghc-lucid-2.9.12.1-1.cabal
> From https://hackage.haskell.org/package/lucid-2.9.12.1/revision/1.cabal...
> downloading from https://hackage.haskell.org/package/lucid-2.9.12.1/revision/1.cabal ...
>
> sha256 hash mismatch for /gnu/store/rj33x41i86vgw6c0iwffzwrgzrib1shb-ghc-lucid-2.9.12.1-1.cabal:
>   expected hash: 1f0whk5ncanxfjjanrf6rqyncig2xgc5mh2j0sqy3nrlyjr9aqq9
>   actual hash:   1xllyf26ypk37k807g5v6fl1449mhpvk18dljmqgwj723n0v8rpj
> hash mismatch for store item '/gnu/store/rj33x41i86vgw6c0iwffzwrgzrib1shb-ghc-lucid-2.9.12.1-1.cabal'
> build of /gnu/store/i62zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv failed
> View build log at '/var/log/guix/drvs/i6/2zr0ykqyxfwyc270csnhbwyrk3l3bb-ghc-lucid-2.9.12.1-1.cabal.drv.gz'.
> cannot build derivation `/gnu/store/9m71fs1i0anv89f5zq44hbh2wn2lavxz-ghc-lucid-2.9.12.1.drv': 1 dependencies couldn't be built
> cannot build derivation `/gnu/store/gz1qzalbg3dzwvfvj81f13n8pd47rzw2-hledger-1.21.drv': 1 dependencies couldn't be built
> guix copy: error: build of `/gnu/store/gz1qzalbg3dzwvfvj81f13n8pd47rzw2-hledger-1.21.drv' failed
>
>
> Well, I was expecting that the items were just copied.  Why ‘guix copy’
> tries to locally build something?

My guess: use ‘--no-grafts’ and it’ll copy the ungrafted package.

Otherwise, Guix starts by building the package so it can compute the
grafting derivation, at which point it’ll happily copy the grafted
variant from that other machine.  But that’s typically not what you
want.

I suppose we could do better, for instance by computing the derivation
on the remote store, though that can be a bit slow.

Ludo’.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Failure with “guix copy“
  2022-09-02 13:35 ` Ludovic Courtès
@ 2022-09-05 17:07   ` zimoun
  0 siblings, 0 replies; 3+ messages in thread
From: zimoun @ 2022-09-05 17:07 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix Devel

Hi Ludo,

On ven., 02 sept. 2022 at 15:35, Ludovic Courtès <ludo@gnu.org> wrote:

>> Well, I was expecting that the items were just copied.  Why ‘guix copy’
>> tries to locally build something?
>
> My guess: use ‘--no-grafts’ and it’ll copy the ungrafted package.

No, nothing is “grafted”. :-) Well, it is from a weird design of the
haskell-build-system applying a minor revision update via ’arguments’
and not via ’source’.  See the discussion here [1].

1: <https://yhetil.org/guix/87ilmk5q8q.fsf@gmail.com>


> Otherwise, Guix starts by building the package so it can compute the
> grafting derivation, at which point it’ll happily copy the grafted
> variant from that other machine.  But that’s typically not what you
> want.

What I want is just transfer ghc-lucid from one machine having it to
another.


Cheers,
simon





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-05 17:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-20 10:16 Failure with “guix copy“ zimoun
2022-09-02 13:35 ` Ludovic Courtès
2022-09-05 17:07   ` zimoun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).