Replies: 3 comments 5 replies
-
In fact, I might want to delete built rpms instead. Usually I do not need them anyway, because I do local builds usually just o test something with built version. I need builddir, but not locally generated rpms. But that would be other topic. |
Beta Was this translation helpful? Give feedback.
-
Oh wait, this is if clean is not executed. I don't think a customizable default makes a lot of sense, but maybe a flag to avoid it? |
Beta Was this translation helpful? Give feedback.
-
If you don't care about binaries then why are you building them in the first place? |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Before commit b34333f, rpmbuild has by default kept built artifacts. I had often used it to run upstream test suite of bind package, which needs first setup made by root. Therefore it could not be done during normal build. Also it takes long.
When something fails there, I may need use gdb or other debug steps to find a solution. It helps me a lot if the gdb can reuse my prepared settings, not vanilla mock environment.
Describe the solution you'd like
I would like to be able to change default of --clean for rpmbuild -bb or -ba. I want to override it on my machine, so it by default keeps built artifacts for subsequent testing or debugging. I would like to avoid the need to append --noclean to every build. Instead some kind of configuration change to some file, done only once on my system.
Describe alternatives you've considered
Making alias, which would add rpmbuild --noclean parameter to everything might work. But such alias would not be used, if I use rpkg variants such as fedpkg to build my package. I would have to make aliases for that also. But there it will become complicated, rpmbuild options to it need to be last arguments. I would have to make special shell wrapper. That makes it unnecessary complicated. Just default change would work much better.
Additional context
I haven't found a way to configure the default. It does not seem to be possible to change default value in ~/.rpmmacros or any configuration file. Deleting the results is much faster than recreating it every time I forgot --noclean appended.
Opinions on this topic? Please skip the phase use mock instead. It does not work the best for me.
Beta Was this translation helpful? Give feedback.
All reactions