From patchwork Wed Apr 3 19:11:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 62676 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B29DD27BBE9; Wed, 3 Apr 2024 20:12:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1527027BBE2 for ; Wed, 3 Apr 2024 20:12:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rs61h-0007dt-QI; Wed, 03 Apr 2024 15:12:01 -0400 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 ) id 1rs61g-0007dT-97 for guix-patches@gnu.org; Wed, 03 Apr 2024 15:12:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rs61g-0001b2-0Q for guix-patches@gnu.org; Wed, 03 Apr 2024 15:12:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rs61k-0001uH-GH for guix-patches@gnu.org; Wed, 03 Apr 2024 15:12:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70169] [PATCH 2/7] maint: Use reproducible timestamps and name for tarball. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Apr 2024 19:12:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70169 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70169@debbugs.gnu.org Received: via spool by 70169-submit@debbugs.gnu.org id=B70169.17121715107180 (code B ref 70169); Wed, 03 Apr 2024 19:12:04 +0000 Received: (at 70169) by debbugs.gnu.org; 3 Apr 2024 19:11:50 +0000 Received: from localhost ([127.0.0.1]:59661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rs61W-0001rj-05 for submit@debbugs.gnu.org; Wed, 03 Apr 2024 15:11:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rs61S-0001qJ-Ao for 70169@debbugs.gnu.org; Wed, 03 Apr 2024 15:11:47 -0400 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 ) id 1rs61I-0000xb-GH; Wed, 03 Apr 2024 15:11:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=HP9yacvC/vG8x6eHapwUJBqUkydEWlJa7qyhvBptK1M=; b=JGdKIjbRTe8Yq/HZD2yW 6tK7rdma8j4NfrH9Nf4mpeXJ0B+7ORAphnx1Bo1YeVrlf/ueEsxzW7T8RqeWby9KQwNLehWe9rZgI PWy8hUs8HNV03Xixfs9/QL96qjUfvkJw+nh6xS4QhX3z007buv/Z1c4awZfkS8iPwz4iw1SyiMbyl Rq2FBkjEnH5bs8nZGtZFHhKON+TSNZbNJyWfRL3vQIF6jlAWglEqorxhbt0ehcAKPtpx9IRmTvK/u uu+KpqQPS88Ma95cq+DwSJTqi1D2BEuSMd9R1DPTuLNRNBPG/FFdG6r8EVf8nDT3sQHF+pjBzCx8F akSZ43EhNLoSaw==; From: Janneke Nieuwenhuizen Date: Wed, 3 Apr 2024 21:11:04 +0200 Message-ID: <05e6677d56a3a23ae8526cc56c14c7de33a8254a.1712165977.git.janneke@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * Makefile.am (gen-tarball-version): Add reproducible timestamp to tarball. (am__tar): Use it in new variable, overriding the Automake default. (GZIP_ENV): New variable, overriding the Automake default. Change-Id: Iea5c2f80eaf24b2f2d80e651c73c348231de8d63 --- Makefile.am | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 2b5e145095..c33d69ed9f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,7 +7,7 @@ # Copyright © 2017 Mathieu Othacehe # Copyright © 2017 Leo Famulari # Copyright © 2017 Ricardo Wurmus -# Copyright © 2017, 2020, 2023 Janneke Nieuwenhuizen +# Copyright © 2017, 2020, 2023, 2024 Janneke Nieuwenhuizen # Copyright © 2017 Arun Isaac # Copyright © 2018 Nikita # Copyright © 2018 Julien Lepiller @@ -970,6 +970,7 @@ $(top_srcdir)/.version: config.status gen-tarball-version: echo $(VERSION) > "$(distdir)/.tarball-version" + git show HEAD --format=%ct --no-patch > $(distdir)/.tarball-timestamp gen-ChangeLog: $(AM_V_GEN)if test -e .git; then \ @@ -1002,6 +1003,17 @@ dist-with-updated-version: # Release management. # +# Reproducible tarball +GZIP_ENV = --no-name +# Be friendly to Debian; avoid using EPOCH +am__tar = $${TAR-tar} \ + --sort=name \ + --mode=go=rX,u+rw,a-s \ + --mtime=@$$(cat "$$tardir"/.tarball-timestamp) \ + --owner=0 --group=0 --numeric-owner \ + -cf - \ + "$$tardir" + releasedir = release-$(PACKAGE_VERSION) PACKAGE_FULL_TARNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)