https://bugzilla.novell.com/show_bug.cgi?id=672045 https://bugzilla.novell.com/show_bug.cgi?id=672045#c13 --- Comment #13 from Jan Engelhardt <jengelh@medozas.de> 2011-02-21 09:49:52 UTC --- (In reply to comment #7)
Ok. Here is how the large majority of packages I see all over the place in OBS:
%install nothing but install stuff
%clean rm -rf %buildroot
Simpler, cleaner and easier to read.
But does not work very well if you reuse the BS chroot to debug and rerun rpmbuild, perhaps even with --short-circuit, before attempting a new osc build run.
%clean is *the* macro to clean the buildroot, no need to repeat... OBS automatically removes all buildroots anyways.
The french have a saying: "Why prefer the simple, when the complicated will do?" :)
Then by your very saying, why do packages even use %clean? It only makes debugging of a built software harder because it immediately kills the compiled unit. (Omitting %clean and chrooting is _the_ way to do a quick analysis as mentioned above.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.