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 <[email protected]>
---
 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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246641): 
https://lists.openembedded.org/g/openembedded-core/message/246641
Mute This Topic: https://lists.openembedded.org/mt/121446692/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to