<?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>2434</bug_id>
          
          <creation_ts>2012-05-08 02:47:03 +0000</creation_ts>
          <short_desc>sanity.bbclass: check TMPDIR is not too long</short_desc>
          <delta_ts>2012-07-13 10:27:42 +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>OE-Core</product>
          <component>core</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=2591</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Patch Review 30%</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M2</target_milestone>
          <dependson>2639</dependson>
    
    <dependson>2640</dependson>
    
    <dependson>2664</dependson>
    
    <dependson>2688</dependson>
    
    <dependson>2689</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhenfeng.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>21155</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-05-08 02:47:03 +0000</bug_when>
    <thetext>When the length of TMPDIR is longer than a threshold, there would be an
    &quot;Argument list too long&quot; error when building gcc-cross, this is the
    error from the exec(), the maximum length of argument is defined in
    /usr/include/linux/limits.h:
    
      #define ARG_MAX       131072    /* # bytes of args + environ for exec() */
    
    It&apos;s hard to determine the threshold of the TMPDIR, here is the
    experimental value:
    len(TMPDIR) = 182   Success
    len(TMPDIR) = 192   Failed
    
    So set the maximum length of TMPDIR to 180 seems a reasonable value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21293</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-05-10 23:06:59 +0000</bug_when>
    <thetext>This is the wrong approach, please consider the approach looking at the gcc recipe and use the @.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21295</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-05-11 01:15:43 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This is the wrong approach, please consider the approach looking at the gcc
&gt; recipe and use the @.

Hi Saul,
I&apos;m sorry, but I don&apos;t quite understand what did you mean, I had sent pull request for it, and there is the discussion about the gcc&apos;s recipe, the pull request is in the oe-core, would you please take a look at it? And the title is:
sanity.bbclass: check TMPDIR is not too long</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22922</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-07-10 01:56:57 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2dee999ab2731c2a96e82762ae04fe44f27edac6

The length can not be longer than 410 currently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23094</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-07-13 10:27:42 +0000</bug_when>
    <thetext>Verified with 1.3 m2 rc1.
git info: eb0cb7e8234f5d2e5623406e9660be91cf52f65e

Create a build directory, the length is longer than 410. Run &quot;bitbake core-image-sato&quot; will get following error message:

##########
ERROR:  OE-core&apos;s config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    The length of TMPDIR is longer than 410, this would cause unexpected errors, please use a shorter path.
Failed to fetch test data from the network. Please ensure your network is configured correctly.
##########

When the length of TMPDIR less than 410, &quot;bitbake core-image-sato&quot; can run without problem.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>