Bug#1086181: lintian: false positive warning for appstream-metadata-validation-failed
On 12/05/2025 17:13, Soren Stoutner wrote:
In my experiences, this particular error has to do with inconsistencies
between the appstream metadata file name, the appstream ID name, and the
desktop file name.
In my experience, the following always resolves the issue.
<snip>
3. Use reverse DNS naming for the desktop file appended by .desktop.
Hi Soren,
Right.
It looks possible that my failure to rDNS the .desktop name
may be the issue with the package.
What is tedious,
is that I cannot reproduce the problem locally, to check.
UDD claims a lintian warning against the package
https://udd.debian.org/lintian/?packages=cevomapgen
But if I run either ..validate-tree or lintian itself
against the .deb, no errors are shown.
Salsa CI has SALSA_CI_LINTIAN_FAIL_WARNING set
but nothing shows there either.
https://salsa.debian.org/PeterB/cevomapgen/-/jobs/7567926
So the lintian "bug" I'm seeing, is that when run via UDD
the result is different to when run locally or via Salsa CI.
Regards,
Peter
P.S.
attaching a little basic test script.
It takes the .deb file as a parameter.
#!/bin/sh
# check appstream data of binary package
# set -e
TEMPD=$(mktemp -d)
dpkg-deb -R $1 $TEMPD
appstreamcli validate --pedantic $TEMPD/usr/share/*/*.xml
echo
appstream-util validate $TEMPD/usr/share/*/*.xml
echo
appstreamcli validate-tree --no-net $TEMPD
echo
Reply to: