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
rpmbuild --rebuild --noclean "doesn't work" #667
Comments
This also affects recent RPM, I checked it with |
This seems to be in line with the manual, --rebuild is special and unlike -bb etc is not supposed to take any build-arguments:
Also later:
So basically the bug is that --rebuild doesn't enforce the "no other options" policy. |
Well no, the bug is we'd like rpmbuild to be able to save the build tree in certain circumstances even when the build is successful. |
The thing is, --rebuild is the way it is on purpose. It's supposed to be the one operation you can't meddle with, and cleans up after it's done. Which it does. rpm >= 4.13 has rpmbuild -r which allows controlling the stages for src.rpm rebuild just like -b/-t do. So if you want to save the build tree, use |
I'm trying to keep the build directory after a successful rpmbuild, but the obvious option of using
--noclean
doesn't work, it still deletes the directory:Now reading the manual very closely I can see that this behaviour is documented.
--noclean
skips the%clean
step, but if your RPM spec file doesn't have a%clean
step then it does nothing, so that's correct but also totally counter-intuitive and wrong.There was a proposal to add
--skip-clean
(#7) but that seems to have gone nowhere.So I'm going to argue that
--noclean
is broken.The text was updated successfully, but these errors were encountered: