Skip to contentSkip to conversation

rrdtool: only unset PERLHOSTLIB in do_configure

PATCH Superseded Robert Yang 1 participant 2 messages May 13, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 rrdtool: only unset PERLHOSTLIB in do_configure

The do_compile requires it, otherwise it can't find the native module correctly when perl-native is mirrored from another build.

Fixed:

| Compilation failed in require.
| BEGIN failed--compilation aborted.
| Can't locate loadable object for module File::Glob in @INC
---
 meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb +1 -1
index 216aafc..73a5d0e 100644
@@ -58,9 +58,9 @@ export STAGING_INCDIR
 # emulate cpan_do_configure
 EXTRA_OEMAKE = ' PERL5LIB="${PERL_ARCHLIB}" '
 # Avoid do_configure error on some hosts
-export PERLHOSTLIB = ""
 
 do_configure() {
+    unset PERLHOSTLIB
     #fix the pkglib problem with newer automake
     #perl
     sed -i -e "s|-Wl,--rpath -Wl,\$rp||g" \
Signature · 1 line
2.8.0
#1 lore raw

I'm very sorry, they should go into oe-devel.

// Robert

Quoted 29 lines · Robert Yang

The do_compile requires it, otherwise it can't find the native module correctly when perl-native is mirrored from another build.

Fixed:

| Compilation failed in require.
| BEGIN failed--compilation aborted.
| Can't locate loadable object for module File::Glob in @INC
---
  meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb +1 -1
index 216aafc..73a5d0e 100644
@@ -58,9 +58,9 @@ export STAGING_INCDIR
  # emulate cpan_do_configure
  EXTRA_OEMAKE = ' PERL5LIB="${PERL_ARCHLIB}" '
  # Avoid do_configure error on some hosts
-export PERLHOSTLIB = ""
 
  do_configure() {
+    unset PERLHOSTLIB
      #fix the pkglib problem with newer automake
      #perl
      sed -i -e "s|-Wl,--rpath -Wl,\$rp||g" \