Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820500 - media-libs/freetype-2.11.0: cannot render bitmap fonts, breaks angband
Summary: media-libs/freetype-2.11.0: cannot render bitmap fonts, breaks angband
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL: https://gitlab.freedesktop.org/freety...
Whiteboard:
Keywords: PATCH
: 820377 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-10-27 08:12 UTC by Tee KOBAYASHI
Modified: 2021-11-08 22:06 UTC (History)
5 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 Tee KOBAYASHI 2021-10-27 08:12:03 UTC
Assuming that media-libs/sdl2-image[png] is already merged (see https://bugs.gentoo.org/820479), angband -msdl2 still does not launch correctly.

Reproducible: Always

Steps to Reproduce:
1. USE=png emerge -1 media-libs/sdl2-image && USE=sdl emerge -1 games-roguelike/angband
2. angband -msdl2

Actual Results:  
The program exits after showing the following message:

angband: cant render surface for cache in font '8x13x.fon': Couldn't find glyph

Expected Results:  
The start screen of the game should appear.

emerge --info:

Portage 3.0.28 (python 3.10.0-final-0, default/linux/amd64/17.1, gcc-11.2.0, glibc-2.33-r7, 5.4.134-gentoo x86_64)
=================================================================
System uname: Linux-5.4.134-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_U7500_@_1.06GHz-with-glibc2.33
KiB Mem:     1516768 total,    182736 free
KiB Swap:   49351676 total,  49267716 free
Timestamp of repository gentoo: Wed, 27 Oct 2021 01:21:29 +0000
Head commit of repository gentoo: 7abf69f56a0b4a6bc21a377b9e95b98c047b996c

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p4) 2.36.1
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::x-portage
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          3.9.7::gentoo, 3.10.0::gentoo
dev-lang/rust:            1.55.0::gentoo
dev-util/cmake:           3.21.3::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/openrc:          0.44.7::gentoo
sys-apps/sandbox:         2.27::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo, 2.37_p1::gentoo
sys-devel/gcc:            10.3.0::gentoo, 11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: true

portage-crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE FraunhoferFDK bh-luxi android linux-firmware no-source-code lha free-noncomm freedist linux-fw-redistributable"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/angband/gamedata/ /etc/ca-certificates.conf /etc/dconf /etc/env.d /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 -march=core2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=core2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=core2 -pipe"
GENTOO_MIRRORS="ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ja"
MAKEOPTS="-j1"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa amd64 bzip2 cli crypt dri ffmpeg fortran gdbm gui iconv ipv6 jack libglvnd libtirpc multilib ncurses nls nptl opengl openmp pam pcre pulseaudio readline seccomp split-usr ssl unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2019" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AArch64 ARM M68k Mips PowerPC RISCV Sparc SystemZ WebAssembly" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="aarch64 alpha arm hppa i386 m68k mips mips64 mips64el mipsel or1k ppc ppc64 riscv32 riscv64 s390x sh4 sh4eb sparc sparc64 x86_64" QEMU_USER_TARGETS="aarch64 aarch64_be alpha arm armeb hppa i386 m68k mips mips64 mips64el mipsel mipsn32 mipsn32el or1k ppc ppc64 ppc64abi32 ppc64le riscv32 riscv64 s390x sh4 sh4eb sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="fbdev intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 hkBst 2021-10-27 11:23:48 UTC
This also happens for me when I run "angband -msdl".

I have media-libs/sdl2-image[png] installed:

$ eix sdl2-image
[I] media-libs/sdl2-image
     Available versions:  2.0.5_p20210328 {gif jpeg png static-libs tiff webp ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  2.0.5_p20210328(20:21:17 05-06-21)(gif jpeg png tiff webp -static-libs ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            https://www.libsdl.org/projects/SDL_image/
     Description:         Image file loading library

$ eix angband
[I] games-roguelike/angband
     Available versions:  (~)4.2.2-r1 {+X +ncurses sdl sound}
     Installed versions:  4.2.2-r1(16:25:00 26-10-21)(X ncurses sdl sound)
     Homepage:            https://rephial.org/
     Description:         A roguelike dungeon exploration game based on the books of J.R.R. Tolkien
Comment 2 James Le Cuirot gentoo-dev 2021-10-27 22:57:31 UTC
Turns out this is a regression in FreeType 2.11.0. We need this patch:
https://gitlab.freedesktop.org/freetype/freetype/-/commit/6e9d8d314ff6ab23177b9162c0b96616460bb84e
Comment 3 Larry the Git Cow gentoo-dev 2021-10-28 08:22:40 UTC
The bug has been closed via the following commit(s):

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

commit f4c30e9ff0a179845f987526ca42d3de706e709c
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-10-28 08:21:28 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-10-28 08:22:23 +0000

    media-libs/freetype: Revbump to fix bitmap font rendering
    
    Closes: https://bugs.gentoo.org/820500
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 .../files/freetype-2.11.0-quiet_noop.patch         |  41 ++++
 media-libs/freetype/freetype-2.11.0-r2.ebuild      | 251 +++++++++++++++++++++
 2 files changed, 292 insertions(+)
Comment 4 James Le Cuirot gentoo-dev 2021-10-28 10:45:56 UTC
Thanks for that, Lars!

Unfortunately the game now dies with this instead, but that could be completely unrelated. No time to dig into it now.

[1]    8033 floating point exception  angband -msdl2
Comment 5 James Le Cuirot gentoo-dev 2021-10-28 11:29:01 UTC
(In reply to James Le Cuirot from comment #4)
> Unfortunately the game now dies with this instead, but that could be
> completely unrelated. No time to dig into it now.
> 
> [1]    8033 floating point exception  angband -msdl2

Ah, this issue is already fixed in 4.2.3. I would bump it but steils normally uploads the man pages.
Comment 6 Larry the Git Cow gentoo-dev 2021-11-01 22:07:11 UTC
The bug has been referenced in the following commit(s):

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

commit 34d9730cf7287e2a9b361e7709a44232c68e6a0c
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2021-11-01 22:06:45 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2021-11-01 22:06:45 +0000

    games-roguelike/angband: Version bump to 4.2.3, EAPI 8
    
    Bug: https://bugs.gentoo.org/820500
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-roguelike/angband/Manifest             |   2 +
 games-roguelike/angband/angband-4.2.3.ebuild | 104 +++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)
Comment 7 Stefan Strogin gentoo-dev 2021-11-08 22:06:50 UTC
*** Bug 820377 has been marked as a duplicate of this bug. ***