From 2d28d60fe1cf55a98db5f3d9895ad321d64ae5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 10 Aug 2025 10:08:55 +0700 Subject: [PATCH] xboxdrv: fix ftbfs --- srcpkgs/xboxdrv/patches/fix-ftbfs.patch | 22 ++++++++++++++++++++++ srcpkgs/xboxdrv/template | 6 ++++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/xboxdrv/patches/fix-ftbfs.patch diff --git a/srcpkgs/xboxdrv/patches/fix-ftbfs.patch b/srcpkgs/xboxdrv/patches/fix-ftbfs.patch new file mode 100644 index 00000000000..9eae0327384 --- /dev/null +++ b/srcpkgs/xboxdrv/patches/fix-ftbfs.patch @@ -0,0 +1,22 @@ +--- a/src/controller.cpp ++++ b/src/controller.cpp +@@ -98,7 +98,7 @@ Controller::set_active(bool v) + { + if (m_is_active != v) + { +- log_debug("activation status: " << v << " " << m_activation_cb); ++ log_debug("activation status: " << v << " m_activation_cb"); + m_is_active = v; + if (m_activation_cb) + { +--- a/src/controller_slot.cpp ++++ b/src/controller_slot.cpp +@@ -69,7 +69,7 @@ ControllerSlot::disconnect() + bool + ControllerSlot::is_connected() const + { +- return m_thread; ++ return m_thread != nullptr; + } + + /* EOF */ diff --git a/srcpkgs/xboxdrv/template b/srcpkgs/xboxdrv/template index cfb65985314..aab158d9062 100644 --- a/srcpkgs/xboxdrv/template +++ b/srcpkgs/xboxdrv/template @@ -1,10 +1,12 @@ # Template file for 'xboxdrv' pkgname=xboxdrv version=0.8.8 -revision=3 +revision=4 build_style=scons +make_build_args=BUILD=custom hostmakedepends="pkg-config glib-devel dbus-glib-devel" -makedepends="boost-devel libX11-devel eudev-libudev-devel libusb-devel dbus-glib-devel glib-devel" +makedepends="boost-devel-minimal libX11-devel eudev-libudev-devel + libusb-devel dbus-glib-devel glib-devel" short_desc="Xbox Gamepad Userspace Driver" maintainer="Andrea Brancaleoni " license="GPL-3.0-or-later"