The PERLVERSION likely has the wrong value in the native context
due to reasons discussed in openembedded-core[1].  The upstream
suggestion was to avoid use of PERLVERSION and switch to the direct
function.

1. 
https://lore.kernel.org/openembedded-core/[email protected]/T/#u

Signed-off-by: Patrick Williams <[email protected]>
---
 recipes-perl/perl/libwhisker2-perl_2.5.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/recipes-perl/perl/libwhisker2-perl_2.5.bb 
b/recipes-perl/perl/libwhisker2-perl_2.5.bb
index 42c0b42..c58d883 100644
--- a/recipes-perl/perl/libwhisker2-perl_2.5.bb
+++ b/recipes-perl/perl/libwhisker2-perl_2.5.bb
@@ -19,9 +19,10 @@ PACKAGEGROUP ??=""
 PACKAGEGROUP[ssl] = ", , libnet-ssleay-perl, libnet-ssleay-perl"
 
 do_install() {
-    install -d 755 ${D}${PERLLIBDIRS}/vendor_perl/${PERLVERSION}
-    install -d 755 ${D}${datadir}/perl/${PERLVERSION}
-    oe_runmake install DESTDIR=${D} 
INSTALLDIR=${PERLLIBDIRS}/vendor_perl/${PERLVERSION} 
MANDIR=${datadir}/perl/${PERLVERSION}
+    perl_version="${@get_perl_version(d)}"
+    install -d 755 ${D}${PERLLIBDIRS}/vendor_perl/${perl_version}
+    install -d 755 ${D}${datadir}/perl/${perl_version}
+    oe_runmake install DESTDIR=${D} 
INSTALLDIR=${PERLLIBDIRS}/vendor_perl/${perl_version} 
MANDIR=${datadir}/perl/${perl_version}
 }
 
 FILES:${PN} += "${datadir}/perl"
-- 
2.39.2

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

Reply via email to