[Rpm-maint] [rpm-software-management/rpm] rpmbuild fails with an error about empty debugsourcefiles.list (Issue #4037)

Michal Domonkos notifications at github.com
Mon Nov 10 11:32:09 UTC 2025


dmnks left a comment (rpm-software-management/rpm#4037)

This is because of the following two changes we made to `--build-in-place` mode in RPM 4.20:

1. Debuginfo generation is now [supported](https://github.com/rpm-software-management/rpm/commit/d1075106bb315913574e1acac921058d23dd5130)
2. The `%builddir/%buildsubdir` path is now a symlink to the current directory

That means, `find-debuginfo` is now invoked, and it's invoked on a symlink, which is something it [currently doesn't handle](https://sourceware.org/bugzilla/show_bug.cgi?id=27776), causing it do generate an empty `debugsourcefiles.list`.

As a workaround, until the `find-debuginfo` bug is fixed, you can bring back the old behavior like in RPM 4.19 by explicitly disabling debuginfo generation, like so:

```
rpmbuild -bb --build-in-place --define "debug_package %nil" [...]
```

Alternatively, if you wish to have the debuginfo packages generated (assuming they're still valid, considering the above `debugedit` issue), you can disable the debugsource packages specifically with:

```
rpmbuild -bb --build-in-place --undefine "_debugsource_packages" [...]
```

Also note that `--noprep` is no longer needed since `--build-in-place` now skips `%prep` implicitly.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4037#issuecomment-3511042270
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/4037/3511042270 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251110/180cfcbe/attachment.htm>


More information about the Rpm-maint mailing list