<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4758</bug_id>
          
          <creation_ts>2013-06-21 07:43:21 +0000</creation_ts>
          <short_desc>adt_installer: perl lib version doesn&apos;t match perl script on Ubuntu-13.04</short_desc>
          <delta_ts>2013-06-29 05:29:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>kai.kang</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>ning.zhang</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>sen.zhang</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34034</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-06-21 07:43:21 +0000</bug_when>
    <thetext>Build Configuration:
BB_VERSION        = &quot;1.19.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-13.04&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.4+snapshot-20130620&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;hongxu-0620-adt:e04e6dab0afa8f72bf001b0cc106cd13b7694a91&quot;

* Problem
Steps:
1) build adt-installer and extract

2) modify adt_installer.conf, config a valid YOCTOADT_REPO, and modify
opkg/conf, config a valid src url. The valid src url is:
http://adtrepo-dev.yoctoproject.org/1.4+snapshot-4ecdc62a74cb4b5d0431d783a
ab5ee266baf833d-stage/master_under_test/

3) run &quot;./adt_installer&quot; to install the adt to the default location.

4) when the installation finish, run &quot;source /opt/poky/1.4+snapshot/envir
onment-setup-armv5te-poky-linux-gnueabi&quot;

5) try to compile iptables-1.4.15. When run &quot;autoreconf -fi&quot;, will get the
following errors:
...
Perl lib version (5.14.3) doesn&apos;t match executable &apos;/opt/poky/1.4+snapshot
/sysroots/x86_64-pokysdk-linux/usr/bin/autom4te&apos; version (v5.14.2) at /opt
/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux//usr/lib/perl/5.14.3/Con
fig.pm line 60.
...

6) The host&apos;s perl version is v5.14.2, sdk&apos;s perl version is v5.14.3

* Analysis
This is because most of the autotools&apos; scripts use the &quot;#!/usr/bin/perl -w&quot;
which is host perl, but the gnu-configize uses &quot;#! /usr/bin/env perl&quot; which
invokes the perl wrapper in the SDK, and the wrapper will set the PERL5LIB to
the SDK which causes the mismatch.

* Solution
We can make all the perl scripts to use the host perl or the SDK perl to
fix this problem.

Similar issue has been fixed in populate_sdk_base:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=aeb53bd78991af9fbb60d64176ec864cfc2ddbb9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34240</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-06-29 05:29:32 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=321134f88df157c316a8531e1adbfc3a1b582ec2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>