Bug 1512

Summary: intltool-update fails to run due to chained #! lines
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Ian Martin <ian.martin>
Component: meta-yoctoAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, sgw
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Ian Martin 2011-09-22 10:08:26 UTC
intltool-update, a perl script, is executed by the shell instead of native perl.

also affects
 intltool-prepare
 intltool-merge
 intltool-extract

this causes failures in at least:
avahi-0.6.30

replacing 

!#/path/to/sysroot/native/.../usr/bin/perl-native/perl

with
#!/usr/bin/env /path/to/sysroot/native/.../usr/bin/perl-native/perl

fixes the problem on:

yocto 1.1 beta

running

bitbake core-image-basic

host

Centos 5.7 x86_64 kernel 2.6.18
Comment 1 Saul Wold 2011-09-22 17:49:30 UTC
What version of poky are you working with, as I believe that we currently do use #!/usr/bin/env nativeperl which covers this issue.  This fix was done pretty recently, around the end of August, so the beta might not have it.

Please confirm this with edison branch from git, this will be the 1.1 release.
Comment 2 Ian Martin 2011-09-26 07:56:00 UTC
(In reply to comment #1)
> What version of poky are you working with, as I believe that we currently do
> use #!/usr/bin/env nativeperl which covers this issue.  This fix was done
> pretty recently, around the end of August, so the beta might not have it.
> 
> Please confirm this with edison branch from git, this will be the 1.1 release.

The bug was in the poky beta tarball.

Rested with the edison branch rev 41c564fe605fa4685fd27b1721e3424ac8a96db1

This problem is no longer present.

Thanks