From patchwork Tue Sep 24 16:27:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Richard X-Patchwork-Id: 1989004 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=mvL9pj/8; 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 4XClk8122bz1xst for ; Wed, 25 Sep 2024 02:31:44 +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=LI72Xck+DIEs8Su97HgAkj3ss1MWA9Cvrp3Eb3qQ1cQ=; b=mvL9pj/8DwBLqvy0vNMtUu7Can ZYYRo+ISl9r7rtKkvpeXIhxE8qkWapLftbntV/11s9cINwQq12Rx5TaGdmzT7hjH1RMTEx5fCQhTo hcZBTOADkAAhmjTOdtiLKmL0dixOHYJQJQz8jWqeG4v74AGw4GP8UUhebXNiciBH26a99s8c9IQ7g jnxbp0tU2VbYiz//P7q87QrHum1VhIdXEk+noG27vQAP9xUerEt+8rmqcIovAKX0zlD1W5XQHjXj2 d7ktpVx0IHs9I5V9+FpkWqFP+5BYKRhSgVbFA6vl4ZkuxrPBhTy0srKmE1xHf5Ro1ITMHLZP/BtV1 bcvv3krg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1st8R1-00000002pyt-1b8k; Tue, 24 Sep 2024 16:30:43 +0000 To: openwrt-devel@lists.openwrt.org Subject: [PATCH v2 2/2] scripts/feeds: force kernel package scan after a target installation Date: Tue, 24 Sep 2024 18:27:16 +0200 In-Reply-To: <20240924162716.766437-1-thomas.richard@bootlin.com> References: <20240924162716.766437-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..d07c28bc50 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. + unlink "tmp/info/.packageinfo-kernel_linux"; + return 0; }