From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Mon, 25 May 2015 14:30:50 +0200 Message-ID: From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a11c3534a226f7a0516e72ed2 Subject: [9fans] mk - how to work around environment size limit on linux Topicbox-Message-UUID: 5553f750-ead9-11e9-9d60-3106f5b1d025 --001a11c3534a226f7a0516e72ed2 Content-Type: text/plain; charset=UTF-8 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 --001a11c3534a226f7a0516e72ed2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
i'm using plan9port mk o= n linux and just hit the environment+argument length limit -- linux' ex= ecve($PLAN9/bin/rc, ... ) returns E2BIG because $newprereq gets too large.<= br>
how do i work around? is there an idiomatic way of splitting up $new= prereq into smaller chunks?

the mkfile is:

<= /div>TIMESTAMP_FILE:
=C2=A0 for (i in $newprereq)
=C2=A0= =C2=A0=C2=A0 do_stuff $i

<|./generate-rules-for-files PATTE= RN

where ./generate-rules-for-files outputs rules like TIMESTA= MP_FILE: file_matching_pattern
--001a11c3534a226f7a0516e72ed2--