From patchwork Fri Mar 7 12:25:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "srinuvasan.a" X-Patchwork-Id: 4080 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 07 Mar 2025 13:26:06 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qv1-f64.google.com (mail-qv1-f64.google.com [209.85.219.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 527CQ3In027288 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 7 Mar 2025 13:26:04 +0100 Received: by mail-qv1-f64.google.com with SMTP id 6a1803df08f44-6e8cf10d1c2sf37374006d6.0 for ; Fri, 07 Mar 2025 04:26:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1741350358; cv=pass; d=google.com; s=arc-20240605; b=FDC7DbSLPKmhLrOw208yIstOJl5BaSNivlCnVmNNFGTB+6LlkZFPos7+4f2XTQ0U/x 6a+IMJHq3bSLHibyrUJbxqz5YW77WXm7P+df7PIgggNnJ0zQehXaiYxSIzFcDj9FivbV loD0Qje173Mq8kohriPPVmeTBi0b/y96w/56Xi5gN3wisxGP76RTJcPa9baO4wyEK5j/ 0ZQNdnXCSte5Ojerf07/6QE6LA51J6gcKBvHEa4rJMaQwwbYBegRfkTgZsws6j9tuhQj KbCCUDegJ3ItR4T1LhqdltXfL9F9BTIBa57f2p5EKVOxhxI85SB3JOX2XFY70094GgHq PJ4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CgaPUpEs+LjOvJ0n42kgMiR9qtdNHF4+2EkRtdQk2fM=; fh=YoGge3q8X6bMmoPckcJwRHQo7DnzAx/yTplzsbAad7k=; b=EboWs2RSO80Ox18AwvzHzQNtEzW+UKPnaOmN/2yUqTMR/XxAVFIrSulRYwQ95q6DDO /l8L1MKNdA8zibvR/e68/9RKq64jff5X3hYLMbh7Aynf0qV1dviWDSvLmBlwkSFGaQSd YdWCXIEdKd9SpQAQukK8cz78sgGj05Le/8jqIs2jVqVE2CZeVpTIh5rXudzSOcZWdNT6 gLsP0kLGMgqDbNd0iQibWCVXJ8Pp745Uqr7oJe2cwyxCZ9Zp3IrMf0Zm/yacIiBf7TIm ntX+VmWosfkWKvPrFUn5EzkMftzc/rt+00y2f+b/PynHPBhin01RATL7POguIav4iiE+ X69w==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=f89WwZZS; spf=pass (google.com: domain of fm-1324425-202503071225514352673082a9d988a6-ndvqud@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1324425-202503071225514352673082a9d988a6-NdVqUD@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1741350358; x=1741955158; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=CgaPUpEs+LjOvJ0n42kgMiR9qtdNHF4+2EkRtdQk2fM=; b=g03sYqy3kVPByNtpbNlPLx6vtw1GGwcwSW097CQFRUBulq186+v57s5oiUzUIymnNQ zttF/TPoHI2mxVXcBdRFLUOS2wu5y7LRWO1Oa6xLpsF+7HYujpt0SEqWiM6z0FCjPQHw oBrobWWc4DgbcBNqXOzu6TRErjeDDRntTzKYQcb9BnjEcIGDJmyTYKBPU1ucdq3vzNbX vX5D70oWubgXPi7KNW/8aEBeTxmi7Z3Ic92SRqYFQYjITDR1OfI7vmulOBNK4fCf4hNS yaS+7QLG3D/ZagdXUZ6OX6NOPOSNc+xMVNOmF+tW/MutuVtR2rFPmIWSaxFJbYCpebKg cXgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741350358; x=1741955158; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CgaPUpEs+LjOvJ0n42kgMiR9qtdNHF4+2EkRtdQk2fM=; b=mGTjb8osrlgtWtRBOzpaxWNTRz7oVOkPGpY7CZ9QeEb0tk13lcm5qLBDz6hwMe0Qsq AILUHGqXUq7TlMyNkC5os+vXMSLKtCV7Ys+WtC8GEm0C3AZnbCxbXFYvqhAJNw9HotJR kmeIorC0nqbIOboExgDM7HJhvdG/dGOpqq5h0Eyb6H/Wp9irb0QIUK5aNHf2jsCuJeP5 I9UiJ6BX5+Z9sRp33lmqm37JQJ72Gs/KSt1oz4MBHoSZXgPKLnmRP8X/iIelcpuuPVic Pm6df7nxD5wKcF9eCj4IIkn1zaBNEzFUTIncH2WaIdiXQmDd8XP3D53Jn59sVtYOhAuA Z2GQ== X-Forwarded-Encrypted: i=2; AJvYcCVD4lHDMYmTOvlc6rSQneALLZ5YhM8jba5ZrPB0f7vfNeiJoeIt4Z63uBRy1B+bdP+RxFnBwSE=@isar-build.org X-Gm-Message-State: AOJu0YzO3j7VkMaq1tIM/AcBjtVIUo1FZ0p+0nqmf/uTqWNmF5ijHGcz kks90JK1avGYdc90lApwJCXbbD5bkRWBj030v9oSFQwh2TLi+whh X-Google-Smtp-Source: AGHT+IGvrlMpiOmgen5c8nCRdz2UL+VDo+l3Vn53NPyGuxjXkeUEDQ1WP4FXR2lNjHnEutVQDQzgsg== X-Received: by 2002:ad4:500c:0:b0:6e6:6c7c:984a with SMTP id 6a1803df08f44-6e9006776admr26713356d6.29.1741350357934; Fri, 07 Mar 2025 04:25:57 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h=Adn5yVE7Ck1RFvvBCTAbwtBBE+Wf7/BgMdeZSIT4QrYo74r+bg== Received: by 2002:a05:6214:2e0c:b0:6e8:f4cb:3021 with SMTP id 6a1803df08f44-6e8f4ed2520ls16811596d6.2.-pod-prod-09-us; Fri, 07 Mar 2025 04:25:56 -0800 (PST) X-Received: by 2002:a05:6122:2a54:b0:519:fcf2:ef51 with SMTP id 71dfb90a1353d-523e4161e78mr1877316e0c.5.1741350356730; Fri, 07 Mar 2025 04:25:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741350356; cv=none; d=google.com; s=arc-20240605; b=CCcaxwnxOznLxnPICB+gKVPealz0Xs7bZ7FRWFe0DBJIx32U9TQ/3cWQGvDRZyzEgX 9yLUFp0B8a6BX8UwatjFFUlxMUaTp6XbUd6sGMq7makNXCAHpMvB2j34VTInYYkpibQe OR6buDLoTZaZxePMFV4U4bvNALrRWegahDLJZO+hu5gKdm77g/NsBLPR3d2Uggmg4NXj pemMVe17gtk+IWVKidx8B85UWuF2RUiLBmJt6tGhC5JtQZuxLsRj8WytMoOOnsSXRYps lmBE/r8lILR4UCOtOfBRSv1tuAzouZb+Yq5aRvl76SaTAiEIfOVfU3AVheH6N62tqJPl 2q7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=2t3HkksiQKAT98bwnH4mfLBRKyeDU01p1GVw+ACIcDs=; fh=+knGHaK73ds00pYLzNOS97UmwCobvOJfLZ+fkHD4JEI=; b=MxqDv0f2vxhmYJUR+Rx2Qf8V4KMbuYnYj85fIRtT7XiAtO3LCNyHcgIvkHIQqEqzY2 fpIcqjz28j7BZQA9+YePApdru7f3KO0PgSznEsG65c80Hs1BPiOWNdzCSW978SyW7q71 Q5lvPLJEH5jWJ+WwDPP1pWHScE1ac6khrYpHhDFKSM380NUY2C3129vEhw95zLmCt7q4 FeZ/7qh9DzzCkZo+ZNGHgULGU8y9yTJs7JEwweyRlp80ugPsqZdl7WJ2+Tk6IFQ//3vX oQDiYHw8FlY+4EpB0v3jfN4Nf1fo1BbXvgL+ey4iaFU/2xvBvjmVE75NAlulYS20/x7V l5TQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=f89WwZZS; spf=pass (google.com: domain of fm-1324425-202503071225514352673082a9d988a6-ndvqud@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1324425-202503071225514352673082a9d988a6-NdVqUD@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net. [185.136.65.225]) by gmr-mx.google.com with ESMTPS id 71dfb90a1353d-523d8ab2ec3si139627e0c.2.2025.03.07.04.25.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Mar 2025 04:25:56 -0800 (PST) Received-SPF: pass (google.com: domain of fm-1324425-202503071225514352673082a9d988a6-ndvqud@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) client-ip=185.136.65.225; Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 202503071225514352673082a9d988a6 for ; Fri, 07 Mar 2025 13:25:51 +0100 X-Patchwork-Original-From: "srinuvasan.a via isar-users" From: "srinuvasan.a" To: isar-users@googlegroups.com Cc: cedric.hombourger@siemens.com, jan.kiszka@siemens.com, ubely@ilbers.de, Adithya.Balakumar@toshiba-tsip.com, srinuvasan Subject: [PATCH v2 1/3] mmdebstrap: add "skip=cleanup/reproducible" option to mmdebstrap Date: Fri, 7 Mar 2025 17:55:56 +0530 Message-Id: <20250307122558.1882902-1-srinuvasan.a@siemens.com> In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1324425:519-21489:flowmailer X-Original-Sender: srinuvasan.a@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=f89WwZZS; spf=pass (google.com: domain of fm-1324425-202503071225514352673082a9d988a6-ndvqud@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1324425-202503071225514352673082a9d988a6-NdVqUD@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: srinuvasan.a@siemens.com Reply-To: srinuvasan.a@siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: srinuvasan Without this option, mmdebstrap deletes the var/log/dpkg.log and its siblings by default, but this is needed to download deb-src packages for base-apt creation. Basically, we are referring to the package's status under /var/log/dpkg.log file and performing the debsrc_download operation. Without these changes, bootstrap related deb-src files are not downloaded under the /downloads/deb-src folder, due to this the repo sanity check functions failed during base-apt caching stage. Signed-off-by: srinuvasan --- meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc index 931f6f13..7380a658 100644 --- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc +++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc @@ -168,6 +168,11 @@ do_bootstrap() { arch_param="$arch_param,${COMPAT_DISTRO_ARCH}" fi + cleanup= + if [ "${@bb.utils.contains('BASE_REPO_FEATURES', 'cache-deb-src', 'yes', 'no', d)}" = "yes" ]; then + cleanup="--skip=cleanup/reproducible" + fi + # Cleanup mounts if fails trap 'exit 1' INT HUP QUIT TERM ALRM USR1 trap '[ -r "${WORKDIR}/mmtmpdir" ] && tmpdir=$(cat "${WORKDIR}/mmtmpdir") \ @@ -183,6 +188,7 @@ do_bootstrap() { sudo TMPDIR="${BOOTSTRAP_TMPDIR}" mmdebstrap $bootstrap_args \ $arch_param \ + $cleanup \ --mode=unshare \ ${MMHOOKS} \ --setup-hook='mkdir -p "$1/var/cache/apt/archives/"' \