X-Loop: help-debbugs@HIDDEN Subject: [bug#75426] [PATCH] docker: Build tarballs reproducibly. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix@HIDDEN, dev@HIDDEN, ludo@HIDDEN, othacehe@HIDDEN, zimon.toutoune@HIDDEN, me@HIDDEN, guix-patches@HIDDEN Resent-Date: Tue, 07 Jan 2025 22:57:01 +0000 Resent-Message-ID: <handler.75426.B.173629056815499 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 75426 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75426 <at> debbugs.gnu.org Cc: Simon Josefsson <simon@HIDDEN>, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN> X-Debbugs-Original-To: guix-patches@HIDDEN X-Debbugs-Original-Xcc: Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.173629056815499 (code B ref -1); Tue, 07 Jan 2025 22:57:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jan 2025 22:56:08 +0000 Received: from localhost ([127.0.0.1]:45078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tVIUZ-00041u-Jg for submit <at> debbugs.gnu.org; Tue, 07 Jan 2025 17:56:08 -0500 Received: from lists.gnu.org ([2001:470:142::17]:50074) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tVIUX-00041P-2n for submit <at> debbugs.gnu.org; Tue, 07 Jan 2025 17:56:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1tVIUQ-0002lg-Tx for guix-patches@HIDDEN; Tue, 07 Jan 2025 17:55:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1tVIUO-0007Re-Be; Tue, 07 Jan 2025 17:55:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=95NObh6fqcogC042OuqziYMeRYo1Q1US6fJm1qL3Zdw=; b=GvLiBiuy8J218j rPUFJbkw9RYErooMVmGe3MjbizIAs/NxJzNIwYWWUWYNWWMzhBsNzWZzz11XgHYsA0o7qQZ9seq8x huhYPZ2hP7tHyaW+g0VRUJsPQqSTxiaCzpYMt5tMUNlWskr8SH03S0hc8a68a93KHB44+WorM+NE7 cBqVK4ethAV7TIsZHtzuxn8gCfs/jP4DAHhA/VJzgYu32jOLMeyG89s9OqDUbifCwoSsy9APB/mQ3 x/bKoeAg7Svq0RruncB5hEQxZP7EGFU+MVsqmAb2ogeaMoXA8/+5KEHrqzXgBo0+SaUuIsoafM3aX ErWrYB23DVxKtyhqEpfw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Date: Tue, 7 Jan 2025 23:55:33 +0100 Message-ID: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) 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: -1.0 (-) 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@HIDDEN> Change-Id: Ia899c43ed6a3809ff845de0953e3d38cccf24609 --- guix/docker.scm | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/guix/docker.scm b/guix/docker.scm index b33c5824dd..d9764f61fb 100644 --- a/guix/docker.scm +++ b/guix/docker.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017 Ricardo Wurmus <rekado@HIDDEN> -;;; Copyright © 2017, 2018, 2019, 2021 Ludovic Courtès <ludo@HIDDEN> +;;; Copyright © 2017-2019, 2021, 2025 Ludovic Courtès <ludo@HIDDEN> ;;; Copyright © 2018 Chris Marusich <cmmarusich@HIDDEN> ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@HIDDEN> ;;; Copyright © 2023 Oleg Pykhalov <go.wigust@HIDDEN> @@ -170,8 +170,15 @@ (define (size-sorted-store-items items max-layers) (1- items-length))))) (list head tail))) +(define (tar . arguments) + "Invoke 'tar' with the given ARGUMENTS together with options to build +tarballs in a reproducible fashion." + (apply invoke "tar" "--mtime=@1" + "--owner=0" "--group=0" "--numeric-owner" + "--sort=name" "--mode=go+u,go-w" arguments)) + (define (create-empty-tar file) - (invoke "tar" "-cf" file "--files-from" "/dev/null")) + (tar "-cf" file "--files-from" "/dev/null")) (define* (build-docker-image image paths prefix #:key @@ -255,7 +262,7 @@ (define* (build-docker-image image paths prefix (file-name (string-append file-hash "/layer.tar"))) (mkdir file-hash) (rename-file "layer.tar" file-name) - (invoke "tar" "-rf" "image.tar" file-name) + (tar "-rf" "image.tar" file-name) (delete-file file-name) file-hash)) (define layers-hashes @@ -268,20 +275,20 @@ (define* (build-docker-image image paths prefix (let* ((head-layers (map (lambda (file) - (invoke "tar" "cf" "layer.tar" file) + (tar "cf" "layer.tar" file) (seal-layer)) head)) (tail-layer (begin (create-empty-tar "layer.tar") (for-each (lambda (file) - (invoke "tar" "-rf" "layer.tar" file)) + (tar "-rf" "layer.tar" file)) tail) (let* ((file-hash (layer-diff-id "layer.tar")) (file-name (string-append file-hash "/layer.tar"))) (mkdir file-hash) (rename-file "layer.tar" file-name) - (invoke "tar" "-rf" "image.tar" file-name) + (tar "-rf" "image.tar" file-name) (delete-file file-name) file-hash))) (customization-layer @@ -290,7 +297,7 @@ (define* (build-docker-image image paths prefix (file-name (string-append file-hash "/layer.tar"))) (mkdir file-hash) (rename-file file-id file-name) - (invoke "tar" "-rf" "image.tar" file-name) + (tar "-rf" "image.tar" file-name) file-hash)) (all-layers (append head-layers (list tail-layer customization-layer)))) @@ -300,7 +307,7 @@ (define* (build-docker-image image paths prefix (map (cut string-append <> "/layer.tar") all-layers) repository)))) - (invoke "tar" "-rf" "image.tar" "manifest.json") + (tar "-rf" "image.tar" "manifest.json") all-layers)))) (let* ((directory "/tmp/docker-image") ;temporary working directory (id (docker-id prefix)) @@ -388,7 +395,7 @@ (define* (build-docker-image image paths prefix #:entry-point entry-point)))) (if max-layers (begin - (invoke "tar" "-rf" "image.tar" "config.json") + (tar "-rf" "image.tar" "config.json") (if compressor (begin (apply invoke `(,@compressor "image.tar")) base-commit: eeb019eb595bbb29f83389deb2fc823ed6402dd5 -- 2.47.1
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Subject: bug#75426: Acknowledgement ([PATCH] docker: Build tarballs reproducibly.) Message-ID: <handler.75426.B.173629056815499.ack <at> debbugs.gnu.org> References: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> X-Gnu-PR-Message: ack 75426 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 75426 <at> debbugs.gnu.org Date: Tue, 07 Jan 2025 22:57:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. As you requested using X-Debbugs-CC, your message was also forwarded to Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>,= Ludovic Court=C3=A8s <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, = Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@tobias= .gr> (after having been given a bug report number, if it did not have one). Your message has been sent to the package maintainer(s): guix-patches@HIDDEN If you wish to submit further information on this problem, please send it to 75426 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 75426: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75426 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Subject: bug#75426: closed ([PATCH] docker: Build tarballs reproducibly.) CC: tracker <at> debbugs.gnu.org Message-ID: <handler.75426.D75426.17377600523056.ackdone <at> debbugs.gnu.org> References: <87wmejbyla.fsf@HIDDEN> <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> X-Gnu-PR-Message: closed 75426 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Date: Fri, 24 Jan 2025 23:08:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1737760083-3138-0" This is a multi-part message in MIME format... ------------=_1737760083-3138-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 25 Jan 2025 00:07:13 +0100 with message-id <87wmejbyla.fsf@HIDDEN> and subject line Re: [bug#75426] [PATCH] docker: Build tarballs reproducibl= y. has caused the debbugs.gnu.org bug report #75426, regarding [PATCH] docker: Build tarballs reproducibly. to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@HIDDEN) --=20 75426: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75426 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems ------------=_1737760083-3138-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Jan 2025 22:56:08 +0000 Received: from localhost ([127.0.0.1]:45078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tVIUZ-00041u-Jg for submit <at> debbugs.gnu.org; Tue, 07 Jan 2025 17:56:08 -0500 Received: from lists.gnu.org ([2001:470:142::17]:50074) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tVIUX-00041P-2n for submit <at> debbugs.gnu.org; Tue, 07 Jan 2025 17:56:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1tVIUQ-0002lg-Tx for guix-patches@HIDDEN; Tue, 07 Jan 2025 17:55:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1tVIUO-0007Re-Be; Tue, 07 Jan 2025 17:55:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=95NObh6fqcogC042OuqziYMeRYo1Q1US6fJm1qL3Zdw=; b=GvLiBiuy8J218j rPUFJbkw9RYErooMVmGe3MjbizIAs/NxJzNIwYWWUWYNWWMzhBsNzWZzz11XgHYsA0o7qQZ9seq8x huhYPZ2hP7tHyaW+g0VRUJsPQqSTxiaCzpYMt5tMUNlWskr8SH03S0hc8a68a93KHB44+WorM+NE7 cBqVK4ethAV7TIsZHtzuxn8gCfs/jP4DAHhA/VJzgYu32jOLMeyG89s9OqDUbifCwoSsy9APB/mQ3 x/bKoeAg7Svq0RruncB5hEQxZP7EGFU+MVsqmAb2ogeaMoXA8/+5KEHrqzXgBo0+SaUuIsoafM3aX ErWrYB23DVxKtyhqEpfw==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@HIDDEN> To: guix-patches@HIDDEN Subject: [PATCH] docker: Build tarballs reproducibly. Date: Tue, 7 Jan 2025 23:55:33 +0100 Message-ID: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN> Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit Cc: Simon Josefsson <simon@HIDDEN>, =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@HIDDEN> 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: -1.0 (-) 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@HIDDEN> Change-Id: Ia899c43ed6a3809ff845de0953e3d38cccf24609 --- guix/docker.scm | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/guix/docker.scm b/guix/docker.scm index b33c5824dd..d9764f61fb 100644 --- a/guix/docker.scm +++ b/guix/docker.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017 Ricardo Wurmus <rekado@HIDDEN> -;;; Copyright © 2017, 2018, 2019, 2021 Ludovic Courtès <ludo@HIDDEN> +;;; Copyright © 2017-2019, 2021, 2025 Ludovic Courtès <ludo@HIDDEN> ;;; Copyright © 2018 Chris Marusich <cmmarusich@HIDDEN> ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@HIDDEN> ;;; Copyright © 2023 Oleg Pykhalov <go.wigust@HIDDEN> @@ -170,8 +170,15 @@ (define (size-sorted-store-items items max-layers) (1- items-length))))) (list head tail))) +(define (tar . arguments) + "Invoke 'tar' with the given ARGUMENTS together with options to build +tarballs in a reproducible fashion." + (apply invoke "tar" "--mtime=@1" + "--owner=0" "--group=0" "--numeric-owner" + "--sort=name" "--mode=go+u,go-w" arguments)) + (define (create-empty-tar file) - (invoke "tar" "-cf" file "--files-from" "/dev/null")) + (tar "-cf" file "--files-from" "/dev/null")) (define* (build-docker-image image paths prefix #:key @@ -255,7 +262,7 @@ (define* (build-docker-image image paths prefix (file-name (string-append file-hash "/layer.tar"))) (mkdir file-hash) (rename-file "layer.tar" file-name) - (invoke "tar" "-rf" "image.tar" file-name) + (tar "-rf" "image.tar" file-name) (delete-file file-name) file-hash)) (define layers-hashes @@ -268,20 +275,20 @@ (define* (build-docker-image image paths prefix (let* ((head-layers (map (lambda (file) - (invoke "tar" "cf" "layer.tar" file) + (tar "cf" "layer.tar" file) (seal-layer)) head)) (tail-layer (begin (create-empty-tar "layer.tar") (for-each (lambda (file) - (invoke "tar" "-rf" "layer.tar" file)) + (tar "-rf" "layer.tar" file)) tail) (let* ((file-hash (layer-diff-id "layer.tar")) (file-name (string-append file-hash "/layer.tar"))) (mkdir file-hash) (rename-file "layer.tar" file-name) - (invoke "tar" "-rf" "image.tar" file-name) + (tar "-rf" "image.tar" file-name) (delete-file file-name) file-hash))) (customization-layer @@ -290,7 +297,7 @@ (define* (build-docker-image image paths prefix (file-name (string-append file-hash "/layer.tar"))) (mkdir file-hash) (rename-file file-id file-name) - (invoke "tar" "-rf" "image.tar" file-name) + (tar "-rf" "image.tar" file-name) file-hash)) (all-layers (append head-layers (list tail-layer customization-layer)))) @@ -300,7 +307,7 @@ (define* (build-docker-image image paths prefix (map (cut string-append <> "/layer.tar") all-layers) repository)))) - (invoke "tar" "-rf" "image.tar" "manifest.json") + (tar "-rf" "image.tar" "manifest.json") all-layers)))) (let* ((directory "/tmp/docker-image") ;temporary working directory (id (docker-id prefix)) @@ -388,7 +395,7 @@ (define* (build-docker-image image paths prefix #:entry-point entry-point)))) (if max-layers (begin - (invoke "tar" "-rf" "image.tar" "config.json") + (tar "-rf" "image.tar" "config.json") (if compressor (begin (apply invoke `(,@compressor "image.tar")) base-commit: eeb019eb595bbb29f83389deb2fc823ed6402dd5 -- 2.47.1 ------------=_1737760083-3138-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 75426-done) by debbugs.gnu.org; 24 Jan 2025 23:07:32 +0000 Received: from localhost ([127.0.0.1]:47439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tbSlv-0000nE-TN for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 18:07:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39926) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tbSln-0000mY-Q9; Fri, 24 Jan 2025 18:07:24 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1tbSlh-0007SO-5F; Fri, 24 Jan 2025 18:07:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=jEP95HRCFTBdwJyzZrsgv3dH5DByfJrQfcj/Bbca9uw=; b=BI/64vu7h23LBFQKC0yZ C8KYKThQTtfr0CHQAU+OO8J1+64AdDuXfacCeFSoDMfAThejCyBt/eTNHbfHnDHnUo+a7XoYNvvVF pf2PKIvXw66DwoiJOAjeDywzxuSQ5Pw3quClSIjRf2LGAmOmBo6HKFi0PdUIgXqbfV6Hev1nhmeUU HoC1koqLX4/MHUuahgFTETRC6idZf629CR0tWgkY3fJTo0GTRESEMBxHUsjgdj08jmJ0+pd1fgtaG MwViEJhYLnuNmsaBQgVQmQdfXAl03y53Se78mw4IIie9arRspB89giPe8fP9WKfUg4ftOREFx+eoI DfIId6MXa6IfgA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> To: 75426-done <at> debbugs.gnu.org, 75090-done <at> debbugs.gnu.org Subject: Re: [bug#75426] [PATCH] docker: Build tarballs reproducibly. In-Reply-To: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Tue, 7 Jan 2025 23:55:33 +0100") References: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> Date: Sat, 25 Jan 2025 00:07:13 +0100 Message-ID: <87wmejbyla.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 75426-done Cc: Simon Josefsson <simon@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>, Christopher Baines <guix@HIDDEN> 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 (---) Ludovic Court=C3=A8s <ludo@HIDDEN> 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 > =E2=80=98invoke=E2=80=99 directly. > > Reported-by: Simon Josefsson <simon@HIDDEN> > Change-Id: Ia899c43ed6a3809ff845de0953e3d38cccf24609 Pushed as 646202bf73f90de4f9b7cc66248b8f8e6e381014. Ludo=E2=80=99. ------------=_1737760083-3138-0--
MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Subject: bug#75426: closed (Re: [bug#75426] [PATCH] docker: Build tarballs reproducibly.) Message-ID: <handler.75426.D75426.17377600523056.notifdone <at> debbugs.gnu.org> References: <87wmejbyla.fsf@HIDDEN> <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> X-Gnu-PR-Message: they-closed 75426 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 75426 <at> debbugs.gnu.org Date: Fri, 24 Jan 2025 23:08:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1737760083-3138-1" This is a multi-part message in MIME format... ------------=_1737760083-3138-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #75426: [PATCH] docker: Build tarballs reproducibly. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 75426 <at> debbugs.gnu.org. --=20 75426: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75426 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems ------------=_1737760083-3138-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 75426-done) by debbugs.gnu.org; 24 Jan 2025 23:07:32 +0000 Received: from localhost ([127.0.0.1]:47439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tbSlv-0000nE-TN for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 18:07:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39926) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tbSln-0000mY-Q9; Fri, 24 Jan 2025 18:07:24 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1tbSlh-0007SO-5F; Fri, 24 Jan 2025 18:07:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=jEP95HRCFTBdwJyzZrsgv3dH5DByfJrQfcj/Bbca9uw=; b=BI/64vu7h23LBFQKC0yZ C8KYKThQTtfr0CHQAU+OO8J1+64AdDuXfacCeFSoDMfAThejCyBt/eTNHbfHnDHnUo+a7XoYNvvVF pf2PKIvXw66DwoiJOAjeDywzxuSQ5Pw3quClSIjRf2LGAmOmBo6HKFi0PdUIgXqbfV6Hev1nhmeUU HoC1koqLX4/MHUuahgFTETRC6idZf629CR0tWgkY3fJTo0GTRESEMBxHUsjgdj08jmJ0+pd1fgtaG MwViEJhYLnuNmsaBQgVQmQdfXAl03y53Se78mw4IIie9arRspB89giPe8fP9WKfUg4ftOREFx+eoI DfIId6MXa6IfgA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> To: 75426-done <at> debbugs.gnu.org, 75090-done <at> debbugs.gnu.org Subject: Re: [bug#75426] [PATCH] docker: Build tarballs reproducibly. In-Reply-To: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Tue, 7 Jan 2025 23:55:33 +0100") References: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> Date: Sat, 25 Jan 2025 00:07:13 +0100 Message-ID: <87wmejbyla.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 75426-done Cc: Simon Josefsson <simon@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>, Christopher Baines <guix@HIDDEN> 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 (---) Ludovic Court=C3=A8s <ludo@HIDDEN> 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 > =E2=80=98invoke=E2=80=99 directly. > > Reported-by: Simon Josefsson <simon@HIDDEN> > Change-Id: Ia899c43ed6a3809ff845de0953e3d38cccf24609 Pushed as 646202bf73f90de4f9b7cc66248b8f8e6e381014. Ludo=E2=80=99. ------------=_1737760083-3138-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Jan 2025 22:56:08 +0000 Received: from localhost ([127.0.0.1]:45078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tVIUZ-00041u-Jg for submit <at> debbugs.gnu.org; Tue, 07 Jan 2025 17:56:08 -0500 Received: from lists.gnu.org ([2001:470:142::17]:50074) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tVIUX-00041P-2n for submit <at> debbugs.gnu.org; Tue, 07 Jan 2025 17:56:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1tVIUQ-0002lg-Tx for guix-patches@HIDDEN; Tue, 07 Jan 2025 17:55:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1tVIUO-0007Re-Be; Tue, 07 Jan 2025 17:55:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=95NObh6fqcogC042OuqziYMeRYo1Q1US6fJm1qL3Zdw=; b=GvLiBiuy8J218j rPUFJbkw9RYErooMVmGe3MjbizIAs/NxJzNIwYWWUWYNWWMzhBsNzWZzz11XgHYsA0o7qQZ9seq8x huhYPZ2hP7tHyaW+g0VRUJsPQqSTxiaCzpYMt5tMUNlWskr8SH03S0hc8a68a93KHB44+WorM+NE7 cBqVK4ethAV7TIsZHtzuxn8gCfs/jP4DAHhA/VJzgYu32jOLMeyG89s9OqDUbifCwoSsy9APB/mQ3 x/bKoeAg7Svq0RruncB5hEQxZP7EGFU+MVsqmAb2ogeaMoXA8/+5KEHrqzXgBo0+SaUuIsoafM3aX ErWrYB23DVxKtyhqEpfw==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@HIDDEN> To: guix-patches@HIDDEN Subject: [PATCH] docker: Build tarballs reproducibly. Date: Tue, 7 Jan 2025 23:55:33 +0100 Message-ID: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN> Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit Cc: Simon Josefsson <simon@HIDDEN>, =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@HIDDEN> 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: -1.0 (-) 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@HIDDEN> Change-Id: Ia899c43ed6a3809ff845de0953e3d38cccf24609 --- guix/docker.scm | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/guix/docker.scm b/guix/docker.scm index b33c5824dd..d9764f61fb 100644 --- a/guix/docker.scm +++ b/guix/docker.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017 Ricardo Wurmus <rekado@HIDDEN> -;;; Copyright © 2017, 2018, 2019, 2021 Ludovic Courtès <ludo@HIDDEN> +;;; Copyright © 2017-2019, 2021, 2025 Ludovic Courtès <ludo@HIDDEN> ;;; Copyright © 2018 Chris Marusich <cmmarusich@HIDDEN> ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@HIDDEN> ;;; Copyright © 2023 Oleg Pykhalov <go.wigust@HIDDEN> @@ -170,8 +170,15 @@ (define (size-sorted-store-items items max-layers) (1- items-length))))) (list head tail))) +(define (tar . arguments) + "Invoke 'tar' with the given ARGUMENTS together with options to build +tarballs in a reproducible fashion." + (apply invoke "tar" "--mtime=@1" + "--owner=0" "--group=0" "--numeric-owner" + "--sort=name" "--mode=go+u,go-w" arguments)) + (define (create-empty-tar file) - (invoke "tar" "-cf" file "--files-from" "/dev/null")) + (tar "-cf" file "--files-from" "/dev/null")) (define* (build-docker-image image paths prefix #:key @@ -255,7 +262,7 @@ (define* (build-docker-image image paths prefix (file-name (string-append file-hash "/layer.tar"))) (mkdir file-hash) (rename-file "layer.tar" file-name) - (invoke "tar" "-rf" "image.tar" file-name) + (tar "-rf" "image.tar" file-name) (delete-file file-name) file-hash)) (define layers-hashes @@ -268,20 +275,20 @@ (define* (build-docker-image image paths prefix (let* ((head-layers (map (lambda (file) - (invoke "tar" "cf" "layer.tar" file) + (tar "cf" "layer.tar" file) (seal-layer)) head)) (tail-layer (begin (create-empty-tar "layer.tar") (for-each (lambda (file) - (invoke "tar" "-rf" "layer.tar" file)) + (tar "-rf" "layer.tar" file)) tail) (let* ((file-hash (layer-diff-id "layer.tar")) (file-name (string-append file-hash "/layer.tar"))) (mkdir file-hash) (rename-file "layer.tar" file-name) - (invoke "tar" "-rf" "image.tar" file-name) + (tar "-rf" "image.tar" file-name) (delete-file file-name) file-hash))) (customization-layer @@ -290,7 +297,7 @@ (define* (build-docker-image image paths prefix (file-name (string-append file-hash "/layer.tar"))) (mkdir file-hash) (rename-file file-id file-name) - (invoke "tar" "-rf" "image.tar" file-name) + (tar "-rf" "image.tar" file-name) file-hash)) (all-layers (append head-layers (list tail-layer customization-layer)))) @@ -300,7 +307,7 @@ (define* (build-docker-image image paths prefix (map (cut string-append <> "/layer.tar") all-layers) repository)))) - (invoke "tar" "-rf" "image.tar" "manifest.json") + (tar "-rf" "image.tar" "manifest.json") all-layers)))) (let* ((directory "/tmp/docker-image") ;temporary working directory (id (docker-id prefix)) @@ -388,7 +395,7 @@ (define* (build-docker-image image paths prefix #:entry-point entry-point)))) (if max-layers (begin - (invoke "tar" "-rf" "image.tar" "config.json") + (tar "-rf" "image.tar" "config.json") (if compressor (begin (apply invoke `(,@compressor "image.tar")) base-commit: eeb019eb595bbb29f83389deb2fc823ed6402dd5 -- 2.47.1 ------------=_1737760083-3138-1--
X-Loop: help-debbugs@HIDDEN Subject: [bug#75426] [PATCH] docker: Build tarballs reproducibly. Resent-From: Simon Josefsson <simon@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Wed, 29 Jan 2025 19:03:02 +0000 Resent-Message-ID: <handler.75426.B75426.173817734020348 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75426 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 75426 <at> debbugs.gnu.org, 75090 <at> debbugs.gnu.org Cc: Tobias Geerinckx-Rice <me@HIDDEN>, Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN> Received: via spool by 75426-submit <at> debbugs.gnu.org id=B75426.173817734020348 (code B ref 75426); Wed, 29 Jan 2025 19:03:02 +0000 Received: (at 75426) by debbugs.gnu.org; 29 Jan 2025 19:02:20 +0000 Received: from localhost ([127.0.0.1]:43062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tdDKN-0005I6-F2 for submit <at> debbugs.gnu.org; Wed, 29 Jan 2025 14:02:19 -0500 Received: from uggla.sjd.se ([2001:9b1:8633::107]:52956) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <simon@HIDDEN>) id 1tdDKJ-0005Ho-AM; Wed, 29 Jan 2025 14:02:17 -0500 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2303; h=MIME-Version:Content-Type:References:In-Reply-To :Date:Cc:To:From:Subject:Message-ID:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description; bh=TQkh6f53b4QYsjKn0I6wUY+tAXwu2SARcbmQ483hzZs=; t=1738177335; x=1739386935; b=dizaJWmrAR84GMZz61MiRw4zn76gN/7fmFMBOtMDzL8PHcumRbxydA2iBJ5PKHu8e97QwNOsmUi UrEpP2OJjAA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2303; h=MIME-Version:Content-Type:References: In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TQkh6f53b4QYsjKn0I6wUY+tAXwu2SARcbmQ483hzZs=; t=1738177335; x=1739386935; b=OJzEq9E7WqnW/7tdUNjfpCM3WFwcHKo6m9LGl+WvR/wuIcseu7L0kx014IE9QWoIQoIaycToNRA y1G81MwlmvO9hagwQ2I7ApultSeYjDfzxwaXHTx3j4ROHADM9b3Qij+/v9mBqGaHz/fxv+9g8qVfK YNlg2jmZZ7wcg7GukqnF/14lYJsvOrTietynh98GPCSS1uOJlzRqYlkjfOC0FuqoA32M+c/ELsz+f /WZd+HCbKKxj9klmpPy8HI4yyJkrvWWCg4I4mQisDtJzP+LIgreE3b57Wo64WS+msHSzHrgAB72GR XabulGkGya7qPMAQGci0JrdNPNdT4knV7THBM0uVDMrV6MQpOJ0/dOe6B8JmXWMfekCORK6FJ5U/V Fmf/Sf4iKm2H5q+q2rG31pCobJ81DpW8fqn8HgEg1Ekz+h5mc4s5mTsUyXklSFD8/+z45SwoN; Received: from h-178-174-130-130.a498.priv.bahnhof.se ([178.174.130.130]:59436 helo=kaka.lan) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <simon@HIDDEN>) id 1tdDKG-0004F2-GP; Wed, 29 Jan 2025 19:02:12 +0000 Message-ID: <7d999f7dfcfe6c2321e2456f60d43d30715b25f1.camel@HIDDEN> From: Simon Josefsson <simon@HIDDEN> Date: Wed, 29 Jan 2025 20:02:08 +0100 In-Reply-To: <87wmejbyla.fsf@HIDDEN> References: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> <87wmejbyla.fsf@HIDDEN> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-NOp2ufHIJpR2+0TQJANV" User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 X-Spam-Score: -2.3 (--) 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 (---) --=-NOp2ufHIJpR2+0TQJANV Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D@1" "--owner=3D0" "--group=3D0" "--?" ?) guix/build/utils.scm:822:6: In procedure invoke: ERROR: 1. &invoke-error: program: "tar" arguments: ("--mtime=3D@1" "--owner=3D0" "--group=3D0" "--numeric- owner" "--sort=3Dname" "--mode=3Dgo+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=C3=B6r 2025-01-25 klockan 00:07 +0100 skrev Ludovic Court=C3=A8s: > Ludovic Court=C3=A8s <ludo@HIDDEN> skribis: >=20 > > Fixes <https://issues.guix.gnu.org/75090>. > >=20 > > * guix/docker.scm (tar): New procedure. > > (create-empty-tar, build-docker-image): Use it instead of calling > > =E2=80=98invoke=E2=80=99 directly. > >=20 > > Reported-by: Simon Josefsson <simon@HIDDEN> > > Change-Id: Ia899c43ed6a3809ff845de0953e3d38cccf24609 >=20 > Pushed as 646202bf73f90de4f9b7cc66248b8f8e6e381014. >=20 > Ludo=E2=80=99. --=-NOp2ufHIJpR2+0TQJANV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQNTBAAWCAL7FiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmeaezDCHCYAmDMEXJLO tBYJKwYBBAHaRw8BAQdACIcrZIvhrxDBkK9fV+QlTmXxo2naObDuGtw58YaxlOu0 JVNpbW9uIEpvc2Vmc3NvbiA8c2ltb25Aam9zZWZzc29uLm9yZz6IlgQTFggAPgIb AwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgBYhBLHSvRN1vst4TPT4xNc89jjFPAa+ BQJl/YgIBQkLehFUAAoJENc89jjFPAa+CboA+wUa06RD5e5VTCxvSWtPS75Wq2qB eYGZnf0jvUMxa2n4AP4xkUeAPPnNuMsTm2fsFCDIGaEM2Yn6Vb2huzzT1Fw/BLgz BFySz4EWCSsGAQQB2kcPAQEHQOxTCIOaeXAxI2hIX4HK9bQTpNVei708oNr1Klm8 qCGKiPUEGBYIACYCGwIWIQSx0r0Tdb7LeEz0+MTXPPY4xTwGvgUCZf2IKwUJC3oQ qgCBdiAEGRYIAB0WIQSjzJyHC50xCrrUzy9RcisI/kdFogUCXJLPgQAKCRBRcisI /kdFoqdMAQCgH45aseZgIrwKOvUOA9QfsmeE8GZHYNuFHmM9FEQS6AD6A4x5aYvo Y6lo98pgtw2HPDhmcCXFItjXCrV4A0GmJA4JENc89jjFPAa+GcYA/26YQY05bLtn XiIjTiAzrGQrRXxTHPA8Av7TDFHvIetWAP9sHSoU8OfTwmTiEnGwLlsV7QJclZg3 YNz/Ypcp9TqQBrg4BFySz2oSCisGAQQBl1UBBQEBB0AxlRumDW6nZY7A+VCfek9V pEx6PJmdJyYPt3lNHMd6HAMBCAeIfgQYFggAJgIbDBYhBLHSvRN1vst4TPT4xNc8 9jjFPAa+BQJl/YgwBQkLehDGAAoJENc89jjFPAa+phoA/jrDqIrl/55vUMBhIQv+ TP635d2iCTEnyFmbUcP9+gh6APoDsXalVd2cOGxQtSC+TF8PkZMn1TLkJKAjVxr+ xx40AgAKCRBRcisI/kdFon8rAQDjyuNawr7l9rVVvvJF1/v9Ys8YEAguZBykLjXr AlsSSQEAtr4WUwktnqhpoYgQ5/7RE9jq/sIOWEo1C42H9HzUtAE= =Bo2J -----END PGP SIGNATURE----- --=-NOp2ufHIJpR2+0TQJANV--
X-Loop: help-debbugs@HIDDEN Subject: [bug#75426] [PATCH] docker: Build tarballs reproducibly. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Fri, 31 Jan 2025 16:14:01 +0000 Resent-Message-ID: <handler.75426.B75426.173833999030958 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75426 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon Josefsson <simon@HIDDEN> Cc: Josselin Poiret <dev@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>, 75090 <at> debbugs.gnu.org, 75426 <at> debbugs.gnu.org, Christopher Baines <guix@HIDDEN> Received: via spool by 75426-submit <at> debbugs.gnu.org id=B75426.173833999030958 (code B ref 75426); Fri, 31 Jan 2025 16:14:01 +0000 Received: (at 75426) by debbugs.gnu.org; 31 Jan 2025 16:13:10 +0000 Received: from localhost ([127.0.0.1]:53953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tdtdl-00083G-IV for submit <at> debbugs.gnu.org; Fri, 31 Jan 2025 11:13:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58012) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tdtda-00082I-EB; Fri, 31 Jan 2025 11:12:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1tdtdT-00082H-Vx; Fri, 31 Jan 2025 11:12:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=jU4RNiuTXFtC9LmeXzklMp255mVhYOvozbmH129z4z0=; b=DqZAp8NpPoGcypk43UMp xvQ9z0Xc9YxRMTwLo2HJ6X/NYJ7495+QpaX5Wqy/QmgDLsMaTtSgtE67jqt14yDQfQCnyiQis29XC sCUzDsXHsTizievutYEbwd4lu+QWmzPTEUXzQAaJH3GP8IzjA0YIvRa2vD+jtm7f6S1QqKXhyOLEQ HJlIE59s6p6dDnh/4ickUpgOUcPG2PavD17Oyw73SIqqTC0UOx98AgRmjG/3XAVImSriMHe8vzSwb MIhkiA8l6ZG3dTwwXn/rvSEDuMmkfQmXrgNr7D+KwnEE78ZD+QltGYVWQnKDF3I8HfuFpFpbyOPWd 2x4eGrJTPNnlpA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> In-Reply-To: <7d999f7dfcfe6c2321e2456f60d43d30715b25f1.camel@HIDDEN> (Simon Josefsson's message of "Wed, 29 Jan 2025 20:02:08 +0100") References: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> <87wmejbyla.fsf@HIDDEN> <7d999f7dfcfe6c2321e2456f60d43d30715b25f1.camel@HIDDEN> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 12 =?UTF-8?Q?Pluvi=C3=B4se?= an 233 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Brocoli 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, 31 Jan 2025 17:12:47 +0100 Message-ID: <87ed0jc680.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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, Simon Josefsson <simon@HIDDEN> skribis: > 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 > tar: You must specify one of the '-Acdtrux', '--delete' or '--test-label'= options > Try 'tar --help' or 'tar --usage' for more information. Hmm I don=E2=80=99t see this message in the GitLab log above, and I cannot reproduce the problem: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix pack -f docker sed /gnu/store/h2hdp469v3014b82qsvz5fkw00sfxdgh-sed-docker-pack.tar.gz $ git log |head -3 commit 97fb1887ad10000c067168176c504274e29e4430 Author: Ashish SHUKLA <ashish.is@HIDDEN> Date: Mon Jan 20 21:46:10 2025 +0000 --8<---------------cut here---------------end--------------->8--- Could you try to come up with a command and commit that reproduces it? Thanks, Ludo=E2=80=99.
X-Loop: help-debbugs@HIDDEN Subject: [bug#75426] [PATCH] docker: Build tarballs reproducibly. Resent-From: Simon Josefsson <simon@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Fri, 31 Jan 2025 22:45:02 +0000 Resent-Message-ID: <handler.75426.B75426.17383634775108 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75426 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Cc: Josselin Poiret <dev@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>, 75090 <at> debbugs.gnu.org, 75426 <at> debbugs.gnu.org, Christopher Baines <guix@HIDDEN> Received: via spool by 75426-submit <at> debbugs.gnu.org id=B75426.17383634775108 (code B ref 75426); Fri, 31 Jan 2025 22:45:02 +0000 Received: (at 75426) by debbugs.gnu.org; 31 Jan 2025 22:44:37 +0000 Received: from localhost ([127.0.0.1]:55312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tdzka-0001KJ-VG for submit <at> debbugs.gnu.org; Fri, 31 Jan 2025 17:44:37 -0500 Received: from uggla.sjd.se ([2001:9b1:8633::107]:54282) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <simon@HIDDEN>) id 1tdzkX-0001K5-Hy; Fri, 31 Jan 2025 17:44:35 -0500 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2303; h=MIME-Version:Content-Type:References:In-Reply-To :Date:Cc:To:From:Subject:Message-ID:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description; bh=TGFLJl4n7SPy/dNViWAbBzTHK5e3hd3R5Pg9VvCG488=; t=1738363472; x=1739573072; b=W5g6OvUBZwKEzGG0MfmNSRNMWysnkgdHoUM6V2JE9cEjrrR5oThWr1656GGxtcdhNnJTDTz4dSG 6Kf/CWrl1Dw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2303; h=MIME-Version:Content-Type:References: In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TGFLJl4n7SPy/dNViWAbBzTHK5e3hd3R5Pg9VvCG488=; t=1738363472; x=1739573072; b=uH8hEdJ+/zsIqOcBHVcxo/hYw/Z/73B2Ujv6ifLZ9eAANHY3gwCkD2mNyRJsbQqf9GMLUzdyaex C/otE+KkQrlLu0eeXD+33lzBqEq+wpYOWXeIfP0AZDQD7QoRiKrObKdVzang9sj/1/W2GNtqPbhgl 7vwMeXioS2jpF7JVKHCTg79i5l2wnhu/wDaNzzuJ7h1a2189RJUhL7/P84mihciEkWwB1xL3ef9l/ ViuF0q3oEqEXbIMigua2ZOj8QUa1ZreMFaHnax5EeCArc6A30PafJTfwyasjCnaAvXEq4kqeYzmEk WBkiMHAyUaKNgel/MLNhBOHiDfFhEfknTbaX9oJWNqw2hu/xoU2LxlmvcO84EFPiBO9z2QTMGdS3R LzFbrztH1NEcDrherPCZ+b24wKgmVj5jvaxt3qluUPIDnaiXB42507m5B/3S789y2L7V62pnt; Received: from [94.107.214.68] (port=59598 helo=[172.16.227.183]) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <simon@HIDDEN>) id 1tdzkQ-000x8W-RQ; Fri, 31 Jan 2025 22:44:26 +0000 Message-ID: <8c6aa44b639b28a35ecb6c9d1bc393b734e17f55.camel@HIDDEN> From: Simon Josefsson <simon@HIDDEN> Date: Fri, 31 Jan 2025 23:44:18 +0100 In-Reply-To: <87ed0jc680.fsf@HIDDEN> References: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> <87wmejbyla.fsf@HIDDEN> <7d999f7dfcfe6c2321e2456f60d43d30715b25f1.camel@HIDDEN> <87ed0jc680.fsf@HIDDEN> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-gJ90Tkrcfc92v0GxL1uI" User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 X-Spam-Score: -2.3 (--) 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 (---) --=-gJ90Tkrcfc92v0GxL1uI Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable fre 2025-01-31 klockan 17:12 +0100 skrev Ludovic Court=C3=A8s: > Hi, >=20 > Simon Josefsson <simon@HIDDEN> skribis: >=20 > > Hi!=C2=A0 I suspect something went wrong with this patch, now 'guix > > pack' > > fail and give the error below.=C2=A0 Maybe the 'cf' has to come first? > >=20 > > https://gitlab.com/debdistutils/guix/container/-/jobs/8988707317 >=20 > > tar: You must specify one of the '-Acdtrux', '--delete' or '--test- > > label' options > > Try 'tar --help' or 'tar --usage' for more information. >=20 > Hmm I don=E2=80=99t see this message in the GitLab log above, and I canno= t > reproduce the problem: >=20 > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guix pack -f docker sed > /gnu/store/h2hdp469v3014b82qsvz5fkw00sfxdgh-sed-docker-pack.tar.gz > $ git log |head -3 > commit 97fb1887ad10000c067168176c504274e29e4430 > Author: Ashish SHUKLA <ashish.is@HIDDEN> > Date:=C2=A0=C2=A0 Mon Jan 20 21:46:10 2025 +0000 > --8<---------------cut here---------------end--------------->8--- >=20 > Could you try to come up with a command and commit that reproduces > it? Running the commands in the log like below on my local trisquel machine with guix triggers the same problem. Any ideas? (FWIW, the message is hidden inside the log, but the error and filename of the log is printed in the gitlab log above, same as below; it is possible to click on 'Job artifacts' to find the log files.) /Simon jas@kaka:~$ guix describe Generation 26 31 jan 2025 23:37:27 (aktuell) guix d48da2d repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: d48da2d21610f9cf5f76cd846703b12beedb1fd5 jas@kaka:~$ guix pack coreutils --save-provenance -S /bin=3Dbin -S /share=3Dshare -f docker --image-tag=3Dguix --max-layers=3D8 --verbosity=3D= 2 net-base The following derivation will be built: /gnu/store/qkz6wc1qq23ah1xk387givjvk9qlgwcn-coreutils-net-base- docker-pack.tar.gz.drv bygger /gnu/store/qkz6wc1qq23ah1xk387givjvk9qlgwcn-coreutils-net-base- docker-pack.tar.gz.drv=E2=80=A6 |builder for `/gnu/store/qkz6wc1qq23ah1xk387givjvk9qlgwcn-coreutils- net-base-docker-pack.tar.gz.drv' failed with exit code 1 bygge av /gnu/store/qkz6wc1qq23ah1xk387givjvk9qlgwcn-coreutils-net- base-docker-pack.tar.gz.drv misslyckades Granska bygglogg vid =E2=80=9D/var/log/guix/drvs/qk/z6wc1qq23ah1xk387givjvk9qlgwcn-coreutils-net= - base-docker-pack.tar.gz.drv.bz2=E2=80=9D. guix pack: fel: build of `/gnu/store/qkz6wc1qq23ah1xk387givjvk9qlgwcn- coreutils-net-base-docker-pack.tar.gz.drv' failed jas@kaka:~$ bzcat /var/log/guix/drvs/qk/z6wc1qq23ah1xk387givjvk9qlgwcn- coreutils-net-base-docker-pack.tar.gz.drv.bz2 | tail -30 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/5z5322v39y5mwninj36m877zgsx?") In guix/docker.scm: 387:6 6 (build-docker-image "/gnu/store/8ac4lljjiqp3a7zydh6l9v?" ?) 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/hw6g2kjayxnqi8rwpnmpraalxi0djkxc-?" ?)) In guix/docker.scm: 279:18 1 (_ "/gnu/store/hw6g2kjayxnqi8rwpnmpraalxi0djkxc-glibc-2?") In guix/build/utils.scm: 822:6 0 (invoke "tar" "--mtime=3D@1" "--owner=3D0" "--group=3D0" "--?" ?) guix/build/utils.scm:822:6: In procedure invoke: ERROR: 1. &invoke-error: program: "tar" arguments: ("--mtime=3D@1" "--owner=3D0" "--group=3D0" "--numeric- owner" "--sort=3Dname" "--mode=3Dgo+u,go-w" "cf" "layer.tar" "/gnu/store/hw6g2kjayxnqi8rwpnmpraalxi0djkxc-glibc-2.39") exit-status: 2 term-signal: #f stop-signal: #f jas@kaka:~$=20 --=-gJ90Tkrcfc92v0GxL1uI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQNTBAAWCAL7FiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmedUkLCHCYAmDMEXJLO tBYJKwYBBAHaRw8BAQdACIcrZIvhrxDBkK9fV+QlTmXxo2naObDuGtw58YaxlOu0 JVNpbW9uIEpvc2Vmc3NvbiA8c2ltb25Aam9zZWZzc29uLm9yZz6IlgQTFggAPgIb AwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgBYhBLHSvRN1vst4TPT4xNc89jjFPAa+ BQJl/YgIBQkLehFUAAoJENc89jjFPAa+CboA+wUa06RD5e5VTCxvSWtPS75Wq2qB eYGZnf0jvUMxa2n4AP4xkUeAPPnNuMsTm2fsFCDIGaEM2Yn6Vb2huzzT1Fw/BLgz BFySz4EWCSsGAQQB2kcPAQEHQOxTCIOaeXAxI2hIX4HK9bQTpNVei708oNr1Klm8 qCGKiPUEGBYIACYCGwIWIQSx0r0Tdb7LeEz0+MTXPPY4xTwGvgUCZf2IKwUJC3oQ qgCBdiAEGRYIAB0WIQSjzJyHC50xCrrUzy9RcisI/kdFogUCXJLPgQAKCRBRcisI /kdFoqdMAQCgH45aseZgIrwKOvUOA9QfsmeE8GZHYNuFHmM9FEQS6AD6A4x5aYvo Y6lo98pgtw2HPDhmcCXFItjXCrV4A0GmJA4JENc89jjFPAa+GcYA/26YQY05bLtn XiIjTiAzrGQrRXxTHPA8Av7TDFHvIetWAP9sHSoU8OfTwmTiEnGwLlsV7QJclZg3 YNz/Ypcp9TqQBrg4BFySz2oSCisGAQQBl1UBBQEBB0AxlRumDW6nZY7A+VCfek9V pEx6PJmdJyYPt3lNHMd6HAMBCAeIfgQYFggAJgIbDBYhBLHSvRN1vst4TPT4xNc8 9jjFPAa+BQJl/YgwBQkLehDGAAoJENc89jjFPAa+phoA/jrDqIrl/55vUMBhIQv+ TP635d2iCTEnyFmbUcP9+gh6APoDsXalVd2cOGxQtSC+TF8PkZMn1TLkJKAjVxr+ xx40AgAKCRBRcisI/kdFomMNAP9iFnOeQBF/dBlP58EgXcWDcpLc2GUBHLcLoT/a NkRfmwD/XXlq+0hZKEAMSq7DmD1A47vi2xyEJRL9Ha5upWAcpw4= =lQ1C -----END PGP SIGNATURE----- --=-gJ90Tkrcfc92v0GxL1uI--
X-Loop: help-debbugs@HIDDEN Subject: [bug#75426] [PATCH] docker: Build tarballs reproducibly. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Tue, 04 Feb 2025 16:24:02 +0000 Resent-Message-ID: <handler.75426.B75426.17386861973041 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75426 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon Josefsson <simon@HIDDEN> Cc: Josselin Poiret <dev@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>, 75090 <at> debbugs.gnu.org, 75426 <at> debbugs.gnu.org, Christopher Baines <guix@HIDDEN> Received: via spool by 75426-submit <at> debbugs.gnu.org id=B75426.17386861973041 (code B ref 75426); Tue, 04 Feb 2025 16:24:02 +0000 Received: (at 75426) by debbugs.gnu.org; 4 Feb 2025 16:23:17 +0000 Received: from localhost ([127.0.0.1]:46383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tfLhk-0000mz-P4 for submit <at> debbugs.gnu.org; Tue, 04 Feb 2025 11:23:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40906) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tfLhi-0000mi-Ll; Tue, 04 Feb 2025 11:23:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1tfLhc-0001cf-6d; Tue, 04 Feb 2025 11:23:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Qd1Op0aBrLejLpf/dbyCjKoUQGSSZlZ5HdfYYA5W/pM=; b=G2Z/YHrD0/2Pv0W/C8Fr m71CGUQJNYTRSUbesG42Ykn++QR968x4+2EvdigWUPe/Y8TA5u3r5w3AEg3IZ0lSBrDRZz5whduju DAkOy07in/saoqhFS+QRErPfVCJ4Q4QcEMMpva/MlL19Olb7BfE0BoEqxxgCYaXTQHnnT2yBiFAsT HoGLcNjINIp/A52Xijq/MJD3HQWzFQBBlQFG/2K+HL/Q5+rY8tYO6mEVzJQaauWsY0zV0mpBP1tnF U8UWXunGzy73JYN/SLWB/iN67d2r6YgMjY30HuJVVbwHW6KXiInGC1UoJt5Z51kPPWIurx5tEuFeN vsl5AQeHixgL8A==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> In-Reply-To: <8c6aa44b639b28a35ecb6c9d1bc393b734e17f55.camel@HIDDEN> (Simon Josefsson's message of "Fri, 31 Jan 2025 23:44:18 +0100") References: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> <87wmejbyla.fsf@HIDDEN> <7d999f7dfcfe6c2321e2456f60d43d30715b25f1.camel@HIDDEN> <87ed0jc680.fsf@HIDDEN> <8c6aa44b639b28a35ecb6c9d1bc393b734e17f55.camel@HIDDEN> Date: Tue, 04 Feb 2025 17:23:03 +0100 Message-ID: <8734gty908.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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 (---) Hello Simon, Simon Josefsson <simon@HIDDEN> skribis: > jas@kaka:~$ guix pack coreutils --save-provenance -S /bin=3Dbin -S > /share=3Dshare -f docker --image-tag=3Dguix --max-layers=3D8 --verbosity= =3D2 > net-base [...] > guix/build/utils.scm:822:6: In procedure invoke: > ERROR: > 1. &invoke-error: > program: "tar" > arguments: ("--mtime=3D@1" "--owner=3D0" "--group=3D0" "--numeric- > owner" "--sort=3Dname" "--mode=3Dgo+u,go-w" "cf" "layer.tar" > "/gnu/store/hw6g2kjayxnqi8rwpnmpraalxi0djkxc-glibc-2.39") Fixed in 285a1cb449f60798dc83f7f1016700b4ab2374a8. Ludo=E2=80=99.
X-Loop: help-debbugs@HIDDEN Subject: [bug#75426] [PATCH] docker: Build tarballs reproducibly. Resent-From: Simon Josefsson <simon@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Tue, 04 Feb 2025 21:57:02 +0000 Resent-Message-ID: <handler.75426.B75426.173870619917428 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75426 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Cc: Josselin Poiret <dev@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>, 75090 <at> debbugs.gnu.org, 75426 <at> debbugs.gnu.org, Christopher Baines <guix@HIDDEN> Received: via spool by 75426-submit <at> debbugs.gnu.org id=B75426.173870619917428 (code B ref 75426); Tue, 04 Feb 2025 21:57:02 +0000 Received: (at 75426) by debbugs.gnu.org; 4 Feb 2025 21:56:39 +0000 Received: from localhost ([127.0.0.1]:47015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tfQuM-0004X2-PE for submit <at> debbugs.gnu.org; Tue, 04 Feb 2025 16:56:39 -0500 Received: from uggla.sjd.se ([2001:9b1:8633::107]:40792) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <simon@HIDDEN>) id 1tfQuJ-0004Wo-QJ; Tue, 04 Feb 2025 16:56:37 -0500 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2303; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pb3rn1O+WqKj3ZP3d7bymEBcAtL+eH1AUmR7v1mIAOg=; t=1738706193; x=1739915793; b=ALJKMzFSn0XDM1x51jIVmkRwbYpV2OTiLxFtGP7KzSd4zkuS99v0+avCDq9ruwQ5z8OUATBzfWw 2nSY9YTd6Aw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2303; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pb3rn1O+WqKj3ZP3d7bymEBcAtL+eH1AUmR7v1mIAOg=; t=1738706193; x=1739915793; b=EVzkNac2a5EtQJbKSpR41nJGA2QuRTXVnA9H5P9cFsLcI6dXQyHVo5Bn/7IToMtYV5qBBl7idlj YiPMFxkQgL9ncEtK1YuLc6mncoDm0x4BVxbcGxMZ1PKhU0vWm6Po2hE/u6VSD9yS2lSQBzUWhFQsC KF8xlpoYgr7sYCffLW3DWF81ZKVCUi7U5RLW6xlLkXOs3v8O9kBGCCmvy6dUTIZgz+a5GIMclOWLQ oAk/5y1UB4WadWW5qXxflNLaAc0ZJJQ95IDWdNctCoEiClqCyhnxfIzII+4etCqvFJ4bS18iA+gut oYH324mIaTjVQSnx8uwi+tzGLh4BReAUGUjmoAZ2y5vU3mKG/qWJIM2xvOhKNrWjnINmn98hGYtX/ oWw966PLCYfAySpkiLTgL3z3/UoXp4KdyhL3+VzVN5MWfEYHJtpRIPciDhfjHf5Z40j78V2Ma; Received: from h-178-174-130-130.a498.priv.bahnhof.se ([178.174.130.130]:35258 helo=kaka) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <simon@HIDDEN>) id 1tfQuD-007xor-14; Tue, 04 Feb 2025 21:56:29 +0000 From: Simon Josefsson <simon@HIDDEN> In-Reply-To: <8734gty908.fsf@HIDDEN> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 04 Feb 2025 17:23:03 +0100") References: <ab1044307c88a61032be563b73e325eb9cf339ba.1736290435.git.ludo@HIDDEN> <87wmejbyla.fsf@HIDDEN> <7d999f7dfcfe6c2321e2456f60d43d30715b25f1.camel@HIDDEN> <87ed0jc680.fsf@HIDDEN> <8c6aa44b639b28a35ecb6c9d1bc393b734e17f55.camel@HIDDEN> <8734gty908.fsf@HIDDEN> OpenPGP: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt X-Hashcash: 1:23:250204:zimon.toutoune@HIDDEN::gEu1r+uxFxBzIv+g:1U5/ X-Hashcash: 1:23:250204:75426 <at> debbugs.gnu.org::lYf6kDFtyZmwKxFO:5Zy8 X-Hashcash: 1:23:250204:ludo@HIDDEN::p1EM57fzB7+cNXQP:PgRM X-Hashcash: 1:23:250204:othacehe@HIDDEN::Let19t2zgwpoiVHx:ITgt X-Hashcash: 1:23:250204:me@HIDDEN::38oEdNDYPMEl9SvE:n5cy X-Hashcash: 1:23:250204:75090 <at> debbugs.gnu.org::kM40mVB+ADDCR+hG:RQ9I X-Hashcash: 1:23:250204:guix@HIDDEN::E0p/VM6sb0Sc96WS:op3J X-Hashcash: 1:23:250204:dev@HIDDEN::Ul2FL8gAoSIYhdzQ:0N1Xq Date: Tue, 04 Feb 2025 22:56:25 +0100 Message-ID: <87v7tpnzli.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -2.2 (--) 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.2 (---) --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Ludovic Court=E8s <ludo@HIDDEN> writes: > Fixed in 285a1cb449f60798dc83f7f1016700b4ab2374a8. Hi! Wonderful, confirmed working. These two pipelines produce bit-by-bit identical docker pack images for stage1 of my guix gitlab container images now: https://gitlab.com/debdistutils/guix/container/-/jobs/9042454862 https://gitlab.com/debdistutils/guix/container/-/jobs/9042230873 58b98623ac2b75de521c8db6a904e60f4faad17dc08c2ccc6eab445a9f77cfdd /Simon --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQNoBAEWCAMQFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmeijQkUHHNpbW9uQGpv c2Vmc3Nvbi5vcmfCHCYAmDMEXJLOtBYJKwYBBAHaRw8BAQdACIcrZIvhrxDBkK9f V+QlTmXxo2naObDuGtw58YaxlOu0JVNpbW9uIEpvc2Vmc3NvbiA8c2ltb25Aam9z ZWZzc29uLm9yZz6IlgQTFggAPgIbAwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgBYh BLHSvRN1vst4TPT4xNc89jjFPAa+BQJl/YgIBQkLehFUAAoJENc89jjFPAa+CboA +wUa06RD5e5VTCxvSWtPS75Wq2qBeYGZnf0jvUMxa2n4AP4xkUeAPPnNuMsTm2fs FCDIGaEM2Yn6Vb2huzzT1Fw/BLgzBFySz4EWCSsGAQQB2kcPAQEHQOxTCIOaeXAx I2hIX4HK9bQTpNVei708oNr1Klm8qCGKiPUEGBYIACYCGwIWIQSx0r0Tdb7LeEz0 +MTXPPY4xTwGvgUCZf2IKwUJC3oQqgCBdiAEGRYIAB0WIQSjzJyHC50xCrrUzy9R cisI/kdFogUCXJLPgQAKCRBRcisI/kdFoqdMAQCgH45aseZgIrwKOvUOA9QfsmeE 8GZHYNuFHmM9FEQS6AD6A4x5aYvoY6lo98pgtw2HPDhmcCXFItjXCrV4A0GmJA4J ENc89jjFPAa+GcYA/26YQY05bLtnXiIjTiAzrGQrRXxTHPA8Av7TDFHvIetWAP9s HSoU8OfTwmTiEnGwLlsV7QJclZg3YNz/Ypcp9TqQBrg4BFySz2oSCisGAQQBl1UB BQEBB0AxlRumDW6nZY7A+VCfek9VpEx6PJmdJyYPt3lNHMd6HAMBCAeIfgQYFggA JgIbDBYhBLHSvRN1vst4TPT4xNc89jjFPAa+BQJl/YgwBQkLehDGAAoJENc89jjF PAa+phoA/jrDqIrl/55vUMBhIQv+TP635d2iCTEnyFmbUcP9+gh6APoDsXalVd2c OGxQtSC+TF8PkZMn1TLkJKAjVxr+xx40AgAKCRBRcisI/kdFotiNAQC/DcKWVMyL b1VZiQCM2LeR5Xkkg6MYSC4hogrDgnP27AEAy0kbR3h8vCU8dpoIAxK9Tyh6V9Uj MjjY4o0UrxZTcAE= =eOUW -----END PGP SIGNATURE----- --=-=-=--
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.