On Tue, Apr 18, 2023 at 01:50:32PM +0300, Panu Matilainen wrote:
> On 4/18/23 12:24, Florian Weimer wrote:
> >What's the best way to disable to disable parallel (make) builds?
> >
> >This?
> >
> >%undefine _smp_build_ncpus
> >
> >It seems it will set RPM_BUILD_NCPUS to the empty string, though.
> 
> No, don't do that. It depends on where you want to do it. From a
> spec (typically for a package with broken parallel build):
> 
> %global _smp_ncpus_max 1
> 
> (a %define will do just as well), or "%_smp_ncpus_max 1" in a macros
> file. Or set RPM_BUILD_NCPUS environment variable to 1.

If the build uses make then it's necessary to add:

  unset MAKEFLAGS

since if someone has that set in their environment it will affect
local rpmbuild.  Maybe RPM ought to filter that environment variable?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
nbdkit - Flexible, fast NBD server with plugins
https://gitlab.com/nbdkit/nbdkit
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to