From patchwork Wed Jun 26 14:25:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "MOESSBAUER, Felix" X-Patchwork-Id: 3637 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 26 Jun 2024 16:25:44 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f63.google.com (mail-lf1-f63.google.com [209.85.167.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 45QEPhtP031817 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 26 Jun 2024 16:25:43 +0200 Received: by mail-lf1-f63.google.com with SMTP id 2adb3069b0e04-52d58307b43sf1349084e87.2 for ; Wed, 26 Jun 2024 07:25:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1719411937; cv=pass; d=google.com; s=arc-20160816; b=xq95Mgdrw+iCtZPxDWMFFXpNldTf7iBV0HNbftUXpT6QjU58GbkeCi+V8lK7o9A1Ld oT4KMw181J7okZwiErsV2pBFkxQ1BFByuySYaE3IC283gZRkSLdVjFvRuAgea13qjOcv soeNwsRTc9RgL+DB7ttQw1U8gLD/lMbQ1szQ3DPxkyO1qTL/b3fYHs9Yktaskkymx2BC UUELoLjzgB/XAibfjwScM1aeaTfhno2bJjALxC0WofP32T9HMqL/mua7KMTl3KnyHZap 8gyQ5dKY4hHGZUz70DsQJqxwOdHQvgcB8XIEgYcrQhMtQrh0TjgD3BOno43/U35aDpYX mNdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VT63U1MEyXmSB0I5KXrByJN6NHLjoie8nxdMPrywUlk=; fh=/Kc5EUiu3DJjRaNp+L5BrhMh6qIdyLYDatZ4MpbsYa8=; b=Zf65VByS/BsS/WWxbh3xqLKq77VUJf+7zeA0YklFb5+2PUL35Pw3QVZNdqTHm9CP4f YwTmMVQWIG6plSGg7Gu61H5T8xVGiv8UVw3ltTyKpGMQkQUVU9ZUefApEU3sQwLRnkd3 Ydk/6eWIWjpHkxK88D8C0wwLQbtKDMhsjAbjigcvMtvfirebQ4Am58W5Jk5UfZ6AnK3U AY/2c06PlN/9apzJpHtjKLok67oHJKGqGHyuaNxehEmiEza16UpclJgpLQSqIAE3wyD3 9AKFHWNO9EkGsgWLI/wBibWJS24UuWkZbo0T+iJYj61rv/OifQxzLyJtAER08AUhbNpv zdtw==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=v7bWQ6+z; spf=pass (google.com: domain of fm-1321639-2024062614253421538da7e3974e2fb5-fywgki@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-1321639-2024062614253421538da7e3974e2fb5-FywgKi@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=1719411937; x=1720016737; 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:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=VT63U1MEyXmSB0I5KXrByJN6NHLjoie8nxdMPrywUlk=; b=FOdAD8ps/t9tUpWraOBUejdWf3w3ejo2vVV4zqLB9t0bWkuMa++F0otrNwbL3LGOhr G3OIOKSMy0oxyynaR5Dz8LKZwTKSJ6qinzD8N+tGOMI/EDAGp1CpbIRv95YHtrHdT7Pt 0X3c0tLjvxHdmF2wDIH3VBJeh2jDuLbabl620veY2prZ4jMUdB6MAB4oygIlZnv05S3W gtxFjGg9THV2Q7iNOVxdQFVb8rrnLwmUeo19MNJm/m+11wTNmaakhtdJX325sdd4kjuB 085/fj6d3CFqp0DUe6wa7XIzAeN9aqfx37W6MIVq4oZkvV5Toa2af9aMv4WXdItbcFfu V4eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719411937; x=1720016737; 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:message-id:date:subject:cc:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VT63U1MEyXmSB0I5KXrByJN6NHLjoie8nxdMPrywUlk=; b=udHj/1+sjJKqeeFYZF25PbL6MhN30WQlyj3pLVBu1XNeOb2h/Oag30glbHUmcBO3Ll /4m9xLb67RxOK6XigeultSGJZBJJHRk5wpqoAtZsRu95KtUISUJD22OCakDc2cca7k01 VzJyvO1C8JVX4+/RJ9MQtKl+nAkzSQvIb/HqZToiiOlbRcSjlCPG4ww/ARPORd0R+TCz R8Ss7lQUmQPn7JEkUN72lsrNNfu8nIJ3cWDGevilV3gBoJ96Zttv4p+nLlGRDPCCo+Oi Fjo/WqCFsG4NorvbeDGsRq9p79rvHZMKR8pUlUtllk+RxNLoGI6YLevt9TmokiO/kgWj JeZA== X-Forwarded-Encrypted: i=2; AJvYcCW4od3BdMDGNd8zebdxBJ5GAURGIrbibC8aGltofC8IS920d2tGLVPHWMpoF0YOg8LN+9g2PBNF73ixzS1GPVQ1LgdDmfI= X-Gm-Message-State: AOJu0Yw5tat6PC2B5GoGQVZvdAMaVDb2wfgYYdWZqPcDU8wnUAaOHn2W /Tm5OYNM89bmGSctg85rOHfb+ufTOpUi7IB+iA0WSTR0xtWy1k91 X-Google-Smtp-Source: AGHT+IGmjms3vSzIlM9+d4/5zAFyoLeraT50zYa24Qk+eLbSQ+RnhkriCBo4MN1uQJTRYURIVYrFgw== X-Received: by 2002:a19:ac45:0:b0:52c:d0d3:6d10 with SMTP id 2adb3069b0e04-52ce18357c4mr8063717e87.27.1719411937267; Wed, 26 Jun 2024 07:25:37 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:51a5:0:b0:52e:6e57:6ad1 with SMTP id 2adb3069b0e04-52e6e576ba4ls38618e87.2.-pod-prod-08-eu; Wed, 26 Jun 2024 07:25:35 -0700 (PDT) X-Received: by 2002:ac2:54a8:0:b0:52c:da18:6187 with SMTP id 2adb3069b0e04-52ce185d05fmr7917544e87.43.1719411934948; Wed, 26 Jun 2024 07:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719411934; cv=none; d=google.com; s=arc-20160816; b=om/2myMLpDEOsggblBw92MjpSCzJ4QT5F3GWCuKK8dH0YWP8kLO8cUGBxXWJtQjSz0 S1nyF6aS3VRf9TE/pdrsRb3uBAytzW/u6TohOgdIb3DR4oZc9Q3jm95IUx06hMfQM8Tf gGRuz/rSx+wr/d6HiiOAPzK1r2RFrGaasvd8dcbTiDtEPaqwjnKVkHbIoJyArAFJMeDz fdbv6uBDACyBl7cQpqOmKRqL1v88LaB1tTYgKvehzGr1IhLhFnaulha1tc7u06ofaRXy +ZagcI1jSIWl1EUXWnF1YVC7/1cSgvRS9shF1/Mb9smMtjuvPd5O7VK8BcrSwGANVpGB UX5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=1IpcE+YPaVvOFw4YE3RK6EhF+qDtoCF7Z8hpEj84WxI=; fh=Xwx5KAQd7M5XPJvQVz6xz/z//08kOEttrlFeLBySLJ8=; b=LlmyuskZFufygn9NvnXdei5JPoODETEHgXxr2xVw7FWK8dzzE2w0VWdqZGGlYRMv1L PtuwrupR4+ZLd3ntih5oDJam/yG4la+8x5BCEZXbW77fDuKXM1HcsqJEZPLMUtmi6p9w NczbZzF5q6E3TTuEm9MBUBK6RnIpIl07r7nuSGyTE44rVS7KYgDltFZLf6Rt2tPzVBCK 7uJClHp9pH3PLxmcLIZcTcBQKHQ5wPne6PxZ9yq6uM4k68x5PmNTCS+XzEhodNXzlLsB w+AXNu+gQKq+yt7U9VUoPsdBP3Xpf8Yh78FoYs2y2ovxmDeN43ypbPlyCX4KhMvejwDv hWbg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=v7bWQ6+z; spf=pass (google.com: domain of fm-1321639-2024062614253421538da7e3974e2fb5-fywgki@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-1321639-2024062614253421538da7e3974e2fb5-FywgKi@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net. [185.136.64.226]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-36708285813si107445f8f.3.2024.06.26.07.25.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2024 07:25:34 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1321639-2024062614253421538da7e3974e2fb5-fywgki@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) client-ip=185.136.64.226; Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 2024062614253421538da7e3974e2fb5 for ; Wed, 26 Jun 2024 16:25:34 +0200 X-Patchwork-Original-From: "'Felix Moessbauer' via isar-users" From: "MOESSBAUER, Felix" To: isar-users@googlegroups.com Cc: adriaan.schmidt@siemens.com, Felix Moessbauer Subject: [PATCH v2 1/1] dpkg-prebuilt: ensure fetched packages are valid debian packages Date: Wed, 26 Jun 2024 16:25:19 +0200 Message-Id: <20240626142519.166207-1-felix.moessbauer@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1321639:519-21489:flowmailer X-Original-Sender: felix.moessbauer@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=v7bWQ6+z; spf=pass (google.com: domain of fm-1321639-2024062614253421538da7e3974e2fb5-fywgki@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-1321639-2024062614253421538da7e3974e2fb5-FywgKi@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Felix Moessbauer Reply-To: Felix Moessbauer 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_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?= In case of dpkg-prebuilt, we need to check if the fetched packages are valid debian packages to only deploy valid ones into the sstate cache. Otherwise broken packages might end up in the cache and break future builds. Signed-off-by: Felix Moessbauer --- meta/classes/dpkg-prebuilt.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/classes/dpkg-prebuilt.bbclass b/meta/classes/dpkg-prebuilt.bbclass index 7092670b..a6187a07 100644 --- a/meta/classes/dpkg-prebuilt.bbclass +++ b/meta/classes/dpkg-prebuilt.bbclass @@ -19,5 +19,8 @@ python do_unpack:prepend() { # also breaks inherited (from dpkg-base) dependency on sbuild_chroot do_dpkg_build[depends] = "${PN}:do_unpack" do_dpkg_build() { - true + # ensure all packages we got are valid debian packages + if [ -n "$(find ${WORKDIR} -maxdepth 1 -name '*.deb' -print -quit)" ]; then + find ${WORKDIR} -name '*.deb' | xargs -n1 dpkg -I + fi }