libv4l: fix compilation without utils
authorRosen Penev <[email protected]>
Mon, 3 Jun 2024 02:40:18 +0000 (19:40 -0700)
committerRosen Penev <[email protected]>
Tue, 4 Jun 2024 21:14:24 +0000 (14:14 -0700)
Upstream backport.

Signed-off-by: Rosen Penev <[email protected]>
libs/libv4l/Makefile
libs/libv4l/patches/100-meson-utils.patch [new file with mode: 0644]

index 7ee82f6b8933718bce7bd3e55a4444dbc9c27f80..15bb094610d5835f33f3646261c605356425cfa3 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=v4l-utils
 PKG_VERSION:=1.26.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://www.linuxtv.org/downloads/v4l-utils
diff --git a/libs/libv4l/patches/100-meson-utils.patch b/libs/libv4l/patches/100-meson-utils.patch
new file mode 100644 (file)
index 0000000..191d474
--- /dev/null
@@ -0,0 +1,24 @@
+From fee976dcfe3be03cc72c099f9ed3bac938a34b58 Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <[email protected]>
+Date: Tue, 12 Dec 2023 15:24:05 +0000
+Subject: meson: Fix building with -Dv4l-utils=false
+
+ir_bpf_enabled was referenced without being defined.
+Tested-by: Peter Seiderer <[email protected]>
+
+Signed-off-by: Hans Verkuil <[email protected]>
+---
+ meson.build | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/meson.build
++++ b/meson.build
+@@ -360,6 +360,8 @@ subdir('lib')
+ if get_option('v4l-utils')
+     subdir('utils')
+     subdir('contrib')
++else
++    ir_bpf_enabled = false
+ endif
+ subdir('doc')