[OE-core] [PATCH 1/2] diffutils: do_configure: fix "Argument list too long"

Khem Raj raj.khem at gmail.com
Tue Dec 6 02:38:10 UTC 2016


> On Dec 5, 2016, at 6:11 PM, Robert Yang <liezhi.yang at windriver.com> wrote:
> 
> 
> 
> On 12/06/2016 02:23 AM, Khem Raj wrote:
>> On Mon, Dec 5, 2016 at 6:54 AM, Robert Yang <liezhi.yang at windriver.com> wrote:
>>> Fixed when len(TMPDIR) =  410:
>>> aclocal: error: cannot open echo [snip]: Argument list too long
>>> 
>>> This is becuase it has a lot of m4 files, use relative path for them
>>> can fix the problem.
>>> 
>>> It doesn't happen when MACHINE="qemux86", I think it is because
>>> intel-x86-64 is longer than qemux86.
>>> 
>>> Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
>>> ---
>>> meta/recipes-extended/diffutils/diffutils_3.4.bb | 3 +++
>>> 1 file changed, 3 insertions(+)
>>> 
>>> diff --git a/meta/recipes-extended/diffutils/diffutils_3.4.bb b/meta/recipes-extended/diffutils/diffutils_3.4.bb
>>> index cb7092b..be280ec 100644
>>> --- a/meta/recipes-extended/diffutils/diffutils_3.4.bb
>>> +++ b/meta/recipes-extended/diffutils/diffutils_3.4.bb
>>> @@ -10,6 +10,9 @@ SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.xz \
>>> 
>>> EXTRA_OECONF += "--without-libsigsegv-prefix"
>>> 
>>> +# Fix "Argument list too long" error when len(TMPDIR) = 410
>>> +acpaths = "-I ./m4"
>> 
>> it looks ok if this work ok with externalsrc
> 
> Hi Khem,
> 
> What did mean about externalsrc, please ? Did you mean when B != S?

yeah, 

> If yes, it works well since it is for aclocal, which always runs in S.

seems to be the case. Then we should be fine.

> We have already such a fix in several recipes.
> 
> meta/recipes-extended/tar/tar.inc:acpaths = "-I ./m4"
> meta/recipes-extended/wget/wget.inc:acpaths = "-I ./m4"
> meta/recipes-core/coreutils/coreutils_6.9.bb:acpaths = "-I ./m4"
> meta/recipes-core/coreutils/coreutils_8.25.bb:acpaths = "-I ./m4"
> 
> // Robert
> 
>> 
>>> +
>>> do_configure_prepend () {
>>>        # Need to remove gettext macros with weird mix of versions
>>>        for i in codeset.m4 gettext_gl.m4 intlmacosx.m4 inttypes-pri.m4 lib-ld_gl.m4 lib-prefix_gl.m4 po_gl.m4 ssize_t.m4 wchar_t.m4 wint_t.m4; do
>>> --
>>> 2.9.0
>>> 
>>> --
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core at lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>> 




More information about the Openembedded-core mailing list