From nobody Tue Jan 25 17:00:42 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id ACF371977393; Tue, 25 Jan 2022 17:00:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JjtQf44JMz4k8Q; Tue, 25 Jan 2022 17:00:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643130042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4++IiI8p7zBDU5z91msgQDHYoP0pz18BlI6c2sZkpdo=; b=TGtc5dvHdU5x76ByzncBRl2Z/n/7tNIjVR5qclD3ZU7SWoyuAUg1krB3oj8kBT1GTR6u2l kD2/ilBPfw6lqIl+WVz1SNCtDj9BbtJEYyLHO4y/AirfgudG9+vwEZa9DFiOrFZ3AX1yMi jAIuiZ6xC4C8gz4FLee+KQWE/9bAZywUY0dgSdr2Nue4uNPk5IdBME02ug+Q+SeXqDS34H 7xIP7OdV8fa4mCOZb5QCC3BfBo+kuUYETVTfEuyqOjKikCVwrEjmjnNdAruRFQpZXS0ciN wdhFEr+cb2jpKLO/2bv2LylitivKjC5zmmVMIlXmeMFWsH5w3dQHNR7fyWzkhw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5A8615886; Tue, 25 Jan 2022 17:00:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20PH0gPj084127; Tue, 25 Jan 2022 17:00:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20PH0g0Y084126; Tue, 25 Jan 2022 17:00:42 GMT (envelope-from git) Date: Tue, 25 Jan 2022 17:00:42 GMT Message-Id: <202201251700.20PH0g0Y084126@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hans Petter Selasky Subject: git: ca63a16f5ced - main - multimedia/libv4l: Update v4l_compat, libv4l and v4l-utils to 1.23.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ca63a16f5ced25bd5dc58383609ed8f6b5762e2a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643130042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4++IiI8p7zBDU5z91msgQDHYoP0pz18BlI6c2sZkpdo=; b=IZ06mUXKO/A6JI/udoHltkPYluVOAoZC4HttP9n+9NZiMo5hHxNXq4UFc9fGeFyVEkL/4L fhy6e0SJ1RUkytIgyU0fYsIWE0UzO9JWEyg9f9C4MRKNgFJ4N/J7D9PP81yYa7b46IsaZs AoSUDTTLZG94a8vzXi/bQGT3Tsz4EGxt9xwlsYN+CHWdWUAxvLZXhL2lo7uyriDj6BhUG8 PumQGNpu9TSIvCk7FdJ4Gsjr/ufA7VBuxMXQWUeqnImy0BdRszHTokMqxMEP2Ze8cF4gO2 ImL2glfPxMXFiJh5OZ9CSZaWTImHtnQn0KYJxU4ttR/vRc2UGNu3n1J8cyzkYQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643130042; a=rsa-sha256; cv=none; b=ZpzNvdr4+jhhcp0DtWfjMDOyKZIk2Y8UZcrsF+L7VTSsmvW2IK3I1fikYqZp8Mj7DFU9El U4YbmOhywnCNB7gUKEeB+zn4Q5qwxfqubWIW6MFtsbQrqx8+4GnoBxqgf2KVXKtKiqgKVQ WOKfFKYIki+fE5kuBnJrSm0/CuAU9uLjkIlSPeGCRd+Zw1PG0R6FM45yyuDaXNvmiP2vPi adI2fpXRfvWypYyVWESw0Cs2relKM/OdOTH21BhRxs4p0+9/mWE0buzOq7s6KMtAj/kFZz zDj9MpUj8zf3KfpBj7/0hL0Lj9JNrz6MDeeJ56eyPqiSBcWvlUU9WLCK7RSUtA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/ports/commit/?id=ca63a16f5ced25bd5dc58383609ed8f6b5762e2a commit ca63a16f5ced25bd5dc58383609ed8f6b5762e2a Author: Hans Petter Selasky AuthorDate: 2022-01-25 16:50:35 +0000 Commit: Hans Petter Selasky CommitDate: 2022-01-25 16:59:35 +0000 multimedia/libv4l: Update v4l_compat, libv4l and v4l-utils to 1.23.0 NOTE: This version tag currently only exists for FreeBSD and has not yet been made upstream and is based on the latest available v4l-utils. Approved by: pi (implicit) --- multimedia/libv4l/Makefile | 19 ++++++--- multimedia/libv4l/distinfo | 14 +++---- .../libv4l/files/patch-utils_common_fwht-ctrls.h | 24 ----------- .../libv4l/files/patch-utils_common_media-info.cpp | 46 ---------------------- ...tch-utils_v4l2-compliance_v4l2-test-buffers.cpp | 10 ----- .../patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp | 15 +++---- .../patch-utils_v4l2-ctl_v4l2-ctl-streaming.cpp | 11 ++++++ .../files/patch-utils_v4l2-ctl_v4l2-ctl-vidcap.cpp | 10 ----- multimedia/libv4l/pkg-plist | 1 + multimedia/v4l_compat/Makefile | 1 + multimedia/v4l_compat/pkg-plist | 1 + 11 files changed, 43 insertions(+), 109 deletions(-) diff --git a/multimedia/libv4l/Makefile b/multimedia/libv4l/Makefile index d838a52f8dd7..ff1a2d757e7b 100644 --- a/multimedia/libv4l/Makefile +++ b/multimedia/libv4l/Makefile @@ -2,8 +2,7 @@ # Check v4l_compat and v4l-utils slave ports PORTNAME?= libv4l -PORTVERSION= 1.20.0 -PORTREVISION= 2 +PORTVERSION= 1.23.0 DISTVERSIONPREFIX= v4l-utils- CATEGORIES= multimedia @@ -19,10 +18,10 @@ USE_GITHUB= yes GH_ACCOUNT= hselasky GH_PROJECT= v4l-utils -GH_TUPLE= hselasky:webcamd:v5.13.2.2:webcamd \ - torvalds:linux:v5.13-rc2:linux +GH_TUPLE= hselasky:webcamd:v5.17.1.0:webcamd \ + torvalds:linux:v5.17-rc1:linux -WEBCAMDDIR= ${WRKDIR}/webcamd-5.13.2.2 +WEBCAMDDIR= ${WRKDIR}/webcamd-5.17.1.0 LINUXDIR= ${WRKDIR}/linux-* .if ${PORTNAME} == v4l-utils || ${PORTNAME} == libv4l @@ -70,6 +69,15 @@ CONFIGURE_ARGS+= \ .endif post-patch: +.if ${PORTNAME} == v4l-utils || ${PORTNAME} == libv4l +# Create some files and folders needed by autoreconf + @${MKDIR} ${WRKSRC}/build-aux + @${TOUCH} ${WRKSRC}/build-aux/config.rpath \ + ${WRKSRC}/v4l-utils-po/Makefile.in.in \ + ${WRKSRC}/libdvbv5-po/Makefile.in.in +# Don't build translation files for now + @${REINPLACE_CMD} -e 's|v4l-utils-po libdvbv5-po||g' ${WRKSRC}/Makefile.am +.endif # Remove old FreeBSD include files (to be removed upstream) @${RM} -r ${WRKSRC}/contrib/freebsd/include/* # Create symbolic link for Linux sources @@ -108,6 +116,7 @@ post-patch: -e 's|_IOC_NONE|IOC_VOID|g' \ -e 's|||g' \ -e 's|||g' \ + -e 's|||g' \ -e 's|"compiler.h"||g' \ -e 's|fallthrough;|;|g' \ -e 's|||g' \ diff --git a/multimedia/libv4l/distinfo b/multimedia/libv4l/distinfo index 823b0339e0ae..5ac0e6ea2827 100644 --- a/multimedia/libv4l/distinfo +++ b/multimedia/libv4l/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1621686769 -SHA256 (hselasky-v4l-utils-v4l-utils-1.20.0_GH0.tar.gz) = 1a2bcc1fa5182f718c982c6ee58d0756dca602639ab6b9a9caff021272b33646 -SIZE (hselasky-v4l-utils-v4l-utils-1.20.0_GH0.tar.gz) = 1620489 -SHA256 (hselasky-webcamd-v5.13.2.2_GH0.tar.gz) = a9164a5731be35c5f79aecf8ccbd0e11d3ea7e1a29f81b356def5b08954bacb1 -SIZE (hselasky-webcamd-v5.13.2.2_GH0.tar.gz) = 272186 -SHA256 (torvalds-linux-v5.13-rc2_GH0.tar.gz) = 34673cea88f7e5399b704bcacc088b3f14f5800dadf04af6a90b19c35ad3777f -SIZE (torvalds-linux-v5.13-rc2_GH0.tar.gz) = 192612873 +TIMESTAMP = 1643121787 +SHA256 (hselasky-v4l-utils-v4l-utils-1.23.0_GH0.tar.gz) = 38a56997126e2585913a7b8896b9d9ade078634b62a96ba018c0d4de5f818054 +SIZE (hselasky-v4l-utils-v4l-utils-1.23.0_GH0.tar.gz) = 1704848 +SHA256 (hselasky-webcamd-v5.17.1.0_GH0.tar.gz) = 33a34f90f583a1829d1b7b00e03e5ea123e188e2560fcfb01ca1714fb6010565 +SIZE (hselasky-webcamd-v5.17.1.0_GH0.tar.gz) = 272952 +SHA256 (torvalds-linux-v5.17-rc1_GH0.tar.gz) = 9269b46a87c16941871f81057c8b82c913869eb86037b92c0bd4d5b9aa69dece +SIZE (torvalds-linux-v5.17-rc1_GH0.tar.gz) = 201780465 diff --git a/multimedia/libv4l/files/patch-utils_common_fwht-ctrls.h b/multimedia/libv4l/files/patch-utils_common_fwht-ctrls.h deleted file mode 100644 index d1518d1f70a4..000000000000 --- a/multimedia/libv4l/files/patch-utils_common_fwht-ctrls.h +++ /dev/null @@ -1,24 +0,0 @@ ---- utils/common/fwht-ctrls.h.orig 2021-05-22 12:52:28 UTC -+++ utils/common/fwht-ctrls.h -@@ -11,21 +11,6 @@ - #ifndef _FWHT_CTRLS_H_ - #define _FWHT_CTRLS_H_ - --#define V4L2_CTRL_TYPE_FWHT_PARAMS 0x0105 -- - #define V4L2_CID_MPEG_VIDEO_FWHT_PARAMS (V4L2_CID_MPEG_BASE + 292) -- --struct v4l2_ctrl_fwht_params { -- __u64 backward_ref_ts; -- __u32 version; -- __u32 width; -- __u32 height; -- __u32 flags; -- __u32 colorspace; -- __u32 xfer_func; -- __u32 ycbcr_enc; -- __u32 quantization; --}; -- - - #endif diff --git a/multimedia/libv4l/files/patch-utils_common_media-info.cpp b/multimedia/libv4l/files/patch-utils_common_media-info.cpp deleted file mode 100644 index f4c3dc6a306d..000000000000 --- a/multimedia/libv4l/files/patch-utils_common_media-info.cpp +++ /dev/null @@ -1,46 +0,0 @@ ---- utils/common/media-info.cpp.orig 2020-05-21 11:22:05 UTC -+++ utils/common/media-info.cpp -@@ -24,6 +24,10 @@ - #include - #include - #include -+#ifndef __linux__ -+#include -+#include -+#endif - - static std::string num2s(unsigned num, bool is_hex = true) - { -@@ -61,7 +65,7 @@ media_type mi_media_detect_type(const char *device) - - if (stat(device, &sb) == -1) - return MEDIA_TYPE_CANT_STAT; -- -+#ifdef __linux__ - std::string uevent_path("/sys/dev/char/"); - - uevent_path += num2s(major(sb.st_rdev), false) + ":" + -@@ -97,6 +101,23 @@ media_type mi_media_detect_type(const char *device) - } - - uevent_file.close(); -+#else // Not Linux -+ int fd = open(device, O_RDONLY); -+ if (fd >= 0) { -+ struct v4l2_capability caps; -+ int error = ioctl(fd, VIDIOC_QUERYCAP, &caps); -+ close(fd); -+ if (error == 0) { -+ if (caps.device_caps & V4L2_CAP_VIDEO_CAPTURE) { -+ return MEDIA_TYPE_VIDEO; -+ } else if (caps.device_caps & V4L2_CAP_VBI_CAPTURE) { -+ return MEDIA_TYPE_VBI; -+ } else if (caps.device_caps & V4L2_CAP_RADIO) { -+ return MEDIA_TYPE_RADIO; -+ } -+ } -+ } -+#endif - return MEDIA_TYPE_UNKNOWN; - } - diff --git a/multimedia/libv4l/files/patch-utils_v4l2-compliance_v4l2-test-buffers.cpp b/multimedia/libv4l/files/patch-utils_v4l2-compliance_v4l2-test-buffers.cpp deleted file mode 100644 index d68277eb13ab..000000000000 --- a/multimedia/libv4l/files/patch-utils_v4l2-compliance_v4l2-test-buffers.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- utils/v4l2-compliance/v4l2-test-buffers.cpp.orig 2020-12-02 20:09:09 UTC -+++ utils/v4l2-compliance/v4l2-test-buffers.cpp -@@ -32,6 +32,7 @@ - #include - #include - #include -+#include - #include - #include - #include diff --git a/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp b/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp index ad6afcb85243..8aba311f1f91 100644 --- a/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp +++ b/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp @@ -1,12 +1,13 @@ ---- utils/v4l2-ctl/v4l2-ctl-overlay.cpp.orig 2020-05-21 11:22:05 UTC +diff --git utils/v4l2-ctl/v4l2-ctl-overlay.cpp utils/v4l2-ctl/v4l2-ctl-overlay.cpp +index 5493222dd..1f0a6f47f 100644 +--- utils/v4l2-ctl/v4l2-ctl-overlay.cpp +++ utils/v4l2-ctl/v4l2-ctl-overlay.cpp -@@ -14,11 +14,13 @@ - #include - #include - --#include +@@ -1,10 +1,11 @@ + #include #include +-#include +- #include "v4l2-ctl.h" +#ifndef __FreeBSD__ @@ -15,7 +16,7 @@ static unsigned int set_fbuf; static unsigned int set_overlay_fmt; static struct v4l2_format overlay_fmt; /* set_format/get_format video overlay */ -@@ -546,3 +548,24 @@ void overlay_list(cv4l_fd &fd) +@@ -527,3 +528,24 @@ void overlay_list(cv4l_fd &fd) if (options[OptFindFb]) find_fb(fd.g_fd()); } diff --git a/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-streaming.cpp b/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-streaming.cpp new file mode 100644 index 000000000000..0e707d85d855 --- /dev/null +++ b/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-streaming.cpp @@ -0,0 +1,11 @@ +--- utils/v4l2-ctl/v4l2-ctl-streaming.cpp.orig 2022-01-25 16:28:52 UTC ++++ utils/v4l2-ctl/v4l2-ctl-streaming.cpp +@@ -2,6 +2,8 @@ + + #include + #include ++#include ++#include + + #include + diff --git a/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-vidcap.cpp b/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-vidcap.cpp deleted file mode 100644 index 45ebb263c0ab..000000000000 --- a/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-vidcap.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- utils/v4l2-ctl/v4l2-ctl-vidcap.cpp.orig 2020-12-30 21:13:40 UTC -+++ utils/v4l2-ctl/v4l2-ctl-vidcap.cpp -@@ -14,6 +14,7 @@ - #include - #include - #include -+#include - - #include "v4l2-ctl.h" - diff --git a/multimedia/libv4l/pkg-plist b/multimedia/libv4l/pkg-plist index 295ea46cd24b..8a84fa680180 100644 --- a/multimedia/libv4l/pkg-plist +++ b/multimedia/libv4l/pkg-plist @@ -17,6 +17,7 @@ include/libdvbv5/desc_language.h include/libdvbv5/desc_logical_channel.h include/libdvbv5/desc_network_name.h include/libdvbv5/desc_partial_reception.h +include/libdvbv5/desc_registration_id.h include/libdvbv5/desc_sat.h include/libdvbv5/desc_service.h include/libdvbv5/desc_t2_delivery.h diff --git a/multimedia/v4l_compat/Makefile b/multimedia/v4l_compat/Makefile index cad0a5b23cdf..ad2df216a575 100644 --- a/multimedia/v4l_compat/Makefile +++ b/multimedia/v4l_compat/Makefile @@ -12,6 +12,7 @@ PLIST= ${.CURDIR}/pkg-plist BASE_HEADERS= \ linux/cec.h \ linux/cec-funcs.h \ + linux/const.h \ linux/dvb/audio.h \ linux/dvb/ca.h \ linux/dvb/dmx.h \ diff --git a/multimedia/v4l_compat/pkg-plist b/multimedia/v4l_compat/pkg-plist index 145d2db16276..209199a8ab49 100644 --- a/multimedia/v4l_compat/pkg-plist +++ b/multimedia/v4l_compat/pkg-plist @@ -1,5 +1,6 @@ include/linux/cec.h include/linux/cec-funcs.h +include/linux/const.h include/linux/dvb/audio.h include/linux/dvb/ca.h include/linux/dvb/dmx.h