From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sun, 29 Mar 2026 07:48:32 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w6j0i-006LCg-2C for lore@lore.pengutronix.de; Sun, 29 Mar 2026 07:48:32 +0200 Received: from [127.0.0.1] (helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1w6j0i-0007Sj-H0; Sun, 29 Mar 2026 07:48:32 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1w6izY-0005cB-3m; Sun, 29 Mar 2026 07:47:20 +0200 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w6izX-002fGU-1Z; Sun, 29 Mar 2026 07:47:19 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1w6izX-0000000AXdb-1lSC; Sun, 29 Mar 2026 07:47:19 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Sun, 29 Mar 2026 07:47:19 +0200 Message-ID: <20260329054719.2512528-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260327095642.526947-1-ada@thorsis.com> References: <20260327095642.526947-1-ada@thorsis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] kernel: Call chmod modules.builtin.modinfo for v6.x only X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Alexander Dahl Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as c140700eca0af50a8fbe802c5b41668145d9270d. Michael [sent from post-receive hook] On Sun, 29 Mar 2026 07:47:19 +0200, Alexander Dahl wrote: > kernel.install stage fails for kernel versions before v5.2 (which > introduced modules.builtin.modinfo in the first place) like this: > > DEPMOD 4.9.327-rt197-tt > depmod: WARNING: could not open modules.builtin.modinfo at [redacted]/platform-ncl/packages/linux-4.9.327/lib/modules/4.9.327-rt197-tt: No such file or directory > chmod: cannot access '[redacted]/platform-ncl/packages/linux-4.9.327/lib/modules/*/modules.builtin.modinfo': No such file or directory > make: *** [/usr/local/lib/ptxdist-2026.01.0/rules/kernel.make:287: [redacted]/platform-ncl/state/kernel.install] Error 1 > ptxdist install kernel 3,75s user 1,63s system 101% cpu 5,308 total > > The chmod fix is only necessary for kernel v6.18 which introduced the > faulty executable permissions. It was fixed for v6.19 with kernel commit > 6d60354ea2f9 ("kbuild: Fix permissions of modules.builtin.modinfo"). > > Suggested-by: Michael Olbrich > Tested-by: Ruggero Rossi > Fixes: 844408110d04 ("kernel: fix modules.builtin.modinfo being executable") > Signed-off-by: Alexander Dahl > Message-Id: <20260327095642.526947-1-ada@thorsis.com> > Signed-off-by: Michael Olbrich > > diff --git a/rules/kernel.make b/rules/kernel.make > index c1f10f62e8e6..d366be71477b 100644 > --- a/rules/kernel.make > +++ b/rules/kernel.make > @@ -285,7 +285,9 @@ $(STATEDIR)/kernel.install: > @$(call targetinfo) > ifdef PTXCONF_KERNEL_MODULES_INSTALL > @$(call world/install, KERNEL) > +ifeq ($(KERNEL_VERSION_MAJOR),6) > @chmod -x $(KERNEL_PKGDIR)/lib/modules/*/modules.builtin.modinfo > +endif > endif > @$(call world/dtb, KERNEL) > @$(call world/dtbo, KERNEL)