Description of problem: I am getting from and rpmbuild: Processing files: cello-debugsource-1.0-1.fc28.x86_64 error: Empty %files file /home/christian/rpmbuild/BUILD/cello-1.0/debugsourcefiles.list For more info and files for reproducer see https://github.com/redhat-developer/rpm-packaging-guide/issues/47 I tried and reproduced this on recent Fedora28. Version-Release number of selected component (if applicable): rpm-build-4.14.1-9.fc28.x86_64 How reproducible: always Steps to Reproduce: 1. build package cello.src.rpm as documented in packaging guide 2. try to rebuild it (to get a binary package).
You are not building any debuginfo: gcc -o cello cello.c Try the following: gcc -g -o cello cello.c Otherwise it will be impossible for rpmbuild to determine the debug source files and debuginfo files to package.
Indeed. I will fix the guide. Thank you.
Just makes me wonder if we couldn't do a better job at reporting the *actual* problem especially now that much of the build-id extraction occurs inside rpmbuild code...
(In reply to Panu Matilainen from comment #3) > Just makes me wonder if we couldn't do a better job at reporting the > *actual* problem especially now that much of the build-id extraction occurs > inside rpmbuild code... The build-ids match executable builds and debuginfo files, the builds would still have build-ids. This particlar error occurs earlier because no source files can be found at all. There is however a test in find-debuginfo.sh that checks for case: if [ -s "$SOURCEFILE" ]; then ... fi We might want to add an else with a warning there?