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: RESOLVED FIXED
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: 2021-07-19 16:04 UTC (History)
3 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.
Comment 3 Marek Szuba archtester gentoo-dev 2021-07-19 10:20:45 UTC
Is there still any interest in this?
Comment 4 Jan Sembera 2021-07-19 15:12:07 UTC
It would still be nice to have this fixed, yes.
Comment 5 Larry the Git Cow gentoo-dev 2021-07-19 16:04:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b771ccd62d5f2b03b4d3f09c0f9a92418496afa7

commit b771ccd62d5f2b03b4d3f09c0f9a92418496afa7
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2021-07-19 15:57:16 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2021-07-19 16:04:32 +0000

    media-fonts/terminus-font: fix PCF-related USE flags
    
    Since version 4.46 upstream build scripts no longer install PCFs for
    8-bit encodings unless explicitly told to - meaning on the one one hand
    both the building and the installation of Unicode and 8-bit PCF files is
    now handled by separate make targets, and on the other that there is no
    longer any need for "install all PCFs, then if only Unicode is requested
    delete other encodings" logic.
    
    In short: if you want Unicode PCFs set USE=pcf-unicode (ebuild default),
    if you want 8-bit ones set USE=pcf-8bit (off by default).
    
    Closes: https://bugs.gentoo.org/660966
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../terminus-font/terminus-font-4.49.1.ebuild      | 34 +++++++++-------------
 1 file changed, 14 insertions(+), 20 deletions(-)