packaging files in STAGING_LIBDIR?

Gernot Hillier gernot at
Sat Jan 5 17:19:21 CET 2008

Hi there!

I'm trying to package a new version of gpsdrive which contains some perl
modules. Now, I have the problem that the gpsdrive configure script does
the following to find out where to install its perl modules:

PERL_VENDORLIB=`perl -V:vendorlib | sed "s,vendorlib=',," | \
  sed "s/';//"`
  sed "s,/usr/share,${datadir},"`

I.e., in the OpenMoko build system, PERL_PACKAGE_DIR will end up to be
moko_root/build/tmp/staging/i686-linux/lib/perl/5.8.8/. In some respect,
this seems to be correct, as I can see a lot other perl modules which
get installed to this path, too.

In some other respect, this seems to be wrong, as I can't manage to get
these files included in my ipk package by adding ${libdir} to the
FILES_${PN} list in the bitbake recipe.

Can someone point me in the right direction how this shall be fixed?

Shall I patch the configure scripts so that the perl modules get
installed to ${libdir}/perl5?

Or do I just need to specify something else than ${libdir} in FILES_${PN}?

Or do I even need some sort of native package or thelike?

Any hint greatly appreciated...


More information about the distro-devel mailing list