Bug 2241351
Summary: | Apps depending on python-QtAwesome fail to start due to changes to fontawesome fonts | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | TR Bentley <home> |
Component: | python-QtAwesome | Assignee: | Jonathan Wright <jonathan> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 39 | CC: | ales.astone, awilliam, gmarr, gui1ty, jonathan, neuro-sig |
Target Milestone: | --- | Keywords: | BetaBlocker, Regression, Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | RejectedFreezeException | ||
Fixed In Version: | python-QtAwesome-1.2.3-4.fc40 python-QtAwesome-1.2.3-4.fc39 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-03 18:29:19 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2244252 |
Description
TR Bentley
2023-09-29 13:17:48 UTC
The two issues are unrelated. The symlink should definitely be moved: https://src.fedoraproject.org/rpms/fontawesome4-fonts/c/0ebae3a6758b67f038a8e21469771ea264a7a0e3?branch=rawhide But then some fonts fail to load because they verify their checksum against some precomputed values: https://github.com/spyder-ide/qtawesome/blob/0bda7bf65c842b23711169d6563683b021300e13/qtawesome/__init__.py#L70 These are not bundled anymore but instead are symlinks to the fontawesome package which gets updated so the checksum may change: https://github.com/FortAwesome/Font-Awesome/commits/6.x/webfonts/fa-regular-400.ttf Either the qtawesome package gets a patch to disable the checksum verification, or it goes back to bundling fonts Ah this is actually very easy: https://github.com/spyder-ide/qtawesome/blame/0bda7bf65c842b23711169d6563683b021300e13/qtawesome/iconic_font.py#L40 Pull Request: https://src.fedoraproject.org/rpms/python-QtAwesome/pull-request/4 Rawhide scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=107033050 F39 scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=107033382 Works on F39 and allows bundled qta-browser and OpenLP (Package) to work again. FEDORA-2023-c433d4bccf has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c433d4bccf The issue is due to `fontawesome-fonts` having been updated to 6.4.2 in rawhide and f39. Older branches are still on 4.7.0. I merged the PR as a quick fix. Thanks Alessandro! We can have a look later if we want to solve this differently. I saw that `python-QtAwesome` does not depend on `fontawesome-fonts`. So, maintainers of that package were probably not aware. Anyway, we are in freeze now. Proposing this as a FE. But I doubt they'll take it. In which case, please update directly from testing or wait until the freeze is lifted. FEDORA-2023-c433d4bccf has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. (In reply to Sandro from comment #6) > The issue is due to `fontawesome-fonts` having been updated to 6.4.2 in > rawhide and f39. Older branches are still on 4.7.0. > > I merged the PR as a quick fix. Thanks Alessandro! We can have a look later > if we want to solve this differently. I saw that `python-QtAwesome` does not > depend on `fontawesome-fonts`. So, maintainers of that package were probably > not aware. > > Anyway, we are in freeze now. Proposing this as a FE. But I doubt they'll > take it. In which case, please update directly from testing or wait until > the freeze is lifted. One mitigation is that the OpenLP package is totally broken due the this issue. This fix allows the application to work again. Reopening for FE proposal. Proposed as a Freeze Exception for 39-final by Fedora user gui1ty using the blocker tracking app because: The update of `fontawesome-fonts` broke `qta-browser`. This fixes it. It's a minor change. No impact on other packages. This is not a FE unless these packages are included in a release-blocking deliverable. When upgrading from F38 you'll get the updated version, and when installing fresh from F39 you'll also get the updated version. (In reply to Alessandro Astone from comment #11) > This is not a FE unless these packages are included in a release-blocking > deliverable. > When upgrading from F38 you'll get the updated version, and when installing > fresh from F39 you'll also get the updated version. Yeah. You are right. But using the beta release you would be running into this, right? Anyway, since it has already been submitted, I'll let it proceed. (In reply to Fedora Blocker Bugs Application from comment #10) > The update of `fontawesome-fonts` broke `qta-browser`. This fixes it. It's > a minor change. No impact on other packages. Actually, two packages depend on it: $ fedrq wr -s python3-QtAwesome NiaAML-GUI-0.1.13-6.fc39.src spyder-5.4.5-23.fc40.src I haven't checked to what extend these packages are affected. Also, OpenLP-3.0.2-1.fc39 is broken without this fix. (In reply to TR Bentley from comment #14) > Also, OpenLP-3.0.2-1.fc39 is broken without this fix. Indeed. $ fedrq wr python3-QtAwesome NiaAML-GUI-0.1.13-6.fc39.noarch NiaAML-GUI-0.1.13-6.fc39.src OpenLP-3.0.2-3.fc39.noarch python3-spyder-5.4.5-23.fc40.noarch spyder-5.4.5-23.fc40.src "But using the beta release you would be running into this, right?" No, because you should have updates-testing enabled by default (this is the default configuration for pre-releases until shortly before release). BTW, I do not love the "fix" here. It clearly violates a packaging guideline - https://docs.fedoraproject.org/en-US/packaging-guidelines/#_avoid_bundling_of_fonts_in_other_packages : "Avoid Bundling of Fonts in Other Packages Fonts in general-purpose formats such as Type1, OpenType TT (TTF) or OpenType CFF (OTF) are subject to specific packaging guidelines (Packaging/FontsPolicy), and should always be packaged in the system-wide font repositories instead of private application directories. For more information, see: Packaging/FontsPolicy." If the problem is incompatibility between the app and FontAwesome 6, would it not be better to just tweak it to use fontawesome4-fonts instead? https://src.fedoraproject.org/rpms/fontawesome4-fonts Oh, never mind, I think I read the PR backwards. Discussed during the 2023-10-09 blocker review meeting: [0] The decision to classify this bug as a "RejectedFreezeException (Final)" was made as there is no clear rationale for breaking the freeze to fix this. It can just be a 0-day update. [0] https://meetbot.fedoraproject.org/fedora-blocker-review/2023-10-09/f39-blocker-review.2023-10-09-16.00.txt FEDORA-2023-d62861b776 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d62861b776 FEDORA-2023-d62861b776 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. |