unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42410: Copying nars between stores fails for packages with multiple outputs
@ 2020-07-17 20:43 Leo Famulari
  2020-07-21 15:49 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2020-07-17 20:43 UTC (permalink / raw)
  To: 42410

Exporting a nar and importing it on another machine only works when the
package being built has a single output.

I set up a signing-key on the sending machine, authorized it on the
receiving machine, and successfully transferred some nars of
single-output packages. I say they succeeded because `guix build
--no-grafts foo` did not need to build foo after having imported the nar
archive built on the other machine.

However, it fails for packages with multiple outputs such as Syncthing
and libsmf.

I made sure both sides were trying to build the same derivation by using
`guix time-machine` and created the archives like this:

$ guix time-machine --commit=03f9a8c35be387f37badcd2c830ac7414ac17225 -- archive -r --no-grafts --export libsmf > ~/tmp/libsmf.nar




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

* bug#42410: Copying nars between stores fails for packages with multiple outputs
  2020-07-17 20:43 bug#42410: Copying nars between stores fails for packages with multiple outputs Leo Famulari
@ 2020-07-21 15:49 ` Ludovic Courtès
  2020-07-21 19:33   ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2020-07-21 15:49 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 42410

Hi,

Leo Famulari <leo@famulari.name> skribis:

> Exporting a nar and importing it on another machine only works when the
> package being built has a single output.

Note that “guix archive --export foo” only exports foo:out.  If you want
to export other outputs, you have to explicitly list them.

> I set up a signing-key on the sending machine, authorized it on the
> receiving machine, and successfully transferred some nars of
> single-output packages. I say they succeeded because `guix build
> --no-grafts foo` did not need to build foo after having imported the nar
> archive built on the other machine.

‘guix build’ starts building unless all the outputs of the package are
already in the store.

> However, it fails for packages with multiple outputs such as Syncthing
> and libsmf.

Could it be that you copied only one output of the package, and thus
‘guix build’ considered it had to build it because the other outputs
were missing?

Thanks,
Ludo’.




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

* bug#42410: Copying nars between stores fails for packages with multiple outputs
  2020-07-21 15:49 ` Ludovic Courtès
@ 2020-07-21 19:33   ` Leo Famulari
  0 siblings, 0 replies; 3+ messages in thread
From: Leo Famulari @ 2020-07-21 19:33 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 42410-done

On Tue, Jul 21, 2020 at 05:49:00PM +0200, Ludovic Courtès wrote:
> Hi,
> 
> Leo Famulari <leo@famulari.name> skribis:
> 
> > Exporting a nar and importing it on another machine only works when the
> > package being built has a single output.
> 
> Note that “guix archive --export foo” only exports foo:out.  If you want
> to export other outputs, you have to explicitly list them.
> 
> > I set up a signing-key on the sending machine, authorized it on the
> > receiving machine, and successfully transferred some nars of
> > single-output packages. I say they succeeded because `guix build
> > --no-grafts foo` did not need to build foo after having imported the nar
> > archive built on the other machine.
> 
> ‘guix build’ starts building unless all the outputs of the package are
> already in the store.
> 
> > However, it fails for packages with multiple outputs such as Syncthing
> > and libsmf.
> 
> Could it be that you copied only one output of the package, and thus
> ‘guix build’ considered it had to build it because the other outputs
> were missing?

Yes, that must be it! Thanks for your reply and I'll re-open this ticket
if necessary.




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

end of thread, other threads:[~2020-07-21 19:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 20:43 bug#42410: Copying nars between stores fails for packages with multiple outputs Leo Famulari
2020-07-21 15:49 ` Ludovic Courtès
2020-07-21 19:33   ` Leo Famulari

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).