So the docs mention that %clean is obsolete because all outputs should be 
placed with %builddir. But when --build-in-place is used, %builddir is the 
source directory, which we don't want to pollute, so is it still valid to use 
%clean for that use case?

Also, assuming the above is correct, how should cleanup of files generated by 
rpm's own macros be handled? For example, `%__debug_install_post` writes 
debugsourcefiles.list among other files to %builddir, but whose responsibility 
is it to clean that file up? Should every spec add it to their %clean 
implementation if they support --build-in-place, or can this cleanup be handled 
within rpm somehow?

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

Message ID: <rpm-software-management/rpm/repo-discussions/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
https://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to