[oe] perl/cpan issue (cpan.bbclass, perl/config.sh)

Richard Purdie rpurdie at rpsys.net
Tue Nov 10 17:57:28 UTC 2009


On Tue, 2009-11-10 at 18:46 +0100, Frans Meulenbroeks wrote:
> I had a fresh stab on this.
> perl/config.sh gives the install dir.
> 
> config.sh is provided by the perl package but the perl recipe
> substitutes the destination directory @DESTDIR@ with ${D}
> 
> So basically we can either:
> a) put all packages that require perl/config.sh within recipes/perl
> b) use an environment var in perl/config.sh (something that can be
> replaced with ${D} during package build
> c) have a config.sh with @DATADIR@ in it and let cpan.class replace it
> wtih ${D} and write to a temp.sh and execute that one (or have a sed
> script that replaces the vars) Note sure if that is ok, others
> probably also use  perl/config.sh

I'd suggest c) is most in keeping with OE and likely to work with
packaged-staging and so on.

Cheers,

Richard





More information about the Openembedded-devel mailing list