libv4l: update to 1.20.0
authorRosen Penev <rosenp@gmail.com>
Thu, 4 Jun 2020 04:31:37 +0000 (21:31 -0700)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Thu, 6 Aug 2020 09:27:05 +0000 (11:27 +0200)
Removed upstreamed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit dd74a7cb87ec63baf45d002eecbe0d46d8b71c71)

libs/libv4l/Makefile
libs/libv4l/patches/020-add-missing-includes.patch
libs/libv4l/patches/030-getsubopt.patch [deleted file]
libs/libv4l/patches/040-musl.patch [deleted file]
libs/libv4l/patches/050-4.14.patch [deleted file]

index ed82da05232c97899f0f0f65d9c108f42558882a..54dfb43680c7d63899158fc92803831a3ab4e62a 100644 (file)
@@ -6,12 +6,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=v4l-utils
-PKG_VERSION:=1.16.8
+PKG_VERSION:=1.20.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://www.linuxtv.org/downloads/v4l-utils
-PKG_HASH:=84346bf200bd30efb8a80a65ded1b81d39ae7e0ff2272e98f478b4eee8f40d13
+PKG_HASH:=956118713f7ccb405c55c7088a6a2490c32d54300dd9a30d8d5008c28d3726f7
 
 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
 
index 695f8e3e0490f60697860b540586c200c2a8ed7c..c5a83a97af710d9354eb5e21e81f6056a289be9a 100644 (file)
@@ -1,61 +1,10 @@
---- a/utils/cec-ctl/cec-ctl.cpp
-+++ b/utils/cec-ctl/cec-ctl.cpp
-@@ -18,6 +18,7 @@
- #include <errno.h>
- #include <sys/ioctl.h>
- #include <stdarg.h>
-+#include <ctime>
- #include <cerrno>
- #include <string>
- #include <vector>
---- a/utils/cec-follower/cec-follower.h
-+++ b/utils/cec-follower/cec-follower.h
-@@ -9,6 +9,7 @@
- #define _CEC_FOLLOWER_H_
- #include <stdarg.h>
-+#include <ctime>
- #include <cerrno>
- #include <string>
- #include <linux/cec-funcs.h>
---- a/utils/common/media-info.cpp
-+++ b/utils/common/media-info.cpp
-@@ -21,6 +21,7 @@
- #include <linux/media.h>
- #include <fstream>
-+#include <iostream>
- #include <media-info.h>
- static std::string num2s(unsigned num, bool is_hex = true)
---- a/utils/rds-ctl/rds-ctl.cpp
-+++ b/utils/rds-ctl/rds-ctl.cpp
-@@ -27,6 +27,8 @@
- #include <linux/videodev2.h>
- #include <libv4l2rds.h>
+--- a/utils/libcecutil/cec-info.cpp
++++ b/utils/libcecutil/cec-info.cpp
+@@ -5,6 +5,7 @@
+  * Copyright 2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
+  */
  
 +#include <cctype>
-+#include <ctime>
- #include <list>
- #include <vector>
- #include <map>
---- a/utils/v4l2-compliance/media-info.cpp
-+++ b/utils/v4l2-compliance/media-info.cpp
-@@ -21,6 +21,7 @@
- #include <linux/media.h>
- #include <fstream>
-+#include <iostream>
- #include <media-info.h>
- static std::string num2s(unsigned num, bool is_hex = true)
---- a/utils/v4l2-ctl/media-info.cpp
-+++ b/utils/v4l2-ctl/media-info.cpp
-@@ -21,6 +21,7 @@
- #include <linux/media.h>
- #include <fstream>
-+#include <iostream>
- #include <media-info.h>
- static std::string num2s(unsigned num, bool is_hex = true)
+ #include <stdio.h>
+ #include <string>
+ #include <unistd.h>
diff --git a/libs/libv4l/patches/030-getsubopt.patch b/libs/libv4l/patches/030-getsubopt.patch
deleted file mode 100644 (file)
index 5fbb604..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-POSIX says that behavior when subopts list is empty is undefined.
-musl libs will set value to NULL which leads to crash.
-
-Simply avoid getsubopt, since we cannot rely on it.
-
---- a/utils/v4l2-ctl/v4l2-ctl-common.cpp
-+++ b/utils/v4l2-ctl/v4l2-ctl-common.cpp
-@@ -679,16 +679,17 @@ static bool parse_subset(char *optarg)
- static bool parse_next_subopt(char **subs, char **value)
- {
--      static char *const subopts[] = {
--          NULL
--      };
--      int opt = getsubopt(subs, subopts, value);
-+      char *p = *subs;
-+      *value = *subs;
--      if (opt < 0 || *value)
--              return false;
--      fprintf(stderr, "No value given to suboption <%s>\n",
--                      subopts[opt]);
--      return true;
-+      while (*p && *p != ',')
-+              p++;
-+
-+      if (*p)
-+              *p++ = '\0';
-+
-+      *subs = p;
-+      return false;
- }
- void common_cmd(int ch, char *optarg)
diff --git a/libs/libv4l/patches/040-musl.patch b/libs/libv4l/patches/040-musl.patch
deleted file mode 100644 (file)
index 79dc5d2..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/utils/keytable/keytable.c
-+++ b/utils/keytable/keytable.c
-@@ -1686,7 +1686,7 @@ static void test_event(struct rc_device *rc_dev, int fd)
-               for (i = 0; i < rd / sizeof(struct input_event); i++) {
-                       printf(_("%ld.%06ld: event type %s(0x%02x)"),
--                              ev[i].time.tv_sec, ev[i].time.tv_usec,
-+                              ev[i].input_event_sec, ev[i].input_event_usec,
-                               get_event_name(events_type, ev[i].type), ev[i].type);
-                       switch (ev[i].type) {
diff --git a/libs/libv4l/patches/050-4.14.patch b/libs/libv4l/patches/050-4.14.patch
deleted file mode 100644 (file)
index 7cad8ec..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
---- a/utils/keytable/keytable.c
-+++ b/utils/keytable/keytable.c
-@@ -61,6 +61,10 @@ struct input_keymap_entry_v2 {
-       u_int8_t  scancode[32];
- };
-+#ifndef input_event_sec
-+#define input_event_sec time.tv_sec
-+#define input_event_usec time.tv_usec
-+#endif
- #define IR_PROTOCOLS_USER_DIR IR_KEYTABLE_USER_DIR "/protocols"
- #define IR_PROTOCOLS_SYSTEM_DIR IR_KEYTABLE_SYSTEM_DIR "/protocols"