Mailinglist Archive: opensuse-packaging (161 mails)

< Previous Next >
Re: [opensuse-packaging] Is there a decent explanation of "%__make %{?jobs:-j%{jobs}}" somewhere?
  • From: Dave Plater <dplater@xxxxxxxxxxxxxxxx>
  • Date: Fri, 08 Jan 2010 12:02:31 +0200
  • Message-id: <4B4702B7.2000900@xxxxxxxxxxxxxxxx>
On 01/08/2010 11:52 AM, Jean Delvare wrote:
Le vendredi 8 janvier 2010 10:42, Dave Plater a écrit :

I used "%__make %{?jobs:-j%{jobs}} CPU_COUNT=%{jobs} doc" and it works
like a charm.

I'm not sure if %{jobs} is guaranteed to be always defined. I
suspect not, so the following would probably be safer:

%__make %{?jobs:-j%{jobs} CPU_COUNT=%{jobs}} doc

That being said, this CPU_COUNT= thing looks like a ugly hack and
the upstream developers should be invited to get rid of it if
possible. Their build process shouldn't depend on how many jobs
there are.


The document build consists mostly of ghostscript and tex commands and
these jobs are run simultaneously according to the CPU_COUNT= value. It
slows everything else down to a crawl on my box but it cuts the build
time in half.
Regards
Dave P
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups