Hi,
I'm reopening this bug as I am still seeing
appstream-metadata-validation-failed in https://udd.debian.org/lintian/?packages=cevomapgen
I cannot see anything wrong with the metadata,
and cannot reproduce the issue locally.
No issues with the package reported here. https://appstream.debian.org/sid/main/issues/index.html
Regards,
Peter
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.
3. Use reverse DNS naming for the desktop file appended by .desktop.
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.
It looks possible that my failure to rDNS the .desktop name
may be the issue with the package.
You need to both rename the file and edit the name it is looking for in the metainfo.xml here:
On 12/05/2025 19:31, Peter Blackman wrote:net.sourceforge.cevomapgen.desktop
It looks possible that my failure to rDNS the .desktop name
may be the issue with the package.
Seems not to be the case. If I rDNS the .desktop name locally,
that CAUSES
appstream-metadata-validation-failed Problems reported by "appstreamcli validate-tree"
WTF!!!
What I tried adding to d/rules is
# Rename desktop file to rDNS style
execute_after_dh_auto_install:
mv -v debian/c-evo-map-gen/usr/share/applications/cevomapgen.desktop \ debian/c-evo-map-gen/usr/share/applications/
I also don’t see any lintian tags when I run the following command with lintian from testing:
lintian -iIE --pedantic
My guess is that the factors for determining this tag have changed and that UDD is running either a newer or an older version of either lintian or "appstreamcli validate”.
"The name of the desktop entry should follow the "reverse DNS" convention: it should start with a reversed DNS domain name controlled by the author of the application, in lower case.”
https://specifications.freedesktop.org/desktop-entry-spec/latest-single/#file-naming
I think in the past the recommendation to use reverse DNS naming wasn’t as strong, which is why you see a lot of .desktop files that follow other patterns, especially for programs that have been around for a long time.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 498 |
Nodes: | 16 (2 / 14) |
Uptime: | 60:31:15 |
Calls: | 9,812 |
Files: | 13,754 |
Messages: | 6,191,177 |