#1130 Document %constrain_build
Closed by tibbs. Opened by tibbs.
tibbs/packaging-committee constrain  into  master

Download 1130.patch

This adds a small subsection to the section on parallel make which documents the %constrain_build macro.

Currently this macro exists in rawhide, but after testing I will backport it through Fedora and EPEL. (It uses features from RPM 4.17 so this does require a little work.) So this shouldn't be merged right now.

As an aside, I'm curious as to which buildsystems this doesn't affect. I'm pretty sure it doesn't change what %pyproject_wheel does. I think Perl just uses %make_build. Rust seems to incorporate %_smp_mflags, as does ninja, so they should work. should work. I've no idea at all about go.

%pyproject_wheel by default does nothing parallel. If the build backends build stuff in parallel, there is currently no way to pass options to it.

I assumed that under the hood it could end up building native code extensions from source, but I've no idea at all how that build happens or whether it would use any parallelism. If we can't pass options down to it then it's nothing to worry about. If that becomes possible in future then I assume it would use %_smp_mflags under the hood and that would simply work automatically.

Ah, this seems like a saner replacement for https://pagure.io/packaging-committee/pull-request/1094 ?

Yes, this was created to address the issues Panu had.

I just closed 1094 in favor of this one.

Closing this because in the end RPM upstream did something different.

Pull-Request has been closed by tibbs

Metadata