From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: In-Reply-To: From: Skip Tavakkolian Date: Mon, 25 May 2015 14:16:12 +0000 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7bfe97d8f0784f0516e8a691 Subject: Re: [9fans] mk - how to work around environment size limit on linux Topicbox-Message-UUID: 555ce04a-ead9-11e9-9d60-3106f5b1d025 --047d7bfe97d8f0784f0516e8a691 Content-Type: text/plain; charset=UTF-8 do you mean other than using xargs? On Mon, May 25, 2015 at 5:31 AM dexen deVries wrote: > i'm using plan9port mk on linux and just hit the environment+argument > length limit -- linux' execve($PLAN9/bin/rc, ... ) returns E2BIG because > $newprereq gets too large. > > how do i work around? is there an idiomatic way of splitting up $newprereq > into smaller chunks? > > the mkfile is: > > TIMESTAMP_FILE: > for (i in $newprereq) > do_stuff $i > > <|./generate-rules-for-files PATTERN > > where ./generate-rules-for-files outputs rules like TIMESTAMP_FILE: > file_matching_pattern > --047d7bfe97d8f0784f0516e8a691 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
do you mean other than using xargs?

On Mon, May 25, 2015 at 5:31 AM dexen deVries <dexen.devries@gmail.com> wrote:<= br>
i'm using plan9port mk on linux and just hit the environment+argu= ment length limit -- linux' execve($PLAN9/bin/rc, ... ) returns E2BIG b= ecause $newprereq gets too large.

how do i work around? is there an = idiomatic way of splitting up $newprereq into smaller chunks?

the mkfile is:

TIMESTAMP_FILE:
=C2=A0 for = (i in $newprereq)
=C2=A0=C2=A0=C2=A0 do_stuff $i

<= |./generate-rules-for-files PATTERN

where ./generate-rules-for= -files outputs rules like TIMESTAMP_FILE: file_matching_pattern
--047d7bfe97d8f0784f0516e8a691--