commit: 3273dc3b9fb5cb22b4dbc7f698a36c5f4af67a33 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Tue Sep 2 05:11:00 2025 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Tue Sep 2 05:17:28 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3273dc3b
media-libs/libsdl3: disable openvr On second thought, think would prefer to skip this given the code is somewhat large and is off-by-default upstream. If it ever gets packaged we can add proper dependencies with a USE=openvr. Not worth a revbump. Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> media-libs/libsdl3/files/libsdl3-3.2.22-openvr.patch | 16 ---------------- media-libs/libsdl3/libsdl3-3.2.22.ebuild | 7 +------ 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/media-libs/libsdl3/files/libsdl3-3.2.22-openvr.patch b/media-libs/libsdl3/files/libsdl3-3.2.22-openvr.patch deleted file mode 100644 index da3d1a5998ff..000000000000 --- a/media-libs/libsdl3/files/libsdl3-3.2.22-openvr.patch +++ /dev/null @@ -1,16 +0,0 @@ -Not looked into what led to this "Fixed build" commit[1] (maybe compatibility -with another compiler due to that scoped declaration higher up), but it instead -breaks it for us with both gcc and clang. Quick revert for now. - -SDL_openvrvideo.c:1543:5: error: 'hint' undeclared (first use in this function) - -[1] https://github.com/libsdl-org/SDL/commit/08c82a37814386be38bec7524ec57ff0e548be0b ---- a/src/video/openvr/SDL_openvrvideo.c -+++ b/src/video/openvr/SDL_openvrvideo.c -@@ -1541,5 +1541,5 @@ - } - -- hint = SDL_GetHint("SDL_OPENVR_INPUT_PROFILE"); -+ const char *hint = SDL_GetHint("SDL_OPENVR_INPUT_PROFILE"); - char *loadpath = 0; - EVRInputError err; diff --git a/media-libs/libsdl3/libsdl3-3.2.22.ebuild b/media-libs/libsdl3/libsdl3-3.2.22.ebuild index 27caf2aaa923..ab8b0ba00b05 100644 --- a/media-libs/libsdl3/libsdl3-3.2.22.ebuild +++ b/media-libs/libsdl3/libsdl3-3.2.22.ebuild @@ -80,10 +80,6 @@ BDEPEND=" wayland? ( dev-util/wayland-scanner ) " -PATCHES=( - "${FILESDIR}"/${P}-openvr.patch -) - src_prepare() { cmake_src_prepare @@ -123,8 +119,7 @@ src_configure() { -DSDL_KMSDRM=$(usex kms) -DSDL_OPENGL=$(usex opengl) -DSDL_OPENGLES=$(usex opengl) - # openvr is not packaged, but support only needs libglvnd (dlopen) - -DSDL_OPENVR=$(usex opengl) + -DSDL_OPENVR=no # not packaged, note needs opengl REQUIRED_USE if added -DSDL_ROCKCHIP=no -DSDL_RPI=no -DSDL_VIVANTE=no
