GNOME Bugzilla – Bug 720854
build: Enable validation of the AppData file
Last modified: 2014-02-06 19:29:19 UTC
Fairly trivial patch to rejig the build rules for the AppData to use appdata-tools (https://github.com/hughsie/appdata-tools) to enable validation of the file (including its translations) during `make check`. This depends on the latest version of gnome-common to pull in the appdata-xml.m4 macro file. Totem’s AppData file validates successfully, so needs no changes itself.
Created attachment 264654 [details] [review] build: Enable validation of the AppData file Add a build-time dependency on appdata-tools to enable validation of the AppData file during `make check`. See: https://github.com/hughsie/appdata-tools. This also requires an up-to-date version of gnome-common to pull in the appdata-xml.m4 macros.
Review of attachment 264654 [details] [review]: Looks good.
Attachment 264654 [details] pushed as 5c345b9 - build: Enable validation of the AppData file
This did not implement --enable/--disable-appdata-validate . I think it was supposed to, or else we can't build it downstream.
Should work fine: --[enable|disable]-appdata-validate is defined in APPDATA_XML here: https://github.com/hughsie/appdata-tools/blob/master/data/appdata-xml.m4 Is that macro getting pulled into your build process?
that's...odd, then. hughsie added it to the package build, but the build still tries to validate the appdata unless I patch it out.
(In reply to comment #6) > that's...odd, then. hughsie added it to the package build, but the build still > tries to validate the appdata unless I patch it out. You'll need to run autoreconf, the version of appdata-tools on the machine of the maintainer/package maker (probably mine) is too old.
Cool, testing that right now, if it works with the autogen.sh but without the appdata check reversion patch I'll just send a -2 through without the patch.
confirmed, so the problem was just that the 3.11.5 tarball was built with a too-old local copy. after an autogen.sh it accepts the parameter and correctly skips the validation.