<?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>8313</bug_id>
          
          <creation_ts>2015-09-17 02:53:39 +0000</creation_ts>
          <short_desc>fix errors when len(TMPDIR) = 410</short_desc>
          <delta_ts>2015-11-17 16:02:44 +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>2.0</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>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54180</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-17 02:53:39 +0000</bug_when>
    <thetext>Yocto supports len(TMPDIR) &lt; 410, test and fix the problem in deep dir.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54656</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-25 02:31:38 +0000</bug_when>
    <thetext>Master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c6b52f32afd748004f532abf00fcf5a3e7fa1e8a
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=81d65df30c99b9a07c749d07ebf4ba882451d32d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56533</commentid>
    <comment_count>2</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-11-17 15:08:21 +0000</bug_when>
    <thetext>Verified on master: fc45deac89ef63ca1c44e763c38ced7dfd72cbe1

Having a len(PATH) &lt; 407, build started. 


len(PATH) &gt;= 407

yocto@yocto-PowerEdge-R720:~/yocto/BBB/8313/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/build$ bitbake core-image-minimal
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.


len(PATH) &gt;= 432

yocto@yocto-PowerEdge-R720:~/yocto/BBB/8313/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/build$ bitbake core-image-minimal
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.



len(PATH) &gt;= 511

yocto@yocto-PowerEdge-R720:~/yocto/BBB/8313/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/build$ bitbake core-image-basic
ERROR: Error parsing configuration files
Traceback (most recent call last):
  File &quot;/home/yocto/yocto/BBB/poky/bitbake/lib/bb/cookerdata.py&quot;, line 323, in CookerDataBuilder.parseConfigurationFiles(prefiles=[], postfiles=[]):
             if data.getVar(&quot;BB_WORKERCONTEXT&quot;, False) is None:
    &gt;            bb.fetch.fetcher_init(data)
             bb.codeparser.parser_cache_init(data)
  File &quot;/home/yocto/yocto/BBB/poky/bitbake/lib/bb/fetch2/__init__.py&quot;, line 503, in fetcher_init(d=&lt;bb.data_smart.DataSmart object at 0x7fc0045676d0&gt;):
             logger.debug(1, &quot;Clearing SRCREV cache due to cache policy of: %s&quot;, srcrev_policy)
    &gt;        revs = bb.persist_data.persist(&apos;BB_URI_HEADREVS&apos;, d)
             try:
  File &quot;/home/yocto/yocto/BBB/poky/bitbake/lib/bb/persist_data.py&quot;, line 217, in persist(domain=&apos;BB_URI_HEADREVS&apos;, d=&lt;bb.data_smart.DataSmart object at 0x7fc0045676d0&gt;):
         bb.utils.mkdirhier(cachedir)
         cachefile = os.path.join(cachedir, &quot;bb_persist_data.sqlite3&quot;)
    &gt;    return SQLTable(cachefile, domain)
  File &quot;/home/yocto/yocto/BBB/poky/bitbake/lib/bb/persist_data.py&quot;, line 56, in SQLTable.__init__(cachefile=&apos;/home/yocto/yocto/BBB/8313/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/build/cache/bb_persist_data.sqlite3&apos;, table=&apos;BB_URI_HEADREVS&apos;):
             self.table = table
    &gt;        self.cursor = connect(self.cachefile)

  File &quot;/home/yocto/yocto/BBB/poky/bitbake/lib/bb/persist_data.py&quot;, line 202, in connect(database=&apos;/home/yocto/yocto/BBB/8313/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/8529/build/tmp/deploy/images/qemux86/home/yocto/yocto/BBB/build/cache/bb_persist_data.sqlite3&apos;):
     def connect(database):
    &gt;    connection = sqlite3.connect(database, timeout=5, isolation_level=None)
         connection.execute(&quot;pragma synchronous = off;&quot;)
OperationalError: unable to open database file</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>