Skip to contentSkip to conversation

package/kismet: bump to version 2020-09-R2

PATCH Superseded Fabrice Fontaine 1 participant 2 messages Sep 24, 2020

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 package/kismet: bump to version 2020-09-R2

- Drop all patches (not needed anymore)
- Update help message of Config.in: kismet does not support only WiFi but also Bluetooth, SDR ...
- Remove ncurses dependency
- libnl is now optional
- Drop --with-netlink-version (not available anymore)
- Add protobuf, protobuf-c, sqlite and zlib mandatory dependencies
- kismet_client and kismet_drone have been dropped since version 2019-04-R1
- Select libmicrohttpd for kismet_server
- Add optional libusb and lm-sensors dependencies
- Use --{enable,disable}-{libcap,pcre} options
- Use the new LICENSE file

---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Move activation of python tools in a dedicated patch

 Config.in.legacy                              | 12 +++
 ...meron314-moodycamel-to-fix-gcc-9-2-0.patch | 39 ++++++++++
 package/kismet/0001-ncurses.patch             | 11 ---
 package/kismet/0002-nobsd.patch               | 44 -----------
 .../0003-fix-curses-libs-ordering.patch       | 44 -----------
 .../kismet/0004-no-include-host-paths.patch   | 25 -------
 ...don-t-include-linux-if_tun.h-kernel-.patch | 51 -------------
 package/kismet/Config.in                      | 51 +++++++------
 package/kismet/kismet.hash                    |  4 +-
 package/kismet/kismet.mk                      | 74 ++++++++++---------
 10 files changed, 122 insertions(+), 233 deletions(-)
 create mode 100644 package/kismet/0001-Merge-fix-from-cameron314-moodycamel-to-fix-gcc-9-2-0.patch
 delete mode 100644 package/kismet/0001-ncurses.patch
 delete mode 100644 package/kismet/0002-nobsd.patch
 delete mode 100644 package/kismet/0003-fix-curses-libs-ordering.patch
 delete mode 100644 package/kismet/0004-no-include-host-paths.patch
 delete mode 100644 package/kismet/0005-dumpfile_tuntap-don-t-include-linux-if_tun.h-kernel-.patch
Config.in.legacy +12 -0
index 3929a2560d..14a3c84f8f 100644
@@ -146,6 +146,18 @@ endif
 
 comment "Legacy options removed in 2020.11"
 
+config BR2_PACKAGE_KISMET_CLIENT
+	bool "kismet client support was removed"
+	select BR2_LEGACY
+	help
+	  Kismet client support was removed since version 2019-04-R1.
+
+config BR2_PACKAGE_KISMET_DRONE
+	bool "kismet drone support was removed"
+	select BR2_LEGACY
+	help
+	  Kismet drone support was removed since version 2019-04-R1.
+
 config BR2_PACKAGE_GST1_VALIDATE
 	bool "gst1-validate was moved to gst1-devtools"
 	select BR2_PACKAGE_GST1_DEVTOOLS
package/kismet/0001-Merge-fix-from-cameron314-moodycamel-to-fix-gcc-9-2-0.patch new file +39 -0
new file mode 100644
index 0000000000..35cc7186f7
@@ -0,0 +1,39 @@
+From dbac8157372ad0c17f3f4836e70369238c65af86 Mon Sep 17 00:00:00 2001
+From: Mike Kershaw / Dragorn <[email protected]>
+Date: Sat, 12 Sep 2020 15:22:37 -0400
+Subject: [PATCH] Merge fix from cameron314/moodycamel to fix gcc 9.2.0 with
+ the concurrent queue
+
+Merge fix from cameron314/moodycamel to fix gcc 9.2.0 with the concurrent queue.
+
+Fixes #300
+
+[Retrieved from:
+https://github.com/kismetwireless/kismet/commit/dbac8157372ad0c17f3f4836e70369238c65af86]
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ moodycamel/blockingconcurrentqueue.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/moodycamel/blockingconcurrentqueue.h b/moodycamel/blockingconcurrentqueue.h
+index 9b713396..66579b6c 100644
+--- a/moodycamel/blockingconcurrentqueue.h
++++ b/moodycamel/blockingconcurrentqueue.h
+@@ -56,7 +56,7 @@ class BlockingConcurrentQueue
+ 	// includes making the memory effects of construction visible, possibly with a
+ 	// memory barrier).
+ 	explicit BlockingConcurrentQueue(size_t capacity = 6 * BLOCK_SIZE)
+-		: inner(capacity), sema(create<LightweightSemaphore>(0, (int)Traits::MAX_SEMA_SPINS), &BlockingConcurrentQueue::template destroy<LightweightSemaphore>)
++		: inner(capacity), sema(create<LightweightSemaphore, ssize_t, int>(0, (int)Traits::MAX_SEMA_SPINS), &BlockingConcurrentQueue::template destroy<LightweightSemaphore>)
+ 	{
+ 		assert(reinterpret_cast<ConcurrentQueue*>((BlockingConcurrentQueue*)1) == &((BlockingConcurrentQueue*)1)->inner && "BlockingConcurrentQueue must have ConcurrentQueue as its first member");
+ 		if (!sema) {
+@@ -65,7 +65,7 @@ class BlockingConcurrentQueue
+ 	}
+ 	
+ 	BlockingConcurrentQueue(size_t minCapacity, size_t maxExplicitProducers, size_t maxImplicitProducers)
+-		: inner(minCapacity, maxExplicitProducers, maxImplicitProducers), sema(create<LightweightSemaphore>(0, (int)Traits::MAX_SEMA_SPINS), &BlockingConcurrentQueue::template destroy<LightweightSemaphore>)
++		: inner(minCapacity, maxExplicitProducers, maxImplicitProducers), sema(create<LightweightSemaphore, ssize_t, int>(0, (int)Traits::MAX_SEMA_SPINS), &BlockingConcurrentQueue::template destroy<LightweightSemaphore>)
+ 	{
+ 		assert(reinterpret_cast<ConcurrentQueue*>((BlockingConcurrentQueue*)1) == &((BlockingConcurrentQueue*)1)->inner && "BlockingConcurrentQueue must have ConcurrentQueue as its first member");
+ 		if (!sema) {
package/kismet/0001-ncurses.patch deleted +0 -11
deleted file mode 100644
index af8fba52b7..0000000000
@@ -1,11 +0,0 @@
---- kismet-2009-06-R1/configure	2009-06-12 04:26:32.000000000 +0100
-+++ kismet-2009-06-R1.mod/configure	2009-08-05 11:27:43.000000000 +0100
-@@ -6981,7 +6981,7 @@
- 
- 
- # Add additional cflags since some distros bury panel.h
--CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
-+#CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
- 
- termcontrol="none";
- 
package/kismet/0002-nobsd.patch deleted +0 -44

44 lines not on this page · raw message

package/kismet/0003-fix-curses-libs-ordering.patch deleted +0 -44

44 lines not on this page · raw message

package/kismet/0004-no-include-host-paths.patch deleted +0 -25
deleted file mode 100644
index 6819bf425e..0000000000
@@ -1,25 +0,0 @@
-configure: do not hard-code host paths
-
-configure hard-codes include dirs to contain /usr/include/ncurses.
-Needless to say this does not work well for cross-compilation.
-
-Remove that directory from the include search dirs.
-
-Signed-off-by: "Yann E. MORIN" <[email protected]>
-Cc: Vicente Olivert Riera <[email protected]>
-[bernd.kuhls at t-online.de: update for 2016-07-R1]
-Signed-off-by: Bernd Kuhls <[email protected]>
-
-diff -durN kismet-Kismet-2014-02-R1.orig/configure.in kismet-Kismet-2014-02-R1/configure.in
---- kismet-Kismet-2014-02-R1.orig/configure.ac	2014-02-19 05:37:43.000000000 +0100
-+++ kismet-Kismet-2014-02-R1/configure.ac	2014-12-26 16:46:55.770692349 +0100
-@@ -406,9 +406,6 @@
- )
- AC_SUBST(wantclient)
- 
--# Add additional cflags since some distros bury panel.h
--CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
--
- termcontrol="none";
- 
- if test "$wantclient" = "yes"; then
package/kismet/0005-dumpfile_tuntap-don-t-include-linux-if_tun.h-kernel-.patch deleted +0 -51

51 lines not on this page · raw message

package/kismet/Config.in +28 -23

70 lines not on this page · raw message

package/kismet/kismet.hash +2 -2
index 30780b1cc3..fe51ebdb9b 100644
@@ -1,3 +1,3 @@
 # Locally computed
-sha256  bdb21f153311f1ff3b16621bf0d6740f66369bf0982b0a289c9a12af8847e237  kismet-2016-07-R1.tar.xz
-sha256  92b9eae679d8efbcd7514f7ff1346e4c1d42d272cd10bcb724d1511d35e28cd1  debian/copyright
+sha256  ef737fb4801c1d258e575893627625612ac043161a5660d1b30b14879f36ded8  kismet-2020-09-R2.tar.xz
+sha256  93c7f0d7e356b0abfb6f494ff3ea37f96abc84e9a5619b25d4e43f7553a55739  LICENSE
package/kismet/kismet.mk +41 -33

98 lines not on this page · raw message

Signature · 1 line
2.28.0
#1 lore raw

PATCH v2 2/2 package/kismet: add python tools support

---
 package/kismet/Config.in | 28 ++++++++++++++++++++++++++++
 package/kismet/kismet.mk | 11 ++++++++++-
 2 files changed, 38 insertions(+), 1 deletion(-)
package/kismet/Config.in +28 -0
index 8c4c63d9ed..4ef84731da 100644
@@ -26,6 +26,34 @@ config BR2_PACKAGE_KISMET
 
 if BR2_PACKAGE_KISMET
 
+config BR2_PACKAGE_KISMET_PYTHON_TOOLS
+	bool "Install python tools"
+	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # protobuf
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS # python-numpy
+	depends on BR2_PACKAGE_PYTHON3
+	depends on !BR2_STATIC_LIBS # protobuf
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # protobuf
+	depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
+	select BR2_PACKAGE_PROTOBUF
+	select BR2_PACKAGE_PYTHON_NUMPY # runtime for RTLAMR and RTLADSB
+	select BR2_PACKAGE_PYTHON_PROTOBUF # runtime
+	select BR2_PACKAGE_PYTHON_SERIAL # runtime for Freaklabs Zigbee
+	select BR2_PACKAGE_PYTHON_SETUPTOOLS
+	help
+	  Enable Python and Python-related tools (RTL_433, RTLAMR,
+	  RTLADSB and Freaklabs Zigbee)
+
+comment "python tools needs python3"
+	depends on !BR2_PACKAGE_PYTHON3
+	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
+
+comment "python tools needs a glibc or musl toolchain w/ dynamic library, gcc >= 4.8"
+	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
+	depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
+
 config BR2_PACKAGE_KISMET_SERVER
 	bool "Install server"
 	default y
package/kismet/kismet.mk +10 -1
index 6a915c6cd4..4fd46da699 100644
@@ -17,7 +17,7 @@ KISMET_DEPENDENCIES = \
 	zlib
 KISMET_LICENSE = GPL-2.0+
 KISMET_LICENSE_FILES = LICENSE
-KISMET_CONF_OPTS = --disable-debuglibs --disable-python-tools
+KISMET_CONF_OPTS = --disable-debuglibs
 
 KISMET_CXXFLAGS = $(TARGET_CXXFLAGS)
 
@@ -55,6 +55,15 @@ else
 KISMET_CONF_OPTS += --disable-pcre
 endif
 
+ifeq ($(BR2_PACKAGE_KISMET_PYTHON_TOOLS),y)
+KISMET_DEPENDENCIES += python3 python-setuptools
+KISMET_CONF_OPTS += \
+	--enable-python-tools \
+	--with-python-interpreter=$(HOST_DIR)/bin/python$(PYTHON3_VERSION_MAJOR)
+else
+KISMET_CONF_OPTS += --disable-python-tools
+endif
+
 KISMET_INSTALL_TARGET_OPTS += \
 	DESTDIR=$(TARGET_DIR) \
 	INSTUSR=$(shell id -u) \
Signature · 1 line
2.28.0