Make sure to install BuildRequires defined by macros#1659
Make sure to install BuildRequires defined by macros#1659praiskup merged 1 commit intorpm-software-management:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request correctly addresses an issue where BuildRequires defined by macros were not being installed before the SRPM rebuild, potentially causing the rebuild to fail. The change moves the dependency installation to an earlier stage, which is the right approach. My review includes one suggestion to improve the code's robustness by using a dedicated helper function for path construction.
81aa378 to
e0f6d5f
Compare
|
I updated the PR so that it doesn't install the dependencies based on the copied-in original SRPM but so that we rather rebuild the SRPM twice as @praiskup suggested. This seems to work too. I wanted to repeat the loop again and again as long as it still installs new dependencies but both |
|
This is a great start, thank you! Even with dynamic deps, we do not check for return value, but compare lists of installed packages before/after: mock/mock/py/mockbuild/backend.py Line 771 in 194159e Do you think it makes sense in this case? If yes, I'd prefer having a new configuration option to stop the loop at some reasonable level. |
|
Ah, really cool, thank you! I added the same condition.
Do you? I can definitely add a configuration option for that, it's not a problem. To me, it doesn't seem like an option you would want to play with. Your call though, its fine by me either way. |
bd14fed to
a894aa8
Compare
|
Heh, yes, I think we should have the config option. It's absolutely good to have an option to play with :-) but I like consistency, and the loop for dynamic deps also has its config. And considering this change may have side effects, and cause some build failures, people might want to have an option to turn this looping off (loops = 1)? |
|
Would you mind merging #1661 and rebasing on top of it to have all the checks green? |
|
Tested & works. Thank you. Also with |
a894aa8 to
383466b
Compare
Sure, I will wait until it has a green check mark and then merge.
Do we want to reuse the |
383466b to
4dfaa2a
Compare
|
Preferably, it would be a separate option; consider somebody wants to disable the new looping mechanism (and leave the dynamic deps looping alone). What if we used |
4dfaa2a to
e76f780
Compare
|
Updated, PTAL. |
Fix #1652