Re: Recommended way to disable parallel build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux