Skip to contentSkip to conversation

libsdl2 and libsdl2-net regressions on Wrynose

oe Mark Jonas 1 participant 1 message May 17 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mark Jonas

author
#1 lore raw

Hi,

Quoted 9 lines

While updating my meta-doom layer for Wrynose I stumbled over two libsdl2 and one libsdl2-net regression. I'm not sending patches yet because I am struggling with my QEMU setup. Still, I would like to give early feedback and potentially collect some feedback.

For reasons I still have to investigate I cannot boot my images on QEMU. The booting starts but I never get to a login prompt. It freezes somewhere in the boot process after printing "Booting the kernel (entry offset: 0x000...ba0).".

I was able to resolve the boot problem with QEMU. After removing IMAGE_INSTALL:qemux86-64:append = " kernel-module-snd-intel8x0" the image now boots. Why that froze the boot is still a mystery to me.

Thanks to this finding I was able to verify that my AI assisted fix to the DirectFB renderer of libsdl2 works. I can see Doom running.

It will now take me some days to prepare proper patches for OE and libsdl2 upstream. In the meantime I would still be happy for feedback regarding the way I am fixing the issues.

Quoted 41 lines

### 1 ###

Between Kirkstone / Scarthgap and Wrynose the libsdl2 directfb renderer was broken by forgetting to adapt it to internal API changes. I hotfixed the problem using a coding assistant. It compiles now but I still need to verify that it also runs properly.

libsdl2: Patch directfb compilation error
https://gitlab.com/toertel/meta-doom/-/commit/3b75e8692e41e4a6bd47ad8616a725a469caf41c

### 2 ###

Another libsdl2 regression (worked in Kirkstone and Scarthgap) is that /usr/lib/pkgconfig/sdl2.pc now contains a buildpath of DirectFB. I fixed that by mending sdl2.pc after do_install.

ERROR: libsdl2-2.32.10-r0 do_package_qa: QA Issue: File /usr/lib/pkgconfig/sdl2.pc in package libsdl2-dev contains reference to TMPDIR [buildpaths]
ERROR: libsdl2-2.32.10-r0 do_package_qa: Fatal QA errors were found, failing task.

Before:
Cflags: -I${includedir} -I${includedir}/SDL2

(quoted diff) +0 -2
-I/home/toertel/projects/yocto/build_wrynose/tmp/work/x86-64-v3-poky-linux/libsdl2/2.32.10/recipe-sysroot/usr/include/directfb
-D_REENTRANT -D_REENTRANT

After:
Cflags: -I${includedir} -I${includedir}/SDL2 -I${includedir}/directfb -D_REENTRANT -D_REENTRANT

libsdl2: Fix packaging QA issue in sdl2.pc
https://gitlab.com/toertel/meta-doom/-/commit/2dc01101a9e5d050ee7330631012de21719f813b

### 3 ###

Finally, when doing the build configuration (chocolate-doom) I ran into the problem that SDL2_net.pc is not installed by libsdl-net. Again, this regression came in between Kirkstone / Scarthgap and Wrynose. I fixed that by backporting a patch from libsdl2-net 2.4.0.

Quoted 7 lines
| checking for SDL2_net >= 2.0.0... no
| configure: error: Package requirements (SDL2_net >= 2.0.0) were not met:
|
| Package 'SDL2_net' not found

libsdl2-net: Ensure that SDL2_net.pc is always installed
https://gitlab.com/toertel/meta-doom/-/commit/5699206aec5b360c96266921f4427b596e44cdea

Cheers,
Mark