Bug 2210347
Summary: | redhat-rpm-config: %constrain_build macro is broken in Rawhide/F39 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ben Beasley <code> |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | ajax, carl, ffesti, fweimer, igor.raits, j, mdomonko, mhroncok, ngompa13, nickc, packaging-team-maint, pmatilai, sipoyare, torsava |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rpm-4.18.90-9.fc39 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-05-29 08:30:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2187480 |
Description
Ben Beasley
2023-05-26 18:16:29 UTC
There's also perhaps a competing native functionality in RPM 4.19 now. https://github.com/rpm-software-management/rpm/issues/804 For now, I am thinking of replacing %constrain_build -c 1 with %global _smp_build_ncpus 1 in python-pandas and libinstpatch. (What these two packages really need is serial builds.) I will leave python-graph-tool as a reproducer for now. It looks like the only other user of this macro is firefox. FEDORA-2023-a5593695bb has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a5593695bb FEDORA-2023-a5593695bb has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. Ugh; I mentioned the bug in a libinstpatch update, but I did not think I used one of the magic words to close it. Reopening. (In reply to Miro Hrončok from comment #1) > There's also perhaps a competing native functionality in RPM 4.19 now. > https://github.com/rpm-software-management/rpm/issues/804 Yes, %constrain_build is supposed to be redundant in rpm >= 4.19. But breakage is unexpected, I'll have a look. (In reply to Ben Beasley from comment #2) > For now, I am thinking of replacing > > %constrain_build -c 1 > > with > > %global _smp_build_ncpus 1 > > in python-pandas and libinstpatch. (What these two packages really need is > serial builds.) Yes, for the serial build case %constrain_build is killing a fly with a shotgun. But _smp_build_ncpus is a non-trivial macro and overriding it can break other things in turn, please use this instead (backwards compatible for the last 10+ years): %global _smp_ncpus_max 1 Right, the problem is %_smp_build_ncpus changing into a parametric macro in 4.19 in combination with %constrain_build using the newish Lua macros table, which treats parametric macros specially: Rpm 4.18: > $ rpm --eval "%{_smp_build_ncpus}" > 8 > $ rpm --eval "%{lua:print(macros._smp_build_ncpus)}" > 8 Rpm 4.19: > <mock-chroot> sh-5.2# rpm --eval "%{_smp_build_ncpus}" > 8 > <mock-chroot> sh-5.2# rpm --eval "%{lua:print(macros._smp_build_ncpus)}" > function: 0x559916d63610 It's possible this all needs another layer of indirection to fix, ie to avoid changing %_smp_build_ncpus to a parametric macro. Should be fixed in rpm-4.18.90-9.fc39, if not then do make noises. (In reply to Panu Matilainen from comment #6) > […] please use this instead (backwards compatible > for the last 10+ years): > > %global _smp_ncpus_max 1 Thank you; I will. (In reply to Panu Matilainen from comment #8) > Should be fixed in rpm-4.18.90-9.fc39, if not then do make noises. Works for me; thanks for the quick fix. FEDORA-EPEL-2024-4019d184db (libinstpatch-1.1.6-29.el10_0) has been submitted as an update to Fedora EPEL 10.0. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-4019d184db FEDORA-EPEL-2024-4019d184db (libinstpatch-1.1.6-29.el10_0) has been pushed to the Fedora EPEL 10.0 stable repository. If problem still persists, please make note of it in this bug report. |