find-debuginfo: Allow for specifying output dir for all *.list files
Panu Matilainen
pmatilai@redhat.com
Thu Oct 30 08:00:03 GMT 2025
On 10/29/25 5:11 PM, Michal Domonkos wrote:
> This patch series adds a new switch to the find-debuginfo script that allows
> for overriding the output directory which otherwise defaults to the builddir
> argument. A test is included as well. See the commit messages for details.
>
> The primary motivation is for RPM to avoid polluting the unpacked source tree
> in --build-in-place mode, see the following discussion for details:
>
> https://github.com/rpm-software-management/rpm/discussions/3644
>
Just FWIW, I wouldn't call that the primary motivation, it's just one of
the beneficiaries.
In the past, rpm didn't have a good place to put its per-build temporary
files, so it used RPM_BUILD_DIR. This has caused issues long before
--build-in-place even existed, eg.
https://bugzilla.redhat.com/show_bug.cgi?id=672538
I prefer to think of this as a generic build hygiene kind of thing. It's
also a pre-requisite for a read-only source tree, which could be useful
for enforcing clean vpath builds, and --build-in-place type usage where
the source could even be on read-only media. Clearly this isn't
something every build would/could use, but as an option.
- Panu -
More information about the Debugedit
mailing list