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

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Tue Nov 10 20:02:34 UTC 2009


2009/11/10 Richard Purdie <rpurdie at rpsys.net>:
> 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.

I don't know if that breaks things because someone else uses perl/config.sh
And anyway I'm not too sure on how to implement this option.

BTW meanwhile I found that if I avoid cpan and just write my own
configure/build/install things also worked for me.

Frans




More information about the Openembedded-devel mailing list