Bug 8313 - fix errors when len(TMPDIR) = 410
Summary: fix errors when len(TMPDIR) = 410
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.0
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.0
Assignee: Robert Yang
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-09-17 02:53 UTC by Robert Yang
Modified: 2015-11-17 16:02 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2015-09-17 02:53:39 UTC
Yocto supports len(TMPDIR) < 410, test and fix the problem in deep dir.
Comment 2 Bogdan Alexandru Voiculescu 2015-11-17 15:08:21 UTC
Verified on master: fc45deac89ef63ca1c44e763c38ced7dfd72cbe1

Having a len(PATH) < 407, build started. 


len(PATH) >= 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'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) >= 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'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) >= 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 "/home/yocto/yocto/BBB/poky/bitbake/lib/bb/cookerdata.py", line 323, in CookerDataBuilder.parseConfigurationFiles(prefiles=[], postfiles=[]):
             if data.getVar("BB_WORKERCONTEXT", False) is None:
    >            bb.fetch.fetcher_init(data)
             bb.codeparser.parser_cache_init(data)
  File "/home/yocto/yocto/BBB/poky/bitbake/lib/bb/fetch2/__init__.py", line 503, in fetcher_init(d=<bb.data_smart.DataSmart object at 0x7fc0045676d0>):
             logger.debug(1, "Clearing SRCREV cache due to cache policy of: %s", srcrev_policy)
    >        revs = bb.persist_data.persist('BB_URI_HEADREVS', d)
             try:
  File "/home/yocto/yocto/BBB/poky/bitbake/lib/bb/persist_data.py", line 217, in persist(domain='BB_URI_HEADREVS', d=<bb.data_smart.DataSmart object at 0x7fc0045676d0>):
         bb.utils.mkdirhier(cachedir)
         cachefile = os.path.join(cachedir, "bb_persist_data.sqlite3")
    >    return SQLTable(cachefile, domain)
  File "/home/yocto/yocto/BBB/poky/bitbake/lib/bb/persist_data.py", line 56, in SQLTable.__init__(cachefile='/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', table='BB_URI_HEADREVS'):
             self.table = table
    >        self.cursor = connect(self.cachefile)

  File "/home/yocto/yocto/BBB/poky/bitbake/lib/bb/persist_data.py", line 202, in connect(database='/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'):
     def connect(database):
    >    connection = sqlite3.connect(database, timeout=5, isolation_level=None)
         connection.execute("pragma synchronous = off;")
OperationalError: unable to open database file