On Sun, 4 Aug 2024 13:14:38 -0400 Todd Zullinger <tmz@xxxxxxxxx> wrote: > Franta Hanzlík via users wrote: > > When trying rebuild RPM package from Fedora repo, I ends with error: > > > > $ dnf download --source samba > > > > $ rpm -Uv samba-4.20.2-1.fc40.src.rpm > > > > $ rpmbuild -ba samba.spec > > ... (some ~18 MB and ~24000 lines output) > [...] > > Processing files: samba-debugsource-4.20.2-1.fc40.x86_64 > > error: Empty %files file /home/hanzlik/rpmbuild/BUILD/samba-4.20.2/debugsourcefiles.list > > > > RPM build errors: > > Empty %files file /home/hanzlik/rpmbuild/BUILD/samba-4.20.2/debugsourcefiles.list > > > > I'm stuck here and can't move on. > > Adding '%debug_package %nil' to ~/.rpmmacros causes the package to be > > compiled and build, but without the debuginfo/debugsources packages - > > which is not what I want. > > Internet search did not help me... > > > > Does anyone know where the problem could be? > > I can't pinpoint it for you, but I can say that this package > builds cleanly for me, via mock. That suggests that the > issue is either transient or due to some settings in your > local rpmbuild environment (which is one of the many reasons > I always build rpm's with mock). > > -- Hi Todd, thanks for advice! My rpmbuild environment was pure basic: # dnf group install rpm-development-tools c-development development-tools # varianta s IDS skupin # dnf install fedora-packager $ rpmdev-setuptree # create rpmbuild directory tree + ~/.rpmmacros $ dnf download --source samba $ rpm -Uv samba-4.20.2-1.fc40.src.rpm $ cd rpmbuild/SPEC $ rpmbuild -ba samba.spec Now I tried mock. It was my first use, I knew about the mock, but never used it yet. After a little trouble with permissions on the new basedir (my /var/lib is quite small) my command: $ mock -r fedora-40-x86_64 --rebuild samba-4.20.3-1.fc40.src.rpm was successful and the package built on the first try! With debuginfo and debugsource packages, too. Everything is fine, wonderful... -- Once again, many thanks! Franta Hanzlík -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue