Closed Bug 1864482 Opened 2 years ago Closed 2 years ago

AppStream metainfo in Firefox Flatpak follows ancient AppStream specification

Categories

(Firefox :: Untriaged, enhancement)

Firefox 119
Desktop
Linux
enhancement

Tracking

()

VERIFIED FIXED
121 Branch
Tracking Status
firefox121 --- verified

People

(Reporter: will, Assigned: will)

Details

(Keywords: flatpak)

Attachments

(1 file, 3 obsolete files)

Steps to reproduce:

appstreamcli validate --explain /var/lib/flatpak/exports/share/metainfo/org.mozilla.firefox.appdata.xml

Actual results:

E: ~:2: metainfo-ancient
The metainfo file uses an ancient version of the AppStream specification, which can not be
validated. Please migrate it to version 0.6 (or higher).

Validation failed: errors: 1

Expected results:

The file should validate without warnings.

OS: Unspecified → Linux
Hardware: Unspecified → Desktop
Summary: AppStream metainfo follows ancient AppStream specification → AppStream metainfo in Firefox Flatpak follows ancient AppStream specification
Keywords: flatpak

I prepared a couple of patches to update the file and fix some other warnings from the validator. I pushed them to GitHub as https://github.com/mozilla/gecko-dev/compare/master...wjt:gecko-dev:update-appdata and will attach them here.

I tried to follow the steps at https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html to get set up but at a certain stage in bootstrapping, the script failed because my distro (endless) is not on the list of hardcoded debian-like distros. I beg forgiveness.

Previously, appstreamcli validate would warn:

E: ~:2: metainfo-ancient
   The metainfo file uses an ancient version of the AppStream specification, which can not be
   validated. Please migrate it to version 0.6 (or higher).

The old format is currently accepted by Flathub but will not be accepted
indefinitely.

Assignee: nobody → will
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Ideally there would be a <description> element containing human-readable
release notes but this is not feasible with the current build process.
Instead, include the URL of the release notes on the web.

(I do not believe this URL is currently consumed by any frontends, but
perhaps one day it will be.)

Depends on D193447

Attachment #9363314 - Attachment is obsolete: true
Attachment #9363315 - Attachment is obsolete: true

I got moz-phab working. I hope I followed https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html correctly!

Attachment #9363318 - Attachment is obsolete: true
Pushed by jcristau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a06843ec5608 Update Flatpak appdata to non-ancient AppStream spec. r=jcristau
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
$ appstreamcli validate ~/.local/share/flatpak/app/org.mozilla.firefox/x86_64/beta/active/export/share/metainfo/org.mozilla.firefox.appdata.xml 
I: org.mozilla.firefox:6: developer-name-tag-deprecated

✔ Validation was successful: infos: 1
$ appstreamcli validate ~/.local/share/flatpak/app/org.mozilla.firefox/x86_64/stable/active/export/share/metainfo/org.mozilla.firefox.appdata.xml
E: ~:2: metainfo-ancient

✘ Validation failed: errors: 1
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: