mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
games-emulation/RetroArch: fix build failure with USE=-pipewire
Closes: https://bugs.gentoo.org/960043 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -83,6 +83,10 @@ BDEPEND="
|
|||||||
wayland? ( dev-util/wayland-scanner )
|
wayland? ( dev-util/wayland-scanner )
|
||||||
"
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${P}-fix-no-pipewire-build.patch"
|
||||||
|
)
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
if use cg; then
|
if use cg; then
|
||||||
append-ldflags -L"${EPREFIX}/"opt/nvidia-cg-toolkit/$(get_libdir)
|
append-ldflags -L"${EPREFIX}/"opt/nvidia-cg-toolkit/$(get_libdir)
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
https://github.com/libretro/RetroArch/commit/3162b6a4386cee72af5539849d24a35cfe7652a2
|
||||||
|
https://bugs.gentoo.org/960043
|
||||||
|
Fix build with disable-pipewire on systems with pipewire installed
|
||||||
|
|
||||||
|
On systems where pipewire is installed but the build is configured with
|
||||||
|
--disable-pipewire, HAVE_PIPEWIRE_STABLE is set to 1 while HAVE_PIPEWIRE
|
||||||
|
is 0. Checking only HAVE_PIPEWIRE_STABLE leads to a build failure.
|
||||||
|
--- a/camera/camera_driver.c
|
||||||
|
+++ b/camera/camera_driver.c
|
||||||
|
@@ -55,7 +55,7 @@ const camera_driver_t *camera_drivers[] = {
|
||||||
|
#ifdef HAVE_V4L2
|
||||||
|
&camera_v4l2,
|
||||||
|
#endif
|
||||||
|
-#ifdef HAVE_PIPEWIRE_STABLE
|
||||||
|
+#if defined(HAVE_PIPEWIRE) && defined(HAVE_PIPEWIRE_STABLE)
|
||||||
|
&camera_pipewire,
|
||||||
|
#endif
|
||||||
|
#ifdef EMSCRIPTEN
|
||||||
Reference in New Issue
Block a user