<?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>369</bug_id>
          
          <creation_ts>2010-09-30 03:55:21 +0000</creation_ts>
          <short_desc>can&apos;t build attr</short_desc>
          <delta_ts>2010-12-21 06:07:08 +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>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dexuan Cui">dexuan.cui</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>qing.he</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10073</commentid>
    <comment_count>0</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-30 03:55:21 +0000</bug_when>
    <thetext>Based on today&apos;s poky.git&apos;s  master (commit 7f7c185c) plus Kevin&apos;s fix to gcc (commit 843d9daf), I met with the failure when building poky-image-sdk -- after the failure occurred, &quot;bitbake attr&quot; had the same do_configure failure:

| /opt/dcui/p/build/tmp/work/ppc603e-poky-linux/attr-2.4.44-r1/attr-2.4.44/configure: line 11009: test: too many arguments
| checking for tar... /bin/tar
| checking for gzip... /bin/gzip
| checking for makedepend... /bin/true
| checking for sort... /usr/bin/sort
| checking whether ln -s works... yes
| checking for msgfmt... no
| 
| FATAL ERROR: msgfmt does not seem to be installed.
| attr cannot be built without a working gettext installation.
| FATAL: oe_runconf failed
NOTE: package attr-2.4.44-r1: task do_configure: Failed

I don&apos;t think this has anything to do with kevin&apos;s fix.

Here msgfmt should be supplied by gettext. What&apos;s strange is: attr does have a DEPENDS on gettext. And &quot;bitbake gettext; bitbake -c clean attr; bitbake attr&quot; can&apos;t fix the issue.
BTW: on mips, I didn&apos;t meet with the failure.

Actually, I don&apos;t think this is ppc related though it occurred on ppc.
Maybe not every build can reproduce the issue.

I will futher look into the bug later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10248</commentid>
    <comment_count>1</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-10-08 03:01:15 +0000</bug_when>
    <thetext>attr/acl uses a customize way (custom m4 macros) to detect several basic utilities, i.e. it doesn&apos;t detect poky&apos;s sysroot dir for them. So this kind of issue is expected.


Btw, it should DEPENDS on &quot;gettext-native&quot; or &quot;inherit gettext&quot; rather than DEPENDS on gettext. The binary is needed by the build process. Can you try if this helps?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10266</commentid>
    <comment_count>2</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-10-08 21:59:11 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; attr/acl uses a customize way (custom m4 macros) to detect several basic
&gt; utilities, i.e. it doesn&apos;t detect poky&apos;s sysroot dir for them. So this kind of
&gt; issue is expected.
&gt; Btw, it should DEPENDS on &quot;gettext-native&quot; or &quot;inherit gettext&quot; rather than
&gt; DEPENDS on gettext. The binary is needed by the build process. Can you try if
&gt; this helps?

Thanks a lot for Qing&apos;s patch: the issue turns out to be a hardcoded search path in the AC_PATH_PROG of attr&apos;s customized macro.

BTW: the bug was triggered on a build host that didn&apos;t install gettext.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10284</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-10-09 06:46:08 +0000</bug_when>
    <thetext>Fix merged in http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=1d7c9a9828747f6d58b141af685633d69f896baa</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10285</commentid>
    <comment_count>4</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-10-09 08:09:13 +0000</bug_when>
    <thetext>I can build attr successfully with the fix. Let me VERIFY the bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>