After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 790185 - Don't install appstream metadata to deprecated location
Don't install appstream metadata to deprecated location
Status: RESOLVED FIXED
Product: shotwell
Classification: Other
Component: build
0.26.x
Other Linux
: Normal normal
: ---
Assigned To: Shotwell Maintainers
Shotwell Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-11-10 18:11 UTC by Jeremy Bicha
Modified: 2018-01-01 12:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use new location for appdata files (2.04 KB, patch)
2018-01-01 12:26 UTC, Jens Georg
committed Details | Review

Description Jeremy Bicha 2017-11-10 18:11:31 UTC
/usr/share/metainfo/ has been the preferred location for appstream metadata since appstream 0.9.4 a year and a half ago (instead of /usr/share/appdata/)

https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location

If you use appstream-glib >= 0.7.3, the appstream metadata should be installed to the newer location. However, the build picks up the m4/appstream-xml.m4 from the git repo/tarball and uses that instead.

Please either update the appstream-xml.m4 or consider removing it completely.

Do you support building the latest shotwell on any platforms that don't have appstream-glib and autoconf-archive? Can you remove the m4/ directory completely? I imagine you'll eventually want to move to build with meson which won't use the m4/ directory anyway.
Comment 1 Jens Georg 2017-11-10 20:21:12 UTC
How does that match up with the links in bug 784883 ?
Comment 2 Jens Georg 2017-11-10 20:25:59 UTC
btw, there is something broken in the packaging. there is no (functional) difference between shotwell's m4 and the one from appstream-util. Athough I see the change you mention in https://github.com/hughsie/appstream-glib/blob/master/data/appstream-xml.m4
Comment 3 Jeremy Bicha 2017-11-11 16:05:18 UTC
The patch from bug 784883 was included in shotwell 0.26.4.

shotwell 0.26.4 with appstream-glib 0.7.4 installs to /usr/share/appdata/
shotwell 0.26.4 with appstream-glib 0.7.4 after removing shotwell's m4 directory installs to /usr/share/metainfo/

In your Debian/Ubuntu packaging, you would probably need to add Build-Depends on autoconf-archive, libglib2.0-dev-bin and yelp-tools.

> there is no (functional) difference between shotwell's m4 and the one from appstream-util. Athough I see the change you mention in https://github.com/hughsie/appstream-glib/blob/master/data/appstream-xml.m4

That is a difference.

The old appstream metadata location is a warning in the Debian lintian tool, because the appstream developers would eventually like to stop supporting the old location.

https://lintian.debian.org/tags/appstream-metadata-in-legacy-location.html
Comment 4 Jens Georg 2017-11-11 18:53:33 UTC
No, if you look at artful, the m4 files are equivalent apart from one comment because appstream-util is still 0.7.1 (which I just noticed). I will take a look
Comment 5 Jens Georg 2018-01-01 12:26:29 UTC
Created attachment 366136 [details] [review]
Use new location for appdata files
Comment 6 Jens Georg 2018-01-01 12:44:01 UTC
Attachment 366136 [details] pushed as c625d5b - Use new location for appdata files