Skip to contentSkip to conversation

libv4l: bump to version 1.14.1

PATCH New Baruch Siach 2 participants 4 messages Jan 23, 2018 – Jan 26, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libv4l: bump to version 1.14.1

Drop upstream patches. autoreconf is no longer needed.

---
 .../0002-ir-ctl-fixes-for-musl-compile.patch       |  59 ------
 ...04-configure.ac-clarify-configure-summary.patch |  73 -------
 ...c-revisit-v4l2-ctl-compliance-using-libv4.patch |  43 ----
 ...c-revisit-disable-libv4l-to-disable-dyn-l.patch | 114 -----------
 ...07-configure.ac-add-disable-libv4l-option.patch | 155 ---------------
 ...gure.ac-fix-build-of-v4l-utils-on-uclinux.patch |  30 ---
 ...09-configure.ac-add-USE_LIBV4L-to-summary.patch |  28 ---
 ...lconvert-helper-support-only-when-fork-is.patch | 102 ----------
 ...c-drop-disable-libv4l-disable-plugin-supp.patch | 217 ---------------------
 package/libv4l/libv4l.hash                         |   4 +-
 package/libv4l/libv4l.mk                           |  15 +-
 11 files changed, 3 insertions(+), 837 deletions(-)
 delete mode 100644 package/libv4l/0002-ir-ctl-fixes-for-musl-compile.patch
 delete mode 100644 package/libv4l/0004-configure.ac-clarify-configure-summary.patch
 delete mode 100644 package/libv4l/0005-configure.ac-revisit-v4l2-ctl-compliance-using-libv4.patch
 delete mode 100644 package/libv4l/0006-configure.ac-revisit-disable-libv4l-to-disable-dyn-l.patch
 delete mode 100644 package/libv4l/0007-configure.ac-add-disable-libv4l-option.patch
 delete mode 100644 package/libv4l/0008-configure.ac-fix-build-of-v4l-utils-on-uclinux.patch
 delete mode 100644 package/libv4l/0009-configure.ac-add-USE_LIBV4L-to-summary.patch
 delete mode 100644 package/libv4l/0010-Build-libv4lconvert-helper-support-only-when-fork-is.patch
 delete mode 100644 package/libv4l/0011-configure.ac-drop-disable-libv4l-disable-plugin-supp.patch
package/libv4l/0002-ir-ctl-fixes-for-musl-compile.patch deleted +0 -59
deleted file mode 100644
index 5bce2d916ad9..000000000000
@@ -1,59 +0,0 @@
-From 9908872aaa614a6c4bba80d7a5f1adea7ca7117e Mon Sep 17 00:00:00 2001
-From: Peter Seiderer <[email protected]>
-Date: Tue, 14 Feb 2017 21:27:59 +0100
-Subject: [PATCH] ir-ctl: fixes for musl compile
-
-- add copy of TEMP_FAILURE_RETRY macro
-- use strdup instead of strdupa
-
-Fixes [1]:
-
-  ir-ctl.c:(.text+0xb06): undefined reference to `strndupa'
-  ir-ctl.c:(.text+0xe01): undefined reference to `TEMP_FAILURE_RETRY'
-
-[1] http://autobuild.buildroot.net/results/b8b96c7bbf2147dacac62485cbfdbcfd758271a5
-
-Signed-off-by: Peter Seiderer <[email protected]>
----
- utils/ir-ctl/ir-ctl.c | 13 ++++++++++++-
- 1 file changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/utils/ir-ctl/ir-ctl.c b/utils/ir-ctl/ir-ctl.c
-index bc58cee..e9da777 100644
---- a/utils/ir-ctl/ir-ctl.c
-+++ b/utils/ir-ctl/ir-ctl.c
-@@ -44,6 +44,15 @@
- 
- # define N_(string) string
- 
-+/* taken from glibc unistd.h */
-+#ifndef TEMP_FAILURE_RETRY
-+#define TEMP_FAILURE_RETRY(expression) \
-+  (__extension__                                                              \
-+    ({ long int __result;                                                     \
-+       do __result = (long int) (expression);                                 \
-+       while (__result == -1L && errno == EINTR);                             \
-+       __result; }))
-+#endif
- 
- /* See drivers/media/rc/ir-lirc-codec.c line 23 */
- #define LIRCBUF_SIZE	512
-@@ -344,12 +353,14 @@ static struct file *read_scancode(const char *name)
- 		return NULL;
- 	}
- 
--	pstr = strndupa(name, p - name);
-+	pstr = strndup(name, p - name);
- 
- 	if (!protocol_match(pstr, &proto)) {
- 		fprintf(stderr, _("error: protocol '%s' not found\n"), pstr);
-+		free(pstr);
- 		return NULL;
- 	}
-+	free(pstr);
- 
- 	if (!strtoscancode(p + 1, &scancode)) {
- 		fprintf(stderr, _("error: invalid scancode '%s'\n"), p + 1);
--- 
-2.11.0
-
package/libv4l/0004-configure.ac-clarify-configure-summary.patch deleted +0 -73

73 lines not on this page · raw message

package/libv4l/0005-configure.ac-revisit-v4l2-ctl-compliance-using-libv4.patch deleted +0 -43

43 lines not on this page · raw message

package/libv4l/0006-configure.ac-revisit-disable-libv4l-to-disable-dyn-l.patch deleted +0 -114

114 lines not on this page · raw message

package/libv4l/0007-configure.ac-add-disable-libv4l-option.patch deleted +0 -155

155 lines not on this page · raw message

package/libv4l/0008-configure.ac-fix-build-of-v4l-utils-on-uclinux.patch deleted +0 -30
deleted file mode 100644
index 8f57ec9d1981..000000000000
@@ -1,30 +0,0 @@
-From f66141af12fe45af4ef3bba26e8f300fb203203a Mon Sep 17 00:00:00 2001
-From: Hugues Fruchet <[email protected]>
-Date: Wed, 17 May 2017 10:03:12 +0200
-Subject: [PATCH] configure.ac: fix build of v4l-utils on uclinux
-
-Build of v4-utils is conditional to "linux_os=yes" which was
-not set in case of uclinux, fix this.
-
-Signed-off-by: Hugues Fruchet <[email protected]>
-Signed-off-by: Hans Verkuil <[email protected]>
----
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index b9fc59a..8dc676e 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -149,7 +149,7 @@ AC_CHECK_FUNCS([__secure_getenv secure_getenv])
- 
- # Check host os
- case "$host_os" in
--  linux*)
-+  *linux*)
-     linux_os="yes"
-     ;;
-   *freebsd*)
--- 
-1.9.1
-
package/libv4l/0009-configure.ac-add-USE_LIBV4L-to-summary.patch deleted +0 -28
deleted file mode 100644
index d9c38e0ab570..000000000000
@@ -1,28 +0,0 @@
-From d92eb36658af05286c5aac7e1cc8a5013f766cb4 Mon Sep 17 00:00:00 2001
-From: Hans Verkuil <[email protected]>
-Date: Mon, 29 May 2017 07:55:18 +0200
-Subject: [PATCH] configure.ac: add USE_LIBV4L to summary
-
-This was missing, so add it.
-
-Signed-off-by: Hans Verkuil <[email protected]>
-Signed-off-by: Hugues Fruchet <[email protected]>
----
- configure.ac | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/configure.ac b/configure.ac
-index 8dc676e..9031b42 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -500,6 +500,7 @@ compile time options summary
- 
-     gconv                      : $USE_GCONV
- 
-+    libv4l                     : $USE_LIBV4L
-     dynamic libv4l             : $USE_DYN_LIBV4L
-     v4l_plugins                : $USE_V4L_PLUGINS
-     v4l_wrappers               : $USE_V4L_WRAPPERS
--- 
-1.9.1
-
package/libv4l/0010-Build-libv4lconvert-helper-support-only-when-fork-is.patch deleted +0 -102

102 lines not on this page · raw message

package/libv4l/0011-configure.ac-drop-disable-libv4l-disable-plugin-supp.patch deleted +0 -217

217 lines not on this page · raw message

package/libv4l/libv4l.hash +2 -2
index 909ef73afc8c..aea9cc988f17 100644
@@ -1,6 +1,6 @@
 # Locally calculated after checking signature
-# https://linuxtv.org/downloads/v4l-utils/v4l-utils-1.12.6.tar.bz2.asc
-sha256 74da1040284eaba48277ad051ffe1fca0ee05c5591bb01179d928def6d0a4561  v4l-utils-1.12.6.tar.bz2
+# https://linuxtv.org/downloads/v4l-utils/v4l-utils-1.14.1.tar.bz2.asc
+sha256 7974e5626447407d8a1ed531da0461c0fe00e599a696cb548a240d17d3519005  v4l-utils-1.14.1.tar.bz2
 # Locally calculated
 sha256 391e4da1c54a422a78d83be7bf84b2dfb8bacdd8ad256fa4374e128655584a8a  COPYING
 sha256 5a7f623a50e384aaf6d2ced068339ddf93d0a50d3a0ecbe86f125b07804ecc78  COPYING.libv4l
package/libv4l/libv4l.mk +1 -14
index b24002a0cb8e..11061306c757 100644
@@ -4,26 +4,13 @@
 #
 ################################################################################
 
-LIBV4L_VERSION = 1.12.6
+LIBV4L_VERSION = 1.14.1
 LIBV4L_SOURCE = v4l-utils-$(LIBV4L_VERSION).tar.bz2
 LIBV4L_SITE = https://linuxtv.org/downloads/v4l-utils
 LIBV4L_INSTALL_STAGING = YES
 LIBV4L_DEPENDENCIES = host-pkgconf
 LIBV4L_CONF_OPTS = --disable-doxygen-doc
 
-# below patches requires autoreconf:
-# 0004-configure.ac-clarify-configure-summary.patch
-# 0005-configure.ac-revisit-v4l2-ctl-compliance-using-libv4.patch
-# 0006-configure.ac-revisit-disable-libv4l-to-disable-dyn-l.patch
-# 0007-configure.ac-add-disable-libv4l-option.patch
-# 0008-configure.ac-fix-build-of-v4l-utils-on-uclinux.patch
-# 0009-configure.ac-add-USE_LIBV4L-to-summary.patch
-# 0010-Build-libv4lconvert-helper-support-only-when-fork-is.patch
-# 0011-configure.ac-drop-disable-libv4l-disable-plugin-supp.patch
-LIBV4L_AUTORECONF = YES
-# host-gettext needed for autoreconf to work
-LIBV4L_DEPENDENCIES += host-gettext
-
 # fix uclibc-ng configure/compile
 LIBV4L_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
 
Signature · 1 line
2.15.1
#1 lore raw

PATCH 2/2 zbar: enable static build

libv4l supports static build since commit f837251785e9 (package/libv4l:
allow build of v4l2 utilities on noMMU platforms).

Cc Volkov Viacheslav <[email protected]>
---
 package/zbar/Config.in | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
package/zbar/Config.in +2 -3
index 5097f5743913..05c9b769ceed 100644
@@ -2,7 +2,6 @@ config BR2_PACKAGE_ZBAR
 	bool "zbar"
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libv4l
 	depends on BR2_USE_MMU # libv4l
-	depends on !BR2_STATIC_LIBS # libv4l
 	depends on BR2_INSTALL_LIBSTDCPP # libv4l
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # libv4l
 	select BR2_PACKAGE_JPEG
@@ -12,7 +11,7 @@ config BR2_PACKAGE_ZBAR
 
 	  http://zbar.sourceforge.net/
 
-comment "zbar needs a toolchain w/ threads, dynamic library, C++ and headers >= 3.0"
+comment "zbar needs a toolchain w/ threads, C++ and headers >= 3.0"
 	depends on BR2_USE_MMU
-	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
+	depends on !BR2_TOOLCHAIN_HAS_THREADS \
 		|| !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
Signature · 1 line
2.15.1
#2 lore raw

PATCH 2/2 zbar: enable static build

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

libv4l supports static build since commit f837251785e9 (package/libv4l:
allow build of v4l2 utilities on noMMU platforms).

Cc Volkov Viacheslav <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard