AppData specification <https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html#sect-Quickstart-DesktopApps> renamed /usr/share/appdata directory to /usr/share/metainfo. When packaging gscan2pdf-1.8.5-1.fc28 that updated the location of gscan2pdf.appdata.xml file, the generated Provide is wrong: Before the move: metainfo(gscan2pdf.appdata.xml) After the move: metainfo(/home/test/rpmbuild/BUILDROOT/gscan2pdf-1.8.5-1.fc28.x86_64/usr/share/metainfo/gscan2pdf.appdata.xml) I have rpm-build-4.13.90-0.git14002.6.fc28.x86_64.
It seems like RPM expects metainfo,xml in /usr/share/metainfo and appdata.xml in /usr/share/appdata... Which I think is wrong. CCing hughsie for advise ;)
https://github.com/rpm-software-management/rpm/pull/307
I think either can go in either place, although /usr/share/metainfo is the non-deprecated location.
Fixed as of rpm 4.14.0-rc1
*** Bug 1493204 has been marked as a duplicate of this bug. ***
Hi Igor, Sorry I did not see this duplicate because it is closed. So do you plan to backport the fix to F27, where the problem still exists?
(In reply to Mat Booth from comment #6) > Hi Igor, > > Sorry I did not see this duplicate because it is closed. So do you plan to > backport the fix to F27, where the problem still exists? F27 has same version of RPM as Rawhide... Probably it's just in updates-testing still...
(In reply to Igor Gnatenko from comment #7) > (In reply to Mat Booth from comment #6) > > Hi Igor, > > > > Sorry I did not see this duplicate because it is closed. So do you plan to > > backport the fix to F27, where the problem still exists? > > F27 has same version of RPM as Rawhide... Probably it's just in > updates-testing still... And we are in Freeze period. Hmm, okay, I guess I can wait until after F27 beta.
Or consider adding buildroot override... :-)
This still does not look correct to me. rpm-build-4.14.0-3.fc28.x86_64 generates two metainfo() provides now. One correct and one empty: $ rpm -q --provides -p noarch/gscan2pdf-1.8.8-1.fc28.noarch.rpm |grep metainfo metainfo() metainfo(gscan2pdf.appdata.xml) (Please note the gscan2pdf.spec has been modified to work around it.)
(In reply to Petr Pisar from comment #10) > This still does not look correct to me. rpm-build-4.14.0-3.fc28.x86_64 > generates two metainfo() provides now. One correct and one empty: This is expected. This is done for faster lookup of provides.
(In reply to Igor Gnatenko from comment #11) > (In reply to Petr Pisar from comment #10) > > This still does not look correct to me. rpm-build-4.14.0-3.fc28.x86_64 > > generates two metainfo() provides now. One correct and one empty: > > This is expected. This is done for faster lookup of provides. Have you considered that this redundant dependency wastes space in the repository database?