-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The --noprep option executes %mkbuilddir which breaks %generate_buildrequires in Mock #3120
Comments
Corresponding line-in-Mock-code. |
Even before that,
Not yet built. It was built in Python 3.13 copr when pushed to distgit. In the meantime, I have removed the build. |
My first reaction to this is: "we have --noprep? 😳 " I can see why mock would use such a thing, but I'm not really comfortable with that (or the option itself) because it seems that mock is now driving the build and not rpmbuild. And this means any changes to rpmbuild are even more difficult than they are otherwise. That said, I'm not exactly surprised that %mkbuilddir breaks something because it is quite a big change. Lets see what we can do about it, on the outset --noprep disabling %mkbuilddir seems reasonable but I'm only halfway into my first coffee... |
One takeaway from this is that we need some tests that mimick what mock does. |
Okay #3121 has closer details + reproducer info, closing this as a dupe despite being the earlier one. |
I hit this accidentally with
rpm-build-4.19.91-1.fc41.x86_64
(not yet build in Rawhide, or already untagged, not sure). Happened to me when I was reproducing FTBFS against a Copr project that contained that pre-release version.Mock runs, at when all the dynamic build deps are resolved and installed,
rpmbuild --noprep ...
, just to not necessarily re-do the same (potentially expensive) step again. The problem is that--noprep
still executes the%mkbuilddir
:So the
argparse-manpage-4.5-build
directory is removed, but not recreated, because--noprep
.To Reproduce
Use the pre-release 4.19.91 version of RPM in mock chroot to build any package with %generate_buildrequires.
You need Mock v5.3+ that has this optimization.
Expected behavior
The
rpmbuild --noprep
shouldn't execute%mkbuilddir
? Have a new option--nomkbuilddir
? I'm not sure.Output
Environment
The text was updated successfully, but these errors were encountered: