]> code.ossystems Code Review - openembedded-core.git/commit
oe/path.py: fix for "Argument list too long"
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 14 Mar 2017 08:45:45 +0000 (01:45 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Jun 2017 09:48:54 +0000 (10:48 +0100)
commitbefda6ce3fd916ab04c035d1d82ed173759f7f09
tree71d54f2412440d7d560098ceed4c698617fbca61
parent4c353eeff45f91533f22392f129bc5a477ee5207
oe/path.py: fix for "Argument list too long"

Issue: LIN9-1648

Fixed when len(TMPDIR) = 410:
$ bitbake core-image-sato-sdk
[snip]
Subprocess output:
/bin/sh: /bin/cp: Argument list too long

ERROR: core-image-sato-sdk-1.0-r0 do_rootfs: Function failed: do_rootfs
[snip]

This is because "copyhardlinktree(src, dst)" does "cp -afl src/* dst",
while src/* is expanded to "src/file1 src/file2, src/file3..." which
causes the "Argument list too long", use ./* as src and change cwd in
subprocess.check_output() to fix the problem.

(From OE-Core rev: a3dc93eb25fba32109edd1db6e8766074fb52e4b)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/path.py