From patchwork Fri Nov 13 07:06:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Spooren X-Patchwork-Id: 1399572 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aparcar.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=ziwXprhe; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CXV193SGzz9sTR for ; Fri, 13 Nov 2020 18:08:12 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=8s0b+r4XtW64TYcG/oVwYDZURNgpjqnS/Bb5QNevi38=; b=ziwXprheggFsHvd+FR8EBESqo1 0MoTdPTm7d1tsgf+lDCXt0UlVozpdOWC4AyiAP7lSSAhyT3OhHg769NB/pGRH07dfHtv4EB7fzE3n CvlqV7UTLj0872dElwAc+u61FJzDlHfVZcWd5fHopBAigO84NJMQVZgJnJteSMtwE999a9r+5eBas 8sM4SL3qmKx00Vq9c1s6qL5s94cJ8u/DryBSXRI8QcuGAoeKVlfoF2pmXjWCGC2/VINBMgsyichJR 04xmyLEknMcz1+Bpbp7ndJTNV3t+bO6Hd/pInbycduOYUsi3nf4VXGFYtMPHKSAX16kmXnD6HOQrL Crj070tg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdTA2-0003KN-Ss; Fri, 13 Nov 2020 07:06:18 +0000 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdTA0-0003JG-5d for openwrt-devel@lists.openwrt.org; Fri, 13 Nov 2020 07:06:17 +0000 X-Originating-IP: 72.234.141.215 Received: from dawn.lan (udp224251uds.hawaiiantel.net [72.234.141.215]) (Authenticated sender: mail@aparcar.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPA id 619D6FF80C; Fri, 13 Nov 2020 07:06:09 +0000 (UTC) From: Paul Spooren To: openwrt-devel@lists.openwrt.org Subject: [PATCH buildbot] phase2: use full git history for reproducibility Date: Thu, 12 Nov 2020 21:06:03 -1000 Message-Id: <20201113070603.16150-1-mail@aparcar.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201113_020616_313159_291DFFDE X-CRM114-Status: GOOD ( 10.70 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jo@mein.io, Paul Spooren Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The SOURCE_DATE_EPOCH variable is used to set reproducible time stamps for built artifact. As packages get rebuild without changing, they require individual epochs which are independent of the main tree. To archive that the git log for each package source path is used. This mechanism can only work if the full git history is available. Until now only a shallow copy (--depth 1) would be cloned. With this commit the `feeds.conf.default` is changed to use the full git repository. Signed-off-by: Paul Spooren --- phase2/master.cfg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/phase2/master.cfg b/phase2/master.cfg index 5ed7eff..6f21919 100644 --- a/phase2/master.cfg +++ b/phase2/master.cfg @@ -478,6 +478,13 @@ for arch in arches: command = ["./ccache.sh"], haltOnFailure = True)) + factory.addStep(ShellCommand( + name = "patchfeedsconfgitfull", + description = "Patching feeds.conf.default to use src-git-full", + workdir = "build/sdk", + command = "sed -i -e 's#src-git #src-git-full #g' feeds.conf.default", + haltOnFailure = True)) + if git_ssh: factory.addStep(StringDownload( name = "dlgitclonekey",