From: Robert Yang <liezhi.yang@windriver.com>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] tar: set acpaths to avoid "Argument list too long" error
Date: Fri, 13 Mar 2015 09:51:29 +0800 [thread overview]
Message-ID: <550242A1.8020509@windriver.com> (raw)
In-Reply-To: <CAJTo0LbtbqvHgJG9i6zdY+YcBU70dHJhVFE=fBX=k46ty8N8=g@mail.gmail.com>
On 03/12/2015 08:16 PM, Burton, Ross wrote:
>
> On 12 March 2015 at 06:14, Robert Yang <liezhi.yang@windriver.com
> <mailto:liezhi.yang@windriver.com>> wrote:
>
> +acpaths = "-I ./m4"
>
>
> Why does this only happen on tar? Why is it safe to pass just -I ./m4 when the
> detected list that you're overriding is effectively -I ./m4 -I ./tests?
Not only tar has this problem, but also other recipes such as coreutils,
because they have many 4 files, but we have fixed that others bfore,
for example:
commit 238e9b54e228b850434f7d503870e86cfb12b775
Author: Robert Yang <liezhi.yang@windriver.com>
Date: Sun Sep 15 09:13:12 2013 +0000
coreutils: set acpaths to avoid "Argument list too long" error
Now I tested the build in the deep directory again, only found tar
failed, and Chong had made a patch for it.
If we don't set 'acpaths = "-I ./m4"', then it would use the absolute path,
which would be too long, here is the related code in autotools.bbclass
for acpaths:
acpaths = "default"
[snip]
ACLOCAL="aclocal --system-acdir=${ACLOCALDIR}/"
if [ x"${acpaths}" = xdefault ]; then
acpaths=
for i in `find ${S} -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
grep -v 'acinclude.m4' | grep -v 'aclocal-copy' | sed -e
's,\(.*/\).*$,\1,'|sort -u`; do
acpaths="$acpaths -I $i"
done
else
acpaths="${acpaths}"
fi
I think it's safe to set acpaths = "-I ./m4" as we had done for coreutils.
// Robert
>
> Would it be better to just make all include paths relative to ${S} when
> generating the acpaths?
>
> Ross
next prev parent reply other threads:[~2015-03-13 1:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-12 6:14 [PATCH 0/1] tar: fix for len(TMPDIR) = 410 build Robert Yang
2015-03-12 6:14 ` [PATCH 1/1] tar: set acpaths to avoid "Argument list too long" error Robert Yang
2015-03-12 12:16 ` Burton, Ross
2015-03-12 12:43 ` Richard Purdie
2015-03-13 1:51 ` Robert Yang [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-04-09 9:44 [PATCH 0/1] " Chong Lu
2014-04-09 9:44 ` [PATCH 1/1] " Chong Lu
2014-04-14 2:00 ` Chong Lu
2014-05-16 5:33 ` Chong Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=550242A1.8020509@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.