GNU bug report logs - #75090
Make 'guix pack -f docker' tarballs reproducible?

Previous Next

Package: guix;

Reported by: Simon Josefsson <simon <at> josefsson.org>

Date: Wed, 25 Dec 2024 17:13:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 75090 <at> debbugs.gnu.org (full text, mbox):

From: Simon Josefsson <simon <at> josefsson.org>
To: Ludovic Courtès <ludo <at> gnu.org>,
 75426 <at> debbugs.gnu.org,  75090 <at> debbugs.gnu.org
Cc: Tobias Geerinckx-Rice <me <at> tobias.gr>, Christopher Baines <guix <at> cbaines.net>,
 Josselin Poiret <dev <at> jpoiret.xyz>, Simon Tournier <zimon.toutoune <at> gmail.com>,
 Mathieu Othacehe <othacehe <at> gnu.org>
Subject: Re: [bug#75426] [PATCH] docker: Build tarballs reproducibly.
Date: Wed, 29 Jan 2025 20:02:08 +0100
[Message part 1 (text/plain, inline)]
Hi!  I suspect something went wrong with this patch, now 'guix pack'
fail and give the error below.  Maybe the 'cf' has to come first?

https://gitlab.com/debdistutils/guix/container/-/jobs/8988707317

/Simon

tar: You must specify one of the '-Acdtrux', '--delete' or '--test-
label' options
Try 'tar --help' or 'tar --usage' for more information.
Backtrace:
           7 (primitive-load "/gnu/store/hyx3flr5r251fc3x0z0l6r36159?")
In guix/docker.scm:
    387:6  6 (build-docker-image "/gnu/store/vwia06dwxrsmf152spa6n2?"
?)
In ice-9/ports.scm:
   433:17  5 (call-with-output-file _ _ #:binary _ #:encoding _)
    476:4  4 (_ _)
In guix/docker.scm:
   277:15  3 (_)
In srfi/srfi-1.scm:
   586:17  2 (map1 ("/gnu/store/dn7ya77a3za7jqrihdql0hcxc0i32mmf-?" ?))
In guix/docker.scm:
   279:18  1 (_ "/gnu/store/dn7ya77a3za7jqrihdql0hcxc0i32mmf-guix-1.?")
In guix/build/utils.scm:
    822:6  0 (invoke "tar" "--mtime=@1" "--owner=0" "--group=0" "--?"
?)

guix/build/utils.scm:822:6: In procedure invoke:
ERROR:
  1. &invoke-error:
      program: "tar"
      arguments: ("--mtime=@1" "--owner=0" "--group=0" "--numeric-
owner" "--sort=name" "--mode=go+u,go-w" "cf" "layer.tar"
"/gnu/store/dn7ya77a3za7jqrihdql0hcxc0i32mmf-guix-1.4.0-31.121e96d")
      exit-status: 2
      term-signal: #f
      stop-signal: #f

lör 2025-01-25 klockan 00:07 +0100 skrev Ludovic Courtès:
> Ludovic Courtès <ludo <at> gnu.org> skribis:
> 
> > Fixes <https://issues.guix.gnu.org/75090>.
> > 
> > * guix/docker.scm (tar): New procedure.
> > (create-empty-tar, build-docker-image): Use it instead of calling
> > ‘invoke’ directly.
> > 
> > Reported-by: Simon Josefsson <simon <at> josefsson.org>
> > Change-Id: Ia899c43ed6a3809ff845de0953e3d38cccf24609
> 
> Pushed as 646202bf73f90de4f9b7cc66248b8f8e6e381014.
> 
> Ludo’.

[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 101 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.