adduser: use get_perl_version instead of PERLVERSION
PATCH 1/1 adduser: use get_perl_version instead of PERLVERSION
From: Jackie Huang <[email protected]>
Immediate expansion for PERLVERSION(in perl-version.bbclass) is too early, it will result in 'None' before perl is built, then the module file is installed incorrectly:
$ rpm -ql adduser|grep Common /usr/lib/perl/None/Debian/AdduserCommon.pm
So use get_perl_version directly instead of PERLVERSION.
Signed-off-by Jackie Huang <[email protected]>
--- meta-perl/recipes-perl/adduser/adduser_3.115.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta-perl/recipes-perl/adduser/adduser_3.115.bb +1 -2
@@ -22,8 +22,7 @@ do_install() { install -m 0755 ${S}/adduser ${D}${sbindir} install -m 0755 ${S}/deluser ${D}${sbindir} - install -d ${D}${libdir}/perl/${PERLVERSION}/Debian - install -m 0644 ${S}/AdduserCommon.pm ${D}${libdir}/perl/${PERLVERSION}/Debian + install -D -m 0644 ${S}/AdduserCommon.pm ${D}${libdir}/perl/${@get_perl_version(d)}/Debian/AdduserCommon.pm sed -i -e "s/VERSION/${PV}/" ${D}${sbindir}/* install -d ${D}/${sysconfdir}
Signature · 1 line
2.11.0