Bug 2239785

Summary: obsolete/provide of fontawesome-fonts missing in fontawesome4-fonts
Product: [Fedora] Fedora Reporter: Sandro Bonazzola <sbonazzo>
Component: fontawesome4-fontsAssignee: Jerry James <loganjerry>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: loganjerry
Target Milestone: ---Keywords: Upgrades
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: fontawesome4-fonts-4.7.0-19.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-03 00:17:17 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:

Description Sandro Bonazzola 2023-09-20 07:39:52 UTC
Upgrading from Fedora 38 to Fedora 39 beta leaves `fontawesome-fonts-4.7.0-15.fc38.noarch` orphan.

# package-cleanup --orphans --quiet|grep font 
fontawesome-fonts-1:4.7.0-15.fc38.noarch

# rpm -qa |grep fontawesome
fontawesome-fonts-4.7.0-15.fc38.noarch
fontawesome-fonts-web-6.4.2-1.fc39.noarch

dnf --quiet provides /usr/share/fonts/fontawesome/FontAwesome.otf
fontawesome-fonts-1:4.7.0-15.fc38.noarch : Iconic font set
Repo        : @System
Matched from:
Filename    : /usr/share/fonts/fontawesome/FontAwesome.otf

fontawesome4-fonts-1:4.7.0-18.fc39.noarch : Iconic font set
Repo        : fedora
Matched from:
Filename    : /usr/share/fonts/fontawesome/FontAwesome.otf

Looks like there's an obsoletes/provides missing in fontawesome4-fonts

Reproducible: Always

Steps to Reproduce:
1. upgrade from fc38 with fontawesome-fonts to 39 
2. check orphans
3.
Actual Results:  
fontawesome-fonts doesn't upgrade to fontawesome4-fonts

Expected Results:  
fontawesome-fonts upgrades to fontawesome4-fonts

Comment 1 Jerry James 2023-09-20 14:19:01 UTC
The fontawesome4-fonts package provides version 4.x of the FontAwesome fonts.  The fontawesome-fonts package provides version 6.x of the FontAwesome fonts.  The two versions are incompatible.  The lack of obsoletes/provides is intentional.  Neither replaces the other.  They're just different.

Hopefully, at some point we can retire fontawesome4-fonts.  That will require the remaining packages that need it to migrate to version 6.x though.

As for your issue, I don't understand what happened.  The fontawesome-fonts-1:4.7.0-15.fc38.noarch package should have been updated to fontawesome-fonts-1:6.4.2-1.fc39.  If you run "dnf upgrade fontawesome-fonts", do you get an error of some kind?

Comment 2 Sandro Bonazzola 2023-09-20 15:01:46 UTC
```
# dnf upgrade fontawesome-fonts
Last metadata expiration check: 1:59:22 ago on Wed Sep 20 14:57:47 2023.
Dependencies resolved.
Nothing to do.
Complete!

# dnf list --showduplicates fontawesome-fonts
Last metadata expiration check: 2:00:05 ago on Wed Sep 20 14:57:47 2023.
Installed Packages
fontawesome-fonts.noarch                                                               1:4.7.0-15.fc38                                                                @fedora

# dnf list --showduplicates fontawesome\*-fonts
Last metadata expiration check: 2:00:39 ago on Wed Sep 20 14:57:47 2023.
Installed Packages
fontawesome-fonts.noarch                                                                    1:4.7.0-15.fc38                                                           @fedora
Available Packages
fontawesome-6-brands-fonts.noarch                                                           1:6.4.2-1.fc39                                                            fedora 
fontawesome-6-free-fonts.noarch                                                             1:6.4.2-1.fc39                                                            fedora 
fontawesome4-fonts.noarch                                                                   1:4.7.0-18.fc39                                                           fedora 


looks like there's no such fontawesome-fonts-1:6.4.2-1.fc39

I see https://bodhi.fedoraproject.org/updates/FEDORA-2023-4744caf7f2 which has a build fontawesome-fonts-1:6.4.2-1.fc39 https://koji.fedoraproject.org/koji/buildinfo?buildID=2268773

But it builds:

src	
fontawesome-fonts-6.4.2-1.fc39.src.rpm (info) (download)
noarch
fontawesome-6-brands-fonts-6.4.2-1.fc39.noarch.rpm (info) (download)
fontawesome-6-free-fonts-6.4.2-1.fc39.noarch.rpm (info) (download)
fontawesome-fonts-all-6.4.2-1.fc39.noarch.rpm (info) (download)
fontawesome-fonts-web-6.4.2-1.fc39.noarch.rpm (info) (download)

so there is no fontawesome-fonts there.

Comment 3 Jerry James 2023-09-20 15:10:46 UTC
D'oh!  Yes, of course.  I will push a fix for this.  Thank you for the bug report.

Comment 4 Fedora Update System 2023-09-20 16:03:37 UTC
FEDORA-2023-4c5e2b27b2 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-4c5e2b27b2

Comment 5 Fedora Update System 2023-09-21 01:11:44 UTC
FEDORA-2023-4c5e2b27b2 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-4c5e2b27b2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-4c5e2b27b2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Sandro Bonazzola 2023-09-21 06:33:17 UTC
Reported issue has been fixed with fontawesome4-fonts-4.7.0-19.fc39

Comment 7 Fedora Update System 2023-10-03 00:17:17 UTC
FEDORA-2023-4c5e2b27b2 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.