All of lore.kernel.org
 help / color / mirror / Atom feed
* perl/cpan issue (cpan.bbclass, perl/config.sh)
@ 2009-11-07 20:37 Frans Meulenbroeks
  2009-11-10 17:46 ` Frans Meulenbroeks
  0 siblings, 1 reply; 4+ messages in thread
From: Frans Meulenbroeks @ 2009-11-07 20:37 UTC (permalink / raw)
  To: openembedded-devel

I was trying to make xmltv but noticed some files were missing from the recipe.
The recipe includes cpan

Apparently some of the files are in the xmltv work dir but others are
copied to the perl work dir.
I don't think this is good, but I am not a perl/cpan expert, so
seeking for advice and/or a fix.

Apparently cpan.bbclass invokes perl/config.sh
This one contains things like:
config_arg7='-Dinstallprefix=/home/frans/oe/tmp_angstrom/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r29/image'
..
installbin='/home/frans/oe/tmp_angstrom/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r29/image/usr/bin'
...
Guess config.sh is the bad guy
Not sure how to fix this.

Please advise (or if you are a wiz, please fix and I'll study the fix
and learn from it :-) )

Frans



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: perl/cpan issue (cpan.bbclass, perl/config.sh)
  2009-11-07 20:37 perl/cpan issue (cpan.bbclass, perl/config.sh) Frans Meulenbroeks
@ 2009-11-10 17:46 ` Frans Meulenbroeks
  2009-11-10 17:57   ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Frans Meulenbroeks @ 2009-11-10 17:46 UTC (permalink / raw)
  To: openembedded-devel

2009/11/7 Frans Meulenbroeks <fransmeulenbroeks@gmail.com>:
> I was trying to make xmltv but noticed some files were missing from the recipe.
> The recipe includes cpan
>
> Apparently some of the files are in the xmltv work dir but others are
> copied to the perl work dir.
> I don't think this is good, but I am not a perl/cpan expert, so
> seeking for advice and/or a fix.
>
> Apparently cpan.bbclass invokes perl/config.sh
> This one contains things like:
> config_arg7='-Dinstallprefix=/home/frans/oe/tmp_angstrom/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r29/image'
> ..
> installbin='/home/frans/oe/tmp_angstrom/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r29/image/usr/bin'
> ...
> Guess config.sh is the bad guy
> Not sure how to fix this.
>
> Please advise (or if you are a wiz, please fix and I'll study the fix
> and learn from it :-) )

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
d) in the target recipe hack the paths to the proper value using some
nifty sed script.
e) the recipe copies the data from the perl image dir to its own image dir.
f) something else

Not sure how to resolve this (and most of the above is beyond my
current capabilities).
Any feedback/suggestion is appreciated.

Frans

PS:  and if no-one responds to this I guess I'll go for the way that
is easiest for me: move the recipe to



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: perl/cpan issue (cpan.bbclass, perl/config.sh)
  2009-11-10 17:46 ` Frans Meulenbroeks
@ 2009-11-10 17:57   ` Richard Purdie
  2009-11-10 20:02     ` Frans Meulenbroeks
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2009-11-10 17:57 UTC (permalink / raw)
  To: openembedded-devel

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: perl/cpan issue (cpan.bbclass, perl/config.sh)
  2009-11-10 17:57   ` Richard Purdie
@ 2009-11-10 20:02     ` Frans Meulenbroeks
  0 siblings, 0 replies; 4+ messages in thread
From: Frans Meulenbroeks @ 2009-11-10 20:02 UTC (permalink / raw)
  To: openembedded-devel

2009/11/10 Richard Purdie <rpurdie@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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-10 20:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-07 20:37 perl/cpan issue (cpan.bbclass, perl/config.sh) Frans Meulenbroeks
2009-11-10 17:46 ` Frans Meulenbroeks
2009-11-10 17:57   ` Richard Purdie
2009-11-10 20:02     ` Frans Meulenbroeks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.