From nobody Sat Sep 21 00:58:57 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1613227760; cv=none; d=zohomail.com; s=zohoarc; b=ZYXZVyT9jW70Y5El8zFazFfhfRN1At1yJ0M4e7YlL+qUCLMdoKX1pUtwgxEzYbOkJwzmA6cSX3FCIyuR0CbRnvFoF5JqDxy+Uw2Uzj4FAUgD8tmsey42NgjBKGCWhZoHL2kgCWSyS3QkfNu+R8+bClR02UgfjztrFUbc+C1x1A8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613227760; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=2kyJXUyU1dDmZgUX3fil2V0p9rme1X0qq+Tj+KsYdeA=; b=TTUn7s5EPtcYyXJ41ZMg7UfVZM8raAbh70dIzu/LHS/dX2HZ9tbZHD3Tc5aey+NPWUQBEbLY9R3wExE/uE4kOjVrB3MV3vdKnyPA+ysAf/mkWPTTAm3yr0/Gr9cJa5mTYY4Np57rnwD8gbR36aivH9seDbbL+RCQUf69z9a8zUs= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1613227759453197.31491896797252; Sat, 13 Feb 2021 06:49:19 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.84622.158713 (Exim 4.92) (envelope-from ) id 1lAwEI-0000nN-5Y; Sat, 13 Feb 2021 14:49:02 +0000 Received: by outflank-mailman (output) from mailman id 84622.158713; Sat, 13 Feb 2021 14:49:02 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lAwEI-0000nG-22; Sat, 13 Feb 2021 14:49:02 +0000 Received: by outflank-mailman (input) for mailman id 84622; Sat, 13 Feb 2021 14:49:01 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lAwEG-0000mz-Tx for xen-devel@lists.xenproject.org; Sat, 13 Feb 2021 14:49:00 +0000 Received: from mx1.somlen.de (unknown [2a00:1828:a019::100:0]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 86049f9a-5c79-4b4c-ae22-852cd601aefe; Sat, 13 Feb 2021 14:48:59 +0000 (UTC) Received: by mx1.somlen.de with ESMTPSA id 3E6C9C3AF0D; Sat, 13 Feb 2021 15:48:58 +0100 (CET) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 86049f9a-5c79-4b4c-ae22-852cd601aefe From: Maximilian Engelhardt To: xen-devel@lists.xenproject.org Cc: Maximilian Engelhardt , Ian Jackson , Wei Liu , Jan Beulich Subject: [XEN PATCH v1 1/1] docs: set date to SOURCE_DATE_EPOCH if available Date: Sat, 13 Feb 2021 15:48:25 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use the solution described in [1] to replace the call to the 'date' command with a version that uses SOURCE_DATE_EPOCH if available. This is needed for reproducible builds. [1] https://reproducible-builds.org/docs/source-date-epoch/ Signed-off-by: Maximilian Engelhardt --- docs/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/Makefile b/docs/Makefile index 8de1efb6f5..ac6792ff7c 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -3,7 +3,13 @@ include $(XEN_ROOT)/Config.mk -include $(XEN_ROOT)/config/Docs.mk =20 VERSION :=3D $(shell $(MAKE) -C $(XEN_ROOT)/xen --no-print-directory xenv= ersion) -DATE :=3D $(shell date +%Y-%m-%d) + +DATE_FMT :=3D +%Y-%m-%d +ifdef SOURCE_DATE_EPOCH +DATE :=3D $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "$(DATE_FMT)" 2>/dev= /null || date -u -r "$(SOURCE_DATE_EPOCH)" "$(DATE_FMT)" 2>/dev/null || dat= e -u "$(DATE_FMT)") +else +DATE :=3D $(shell date "$(DATE_FMT)") +endif =20 DOC_ARCHES :=3D arm x86_32 x86_64 MAN_SECTIONS :=3D 1 5 7 8 --=20 2.20.1