From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mEs6I/T43V5dDgAA0tVLHw (envelope-from ) for ; Mon, 08 Jun 2020 08:38:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cAYuH/T43V4OQwAA1q6Kng (envelope-from ) for ; Mon, 08 Jun 2020 08:38:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AA8389403E9 for ; Mon, 8 Jun 2020 08:38:11 +0000 (UTC) Received: from localhost ([::1]:57994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiDII-0007g2-9k for larch@yhetil.org; Mon, 08 Jun 2020 04:38:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiDIA-0007fG-Pz for guix-patches@gnu.org; Mon, 08 Jun 2020 04:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jiDIA-0000VI-HM for guix-patches@gnu.org; Mon, 08 Jun 2020 04:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jiDIA-0007aQ-Fk for guix-patches@gnu.org; Mon, 08 Jun 2020 04:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41759] [PATCH] gnu: Add v4l2loopback-linux-module. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Jun 2020 08:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Morgan.J.Smith@outlook.com Cc: 41759@debbugs.gnu.org X-Debbugs-Original-Cc: 41759@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by 41759-submit@debbugs.gnu.org id=B41759.159160547029131 (code B ref 41759); Mon, 08 Jun 2020 08:38:02 +0000 Received: (at 41759) by debbugs.gnu.org; 8 Jun 2020 08:37:50 +0000 Received: from localhost ([127.0.0.1]:55882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiDHx-0007Zk-SG for submit@debbugs.gnu.org; Mon, 08 Jun 2020 04:37:50 -0400 Received: from tobias.gr ([80.241.217.52]:33062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiDHs-0007ZT-DS for 41759@debbugs.gnu.org; Mon, 08 Jun 2020 04:37:48 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 0d68c833; Mon, 8 Jun 2020 08:37:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=a7Pq8qfqbpLer93shyNYSF Ql9zwbzTQhBJI8UV8DFok=; b=DFSUJLteKP5IUJf5ThgsXg5+3HNBH+jx0rssti 86KKB1i1jYDlQkeA0Ca+DSOl237htcv8o59zIu/xvLJTmc7TZ5cCEgn2HSDuqO7E EzJ7XojmBmK9iqaxx1gCku6xN9lPXwCNHpe95Ul6fS4KT+QB2h8FJ/pdnQG2KjFZ OMCP83oXgpppkeaYzW7O7zPJhpQwxXli8jAtnXL+tKZWoMV2bJ3ZQdIBNI/NsCcl 38t04lLrQwlbomwgy0005rQqPwj9gLdc8ZQ4I2qxhhz5W6IeH+UNM0eTbLyY0bTF 6a7hKeMj6ifaJzEhF9iMqviW6sd4qSdHdxv0j/+i26gqubLw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id e419acb9 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 8 Jun 2020 08:37:50 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; References: In-reply-to: Date: Mon, 08 Jun 2020 10:37:41 +0200 Message-ID: <87lfkyq7fu.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Tobias Geerinckx-Rice , Tobias Geerinckx-Rice via Guix-patches From: Tobias Geerinckx-Rice via Guix-patches via X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=tobias.gr header.s=2018 header.b=DFSUJLte; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.61 X-TUID: WTsPN/PVYyGR --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Morgan, Morgan.J.Smith@outlook.com =E5=86=99=E9=81=93=EF=BC=9A > + (package > + (name "v4l2loopback-linux-module") > + (version "0.12.5") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url=20 > "https://github.com/umlaeute/v4l2loopback.git") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > +=20 > "1qi4l6yam8nrlmc3zwkrz9vph0xsj1cgmkqci4652mbpbzigg7vn")))) > + (build-system linux-module-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (replace 'check > + (lambda _ > + (invoke "make" > + "--directory=3D./tests" > + (string-append "CC=3D"=20 > ,(cc-for-target)))))))) This only builds the =E2=80=98test_dqbuf=E2=80=99 executable, but doesn't r= un it.=20 Trying to fails with: usage: tests/test_dqbuf i.e. it needs the kernel module to be loaded as we discussed on=20 IRC. That's the norm for kernel drivers. For obvious reasons,=20 loading them in the build environment isn't an option. (Computers are magic and one could virtualise a kernel, similar to=20 what we do with Xvfb for X11 tests, but it would work only for=20 drivers that don't require any hardware and excuse me the word=20 =E2=80=98overkill=E2=80=99 is knocking at the door.) > + (home-page "https://github.com/umlaeute/v4l2loopback") > + (synopsis "Linux kernel module that allows you to create=20 > \"virtual video devices\"") Life hack: s/that allows you// > + (description "This module allows you to create \"virtual=20 > video devices\" > +normal (v4l2) applications will read these devices as if they=20 > were ordinary > +video devices, but the video will not be read from e.g. a=20 > capture card but > +instead it is generated by another application. this allows you=20 > for instance > +to apply some nifty video effects on your Jitsi video... it=20 > also allows some > +more serious things (e.g. using it to add streaming=20 > capabilities to an > +application by the means of hooking GStreamer into the loopback=20 > devices).") Double-spacing between sentences is mandatory in Texinfo, because=20 we are all boomers. I was just about to push with the edits below, but=E2=80=A6 OK. Done=20 separately as fdcd193744dbb92d3478c8e4e6c4f4336a872831 et al. Thanks! T G-R --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 3a8d45e20b..c40b33a0a9 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1150,23 +1150,17 @@ supported under @file{/sys/class/backlight/}.") (base32 "1qi4l6yam8nrlmc3zwkrz9vph0xsj1cgmkqci4652mbpbzigg7vn")))) (build-system linux-module-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "make" - "--directory=./tests" - (string-append "CC=" ,(cc-for-target)))))))) (home-page "https://github.com/umlaeute/v4l2loopback") - (synopsis "Linux kernel module that allows you to create \"virtual video devices\"") - (description "This module allows you to create \"virtual video devices\" -normal (v4l2) applications will read these devices as if they were ordinary -video devices, but the video will not be read from e.g. a capture card but -instead it is generated by another application. this allows you for instance -to apply some nifty video effects on your Jitsi video... it also allows some -more serious things (e.g. using it to add streaming capabilities to an -application by the means of hooking GStreamer into the loopback devices).") + (synopsis "Linux kernel module to create virtual V4L2 video devices") + (description + "This Linux module creates virtual video devices. @acronym{V4L2, Video +for Linux 2} applications will treat these as ordinary video devices but read +video data generated by another application, instead of a hardware device such +as a capture card. + +This lets you apply nifty effects to your Jitsi video, for example, but also +allows some more serious things like adding streaming capabilities to an +application by hooking GStreamer into the loopback device.") (license license:gpl2+))) --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXt341QAKCRANsP+IT1Vt efEZAP9Ma1rz80mnabX5ltqqUuvZ2leGi02YR6SGajT4uS1LCgEA+yxPT4JxRsY8 id2CegAYUw2TlNQqCNpCBAjB+BhKugs= =pvMY -----END PGP SIGNATURE----- --==-=-=--