Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949387 - >=media-libs/libsdl2-2.30.7-r1[test,-vulkan] fails to compile: test/testvulkan.c:34:10: fatal error: ../src/video/khronos/vulkan/vulkan.h: No such file or directory
Summary: >=media-libs/libsdl2-2.30.7-r1[test,-vulkan] fails to compile: test/testvulka...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-02-07 09:15 UTC by Dustin Polke
Modified: 2025-02-19 14:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Full build log (build.log,684.24 KB, text/x-log)
2025-02-07 09:15 UTC, Dustin Polke
Details
emerge --info (emerge-info.txt,22.62 KB, text/plain)
2025-02-07 09:16 UTC, Dustin Polke
Details
Patch to disable testvulkan target for USE=-test (libsdl2-2.30.7-r1.ebuild.patch,365 bytes, patch)
2025-02-09 11:32 UTC, Dustin Polke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin Polke 2025-02-07 09:15:34 UTC
Created attachment 918294 [details]
Full build log

With USE="-vulkan", testvulkan target is not removed as in libsdl2-2.28.5-r3.ebuild and yields a compilation failure:

FAILED: test/CMakeFiles/testvulkan.dir/testvulkan.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -DHAVE_OPENGL -I/var/tmp/portage/media-libs/libsdl2-2.30.7-r1/work/SDL2-2.30.7_build-abi_x86_64.amd64/include -I/var/tmp/portage/media-libs/libsdl2-2.30.7-r1/work/SDL2-2.30.7_build-abi_x86_64.amd64/include/SDL2 -I/var/tmp/portage/media-libs/libsdl2-2.30.7-r1/work/SDL2-2.30.7_build-abi_x86_64.amd64/include-config-relwithdebinfo/SDL2  -O2 -pipe -march=alderlake -mtune=generic -fstack-protector-strong -idirafter "/var/tmp/portage/media-libs/libsdl2-2.30.7-r1/work/SDL2-2.30.7/src/video/khronos" -DHAVE_LINUX_VERSION_H  -Wall -Wundef -fno-strict-aliasing -Wdeclaration-after-statement -fvisibility=hidden -Wshadow -Wno-unused-local-typedefs -fdiagnostics-color=always -mmmx -msse -msse2 -msse3  -isystem/usr/include -D_REENTRANT  -DSDL_BUILD_MAJOR_VERSION=2 -DSDL_BUILD_MINOR_VERSION=30 -DSDL_BUILD_MICRO_VERSION=7 -fno-fast-math -MD -MT test/CMakeFiles/testvulkan.dir/testvulkan.c.o -MF test/CMakeFiles/testvulkan.dir/testvulkan.c.o.d -o test/CMakeFiles/testvulkan.dir/testvulkan.c.o -c /var/tmp/portage/media-libs/libsdl2-2.30.7-r1/work/SDL2-2.30.7/test/testvulkan.c
/var/tmp/portage/media-libs/libsdl2-2.30.7-r1/work/SDL2-2.30.7/test/testvulkan.c:34:10: fatal error: ../src/video/khronos/vulkan/vulkan.h: No such file or directory
   34 | #include "../src/video/khronos/vulkan/vulkan.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
 * ERROR: media-libs/libsdl2-2.30.7-r1::gentoo failed (compile phase):
 *   ninja -v -j12 -l12 failed



# emerge -p libsdl2

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 6.07 s (backtrack: 0/800).

[ebuild     U  ] media-libs/libsdl2-2.30.7-r1::gentoo [2.28.5-r3::gentoo] USE="X alsa dbus gles2 haptic jack joystick libsamplerate opengl pulseaudio sound static-libs* test udev video (-aqua) (-custom-cflags) -doc -fcitx -gles1 -ibus -kms -nas -oss -pipewire -sndio -vulkan -wayland -xscreensaver (-threads%*)" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx sse sse2 sse3%* -3dnow" VIDEO_CARDS="(-vc4%)" 0 KiB
Comment 1 Dustin Polke 2025-02-07 09:16:15 UTC
Created attachment 918295 [details]
emerge --info
Comment 2 Dustin Polke 2025-02-09 11:32:19 UTC
Created attachment 918341 [details, diff]
Patch to disable testvulkan target for USE=-test

Adding this to prepare disables the test. Compilation and test execution is successful.
Comment 3 Dustin Polke 2025-02-09 11:36:00 UTC
It would be cleaner, if the test is only added if `DSDL_VULKAN` is defined.
Comment 4 Larry the Git Cow gentoo-dev 2025-02-19 14:35:19 UTC
The bug has been referenced in the following commit(s):

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

commit 547225b02c24b53d302a694c8e2c341f89121311
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2025-02-19 13:47:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-19 14:35:00 +0000

    media-libs/libsdl2: add 2.32.0
    
    Bug: https://bugs.gentoo.org/932644
    Bug: https://bugs.gentoo.org/949387
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/40651
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/libsdl2/Manifest                        |   1 +
 ....0-fix-tests-for-disabled-vulkan-and-gles.patch |  40 ++++
 media-libs/libsdl2/libsdl2-2.32.0.ebuild           | 213 +++++++++++++++++++++
 3 files changed, 254 insertions(+)