Package: freeciv-client-sdl
Version: 3.2.1+ds-1
Severity: grave
Justification: renders package unusable

On a GNOME testing/unstable desktop system, freeciv-client-sdl doesn't 
start. Running from a terminal, it outputs:

3: Migrating options from sdl to sdl2 client
3: Using Video Output: x11
0: Could not open font: ./../fonts/truetype/dejavu/DejaVuSans.ttf
0: No usable default theme found, aborting!

or when running it from the GUI, the same messages appear in the systemd 
Journal.

I encountered this while testing the version of sdl2-compat in 
experimental (which switches the default SDL 2 implementation from 
"classic" SDL 2 to sdl2-compat), but it is equally reproducible using 
"classic" SDL 2 
(export SDL_DYNAMIC_API='/usr/$LIB/sdl2-classic/libSDL2-2.0.so.0').

Perhaps the UI theme data needs updating for a changed font directory, 
or perhaps it is resolving the given relative path from an unexpected base 
directory?

On my test system, /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf 
exists as a regular file of size approximately 744K.

If I edit /usr/share/games/freeciv/themes/gui-sdl2/human/theme.themespec 
like this:

```diff
-default_font_file = "./../fonts/truetype/dejavu/DejaVuSans.ttf
+default_font_file = "../../fonts/truetype/dejavu/DejaVuSans.ttf
```

to match the paths configured for CJK fonts, then it seems to work OK.

    smcv

-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing'), (102, 'unstable'), (99, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.17.13+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages freeciv-client-sdl depends on:
ii  fonts-arphic-uming    0.2.20080216.2-11
ii  fonts-dejavu-core     2.37-8
ii  fonts-ipafont-gothic  00303-23
ii  fonts-noto-cjk        1:20240730+repack1-1
ii  freeciv-data          3.2.1+ds-1
ii  libbz2-1.0            1.0.8-6
ii  libc6                 2.42-6
ii  libcurl3t64-gnutls    8.18.0~rc2-1
ii  libicu76              76.1-4
ii  liblua5.4-0           5.4.8-1
ii  liblzma5              5.8.2-1
ii  libsdl2-2.0-0         2.32.62+ds-1
ii  libsdl2-gfx-1.0-0     1.0.4+dfsg-7
ii  libsdl2-image-2.0-0   2.8.8+dfsg-2
ii  libsdl2-mixer-2.0-0   2.8.1+dfsg-5
ii  libsdl2-ttf-2.0-0     2.24.0+dfsg-3
ii  libzstd1              1.5.7+dfsg-2
ii  zlib1g                1:1.3.dfsg+really1.3.1-1+b2

Versions of packages freeciv-client-sdl recommends:
ii  freeciv-server  3.2.1+ds-1

Versions of packages freeciv-client-sdl suggests:
pn  freeciv-client-extras  <none>

-- no debconf information

Reply via email to