Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660966 - media-fonts/terminus-font-4.46 lost 8bit fonts
Summary: media-fonts/terminus-font-4.46 lost 8bit fonts
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-11 21:23 UTC by Jan Sembera
Modified: 2020-11-09 09:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Sembera 2018-07-11 21:23:51 UTC
In the latest release of terminus-font-4.46, all 8bit encodings stopped being installed by default. This is also mentioned in the release notes:

- The X11 8-bit code pages are not installed by default.

I know I live in the ancient times, but I'd like my iso-8859-2 encoded fonts back. I tried to apply this to the ebuild, and it appears to be working. It looks like pcf-unicode-only should still work and purge everything non-unicode, just like it used to work. Please consider applying this, thanks ;-) 

--- terminus-font-4.46.ebuild   2018-07-11 23:21:24.687628732 +0200
+++ terminus-font-4.46-r1.ebuild        2018-07-11 23:14:00.274276077 +0200
@@ -71,7 +71,7 @@
 src_install() {
        local args=(
                $(usex psf 'install-psf install-psf-vgaw install-psf-ref' '')
-               $(usex pcf 'install-pcf' '')
+               $(usex pcf 'install-pcf install-pcf-8bit' '')
        )
        # Set the CHECKDIR to a dummy location so we always get the same set of
        # files installed regardless of what is in / or ROOT or wherever.
Comment 1 Mark Calderbank 2020-11-06 14:48:53 UTC
This is still a problem in version 4.48-r2. Disabling USE flag pcf-unicode-only does not install the pcf fonts for 8-bit code pages.

I applied the following patch to fix it.

--- terminus-font-4.48-r2.ebuild.orig	2020-11-06 14:27:56.105497567 +0000
+++ terminus-font-4.48-r2.ebuild	2020-11-06 14:28:40.848739519 +0000
@@ -64,7 +64,8 @@
 src_compile() {
 	local args=(
 		$(usex psf 'psf psf-vgaw' '')
-		$(usex pcf 'pcf pcf-8bit' '')
+		$(usex pcf 'pcf' '')
+		$(usex pcf-unicode-only '' 'pcf-8bit')
 	)
 	[[ ${#args[@]} -gt 0 ]] && emake "${args[@]}"
 
@@ -108,6 +109,7 @@
 	local args=(
 		$(usex psf 'install-psf install-psf-vgaw install-psf-ref' '')
 		$(usex pcf 'install-pcf' '')
+		$(usex pcf-unicode-only '' 'install-pcf-8bit')
 	)
 	# Set the CHECKDIR to a dummy location so we always get the same set of
 	# files installed regardless of what is in / or ROOT or wherever.
Comment 2 Mark Calderbank 2020-11-09 09:27:24 UTC
Correction: the 8-bit compile and install arguments should be conditional on USE=pcf as well as USE=-pcf-unicode-only

--- terminus-font-4.48-r2.ebuild.orig	2020-11-09 08:32:23.682929773 +0000
+++ terminus-font-4.48-r2.ebuild	2020-11-09 08:42:18.612881874 +0000
@@ -64,7 +64,8 @@
 src_compile() {
 	local args=(
 		$(usex psf 'psf psf-vgaw' '')
-		$(usex pcf 'pcf pcf-8bit' '')
+		$(usex pcf 'pcf' '')
+		$(use pcf && usex pcf-unicode-only '' 'pcf-8bit')
 	)
 	[[ ${#args[@]} -gt 0 ]] && emake "${args[@]}"
 
@@ -108,6 +109,7 @@
 	local args=(
 		$(usex psf 'install-psf install-psf-vgaw install-psf-ref' '')
 		$(usex pcf 'install-pcf' '')
+		$(use pcf && usex pcf-unicode-only '' 'install-pcf-8bit')
 	)
 	# Set the CHECKDIR to a dummy location so we always get the same set of
 	# files installed regardless of what is in / or ROOT or wherever.