Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] qv4l2: update to 1.18.0
Date: Mon, 30 Dec 2019 06:55:03 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-17882@inbox.vuxu.org> (raw)

[-- 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

             reply	other threads:[~2019-12-30  5:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-30  5:55 voidlinux-github [this message]
2019-12-31 14:40 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-17882@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).