Your message dated Mon, 3 Feb 2020 23:19:06 +0100
with message-id <[email protected]>
and subject line Re: Bug#947061: libsdl2-gfx-dev missing
SDL2_gfxPrimitives_font.h
has caused the Debian Bug report #947061,
regarding libsdl2-gfx-dev missing SDL2_gfxPrimitives_font.h
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
947061: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947061
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libsdl2-gfx-dev
Version: 1.0.4+dfsg-3
Severity: important
I tried to compile a program that requires SDL2_gfxPrimitives_font.h
from libsdl2-gfx-dev. Specifically I tried to compile
https://github.com/lkundrak/koules from the SDL2 branch.
Doing "make -f Makefile.sdl" resulted in this:
...
gcc -g3 -Wall -Wno-error=array-bounds -Wno-error=unused-but-set-variable
-Wno-error=unused-function -Isdl -DHAVEUSLEEP -D_REENTRANT -I/usr/include/SDL2
-DSOUNDDIR="\"/usr/local/lib/koules\"" -D SOUND -D MOUSE -D NETSUPPORT
-DSOUNDSERVER=\"/usr/local/libexec/koules/koules.sndsrv.linux\"
-DSOUNDDIR=\"/usr/local/lib/koules\" -DSOUNDDEV=\"/dev/dsp\" -DNODIRECT
-DSDLSUPPORT -fomit-frame-pointer -O3 -ffast-math -Dlinux -Wall -Wall -c -o
sdl/init.o sdl/init.c
sdl/init.c:24:10: fatal error: SDL2_gfxPrimitives_font.h: No such file or
directory
#include <SDL2_gfxPrimitives_font.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile.sdl:54: sdl/init.o] Error 1
I then did "apt-get source libsdl2-gfx-dev" to see what was going on
there. The missing header file is there in libsdl2-gfx-1.0.4+dfsg/.
Moving along, I did "less
/var/cache/apt/archives/libsdl2-gfx-dev_1.0.4+dfsg-3_amd64.deb.
Surprisingly, the header file is missing.
-- System Information:
Debian Release: 10.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libsdl2-gfx-dev depends on:
ii libsdl2-dev 2.0.9+dfsg1-1
ii libsdl2-gfx-1.0-0 1.0.4+dfsg-3
libsdl2-gfx-dev recommends no packages.
Versions of packages libsdl2-gfx-dev suggests:
pn libsdl2-gfx-doc <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi David,
On 20.12.19 08:10, David Griffith wrote:
Package: libsdl2-gfx-dev
Version: 1.0.4+dfsg-3
Severity: important
I tried to compile a program that requires SDL2_gfxPrimitives_font.h
from libsdl2-gfx-dev. Specifically I tried to compile
https://github.com/lkundrak/koules from the SDL2 branch.
Doing "make -f Makefile.sdl" resulted in this:
...
gcc -g3 -Wall -Wno-error=array-bounds -Wno-error=unused-but-set-variable -Wno-error=unused-function -Isdl -DHAVEUSLEEP
-D_REENTRANT -I/usr/include/SDL2 -DSOUNDDIR="\"/usr/local/lib/koules\"" -D SOUND -D MOUSE -D NETSUPPORT
-DSOUNDSERVER=\"/usr/local/libexec/koules/koules.sndsrv.linux\" -DSOUNDDIR=\"/usr/local/lib/koules\"
-DSOUNDDEV=\"/dev/dsp\" -DNODIRECT -DSDLSUPPORT -fomit-frame-pointer -O3 -ffast-math -Dlinux -Wall -Wall -c -o
sdl/init.o sdl/init.c
sdl/init.c:24:10: fatal error: SDL2_gfxPrimitives_font.h: No such file or
directory
#include <SDL2_gfxPrimitives_font.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile.sdl:54: sdl/init.o] Error 1
This seems to be a bug in koules.
SDL2_gfxPrimitives_font.h is not installed by the upstream build system so
it's not in the Debian package.
The documentation of gfxPrimitivesSetFont says:
> \param fontdata Pointer to array of font data. Set to NULL, to reset global font to the default
8x8 font.
So calling gfxPrimitivesSetFont with NULL as fontdata is what koules should
do instead of using gfxPrimitivesFontdata from a private header file.
Cheers,
Felix
--- End Message ---