9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Skip Tavakkolian <skip.tavakkolian@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] mk - how to work around environment size limit on linux
Date: Mon, 25 May 2015 14:16:12 +0000	[thread overview]
Message-ID: <CAJSxfm+ExtJ0CoNMjXNqj9=LYg=XUZZA2g7jdEedWNh1=c_u7A@mail.gmail.com> (raw)
In-Reply-To: <CAJUT6o6Q1aVLXg+oC+UULtt0_=9fPmLUavv8O_QsLvGf+Q2OAg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]

do you mean other than using xargs?

On Mon, May 25, 2015 at 5:31 AM dexen deVries <dexen.devries@gmail.com>
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
>

[-- Attachment #2: Type: text/html, Size: 968 bytes --]

      reply	other threads:[~2015-05-25 14:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-25 12:30 dexen deVries
2015-05-25 14:16 ` Skip Tavakkolian [this message]

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='CAJSxfm+ExtJ0CoNMjXNqj9=LYg=XUZZA2g7jdEedWNh1=c_u7A@mail.gmail.com' \
    --to=skip.tavakkolian@gmail.com \
    --cc=9fans@9fans.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).