Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] qv4l2: update to 1.18.0
@ 2019-12-30  5:55 voidlinux-github
  2019-12-31 14:40 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 1 reply; 2+ messages in thread
From: voidlinux-github @ 2019-12-30  5:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

There is a new pull request by ndowens against master on the void-packages repository

https://github.com/ndowens/void-packages qv4l2
https://github.com/void-linux/void-packages/pull/17882

qv4l2: update to 1.18.0
Signed-off-by: Nathan Owens <ndowens04@gmail.com>

A patch file from https://github.com/void-linux/void-packages/pull/17882.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-qv4l2-17882.patch --]
[-- Type: text/x-diff, Size: 4440 bytes --]

From 2ff30026a8ac1105ad4683b87278bf46dcf70cd0 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens04@gmail.com>
Date: Sun, 29 Dec 2019 22:06:57 -0600
Subject: [PATCH] qv4l2: update to 1.18.0

Signed-off-by: Nathan Owens <ndowens04@gmail.com>
---
 srcpkgs/qv4l2/patches/musl.patch | 95 ++++++++++++++++++++++++--------
 srcpkgs/qv4l2/template           |  8 +--
 2 files changed, 74 insertions(+), 29 deletions(-)

diff --git a/srcpkgs/qv4l2/patches/musl.patch b/srcpkgs/qv4l2/patches/musl.patch
index a346f4f1813..af02c58a91f 100644
--- a/srcpkgs/qv4l2/patches/musl.patch
+++ b/srcpkgs/qv4l2/patches/musl.patch
@@ -1,27 +1,74 @@
---- utils/ir-ctl/ir-ctl.c.orig	2017-01-25 17:27:44.373665101 +0000
-+++ utils/ir-ctl/ir-ctl.c	2017-01-25 17:27:51.052665445 +0000
-@@ -44,6 +44,24 @@
- 
- # define N_(string) string
- 
-+#ifndef TEMP_FAILURE_RETRY
-+#define TEMP_FAILURE_RETRY(expression) \
-+  (__extension__                                                   \
-+    ({ long int __result;                                          \
-+       do __result = (long int) (expression);                      \
-+       while (__result == -1L && errno == EINTR);                  \
-+       __result; }))
+diff --git utils/ir-ctl/keymap.h utils/ir-ctl/keymap.h
+index f2b2963..51e4440 100644
+--- utils/ir-ctl/keymap.h
++++ utils/ir-ctl/keymap.h
+@@ -1,6 +1,11 @@
+ /* SPDX-License-Identifier: GPL-2.0 */
+ #ifndef __KEYMAP_H
+ #define __KEYMAP_H
++#include <stdint.h>
++#ifndef __error_t_defined
++# define __error_t_defined 1
++typedef int error_t;
 +#endif
-+
-+#ifndef strndupa
-+#define strndupa(s, n) \
-+       (__extension__ ({const char *__in = (s);                    \
-+                        size_t __len = strnlen (__in, (n)) + 1;    \
-+                        char *__out = (char *) alloca (__len);     \
-+                        __out[__len-1] = '\0';                     \
-+                        (char *) memcpy (__out, __in, __len-1);}))
+ 
+ struct keymap {
+ 	struct keymap *next;
+@@ -20,16 +25,16 @@ struct protocol_param {
+ 
+ struct scancode_entry {
+ 	struct scancode_entry *next;
+-	u_int32_t scancode;
++	uint32_t scancode;
+ 	char *keycode;
+ };
+ 
+ struct raw_entry {
+ 	struct raw_entry *next;
+-	u_int32_t scancode;
+-	u_int32_t raw_length;
++	uint32_t scancode;
++	uint32_t raw_length;
+ 	char *keycode;
+-	u_int32_t raw[1];
++	uint32_t raw[1];
+ };
+ 
+ void free_keymap(struct keymap *map);
+diff --git utils/keytable/keymap.h utils/keytable/keymap.h
+index f2b2963..51e4440 100644
+--- utils/keytable/keymap.h
++++ utils/keytable/keymap.h
+@@ -1,6 +1,11 @@
+ /* SPDX-License-Identifier: GPL-2.0 */
+ #ifndef __KEYMAP_H
+ #define __KEYMAP_H
++#include <stdint.h>
++#ifndef __error_t_defined
++# define __error_t_defined 1
++typedef int error_t;
 +#endif
-+
  
- /* See drivers/media/rc/ir-lirc-codec.c line 23 */
- #define LIRCBUF_SIZE	512
+ struct keymap {
+ 	struct keymap *next;
+@@ -20,16 +25,16 @@ struct protocol_param {
+ 
+ struct scancode_entry {
+ 	struct scancode_entry *next;
+-	u_int32_t scancode;
++	uint32_t scancode;
+ 	char *keycode;
+ };
+ 
+ struct raw_entry {
+ 	struct raw_entry *next;
+-	u_int32_t scancode;
+-	u_int32_t raw_length;
++	uint32_t scancode;
++	uint32_t raw_length;
+ 	char *keycode;
+-	u_int32_t raw[1];
++	uint32_t raw[1];
+ };
+ 
+ void free_keymap(struct keymap *map);
diff --git a/srcpkgs/qv4l2/template b/srcpkgs/qv4l2/template
index 62ff579961c..38a2010506a 100644
--- a/srcpkgs/qv4l2/template
+++ b/srcpkgs/qv4l2/template
@@ -1,6 +1,6 @@
 # Template file for 'qv4l2'
 pkgname=qv4l2
-version=1.16.6
+version=1.18.0
 revision=1
 wrksrc="v4l-utils-${version}"
 build_style=gnu-configure
@@ -13,9 +13,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"
 homepage="https://linuxtv.org/"
 distfiles="https://linuxtv.org/downloads/v4l-utils/v4l-utils-${version}.tar.bz2"
-checksum=f9dac1878e3d5636eab7f56bb209fdfc66b94ee8a2aae54dcb4282fe63a678ae
-
-nocross="detects X11/GL support incorrectly"
+checksum=6cb60d822eeed20486a03cc23e0fc65956fbc1e85e0c1a7477f68bbd9802880d
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-devel"
@@ -26,7 +24,7 @@ CFLAGS="-Wno-error=unused-function"
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) makedepends+=" argp-standalone"
-		CFLAGS+=" -D__off_t=off_t -D__off64_t=off_t"
+		CFLAGS+=" -D__off_t=off_t -D__off64_t=off_t -Du_int32_t=uint32_t"
 		LDFLAGS+=" -largp"
 		;;
 esac

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: qv4l2: update to 1.18.0
  2019-12-30  5:55 [PR PATCH] qv4l2: update to 1.18.0 voidlinux-github
@ 2019-12-31 14:40 ` voidlinux-github
  0 siblings, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2019-12-31 14:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 206 bytes --]

There's a merged pull request on the void-packages repository

qv4l2: update to 1.18.0
https://github.com/void-linux/void-packages/pull/17882

Description:
Signed-off-by: Nathan Owens <ndowens04@gmail.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-31 14:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-30  5:55 [PR PATCH] qv4l2: update to 1.18.0 voidlinux-github
2019-12-31 14:40 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).