**Is your feature request related to a problem? Please describe.**
Before commit b34333fa021c0ee7215714eeef96d1a2843ea08e, 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.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2942
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/repo-discussions/2...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to