All of lore.kernel.org
 help / color / mirror / Atom feed
* [oe-core][PATCHv2] cpan: do not rebuild the Makefile when perls config is re-staged
@ 2026-09-26 19:11 Markus Volk
  2026-09-29 16:56 ` Alexander Kanavin
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Volk @ 2026-09-26 19:11 UTC (permalink / raw)
  To: openembedded-core

The Makefile depends on Config.pm and config.h of the staged
perl. After pulling an oe-core update that installs perl fresh into the
sysroot, these become newer than the Makefile because of a sed in:
staging.bbclass:185
 cmd = "sed -e 's:^[^/]*/:%s/:g' %s | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:%s:g; ..."
Thus make regenerates the Makefile, its asking to be rerun and fails. Clear CONFIGDEP so
make ignores those timestamps; a real change of perl reruns do_configure through the task
hash anyway.

AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/classes-recipe/cpan.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes-recipe/cpan.bbclass b/meta/classes-recipe/cpan.bbclass
index dbf44da9d2..5b5698fbf8 100644
--- a/meta/classes-recipe/cpan.bbclass
+++ b/meta/classes-recipe/cpan.bbclass
@@ -58,11 +58,11 @@ do_configure:append:class-nativesdk() {
 }
 
 cpan_do_compile () {
-	oe_runmake PASTHRU_INC="${CFLAGS}" LD="${CCLD}"
+	oe_runmake PASTHRU_INC="${CFLAGS}" LD="${CCLD}" CONFIGDEP=
 }
 
 cpan_do_install () {
-	oe_runmake DESTDIR="${D}" install_vendor
+	oe_runmake DESTDIR="${D}" install_vendor CONFIGDEP=
 	for PERLSCRIPT in `grep -rIEl '#! *${bindir}/perl-native.*/perl' ${D}`; do
 		sed -i -e 's|${bindir}/perl-native.*/perl|/usr/bin/env nativeperl|' $PERLSCRIPT
 	done
-- 
2.55.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-30 14:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-26 19:11 [oe-core][PATCHv2] cpan: do not rebuild the Makefile when perls config is re-staged Markus Volk
2026-09-29 16:56 ` Alexander Kanavin
2026-09-29 21:54   ` Markus Volk
2026-09-30 11:34     ` Paul Barker
2026-09-30 12:10       ` Markus Volk
2026-09-30 14:32         ` Paul Barker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.