From patchwork Thu Sep 19 10:27:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Richard X-Patchwork-Id: 1987336 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=3Grr15Ti; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X8Wwh6RjNz1y2q for ; Thu, 19 Sep 2024 20:29:40 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type:List-Help: Reply-To:List-Archive:List-Unsubscribe:List-Subscribe:From:List-Post:List-Id: Message-ID:MIME-Version:References:In-Reply-To:Date:Subject:To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wfzvua1ociKeyOVu88vM57sVPgL5/OYuNUfcnx6cRyM=; b=3Grr15Ti8MtuQoy1hxPe7yGDrv RT4k771zKSgH0Y5CWOhxTLe6We7Loljer9h8JGEoKx47TOijZBwRt1CZywfw4L6XSCztkUlVu9LC4 1dLYoY7zU4crbD3oJuXr9yMf72sD7Fkf0d13yIO6lzu9Ejo6Y/RMq3K5UHMPMpD3qNJj0vLFOu4t5 LlcfTmvvCVUgc9GFcuyGxNJvS3Ik3QdCMNfbX1U4k9uG8FKuWqJbbdpDXS07fmYhTSU7Gfp91tXSR onxq0OtRaXFmsxnoNDsijkaMwtZ3Ty9eNoG9yT1FX0SglqwCpz4Amzx4oPbTEZkYi+LyNz30dl7V/ 7AfB9hbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srEOW-0000000A3Gg-0Hu9; Thu, 19 Sep 2024 10:28:16 +0000 To: openwrt-devel@lists.openwrt.org Subject: [PATCH 2/2] scripts/feeds: force kernel package scan after a target installation Date: Thu, 19 Sep 2024 12:27:28 +0200 In-Reply-To: <20240919102728.1990166-1-thomas.richard@bootlin.com> References: <20240919102728.1990166-1-thomas.richard@bootlin.com> MIME-Version: 1.0 Message-ID: List-Id: OpenWrt Development List List-Post: X-Patchwork-Original-From: Thomas Richard via openwrt-devel From: Thomas Richard Precedence: list X-Mailman-Version: 2.1.34 X-BeenThere: openwrt-devel@lists.openwrt.org List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Thomas Richard List-Help: Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software. When a target is installed from a feed, the linux kernel package is scanned before the installation of this target. If some kernel module packages are defined in this feeds at the target level, there were not parsed during the scan of linux kernel package, as the target didn't exist yet. So these kernel module packages don't exist. Once the target is installed, clean the linux kernel packageinfo to force the scan of the linux kernel package next time this script (or the make command) is called. Signed-off-by: Thomas Richard --- scripts/feeds | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/feeds b/scripts/feeds index 7cbe07f58e..a48be670f0 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -461,6 +461,11 @@ sub do_install_target($) { return 1; } + # Clean packageinfo of linux kernel to force the scan. + # Otherwise kernel modules defined at target level are not scanned, as the + # linux kernel package was scanned before the installation of the target. + system("rm tmp/info/.packageinfo-kernel_linux"); + return 0; }