Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368335 - media-fonts/font-misc-misc no longer installs iso8859-1 encoding | xorg-2.eclass problem
Summary: media-fonts/font-misc-misc no longer installs iso8859-1 encoding | xorg-2.ecl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-22 12:14 UTC by Arvid Brodin
Modified: 2018-05-26 20:30 UTC (History)
2 users (show)

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


Attachments
modified xorg-2.eclass file (xorg-2.eclass,15.47 KB, text/plain)
2012-01-09 00:29 UTC, Walter Dnes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Brodin 2011-05-22 12:14:55 UTC
Reproducible: Always

Steps to Reproduce:
1. USE=-nls emerge media-fonts/font-misc-misc
2. Note that only iso10646-1 encoding is installed
3. Try to run e.g. vncserver.
Actual Results:  
vncserver fails with "could not open default font 'fixed'", because the fixed alias in /usr/share/fonts/misc/fonts.alias points to the

-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1

font that does not exist in /usr/share/fonts/misc/fonts.dir.


Expected Results:  
Installation of fonts supporting the locales in /etc/locale.gen, or the same behaviour as before the change to xorg-2.eclass rev 1.24 (see below).

I noticed that the change of xorg-2.eclass to revision 1.24 modified the
behaviour of media-fonts/font-misc-misc:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/xorg-2.eclass?r1=1.23&r2=1.24, lines 252/297, xorg-2_font_configure():

Observe that the old behaviour was to disable all encodings *except*
iso8859-1. The new behaviour is to disable all encodings, period.

I fixed this on my system by changing

			FONT_OPTIONS+="
				--disable-all-encodings"
to
			FONT_OPTIONS+="
				--disable-all-encodings
				--enable-iso8859-1"

in xorg-2.eclass. Enabling nls use flag also fixes this, by installing all font encodings. Perhaps installing no encodings is the right thing to do when nls is disabled, but again, rev xorg-2.eclass rev 1.24 changed the previous behaviour.

Is there a way to enable only iso8859-1 support for fonts with the current xorg-2.eclass? Perhaps this should be connected to the contents of /etc/locale.gen somehow?

---

$ emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.11.3-r0, 2.6.37.6 x86_64)
=================================================================
System uname: Linux-2.6.37.6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-1.12.14
Timestamp of tree: Wed, 30 Mar 2011 13:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.df.lth.se/pub/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://sv1/gentoo-portage"
USE="X alsa amd64 bash-completion berkdb bzip2 cairo cli consolekit cracklib crypt cups cxx dbus device-mapper dri flac fortran gdu gnutls iconv jpeg jpeg2k ldap lock mmx modules mp3 mudflap multilib ncurses nptl nptlonly offensive ogg opengl openmp pam pcre perl png policykit pppd python readline session sse sse2 ssl ssse3 startup-notification svg sysfs theora threads thunar tiff truetype udev unicode vorbis x264 xcomposite xinerama xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Atanas Kamburov 2011-07-08 20:47:34 UTC
I think I have a related problem; when I try to run e.g. xterm or xmessage I always get

"Warning: Unable to load any usable ISO8859 font"

I have font-misc-misc installed, re-emerging it didn't help.

Here is my emerge --info


Portage 2.1.10.3 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.37-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r4-x86_64-AMD_Athlon-tm-_X2_Dual_Core_Processor_BE-2400-with-gentoo-2.0.2
Timestamp of tree: Sun, 03 Jul 2011 09:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo sunrise belak x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/belak /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bzip2 cdr cli consolekit cracklib cxx dbus device-mapper dri dvd fortran fpu gdbm gpm gtk gtk2 iconv ipv6 java jpeg kpathsea lm_sensors mmx modules mudflap multilib ncurses nptl nptlonly nvidia openmp pam pcre perl png policykit pppd python readline session sse sse2 ssl sysfs tcpd truetype udev unicode v4l v4l2 xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 Walter Dnes 2011-11-21 09:44:13 UTC
"Me too". ISO8859-1 font versions wouldn't install. The eclass hack also works for me. Time to change this bug from unconfirmed to confirmed. "emerge --info" output follows.

waltdnes@d531 ~ $ emerge --info
Portage 2.1.10.11 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.12.2-r0, 3.0.6-gentoo i686)
=================================================================
System uname: Linux-3.0.6-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_E4600_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 19 Nov 2011 02:15:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.netnitco.net"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac bzip2 dga dri exif ffmpeg flac fortran gif intel jpeg mmx mng mp3 mpeg nptl nptlonly nsplugin offensive ogg opengl png posix sse sse2 ssse3 theora threads tiff truetype vim-syntax vorbis win32codecs wmf x86 xcomposite xpm xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol asym" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-11-21 10:01:48 UTC
Would one of you be so kind and try to rebuild all installed fonts after modifying the eclass like this, and tell us whether any new warnings appear? We'd really appreciate that, and it'll allow us to fix it sooner.
Comment 4 Joseph 2012-01-04 04:36:03 UTC
(In reply to comment #3)
> Would one of you be so kind and try to rebuild all installed fonts after
> modifying the eclass like this, and tell us whether any new warnings appear?
> We'd really appreciate that, and it'll allow us to fix it sooner.

I've modified:
/usr/portage/eclass/xorg-2.eclass 
from:
            FONT_OPTIONS+="
                --disable-all-encodings"
to
            FONT_OPTIONS+="
                --disable-all-encodings
                --enable-iso8859-1"

and recompiled: media-fonts/font-misc-misc
It did not help me.
I have filed a bug: https://bugs.gentoo.org/show_bug.cgi?id=397577
and it was marked duplicate of this one, but it made no difference in my case.
Comment 5 Walter Dnes 2012-01-09 00:28:01 UTC
Sorry about the delay. I wasn't expecting this. Anyhow, I ran 

emerge -1 corefonts dejavu encodings font-alias font-ibm-type1 font-misc-misc font-util urw-fonts

with a modified eclass file.  There were no files in /var/log/portage/elog, where warnings normally show up.  I'm attaching my modified eclass file.
Comment 6 Walter Dnes 2012-01-09 00:29:22 UTC
Created attachment 298379 [details]
modified xorg-2.eclass file

modified xorg-2.eclass file
Comment 7 Joseph 2012-01-09 18:34:35 UTC
How to list (emerge) all the packages that depends on "media-fonts"?

I've modified "xorg-2.eclass" but I need to re-emerge all the packages that depends on any type of fonts.
Comment 8 Larry the Git Cow gentoo-dev 2018-05-26 20:30:46 UTC
The bug has been closed via the following commit(s):

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

commit 0f65e2f961b2771dc5b627e4d2fc15a863849289
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2018-05-26 19:52:46 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2018-05-26 20:29:46 +0000

    xorg-2.eclass: Always install iso8859-1
    
    Closes: https://bugs.gentoo.org/357331
    Closes: https://bugs.gentoo.org/368335
    Closes: https://bugs.gentoo.org/651046

 eclass/xorg-2.eclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)