Bug 6397

Summary: Fix "Argument list too long" issues
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Chong Lu <chong.lu>
Component: coreAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Low CC: chong.lu, liezhi.yang, mark.hatle, meta.mr.watcher, meta.watcher, randy.macleod, sgw
Version: 1.7   
Target Milestone: 1.8 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on: 6138    
Bug Blocks:    

Description Chong Lu 2014-06-04 08:39:31 UTC
There would be an "Argument list too long" error when the TMPDIR is in a deep dir, for example, when "len(readlink -f TMPDIR) >= 410"

We should ensure build successfully when the length of TMPDIR < 410.
Comment 1 Chong Lu 2014-06-04 08:45:01 UTC
We need make sure the world build is OK when TMPDIR < 410 before release.
Comment 2 Saul Wold 2014-06-05 14:48:26 UTC
Can you please be more clear with where this is failing?
Comment 3 Saul Wold 2014-11-13 16:13:21 UTC
Still waiting for feedback
Comment 4 Mark Hatle 2014-12-08 20:04:33 UTC
If the path to your build directory is >= 410 characters the build may fail due to command line limitations.

While it's unusual for most to get to that length, it is possible in some deep directory structure situations.
Comment 5 Randy MacLeod 2015-02-27 14:46:52 UTC
Chong emailed me to say:
---
I have sent a patch to fix similar issue.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6138

patch:
http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=chonglu/tar&id=2e5aded6bd991ada5810d99cb6bfdc9bfe79c39b

But this patch is still not merged.

The #6397 is created to trace the long TMPDIR issue. 
---

So what's the status of the patch above Saul?

It would seem that this sort of problem requires regular tests with
a deep path. Can such a build be added to the YP set?
Comment 6 Robert Yang 2015-03-25 02:12:29 UTC
All are fixed in YP 1.8