All of lore.kernel.org
 help / color / mirror / Atom feed
* PERL and FULLPERL from MakeMaker.pm
@ 2011-03-09  8:23 Tian, Kevin
  2011-03-09 19:10 ` Kamble, Nitin A
  0 siblings, 1 reply; 3+ messages in thread
From: Tian, Kevin @ 2011-03-09  8:23 UTC (permalink / raw)
  To: poky@yoctoproject.org, openembedded-core@lists.openembedded.org

Hi, all,

I just found that several perl-based projects (e.g. sgmlspl and git) failed to find
ExtUtils modules, when sstate cache is used for perl-native while original build 
directory generating sstate packages have been deleted.

We have a perl wrapper to make sure @INC correctly including current build
sysroot, which however doesn't solve the problem seen here.

Those projects make use of MakeMaker.pm to generate their Makefiles on the
fly, while MakeMaker.pm generates below lines:

PERL = /media/builds-0/demo-0309/tmp/sysroots/x86_64-linux/usr/bin/perl.real
FULLPERL =
/media/builds-0/demo-0309/tmp/sysroots/x86_64-linux/usr/bin/perl.real

I can work around the issues by manually changing Makefile when the error
occurs. 

I know little about perl internals, and thus would like to know whether it's a
easy issue to tackle. I didn't find any explicit files containing a perl.real from
perl-native sstate package, except the perl wrapper script. So it's interesting
how MakeMaker.pm finds the perl.real binary.

I reported a bug at:
http://bugzilla.yoctoproject.org/post_bug.cgi

Thanks,
Kevin



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

* Re: PERL and FULLPERL from MakeMaker.pm
  2011-03-09  8:23 PERL and FULLPERL from MakeMaker.pm Tian, Kevin
@ 2011-03-09 19:10 ` Kamble, Nitin A
  2011-03-09 19:26   ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Kamble, Nitin A @ 2011-03-09 19:10 UTC (permalink / raw)
  To: Tian, Kevin, poky@yoctoproject.org,
	openembedded-core@lists.openembedded.org



> -----Original Message-----
> From: Tian, Kevin
> Sent: Wednesday, March 09, 2011 12:24 AM
> To: poky@yoctoproject.org; openembedded-core@lists.openembedded.org
> Cc: Kamble, Nitin A
> Subject: PERL and FULLPERL from MakeMaker.pm
> 
> Hi, all,
> 
> I just found that several perl-based projects (e.g. sgmlspl and git)
> failed to find
> ExtUtils modules, when sstate cache is used for perl-native while
> original build
> directory generating sstate packages have been deleted.
> 
> We have a perl wrapper to make sure @INC correctly including current
> build
> sysroot, which however doesn't solve the problem seen here.
> 
> Those projects make use of MakeMaker.pm to generate their Makefiles on
> the
> fly, while MakeMaker.pm generates below lines:
> 
> PERL = /media/builds-0/demo-0309/tmp/sysroots/x86_64-
> linux/usr/bin/perl.real
> FULLPERL =
> /media/builds-0/demo-0309/tmp/sysroots/x86_64-linux/usr/bin/perl.real
> 
> I can work around the issues by manually changing Makefile when the
> error
> occurs.
> 
> I know little about perl internals, and thus would like to know whether
> it's a
> easy issue to tackle. I didn't find any explicit files containing a
> perl.real from
> perl-native sstate package, except the perl wrapper script. So it's
> interesting
> how MakeMaker.pm finds the perl.real binary.
> 
> I reported a bug at:
> http://bugzilla.yoctoproject.org/post_bug.cgi
> 
> Thanks,
> Kevin

Kevin,
  Looks like the build path for perl.real is used. I think it should be a path from the native sysroot. Thanks for opening the bug.
Thanks,
Nitin




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

* Re: PERL and FULLPERL from MakeMaker.pm
  2011-03-09 19:10 ` Kamble, Nitin A
@ 2011-03-09 19:26   ` Tom Rini
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Rini @ 2011-03-09 19:26 UTC (permalink / raw)
  To: poky

On 03/09/2011 12:10 PM, Kamble, Nitin A wrote:
>
>
>> -----Original Message-----
>> From: Tian, Kevin
>> Sent: Wednesday, March 09, 2011 12:24 AM
>> To: poky@yoctoproject.org; openembedded-core@lists.openembedded.org
>> Cc: Kamble, Nitin A
>> Subject: PERL and FULLPERL from MakeMaker.pm
>>
>> Hi, all,
>>
>> I just found that several perl-based projects (e.g. sgmlspl and git)
>> failed to find
>> ExtUtils modules, when sstate cache is used for perl-native while
>> original build
>> directory generating sstate packages have been deleted.
>>
>> We have a perl wrapper to make sure @INC correctly including current
>> build
>> sysroot, which however doesn't solve the problem seen here.
>>
>> Those projects make use of MakeMaker.pm to generate their Makefiles on
>> the
>> fly, while MakeMaker.pm generates below lines:
>>
>> PERL = /media/builds-0/demo-0309/tmp/sysroots/x86_64-
>> linux/usr/bin/perl.real
>> FULLPERL =
>> /media/builds-0/demo-0309/tmp/sysroots/x86_64-linux/usr/bin/perl.real
>>
>> I can work around the issues by manually changing Makefile when the
>> error
>> occurs.
>>
>> I know little about perl internals, and thus would like to know whether
>> it's a
>> easy issue to tackle. I didn't find any explicit files containing a
>> perl.real from
>> perl-native sstate package, except the perl wrapper script. So it's
>> interesting
>> how MakeMaker.pm finds the perl.real binary.
>>
>> I reported a bug at:
>> http://bugzilla.yoctoproject.org/post_bug.cgi
>>
>> Thanks,
>> Kevin
>
> Kevin,
>    Looks like the build path for perl.real is used. I think it should be a path from the native sysroot. Thanks for opening the bug.

IIRC some of this stuff can be overridden today via the env, it's just not.

-- 
Tom Rini
Mentor Graphics Corporation


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

end of thread, other threads:[~2011-03-09 19:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09  8:23 PERL and FULLPERL from MakeMaker.pm Tian, Kevin
2011-03-09 19:10 ` Kamble, Nitin A
2011-03-09 19:26   ` Tom Rini

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.