[Rpm-maint] [rpm-software-management/rpm] how to prevent creation of empty %{name}-%{version}-build directory when running rpmbuild -bs (Discussion #3381)

Fabio Valentini notifications at github.com
Tue Oct 15 10:30:48 UTC 2024


I noticed after upgrading to Fedora 41 that very common operations like `rpmbuild -bs` or `fedpkg srpm` (which calls `rpmbuild -bs` under the hood) now create an empty directory of the form `%{name}-%{version}-build`. It looks like this is part of the "hermetic build directory" stuff that was implemented in RPM 4.20.

Why does this directory get created when just assembling an SRPM too? It just creates a lot of clutter (empty directories everywhere), and messes up shell completion for tools like `mock`.

I grepped through /usr/lib/rpm/ but I can't find any way to override this behaviour with a macro that I could set in my `~/.rpmmacros` file. Can it be turned off somehow? Or should it be disabled for the `rpmbuild -bs` operation? It doesn't seem useful at all there.

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

Message ID: <rpm-software-management/rpm/repo-discussions/3381 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241015/60bba248/attachment.html>


More information about the Rpm-maint mailing list