<?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>941</bug_id>
          
          <creation_ts>2011-03-31 04:46:59 +0000</creation_ts>
          <short_desc>gnu-configize fails to run</short_desc>
          <delta_ts>2011-06-09 19:04:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</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>The patch series submitted &quot;looks good to&quot; RP and being reviewed by the community (01/Jun/2011)</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.1 M2</target_milestone>
          
          <blocked>968</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>edwin.zhai</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>13065</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-03-31 04:46:59 +0000</bug_when>
    <thetext>Any recipe which uses gnu-configize may have problems since this step currently fails.

Tested against master (6f4fbfe272f5d85cee95660a9278f3031533aec4)

Looking at log.do_configure for &apos;bitbake bash&apos; shows these errors:
Perl lib version (5.12.2) doesn&apos;t match executable version (v5.10.1) at /home/local/p60_poky/tmp/sysroots/i686-linux/usr/lib/perl/5.12.2/Config.pm line 50.
Compilation failed in require at /home/local/p60_poky/tmp/sysroots/i686-linux/usr/lib/perl/5.12.2/File/Copy.pm line 14.
BEGIN failed--compilation aborted at /home/local/p60_poky/tmp/sysroots/i686-linux/usr/lib/perl/5.12.2/File/Copy.pm line 14.
Compilation failed in require at /home/local/p60_poky/tmp/sysroots/i686-linux/usr/share/autoconf/Autom4te/FileUtils.pm line 166.
BEGIN failed--compilation aborted at /home/local/p60_poky/tmp/sysroots/i686-linux/usr/share/autoconf/Autom4te/FileUtils.pm line 166.
Compilation failed in require at /home/local/p60_poky/tmp/sysroots/i686-linux/usr/bin/autom4te line 41.
BEGIN failed--compilation aborted at /home/local/p60_poky/tmp/sysroots/i686-linux/usr/bin/autom4te line 41.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13215</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-04-11 21:52:23 +0000</bug_when>
    <thetext>Coul (In reply to comment #0)
&gt; Any recipe which uses gnu-configize may have problems since this step currently
&gt; fails.
&gt; Tested against master (6f4fbfe272f5d85cee95660a9278f3031533aec4)
&gt; Looking at log.do_configure for &apos;bitbake bash&apos; shows these errors:
&gt; Perl lib version (5.12.2) doesn&apos;t match executable version (v5.10.1) at
&gt; /home/local/p60_poky/tmp/sysroots/i686-linux/usr/lib/perl/5.12.2/Config.pm line
&gt; 50.
&gt; Compilation failed in require at
&gt; /home/local/p60_poky/tmp/sysroots/i686-linux/usr/lib/perl/5.12.2/File/Copy.pm
&gt; line 14.
&gt; BEGIN failed--compilation aborted at
&gt; /home/local/p60_poky/tmp/sysroots/i686-linux/usr/lib/perl/5.12.2/File/Copy.pm
&gt; line 14.
&gt; Compilation failed in require at
&gt; /home/local/p60_poky/tmp/sysroots/i686-linux/usr/share/autoconf/Autom4te/FileUtils.pm
&gt; line 166.
&gt; BEGIN failed--compilation aborted at
&gt; /home/local/p60_poky/tmp/sysroots/i686-linux/usr/share/autoconf/Autom4te/FileUtils.pm
&gt; line 166.
&gt; Compilation failed in require at
&gt; /home/local/p60_poky/tmp/sysroots/i686-linux/usr/bin/autom4te line 41.
&gt; BEGIN failed--compilation aborted at
&gt; /home/local/p60_poky/tmp/sysroots/i686-linux/usr/bin/autom4te line 41.

Could this bug be a duplicate of bug 968?
Hi Gary, can you please check in the build log if perl-native&apos;s and gnu-config-native&apos;s do_populate_sysroot succeed or not before the first ERROR?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13249</commentid>
    <comment_count>2</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-04-12 16:58:59 +0000</bug_when>
    <thetext>I don&apos;t think it&apos;s related to bug #968

As for the ordering, here are the relevant time stamps

-rw-rw-r-- 1 gthomas gthomas 0 Mar 30 06:23 tmp/stamps/i686-linux/gnu-config-native-0.1+cvs20080123-r2.do_populate_sysroot
-rw-rw-r-- 1 gthomas gthomas 0 Mar 30 06:40 tmp/stamps/i686-linux/perl-native-5.12.2-r8.do_populate_sysroot
-rw-rw-r-- 1 gthomas gthomas 0 Mar 31 05:16 tmp/stamps/armv7a-poky-linux-gnueabi/bash-4.1-r1.do_configure</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13438</commentid>
    <comment_count>3</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-04-27 01:59:47 +0000</bug_when>
    <thetext>gary,
I can&apos;t reproduce it on 927d33c170f062c0a59d2a321679d5fe22e80a97 @ master by &apos;bitbake bash&apos;.

Seems it got fixed. Can you have a try, or I need do something else?
Thanks,
edwin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13439</commentid>
    <comment_count>4</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-04-27 02:03:28 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; gary,
&gt; I can&apos;t reproduce it on 927d33c170f062c0a59d2a321679d5fe22e80a97 @ master by
&gt; &apos;bitbake bash&apos;.
&gt; Seems it got fixed. Can you have a try, or I need do something else?
&gt; Thanks,
&gt; edwin

Edwin, please see the tmo/workdir/.../bash*/temp/log.do_configure that has the error msgs. I suppost this is What Gary meant.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13440</commentid>
    <comment_count>5</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-04-27 03:54:41 +0000</bug_when>
    <thetext>Yes, you only see this error message in log.do_configure

A closer look shows that it seems to be running Perl scripts and
libraries from sysroots, but the system host Perl is being called,
thus causing the mismatch.

On my system, here&apos;s the main host version:
  $ perl --version
  This is perl, v5.10.1 (*) built for i386-linux-thread-multi

This is the one in sysroots that _should_ be used instead:
  $ tmp/sysroots/i686-linux/usr/bin/perl --version
  This is perl 5, version 12, subversion 2 (v5.12.2) built for i686-linux-thread-multi

So however Perl is being executed in the gnu-configize, it&apos;s getting
the host program (5.10.1), not the correct sysroots version (5.12.2)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13506</commentid>
    <comment_count>6</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-04-29 01:40:45 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Yes, you only see this error message in log.do_configure
&gt; A closer look shows that it seems to be running Perl scripts and
&gt; libraries from sysroots, but the system host Perl is being called,
&gt; thus causing the mismatch.
&gt; On my system, here&apos;s the main host version:
&gt;   $ perl --version
&gt;   This is perl, v5.10.1 (*) built for i386-linux-thread-multi
&gt; This is the one in sysroots that _should_ be used instead:
&gt;   $ tmp/sysroots/i686-linux/usr/bin/perl --version
&gt;   This is perl 5, version 12, subversion 2 (v5.12.2) built for
&gt; i686-linux-thread-multi
&gt; So however Perl is being executed in the gnu-configize, it&apos;s getting
&gt; the host program (5.10.1), not the correct sysroots version (5.12.2)

autoconf-native&apos;s do_configure detects perl from PATH and reflect the path
into the scripts generated, e.g., ${STAGING_BINDIR_NATIVE}/autom4te.

If perl-native&apos;s does populate_sysroot later than autoconf, the host&apos;s perl
will be used -- this is not what we desire.

I used the following patch to meta/recipes-devtools/autoconf/autoconf_2.65.bb

-PR = &quot;r2&quot;
+PR = &quot;r3&quot;
-DEPENDS_virtclass-native = &quot;m4-native gnu-config-native&quot;
+DEPENDS_virtclass-native = &quot;m4-native gnu-config-native perl-native&quot;

This fixes the bug in my side.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13507</commentid>
    <comment_count>7</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-04-29 01:43:29 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; Yes, you only see this error message in log.do_configure
&gt; &gt; A closer look shows that it seems to be running Perl scripts and
&gt; &gt; libraries from sysroots, but the system host Perl is being called,
&gt; &gt; thus causing the mismatch.
&gt; &gt; On my system, here&apos;s the main host version:
&gt; &gt;   $ perl --version
&gt; &gt;   This is perl, v5.10.1 (*) built for i386-linux-thread-multi
&gt; &gt; This is the one in sysroots that _should_ be used instead:
&gt; &gt;   $ tmp/sysroots/i686-linux/usr/bin/perl --version
&gt; &gt;   This is perl 5, version 12, subversion 2 (v5.12.2) built for
&gt; &gt; i686-linux-thread-multi
&gt; &gt; So however Perl is being executed in the gnu-configize, it&apos;s getting
&gt; &gt; the host program (5.10.1), not the correct sysroots version (5.12.2)
&gt; autoconf-native&apos;s do_configure detects perl from PATH and reflect the path
&gt; into the scripts generated, e.g., ${STAGING_BINDIR_NATIVE}/autom4te.
&gt; If perl-native&apos;s does populate_sysroot later than autoconf, the host&apos;s perl
&gt; will be used -- this is not what we desire.
&gt; I used the following patch to meta/recipes-devtools/autoconf/autoconf_2.65.bb
&gt; -PR = &quot;r2&quot;
&gt; +PR = &quot;r3&quot;
&gt; -DEPENDS_virtclass-native = &quot;m4-native gnu-config-native&quot;
&gt; +DEPENDS_virtclass-native = &quot;m4-native gnu-config-native perl-native&quot;
&gt; This fixes the bug in my side.
mised one more piece of patch:
in meta/recipes-devtools/gnu-config/gnu-config/gnu-configize.in, should change the hardcoded &quot;/usr/bin/perl&quot;  with &quot;perl&quot;.

-eval &apos;case $# in 0) exec /usr/bin/perl -S &quot;$0&quot;;; *) exec /usr/bin/perl -S &quot;$0&quot; &quot;$@&quot;;; esac&apos;
+eval &apos;case $# in 0) exec perl -S &quot;$0&quot;;; *) exec perl -S &quot;$0&quot; &quot;$@&quot;;; esac&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13510</commentid>
    <comment_count>8</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-04-29 07:11:01 +0000</bug_when>
    <thetext>Those two changes (which probably need to be separate in a series) do seem to fix the issue.  Now when I run &apos;bitbake bash -c configure&apos; there are no indications that gnu-configize failed in any way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13584</commentid>
    <comment_count>9</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-05-04 23:19:07 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; Yes, you only see this error message in log.do_configure
&gt; &gt; A closer look shows that it seems to be running Perl scripts and
&gt; &gt; libraries from sysroots, but the system host Perl is being called,
&gt; &gt; thus causing the mismatch.
&gt; &gt; On my system, here&apos;s the main host version:
&gt; &gt;   $ perl --version
&gt; &gt;   This is perl, v5.10.1 (*) built for i386-linux-thread-multi
&gt; &gt; This is the one in sysroots that _should_ be used instead:
&gt; &gt;   $ tmp/sysroots/i686-linux/usr/bin/perl --version
&gt; &gt;   This is perl 5, version 12, subversion 2 (v5.12.2) built for
&gt; &gt; i686-linux-thread-multi
&gt; &gt; So however Perl is being executed in the gnu-configize, it&apos;s getting
&gt; &gt; the host program (5.10.1), not the correct sysroots version (5.12.2)
&gt; autoconf-native&apos;s do_configure detects perl from PATH and reflect the path
&gt; into the scripts generated, e.g., ${STAGING_BINDIR_NATIVE}/autom4te.
&gt; If perl-native&apos;s does populate_sysroot later than autoconf, the host&apos;s perl
&gt; will be used -- this is not what we desire.
Actually, not only autoconf-native but also automake-native, quilt-native, glib-2.0-native, util-linux-native, quilt-native have the same issue (they all don&apos;t cause this bug)
{quilt, glib-2.0, util-linux}-native depend on {autoconf,automake}-native, and {autoconf,automake}-native depend on gnu-config-native.

So I think the proper fix should be making quilt-native and gnu-config-native depend on perl-native (surely we still need to &quot;bitbake -c clean&quot; {autoconf,automake,glib-2.0,util-linux} and bitbake them again)

&gt; mised one more piece of patch:
&gt; in meta/recipes-devtools/gnu-config/gnu-config/gnu-configize.in, should change
&gt; the hardcoded &quot;/usr/bin/perl&quot;  with &quot;perl&quot;.
&gt; -eval &apos;case $# in 0) exec /usr/bin/perl -S &quot;$0&quot;;; *) exec /usr/bin/perl -S &quot;$0&quot;
&gt; &quot;$@&quot;;; esac&apos;
&gt; +eval &apos;case $# in 0) exec perl -S &quot;$0&quot;;; *) exec perl -S &quot;$0&quot; &quot;$@&quot;;; esac&apos;
This change is still necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13586</commentid>
    <comment_count>10</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-05-05 03:48:30 +0000</bug_when>
    <thetext>Do you have a patch which makes all of the changes for me to test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13588</commentid>
    <comment_count>11</comment_count>
      <attachid>144</attachid>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-05-05 06:05:11 +0000</bug_when>
    <thetext>Created attachment 144
gnu-config.patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13589</commentid>
    <comment_count>12</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-05-05 06:08:10 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; Do you have a patch which makes all of the changes for me to test?
Yes, please help to test the attached patch in comment #11.
After applying the patch, at least we also need to do
bitbake -c cleanall autoconf-native automake-native.

(In reply to comment #11)
&gt; Created attachment 144 [details]
&gt; gnu-config.patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13590</commentid>
    <comment_count>13</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-05-05 06:21:50 +0000</bug_when>
    <thetext>What about the previous change to autoconf-native?  Is this not necessary (it&apos;s not in this patch)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13591</commentid>
    <comment_count>14</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-05-05 07:29:41 +0000</bug_when>
    <thetext>(In reply to comment #13)
&gt; What about the previous change to autoconf-native?  Is this not necessary (it&apos;s
&gt; not in this patch)?

Yes, I think it&apos;s not necessary as autoconf-native depends on gnu-config-native. If we add perl-native into gnu-config-native&apos;s DEPENDS, we can make sure autoconf-native also depends on perl-native. Certainly we need to re-build and re-populate autoconf-native. 
Does this make sense?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13592</commentid>
    <comment_count>15</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-05-05 07:31:52 +0000</bug_when>
    <thetext>I&apos;ll give it a try with only this patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13593</commentid>
    <comment_count>16</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-05-05 07:33:40 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #6)
&gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; Yes, you only see this error message in log.do_configure
&gt; &gt; &gt; A closer look shows that it seems to be running Perl scripts and
&gt; &gt; &gt; libraries from sysroots, but the system host Perl is being called,
&gt; &gt; &gt; thus causing the mismatch.
&gt; &gt; &gt; On my system, here&apos;s the main host version:
&gt; &gt; &gt;   $ perl --version
&gt; &gt; &gt;   This is perl, v5.10.1 (*) built for i386-linux-thread-multi
&gt; &gt; &gt; This is the one in sysroots that _should_ be used instead:
&gt; &gt; &gt;   $ tmp/sysroots/i686-linux/usr/bin/perl --version
&gt; &gt; &gt;   This is perl 5, version 12, subversion 2 (v5.12.2) built for
&gt; &gt; &gt; i686-linux-thread-multi
&gt; &gt; &gt; So however Perl is being executed in the gnu-configize, it&apos;s getting
&gt; &gt; &gt; the host program (5.10.1), not the correct sysroots version (5.12.2)
&gt; &gt; autoconf-native&apos;s do_configure detects perl from PATH and reflect the path
&gt; &gt; into the scripts generated, e.g., ${STAGING_BINDIR_NATIVE}/autom4te.
&gt; &gt; If perl-native&apos;s does populate_sysroot later than autoconf, the host&apos;s perl
&gt; &gt; will be used -- this is not what we desire.
&gt; Actually, not only autoconf-native but also automake-native, quilt-native,
&gt; glib-2.0-native, util-linux-native, quilt-native have the same issue (they all
&gt; don&apos;t cause this bug)
&gt; {quilt, glib-2.0, util-linux}-native depend on {autoconf,automake}-native, and
&gt; {autoconf,automake}-native depend on gnu-config-native.
&gt; So I think the proper fix should be making quilt-native and gnu-config-native
&gt; depend on perl-native (surely we still need to &quot;bitbake -c clean&quot;
&gt; {autoconf,automake,glib-2.0,util-linux} and bitbake them again)
&gt; &gt; mised one more piece of patch:
&gt; &gt; in meta/recipes-devtools/gnu-config/gnu-config/gnu-configize.in, should change
&gt; &gt; the hardcoded &quot;/usr/bin/perl&quot;  with &quot;perl&quot;.
&gt; &gt; -eval &apos;case $# in 0) exec /usr/bin/perl -S &quot;$0&quot;;; *) exec /usr/bin/perl -S &quot;$0&quot;
&gt; &gt; &quot;$@&quot;;; esac&apos;
&gt; &gt; +eval &apos;case $# in 0) exec perl -S &quot;$0&quot;;; *) exec perl -S &quot;$0&quot; &quot;$@&quot;;; esac&apos;

&gt; This change is still necessary.

Maybe doing sed replacement for gnu-config-native is a better way:
sed -i -e &apos;s,/usr/bin/perl,${STAGING_BINDIR_NATIVE}/perl,g&apos;
${D}${bindir}/gnu-configize</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13594</commentid>
    <comment_count>17</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-05-05 07:44:25 +0000</bug_when>
    <thetext>Seems to work with only the patch to gnu-config</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13595</commentid>
    <comment_count>18</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-05-05 07:46:39 +0000</bug_when>
    <thetext>(In reply to comment #17)
&gt; Seems to work with only the patch to gnu-config

Gary, thank you very much for the verification! 

I&apos;ll do more tests and try to send out the patch to oe-core mailing list tomorrow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13607</commentid>
    <comment_count>19</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-05-05 21:04:00 +0000</bug_when>
    <thetext>(In reply to comment #16)
&gt; (In reply to comment #9)
&gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; &gt; Yes, you only see this error message in log.do_configure
&gt; &gt; &gt; &gt; A closer look shows that it seems to be running Perl scripts and
&gt; &gt; &gt; &gt; libraries from sysroots, but the system host Perl is being called,
&gt; &gt; &gt; &gt; thus causing the mismatch.
&gt; &gt; &gt; &gt; On my system, here&apos;s the main host version:
&gt; &gt; &gt; &gt;   $ perl --version
&gt; &gt; &gt; &gt;   This is perl, v5.10.1 (*) built for i386-linux-thread-multi
&gt; &gt; &gt; &gt; This is the one in sysroots that _should_ be used instead:
&gt; &gt; &gt; &gt;   $ tmp/sysroots/i686-linux/usr/bin/perl --version
&gt; &gt; &gt; &gt;   This is perl 5, version 12, subversion 2 (v5.12.2) built for
&gt; &gt; &gt; &gt; i686-linux-thread-multi
&gt; &gt; &gt; &gt; So however Perl is being executed in the gnu-configize, it&apos;s getting
&gt; &gt; &gt; &gt; the host program (5.10.1), not the correct sysroots version (5.12.2)
&gt; &gt; &gt; autoconf-native&apos;s do_configure detects perl from PATH and reflect the path
&gt; &gt; &gt; into the scripts generated, e.g., ${STAGING_BINDIR_NATIVE}/autom4te.
&gt; &gt; &gt; If perl-native&apos;s does populate_sysroot later than autoconf, the host&apos;s perl
&gt; &gt; &gt; will be used -- this is not what we desire.
&gt; &gt; Actually, not only autoconf-native but also automake-native, quilt-native,
&gt; &gt; glib-2.0-native, util-linux-native, quilt-native have the same issue (they all
&gt; &gt; don&apos;t cause this bug)
&gt; &gt; {quilt, glib-2.0, util-linux}-native depend on {autoconf,automake}-native, and
&gt; &gt; {autoconf,automake}-native depend on gnu-config-native.
&gt; &gt; So I think the proper fix should be making quilt-native and gnu-config-native
&gt; &gt; depend on perl-native (surely we still need to &quot;bitbake -c clean&quot;
&gt; &gt; {autoconf,automake,glib-2.0,util-linux} and bitbake them again)
&gt; &gt; &gt; mised one more piece of patch:
&gt; &gt; &gt; in meta/recipes-devtools/gnu-config/gnu-config/gnu-configize.in, should change
&gt; &gt; &gt; the hardcoded &quot;/usr/bin/perl&quot;  with &quot;perl&quot;.
&gt; &gt; &gt; -eval &apos;case $# in 0) exec /usr/bin/perl -S &quot;$0&quot;;; *) exec /usr/bin/perl -S &quot;$0&quot;
&gt; &gt; &gt; &quot;$@&quot;;; esac&apos;
&gt; &gt; &gt; +eval &apos;case $# in 0) exec perl -S &quot;$0&quot;;; *) exec perl -S &quot;$0&quot; &quot;$@&quot;;; esac&apos;
&gt; &gt; This change is still necessary.
&gt; Maybe doing sed replacement for gnu-config-native is a better way:
&gt; sed -i -e &apos;s,/usr/bin/perl,${STAGING_BINDIR_NATIVE}/perl,g&apos;
&gt; ${D}${bindir}/gnu-configize

RP doesn&apos;t think this is ok. We&apos;re discussining.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13660</commentid>
    <comment_count>20</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-05-10 18:02:10 +0000</bug_when>
    <thetext>A workaround patch has been in poky master:
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=605141a93443df042634b2219a8628a9004be023

And I&apos;m working to tidy the usages of perl-native/perl-native-runtime to get a real fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13792</commentid>
    <comment_count>21</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-05-13 10:49:24 +0000</bug_when>
    <thetext>
Work-around for bernard

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5d3bfbbd187c4eb9fbfe66f0a9f3f22e5ce94427</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14241</commentid>
    <comment_count>22</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-06-09 19:04:59 +0000</bug_when>
    <thetext>Patch series has been applied to master and oe-core</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>144</attachid>
            <date>2011-05-05 06:05:11 +0000</date>
            <delta_ts>2011-05-05 06:05:11 +0000</delta_ts>
            <desc>gnu-config.patch</desc>
            <filename>gnu-config.patch</filename>
            <type>text/plain</type>
            <size>1503</size>
            <attacher name="Dexuan Cui">dexuan.cui</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL21ldGEvcmVjaXBlcy1kZXZ0b29scy9nbnUtY29uZmlnL2dudS1jb25maWcv
Z251LWNvbmZpZ2l6ZS5pbiBiL21ldGEvcmVjaXBlcy1kZXZ0b29scy9nbnUtY29uZmlnL2dudS1j
b25maWcvZ251LWNvbmZpZ2l6ZS5pbgppbmRleCBkNDkwOGZjLi5hZGY5YzBlIDEwMDc1NQotLS0g
YS9tZXRhL3JlY2lwZXMtZGV2dG9vbHMvZ251LWNvbmZpZy9nbnUtY29uZmlnL2dudS1jb25maWdp
emUuaW4KKysrIGIvbWV0YS9yZWNpcGVzLWRldnRvb2xzL2dudS1jb25maWcvZ251LWNvbmZpZy9n
bnUtY29uZmlnaXplLmluCkBAIC0xLDcgKzEsNyBAQAogIyEgL3Vzci9iaW4vZW52IHBlcmwKICMg
LSotIHBlcmwgLSotCiAKLWV2YWw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