rrdtool: inherit cpan-base to help build perl modules
PATCH v2 1/2 rrdtool: inherit cpan-base to help build perl modules
From: Jackie Huang <[email protected]>
It's incorrect to use -I for nativeperl to specify @INC/#include
directory to target build perl, which cause error like:
| temp/do_configure/run.do_configure.20749: line 112: 20256 Illegal instruction (core dumped) | perl -I/path/to/tmp/sysroots/intel-haswell-64/usr/lib64/perl/$perl_version Makefile.PL
Inherit cpan-base and set related env vars to fix this and avoid using sed to hack Makefile when build perl modules.
Signed-off-by Jackie Huang <[email protected]>
--- meta-oe/recipes-extended/rrdtool/rrdtool_1.4.8.bb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
meta-oe/recipes-extended/rrdtool/rrdtool_1.4.8.bb +9 -9
@@ -17,7 +17,7 @@ SRC_URI = "\ S = "${WORKDIR}/git" -inherit autotools-brokensep gettext pythonnative perlnative python-dir +inherit autotools-brokensep gettext pythonnative perlnative python-dir cpan-base EXTRA_AUTORECONF = "-I m4"
@@ -56,6 +56,12 @@ export HOST_SYS export STAGING_LIBDIR export STAGING_INCDIR +# Env var which tells perl if it should use host (no) or target (yes) settings +export PERLCONFIGTARGET = "${@is_target(d)}" +export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}/CORE" +export PERL_LIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" +export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" + do_configure() { #fix the pkglib problem with newer automake #perl
@@ -71,9 +77,6 @@ do_configure() { autotools_do_configure - perl_version=`perl -v 2>/dev/null | \ - sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'` - #modify python sitepkg #remove the dependency of perl-shared:Makefile #or perl-shared/Makefile will be regenerated
@@ -86,13 +89,10 @@ do_configure() { #redo the perl bindings ( cd ${S}/bindings/perl-shared; - perl -I${STAGING_LIBDIR}/perl/$perl_version Makefile.PL INSTALLDIRS="vendor" - INSTALLPRIVLIB="abc"; - sed -i -e "s| ${libdir}/perl/| ${STAGING_LIBDIR}/perl/|g" Makefile; + perl Makefile.PL INSTALLDIRS="vendor" INSTALLPRIVLIB="abc"; cd ../../bindings/perl-piped; - perl -I${STAGING_LIBDIR}/perl/$perl_version Makefile.PL INSTALLDIRS="vendor"; - sed -i -e "s| ${libdir}/perl/| ${STAGING_LIBDIR}/perl/|g" Makefile; + perl Makefile.PL INSTALLDIRS="vendor"; ) #change the interpreter in file
Signature · 1 line
2.0.0
PATCH v2 2/2 rrdtool: add missing dependency on groff-native
From: Jackie Huang <[email protected]>
rrdtool needs groff-native to format the documentation.
Signed-off-by Jackie Huang <[email protected]>
--- meta-oe/recipes-extended/rrdtool/rrdtool_1.4.8.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/rrdtool/rrdtool_1.4.8.bb +1 -1
@@ -4,7 +4,7 @@ HOMEPAGE = "http://oss.oetiker.ch/rrdtool/" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=44fee82a1d2ed0676cf35478283e0aa0" -DEPENDS = "libpng zlib cairo pango glib-2.0 libxml2" +DEPENDS = "libpng zlib cairo pango glib-2.0 libxml2 groff-native" SRCREV = "1850e00a17e25e93c39e608f4e2da50f29c5c712" PV = "1.4.8"
Signature · 1 line
2.0.0