From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id aIYYCHq8EWa9RQEAqHPOHw:P1 (envelope-from ) for ; Sat, 06 Apr 2024 23:19:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aIYYCHq8EWa9RQEAqHPOHw (envelope-from ) for ; Sat, 06 Apr 2024 23:19:54 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ii5m947E; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712438393; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0LayddsJYEg/1OFPCcqnJJ0ln/UqLcIBQbDqggSMilU=; b=OSAGTb3BmIKb2FPz9wZneO5rFppWqkOqOrB8m2+zzwubGRYxedy08AOD4HUamxDXXuNzc6 1TFN/T4XId+gPj28doIyYNN6p4BMrl9AKA8JFL4zt6kg7TJ55uS7CtlYYJG335OQWD1GUG Zon/MIrNWGrdfbU2ysYvuZB7h7p0ZZV/P8U1hNAFM5PMjfUwSCoCO8+AtqlbkPBkzmMqXM r06wYf2/vS5+RogYrZq/8dooaVKr960RiKVdqV8mFr/N8+Zg74eRILG4tZy6NXLYHG3ejW L3jMikf7LG5ykXPKQFe+R4KKNSOdFeIGXoRSCBIJHLK3oTzNj8gwgzQZrYKDgA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ii5m947E; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712438393; a=rsa-sha256; cv=none; b=XCgqU3l3td9XoYRWuYeVpvsHKc2TLpMW94hn+bqQ/r0KFlCxC10D9sfTZXbw6flEJiRCoj eyXvO2L6K9TeqHr/VJS/YA/g3vCf71At/sq1EQqbYaO2c9LYAQ1IHKa9rJtSDwaBchBBeV Hc9a74+h41s0l4W6fqaB86cWREmvRF2W2a4sdnk4tuCMd3stzGUIRDUOgUNW3AxLU+TrCS O/BK8HH4CdxxTgYRw226B2p0TtbQapB0JfKLJrjocZLhuAErq82v9r1n0jHoU6bVH3umAX 0VeimR5T2BWRbD5Eb90eH3YAskN0iNZnFpKLM6g0qdK6NuZ0vXt4B6+pGLRQRA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D687170951 for ; Sat, 06 Apr 2024 23:19:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtDRN-0000Se-Cv; Sat, 06 Apr 2024 17:19:09 -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 1rtDRI-0000Ph-Tl for guix-patches@gnu.org; Sat, 06 Apr 2024 17:19:04 -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 1rtDRH-0004Ux-UK for guix-patches@gnu.org; Sat, 06 Apr 2024 17:19:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rtDRO-0000b8-A9 for guix-patches@gnu.org; Sat, 06 Apr 2024 17:19:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70169] [PATCH v2 12/12] maint: Ensure generated file reproducibility for dist. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Apr 2024 21:19:10 +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.17124383252038 (code B ref 70169); Sat, 06 Apr 2024 21:19:10 +0000 Received: (at 70169) by debbugs.gnu.org; 6 Apr 2024 21:18:45 +0000 Received: from localhost ([127.0.0.1]:41145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtDQy-0000Wi-AW for submit@debbugs.gnu.org; Sat, 06 Apr 2024 17:18:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtDQp-0000Ta-B2 for 70169@debbugs.gnu.org; Sat, 06 Apr 2024 17:18:36 -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 1rtDQd-0004Mw-LV; Sat, 06 Apr 2024 17:18:23 -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=0LayddsJYEg/1OFPCcqnJJ0ln/UqLcIBQbDqggSMilU=; b=ii5m947EyLKwC5ZdzNpc RuTuZOMj61KotiWisA2hzq4F+M8fO6k7vqhnrpBD5elS/7LQ/9qNCvEW5wNAdwe909bkAvYUQm6EG t7De7w/qs0yzE3qV/wdiqjm8msVR2y2S4bTuBKaSlxLHNONhH5I+j1DExud9PVt+Ci6RTDM7t1uaa QhZ6oG7U7RGK8WeGsHJm71Xntd0AyI84AKEv4tkmvZD9sVEDk4Aj0ETeLjhZ/Txzwh5pSA+Y8j//b splNhluaoyHi4x9lANnX6P8Gh38OOzOxtJddllazD8nL/4PF+5jr0H1KN7xRs27Sc+R0yNpJdmUue 5XNKbrQLH1XLgw==; From: Janneke Nieuwenhuizen Date: Sat, 6 Apr 2024 23:18:04 +0200 Message-ID: <933766d5b3574d509b917b80743b127370a61676.1712437365.git.janneke@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.56 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -5.56 X-Migadu-Queue-Id: D687170951 X-TUID: pu+gm93AgSN9 * doc/local.mk (doc-clean): New target. (DIST_CONFIGURE_FLAGS): New variable. (auto-clean): Use them in new target. * Makefile.am (dist-doc-pot-update): Use it in new target. (dist): Change to depend on it to clean possibly stale files, instead of doc-pot-update directly. Add a toplevel check to ensure that Autotools cache is up to date. Change-Id: I2ff2d88db9fe1e708ab65e33e1f3d7ecee882cb4 --- Makefile.am | 29 ++++++++++++++++++++++++++--- doc/local.mk | 29 +++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 7af88b2988..aac328b75e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -954,9 +954,32 @@ guix-binary.%.tar.xz: cp "$$tarball" "$@.tmp" ; mv "$@.tmp" "$@" -# The dependency on doc-pot-update is to generate the .pot files, which are -# not checked in. -dist: doc-pot-update +# Assert that Autotools cache is up to date with Git, by checking +# PACKAGE_VERSION against HEAD. Indented to get past Automake. + ifeq ($(MAKECMDGOALS),dist) + git_version = $(shell build-aux/git-version-gen .tarball-version) + ifneq ($(PACKAGE_VERSION),$(git_version)) + $(warning Autotools cache out of date.) + $(info Autotools cache version: $(PACKAGE_VERSION).) + $(info Git version: $(git_version).) + $(info Please run `autoreconf -vif'.) #` + ifneq ($(GUIX_ALLOW_IRREPRODUCIBLE_TARBALL),yes) + $(error Cannot create reproducible tarball) + else + $(warning Tarball will be irreproducible; distdir will not get removed!) + endif + endif + endif + +# The dependency on dist-doc-pot-update is to clean possibly stale doc and po +# files and only then generate the .pot files, which are not checked in. +dist: dist-doc-pot-update +dist-doc-pot-update: auto-clean + $(MAKE) guile$(EXEEXT) + $(MAKE) -C po/guix all + $(MAKE) -C po/packages all + $(MAKE) doc-pot-update + $(MAKE) guix-daemon dist-hook: gen-ChangeLog gen-AUTHORS gen-tarball-version dist-hook: assert-no-store-file-names diff --git a/doc/local.mk b/doc/local.mk index 25741a5c88..8ba1ce4668 100644 --- a/doc/local.mk +++ b/doc/local.mk @@ -294,3 +294,32 @@ $(eval $(call version.texi-from-git,vti,doc/guix.texi,)) $(foreach lang, $(MANUAL_LANGUAGES), \ $(eval i=$(shell echo $$(($(i)+1)))) \ $(eval $(call version.texi-from-git,$(i),po/doc/guix-manual.$(lang).po,-$(lang)))) + +DIST_CONFIGURE_FLAGS = \ + --localstatedir=/var \ + --sysconfdir=/etc + +# Delete all Autotools-generated files and rerun configure to ensure +# a clean cache and distributing reproducible versions. +auto-clean: maintainer-clean-vti doc-clean + rm -f ABOUT-NLS INSTALL + rm -f aclocal.m4 configure libtool Makefile.in + git clean -fdx -- '.am*' build-aux m4 po + rm -f guile + rm -f guix-daemon nix/nix-daemon/guix_daemon-guix-daemon.o +# Automake fails if guix-cookbook-LANG.texi stubs are missing; running +# autoreconf -vif is not enough. + ./bootstrap +# The dependency chain for the guix-cookbook-LANG.texi was cut on purpose; +# they must be deleted to ensure a rebuild. + rm -f $(filter-out %D%/guix.texi %D%/guix-cookbook.texi, $(info_TEXINFOS)) + ./configure $(DIST_CONFIGURE_FLAGS) + +# Delete all generated doc files to ensure a clean cache and distributing +# reproducible versions. +doc-clean: + rm -f $(srcdir)/doc/*.1 + rm -f $(srcdir)/doc/stamp* + rm -f $(DOT_FILES:%.dot=%.png) + rm -f $(DOT_VECTOR_GRAPHICS) + rm -f doc/images/coreutils-size-map.eps -- 2.41.0