[RFC] pkgmk: multiple make jobs by default?
Hi, the idea to put export MAKEFLAGS="-j2" in pkgutils' pkgmk.conf has been around for a while. Pros: o Slightly faster builds even on single core machines o Packagers will find out immediately whether a port needs -j 1 or not. No more surprises and delayed fixups. I cannot think of any cons :p Any objections to putting export MAKEFLAGS="-j2" in pkgmk.conf by default? Thanks, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
Hi Tilman On Fri, May 02, 2008 at 11:20:06 +0200, Tilman Sauerbeck wrote:
Hi, [...] Any objections to putting export MAKEFLAGS="-j2" in pkgmk.conf by default?
No objection per se, but remarks/questions: 1. When introducing this, we should also come up with a recommended way to force single job builds to make sure it's used consistently 2. what about non-make tools like jam, scons et all? Do they honour the same environment variable? 3. should there maybe be some abstraction, like PKGMK_JOBS which exports MAKEFLAGS (and other variables) unless there's a .noparallel file or a -np flag specified to be consistent with no-strip? Regards, Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
Johannes Winkelmann [2008-05-02 11:30]:
Hi Tilman On Fri, May 02, 2008 at 11:20:06 +0200, Tilman Sauerbeck wrote:
Hi, [...] Any objections to putting export MAKEFLAGS="-j2" in pkgmk.conf by default?
No objection per se, but remarks/questions:
1. When introducing this, we should also come up with a recommended way to force single job builds to make sure it's used consistently
Mmh yeah. OTOH I'd prefer if maintainers would patch the Makefiles to allow multiple jobs at once. But that's probably not realistic since the reasons for the breakage aren't always easy to find :]
2. what about non-make tools like jam, scons et all? Do they honour the same environment variable?
Well, almost nobody use jam and scons anyway :P. And I believe scons has much better dependency tracking than Make, so I guess there might not even be an issue with scons. No idea about jam though.
3. should there maybe be some abstraction, like PKGMK_JOBS which exports MAKEFLAGS (and other variables) unless there's a .noparallel file or a -np flag specified to be consistent with no-strip?
Interesting idea! Does a -np switch make sense though? If multiple jobs are supported I don't think there's a reason why you'd want to revert to a single job. And if multiple jobs don't work at all, the user shouldn't have to specify -np herself IMO. I think I like .noparallel, but I need to ponder it some more ;P Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
participants (2)
-
Johannes Winkelmann
-
Tilman Sauerbeck