how can i tell rpmbuild to *not* parallelize make during the build?

Rick Stevens ricks at alldigital.com
Mon Feb 10 20:18:16 UTC 2014


On 02/10/2014 12:09 PM, Robert P. J. Day issued this missive:
>
>    grrrrrr ... following the instructions here:
>
> https://fedoraproject.org/wiki/Building_a_custom_kernel
>
> on how to build a custom kernel (some of which is incorrect, more on
> that later), and builds keep failing at random places, i'm guessing
> because i have a hyperthreaded quad-core laptop, and the "make -j8" is
> simply tripping over itself in arbitrary places.
>
>    what's the easiest way to specify a single-threaded build? yes, it
> will take forever, but it will be nice to verify that that's the
> problem.
>
>    thanks.
>
> rday

Theoretically you could do

	MAKEFLAGS="-j 1" rpmbuild blah-blah

gmake looks for the environment variable "MAKEFLAGS". Most reasonable
makefiles do "MAKEFLAGS+=other-specific-flags", so it should honor it.
Keep in mind that if there are multiple "-j" variables to gmake, it will
only honor the LAST one specified. YMMV.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks at alldigital.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-   The light at the end of the tunnel is really an oncoming train.  -
----------------------------------------------------------------------


More information about the users mailing list