Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288411 - x11-wm/twm needs font-adobe
Summary: x11-wm/twm needs font-adobe
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-10 11:04 UTC by Zorzo Luca
Modified: 2020-07-29 13:00 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 Zorzo Luca 2009-10-10 11:04:14 UTC
Since new stable xorg-server-1.6.3.901-r2 font-adobe-* aren't pulled in anymore, but twm needs them, or it will not start (using the default /usr/share/X11/twm/system.twmrc).
So please add them as dependency or change /usr/share/X11/twm/system.twmrc.
I think that also other X apps need adobe's fonts, so maybe we can switch back and add them as xorg rdep.

Reproducible: Always

Steps to Reproduce:
1.startx
2.twm doesn't start.


Actual Results:  
twm:  unable to open fontset "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"


emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6-zizo i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-zizo-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 10 Oct 2009 00:30:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-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/udev/rules.d"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/lost+found"
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/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb branding bzip2 cairo cdinstall cli cracklib crypt cups dbus dri fortran gdbm gif gpm gtk hal iconv isdnlog jpeg kde mikmod mmx modules mp3 mudflap ncurses nls nptl nptlonly openal opengl openmp oss pam pcre perl png pppd python qt4 readline reflection sdl session spl sse sse2 ssl sysfs tcpd tiff truetype unicode vorbis x86 xorg xv zlib" ALSA_CARDS="intel8x0" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS


cat /usr/share/X11/twm/system.twmrc
#
# $Xorg: system.twmrc,v 1.3 2000/08/17 19:54:08 cpqbld Exp $
#
# Default twm configuration file; needs to be kept small to conserve string
# space in systems whose compilers don't handle medium-sized strings.
#
# Sites should tailor this file, providing any extra title buttons, menus, etc.
# that may be appropriate for their environment.  For example, if most of the
# users were accustomed to uwm, the defaults could be set up not to decorate
# any windows and to use meta-keys.
#
# $XFree86: xc/programs/twm/system.twmrc,v 1.4 2001/01/17 23:45:08 dawes Exp $
#

NoGrabServer
RestartPreviousState
DecorateTransients
TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
#ClientBorderWidth

Color
{
    BorderColor "slategrey"
    DefaultBackground "rgb:2/a/9"
    DefaultForeground "gray85"
    TitleBackground "rgb:2/a/9"
    TitleForeground "gray85"
    MenuBackground "rgb:2/a/9"
    MenuForeground "gray85"
    MenuBorderColor "slategrey"
    MenuTitleBackground "gray70"
    MenuTitleForeground "rgb:2/a/9"
    IconBackground "rgb:2/a/9"
    IconForeground "gray85"
    IconBorderColor "gray85"
    IconManagerBackground "rgb:2/a/9"
    IconManagerForeground "gray85"
}

#
# Define some useful functions for motion-based actions.
#
MoveDelta 3
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.move f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }

#
# Set some useful bindings.  Sort of uwm-ish, sort of simple-button-ish
#
Button1 = : root : f.menu "defops"

Button1 = m : window|icon : f.function "move-or-lower"
Button2 = m : window|icon : f.iconify
Button3 = m : window|icon : f.function "move-or-raise"

Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.raiselower

Button1 = : icon : f.function "move-or-iconify"
Button2 = : icon : f.iconify

Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.iconify

#
# And a menus with the usual things
#
menu "defops"
{
"Twm"   f.title
"Iconify"       f.iconify
"Resize"        f.resize
"Move"          f.move
"Raise"         f.raise
"Lower"         f.lower
""              f.nop
"Focus"         f.focus
"Unfocus"       f.unfocus
"Show Iconmgr"  f.showiconmgr
"Hide Iconmgr"  f.hideiconmgr
""              f.nop
"Xterm"         f.exec "exec xterm &"
""              f.nop
"Kill"          f.destroy
"Delete"        f.delete
""              f.nop
"Restart"       f.restart
"Exit"          f.quit
}
Comment 1 Enrique Domínguez 2009-10-20 09:37:58 UTC
(In reply to comment #0)
> Since new stable xorg-server-1.6.3.901-r2 font-adobe-* aren't pulled in
> anymore, but twm needs them, or it will not start (using the default
> /usr/share/X11/twm/system.twmrc).
> So please add them as dependency or change /usr/share/X11/twm/system.twmrc.
> I think that also other X apps need adobe's fonts, so maybe we can switch back
> and add them as xorg rdep.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1.startx
> 2.twm doesn't start.

twm only needing media-fonts/font-adobe-100dpi in my system for start with defaults, it's right for you too?
Comment 2 Zorzo Luca 2009-10-20 10:08:07 UTC
I can't test it now, but looking at the current system.twmrc only media-fonts/font-adobe-100dpi is needed as it doesn't use any -75- font.
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2009-11-05 08:21:32 UTC
Could you try to make it work without any adobe fonts? Maybe using the "fixed" font?

I'll patch twm to use that instead of forcing an old font onto users.

Thanks
Comment 4 Zorzo Luca 2009-11-05 11:24:59 UTC
Now the problem is different:
if twm can find the font it prints this warning:

twm: warning: font for charset JISX0208.1983-0 is lacking. 
twm: warning: font for charset KSC5601.1987-0 is lacking. 
twm: warning: font for charset GB2312.1980-0 is lacking.

This happens with every tested font (terminus, verdana, dejavu and others) and it is repeated for every font line specified in /usr/share/X11/twm/system.twmrc .

My locale is:

LANG=it_IT.utf8
LC_CTYPE="it_IT.utf8"
LC_NUMERIC="it_IT.utf8"
LC_TIME="it_IT.utf8"
LC_COLLATE=C
LC_MONETARY="it_IT.utf8"
LC_MESSAGES="it_IT.utf8"
LC_PAPER="it_IT.utf8"
LC_NAME="it_IT.utf8"
LC_ADDRESS="it_IT.utf8"
LC_TELEPHONE="it_IT.utf8"
LC_MEASUREMENT="it_IT.utf8"
LC_IDENTIFICATION="it_IT.utf8"
LC_ALL=

and i'm using unicode use flag.
Comment 5 Zorzo Luca 2009-11-05 11:27:46 UTC
P.S.:
- This link can be useful: http://forums.gentoo.org/viewtopic.php?p=3636163
- I tested media-fonts/font-adobe-100dpi, but same problem.
Comment 6 Adam Purkrt 2020-05-10 13:35:46 UTC
Hello, this is still a current issue.

I've hit it yesterday when installing gentoo from scratch. I installed stage3, then emerge-webrsync, updated world, installed kernel.
Then I emerged xorg-server, then xterm and after that twm, to have working X, and continue with the installation process in X.

but upon starting twm (either from xterm, or adding it to .xinitrc) I got

twm:  unable to open fontset "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"

exactly the same error as more than 10 years ago :)

The solution was simple:
emerge media-fonts/font-adobe-75dpi

Still it would be nice if the dependency was fixed in the ebuild.
Comment 7 Larry the Git Cow gentoo-dev 2020-06-15 00:06:58 UTC
The bug has been closed via the following commit(s):

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

commit 96336531d824f3da75587f651b47eaa8caaae68d
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2020-06-15 00:01:40 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-06-15 00:05:59 +0000

    x11-wm/twm: Version bump to 1.0.11
    
    - Port to EAPI=7
    - Fix dependencies
    
    Closes: https://bugs.gentoo.org/288411
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-wm/twm/Manifest          |  1 +
 x11-wm/twm/twm-1.0.11.ebuild | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)
Comment 8 Adam Purkrt 2020-07-29 13:00:14 UTC
Hello, I think I have made a mistake asking to reopen this bug and add the dependency. twm can be run well with the fixed font, after a config change:
/usr/share/X11/twm/system.twmrc
TitleFont "fixed"
and so on