Bug 1933539

Summary: Require mkfontdir/mkfontscale directly, not xorg-x11-font-utils
Product: [Fedora] Fedora Reporter: Peter Hutterer <peter.hutterer>
Component: liberation-fontsAssignee: vishalvvr <vishalvijayraghavan>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aviv.ixmsu, caillon+fedoraproject, extras-qa, fonts-bugs, gnome-sig, i18n-bugs, mclasen, petersen, psatpute, rhughes, rstrode, sandmann, vishalvijayraghavan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: liberation-fonts-2.1.3-2.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1933537 Environment:
Last Closed: 2021-03-04 05:38:26 UTC 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:
Bug Depends On: 1933537    
Bug Blocks: 1932731    

Description Peter Hutterer 2021-03-01 02:11:34 UTC
liberation-fonts currently BuildRequires: xorg-x11-font-utils

xorg-x11-font-utils is to be split up into multiple packages, see Bug 1932731. 

This package only requires mkfontscale and mkfontdir, so let's BuildRequires these directly. xorg-x11-font-utils has had Provides for those for ages now anyway, so this is largely a noop from this package's POV.

Suggested diff:

diff --git a/liberation-fonts.spec b/liberation-fonts.spec
index a9cc575..583e224 100644
--- a/liberation-fonts.spec
+++ b/liberation-fonts.spec
@@ -24,7 +24,8 @@ Source8:          %{fontname}-sans.metainfo.xml
 Source9:          %{fontname}-serif.metainfo.xml
 BuildArch:        noarch
 
-BuildRequires:    fontpackages-devel >= 1.13, xorg-x11-font-utils
+BuildRequires:    fontpackages-devel >= 1.13
+BuildRequires:    mkfontscale mkfontdir
 BuildRequires:    fontforge
 BuildRequires:    libappstream-glib
 BuildRequires:    python3

Verified successful build in a local F33 container with only the mkfontscale (Bug 1932734) packages installed, no xorg-x11-font-utils.

Comment 1 Fedora Update System 2021-03-05 00:08:15 UTC
FEDORA-2021-8cfc91c13a has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-8cfc91c13a

Comment 2 Fedora Update System 2021-03-05 17:20:18 UTC
FEDORA-2021-8cfc91c13a has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-8cfc91c13a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-8cfc91c13a

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

Comment 3 Fedora Update System 2021-03-09 22:46:15 UTC
FEDORA-2021-8cfc91c13a has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-8cfc91c13a

Comment 4 Fedora Update System 2021-03-10 18:51:17 UTC
FEDORA-2021-8cfc91c13a has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-8cfc91c13a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-8cfc91c13a

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

Comment 5 Fedora Update System 2021-03-12 06:22:02 UTC
FEDORA-2021-8cfc91c13a has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-8cfc91c13a

Comment 6 Fedora Update System 2021-03-12 18:54:53 UTC
FEDORA-2021-8cfc91c13a has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-8cfc91c13a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-8cfc91c13a

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

Comment 7 Fedora Update System 2021-03-19 20:03:53 UTC
FEDORA-2021-8cfc91c13a has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 aviv.ixmsu 2022-11-30 06:47:13 UTC
I am still encountering this conflict on Fedora 36.

"
file /usr/bin/mkfontdir from install of xorg-x11-font-utils-1:7.5-21.el7.x86_64 conflicts with file from package mkfontscale-1.2.1-4.fc36.x86_64
  file /usr/bin/mkfontscale from install of xorg-x11-font-utils-1:7.5-21.el7.x86_64 conflicts with file from package mkfontscale-1.2.1-4.fc36.x86_64
  file /usr/share/man/man1/mkfontdir.1.gz from install of xorg-x11-font-utils-1:7.5-21.el7.x86_64 conflicts with file from package mkfontscale-1.2.1-4.fc36.x86_64
  file /usr/share/man/man1/mkfontscale.1.gz from install of xorg-x11-font-utils-1:7.5-21.el7.x86_64 conflicts with file from package mkfontscale-1.2.1-4.fc36.x86_64
"

Comment 9 Peter Hutterer 2022-11-30 07:00:38 UTC
It looks like you have an el7 package installed and are trying to update this with a Fedora package. That's... unusual. Maybe try installing an xorg-x11-font-utils from fedora first and then trying to update to the current one from F36. That should obsolete the right packages.