dmnks left a comment (rpm-software-management/rpm#3651)
> We currently set the RPM_BUILD_NCPUS envvar before calling rpmbuild to set a
> desired value of parallelism. Is that the official way to do this? Should
> this be documented?
I'm not sure but it seems like `RPM_BUILD_NCPUS` is primarily meant for
*reading* from within build scriptlets whereas `%_smp_build_ncpus` is the
actual tunable.
Then there are the (relatively new) `%_smp_tasksize_*` macros for fine-tuning
the above.
So apparently, it's pretty unclear and we should indeed document this better.
There's some rudimentary comments in `macros.in` but it could be better,
perhaps done as part of #3621.
> Would it make sense to add an `--ncpus` option to rpmbuild to set
> RPM_BUILD_NCPUS?
Sounds like a potential RFE, too.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3651#issuecomment-2715015292
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3651/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
https://lists.rpm.org/mailman/listinfo/rpm-maint