Closed sidt4 closed 1 year ago
This will not be fixed. Symlinks are not mentioned in deb package index files (md5sum files, symlinks do not have an md5sum, so no wonder they aren't there) or Contents lists, so we would need to unpack every single package in the whole archive which would absolutely tank performance of the generator and use a huge amount of resources.
Furthermore, symlinks may even point to stuff in other packages (the case for Firefox and others), which is even worse because that would mean the generator would now also need to learn about dependencies, build a dependency graph and not only explode the package containing the symlink, but also every single thing in the dependency chain to find its actual target.
That is so insanely impractical, and the amount of symlinks for this is so rare (last time I checked it was less than 10 packages) that it really does not warrant the effort and performance impact on the whole system. It is much easier to fix the packages, and that's what the warning emitted by asgen is for, and why Debian has guidelines for this: https://wiki.debian.org/AppStream/Guidelines
You are very welcome to find someone from the Debian Mozilla team to finally merge the respective patch: https://salsa.debian.org/mozilla-team/firefox/-/merge_requests/5
You are very welcome to find someone from the Debian Mozilla team to finally merge the respective patch: https://salsa.debian.org/mozilla-team/firefox/-/merge_requests/5
Any idea why this MR is done in firefox downstream and not upstream ?
From https://wiki.debian.org/AppStream/Guidelines
Writing a metainfo file
If you provide a metainfo file its information will be preferred over that in the .desktop file.
The quickstart guide tells you how to write an appstream metainfo file. These should be submitted and shipped by upstream, not kept locally in Debian packages.
Thanks - the icon-linking is Debian's doing though: https://salsa.debian.org/mozilla-team/firefox/-/blob/release/master/debian/browser.links.in Then again, I have no idea why Firefox doesn't install that stuff in the right location in the first place...
I've updated the mozilla bug.
From https://appstream.debian.org/sid/main/issues/firefox.html:
On my system, where firefox is installed from debian
main
repo:Why is there a symlink restriction in
Debian
/Ubuntu
?Also refer: https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2314