| Message ID | 20260926191132.45145-1-f_l_k@t-online.de |
|---|---|
| State | New |
| Headers | show |
| Series | [PATCHv2] cpan: do not rebuild the Makefile when perls config is re-staged | expand |
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
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(-)