Bug 2171887
| Summary: | “appstreamcli validate “ shows a confusing error message when only a translated screenshot exists but no screenshot for the default locale | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mike FABIAN <mfabian> |
| Component: | appstream | Assignee: | Rex Dieter <rdieter> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 39 | CC: | kde-sig, mfabian, rdieter, tdawson, yselkowi |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Mike FABIAN
2023-02-20 18:10:03 UTC
FWIW the packaging guidelines mandate the use of appstream-util (from libappstream-glib) rather than appstreamcli, and it doesn't have this problem. (In reply to Yaakov Selkowitz from comment #1) > FWIW the packaging guidelines mandate the use of appstream-util (from > libappstream-glib) rather than appstreamcli, and it doesn't have this > problem. https://blogs.gnome.org/uraeus/2022/06/10/how-to-get-your-application-to-show-up-in-gnome-software/#comment-26956 says: * Use `appstreamcli` not `appstream-util`. The latter is unmaintained. The Fedora packaging guidelines take precedence: https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/#_app_data_validate_usage (In reply to Yaakov Selkowitz from comment #3) > The Fedora packaging guidelines take precedence: > > https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/ > #_app_data_validate_usage If the upstream developers of appstream say `appstream-util` is unmaintained and one should use `appstreamcli`, then I think the Fedora guidelines need to change. (In reply to Mike FABIAN from comment #4) > If the upstream developers of appstream say `appstream-util` is unmaintained > and one should use `appstreamcli`, then I think the Fedora guidelines need > to change. Perhaps, but there is a procedure that would need to be followed. One step in that process should be to try modifying and rebuilding everything which currently uses libappstream-glib/appstream-util with appstream/appstreamcli in a COPR. If you are interested in taking a lead on this effort, I suggest being in touch with FPC. In the meantime, please follow the existing guidelines so that the package in question can be built. I reported the appstreamcli problem upstream: https://github.com/ximion/appstream/issues/494 and got a response which made me realize that I had just misunderstood the error message `screenshot-image-source-missing`. It does not mean that https://mike-fabian.github.io/ibus-typing-booster/images/emoji-picker.png does not exist, this error message was there because of the `xml:lang="en"`. To appstreamcli this looked like there was only a translated screenshot and no screenshot for the default locale. The error message is very confusing. After removing xml:lang="en" both appstream-util and appstreamcli find no errors in the files. This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle. Changing version to 39. |