From 8167564e4edc107cbec88a32dc8cbd43498f739a Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Fri, 4 Dec 2026 12:41:58 -0500 Subject: [PATCH] configure: build the WCH BLE Analyzer Pro helper only with libusb kismet_cap_wch_ble_analyzer_pro includes and calls libusb directly, but configure built it even with --disable-libusb or without libusb-1.0, unlike every other libusb capture helper. Without the libusb headers the build stops in wch_ble_analyzer.h; with the headers installed but libusb disabled, LIBUSBLIBS is empty and the helper fails to link (undefined libusb_* symbols). Build it only when libusb is available, as for the RZ KillerBee helper, and say why in the configure summary when it is skipped. Bug: https://bugs.gentoo.org/985186 Co-Authored-By: Claude Opus 5.5 --- Backported to kismet-2026-10-R1, configure.ac only (the ebuild runs eautoreconf). Upstream: https://github.com/kismetwireless/kismet/pull/789 configure.ac | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 250a80d33..e37039501 100644 --- a/configure.ac +++ b/configure.ac @@ -50,7 +50,7 @@ BUILD_CAPTURE_HAK5_COCONUT=0 BUILD_CAPTURE_USBWIFI=0 BUILD_CAPTURE_MM8108=0 BUILD_CAPTURE_CATSNIFFER_ZIGBEE=1 -BUILD_CAPTURE_WCH_BLE_ANALYZER_PRO=1 +BUILD_CAPTURE_WCH_BLE_ANALYZER_PRO=0 BUILD_CAPTURE_USB_RADIACODE=0 BUILD_CAPTURE_ANTSDR_DRONEID=1 BUILD_CAPTURE_SNIFFLE_BLE=1 @@ -2090,8 +2090,11 @@ if test "$have_usb" = "yes"; then DATASOURCE_BINS="$DATASOURCE_BINS \$(CAPTURE_RZ_KILLERBEE)" fi -BUILD_CAPTURE_WCH_BLE_ANALYZER_PRO=1 -DATASOURCE_BINS="$DATASOURCE_BINS \$(CAPTURE_WCH_BLE_ANALYZER_PRO)" +BUILD_CAPTURE_WCH_BLE_ANALYZER_PRO=0 +if test "$have_usb" = "yes"; then + BUILD_CAPTURE_WCH_BLE_ANALYZER_PRO=1 + DATASOURCE_BINS="$DATASOURCE_BINS \$(CAPTURE_WCH_BLE_ANALYZER_PRO)" +fi AC_ARG_ENABLE([cell], AS_HELP_STRING([--disable-cell], [Disable the cellular modem AT and DIAG capture tools and their log converters]), @@ -2610,7 +2613,7 @@ printf " WCH BLE Analyzer Pro: " if test "$BUILD_CAPTURE_WCH_BLE_ANALYZER_PRO" = 1; then echo "yes"; else - echo "no"; + echo "no (libusb-1.0 not available)"; fi printf " Hak5 WiFi Coconut: " if test "$BUILD_CAPTURE_HAK5_COCONUT" = 1; then -- 2.56.1