From nobody Tue Nov 4 05:30:52 2025 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; dkim=pass; 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; dmarc=pass(p=reject dis=none) header.from=daemonizer.de ARC-Seal: i=1; a=rsa-sha256; t=1735592488; cv=none; d=zohomail.com; s=zohoarc; b=aLVXgqrImuFbTA5cUlMSVyFqdTm+3d2mOBddp25ms+fsmM1UKxAWOumfpF5/knQDY2lCkx1KvW8vvYl8txmBmKSRu32lHl4eavW48vIjpyAb6FwYq4Lt3PKeRvIeqdJ/LX3WFZhdqNytp5IBV6YvtF9R3BuqujxV3d2wntPN2Qk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1735592488; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=PMl7doOmmRwQcq+r6ytsB5DZXr1441bm/ek2YpkEhpg=; b=VMxRwFsuc+LfHWjp0nd1tUi2vWamc2Kw+VuWJxAaablod/McCgF8Ba7of/Lyjll8dwK/f/dRgqlSvyF1X20bTuBmsuSIqUBtxKeij/nvkrS/J9djs4V3lqgY64C820nms+4PwJjUl04CWHxErawI+wrO6ajpyMVVDmfEG4jh6po= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1735592488072752.0559314856864; Mon, 30 Dec 2024 13:01:28 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.863549.1274927 (Exim 4.92) (envelope-from ) id 1tSMt1-000740-2q; Mon, 30 Dec 2024 21:01:15 +0000 Received: by outflank-mailman (output) from mailman id 863549.1274927; Mon, 30 Dec 2024 21:01:15 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tSMt1-00073p-04; Mon, 30 Dec 2024 21:01:15 +0000 Received: by outflank-mailman (input) for mailman id 863549; Mon, 30 Dec 2024 21:01:14 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tSMt0-00073D-FP for xen-devel@lists.xenproject.org; Mon, 30 Dec 2024 21:01:14 +0000 Received: from mx1.somlen.de (typhoon.somlen.de [89.238.64.140]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 3416d09c-c6f1-11ef-a0db-8be0dac302b0; Mon, 30 Dec 2024 22:01:13 +0100 (CET) Received: by mx1.somlen.de with ESMTPSA id 3A4D45030E8; Mon, 30 Dec 2024 22:01:13 +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: 3416d09c-c6f1-11ef-a0db-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daemonizer.de; s=202303; t=1735592473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PMl7doOmmRwQcq+r6ytsB5DZXr1441bm/ek2YpkEhpg=; b=02s4tETFA/3dODyJqbV8n07g9zGuDfFQi43R7JGitkzK3iq8kJhwbOY4o0P6VGPkuz/g4a uAB44NyDFRVxk9wnSOCgwholvBgj2sCGydqqwYIGjeqGQyJzq0Wd2vVBk5Me6Ned2X7xJt J4xVU9TPSmjJWuXg64PrA3y35XP6FOVJJFuhd0WjpYqe1PqbfXHeDY4qIkghctpmtrbB9r IQ7HxFnT8/3MVB9kzgjJc8weSuROSOekrHaJFg12IuhKeenPzCJT2hgrKHjftHmRM6wFyw T+dH1WItXQKZwd2hwBxPMSK+/ovypRBjkA1CN7Yi6LC/nuBJcEVmwCD4qKsvMA== From: Maximilian Engelhardt To: xen-devel@lists.xenproject.org Cc: Maximilian Engelhardt , Anthony PERARD Subject: [XEN PATCH 2/5] docs: set DATE to SOURCE_DATE_EPOCH if available Date: Mon, 30 Dec 2024 22:00:30 +0100 Message-Id: <1ad1283052a580cbe7dbd7581b64f3cfd87cbf88.1735585600.git.maxi@daemonizer.de> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @daemonizer.de) X-ZM-MESSAGEID: 1735592488837019100 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. The -d "@..." syntax was introduced in GNU date about 2005 (but only added to the docuemntation in 2011), so I assume a version supporting this syntax is available, if SOURCE_DATE_EPOCH is defined. If SOURCE_DATE_EPOCH is not defined, nothing changes with respect to the current behavior. [1] https://reproducible-builds.org/docs/source-date-epoch/ Signed-off-by: Maximilian Engelhardt Reviewed-by: Andrew Cooper Tested-by. --- docs/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/Makefile b/docs/Makefile index b30cc619f8..beba02a94f 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.39.5