GNU bug report logs - #46500
[PATCH] gnu: Add monado

Previous Next

Package: guix-patches;

Reported by: Andy Tai <atai <at> atai.org>

Date: Sun, 14 Feb 2021 02:13:02 UTC

Severity: normal

Tags: patch

Done: Leo Famulari <leo <at> famulari.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46500 in the body.
You can then email your comments to 46500 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#46500; Package guix-patches. (Sun, 14 Feb 2021 02:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andy Tai <atai <at> atai.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 14 Feb 2021 02:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andy Tai <atai <at> atai.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add monado
Date: Sat, 13 Feb 2021 18:12:01 -0800
* gnu/packages/graphics.scm (monado): New variable
---
 gnu/packages/graphics.scm | 46 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 7cb4aecec2..5b8621c390 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -24,6 +24,7 @@
 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
 ;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared <at> gmail.com>
 ;;; Copyright © 2021 Antoine Côté <antoine.cote <at> posteo.net>
+;;; Copyright © 2021 Andy Tai <atai <at> atai.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -74,6 +75,7 @@
   #:use-module (gnu packages imagemagick)
   #:use-module (gnu packages jemalloc)
   #:use-module (gnu packages kde-frameworks)
+  #:use-module (gnu packages libusb)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages lua)
   #:use-module (gnu packages maths)
@@ -97,6 +99,7 @@
   #:use-module (gnu packages tbb)
   #:use-module (gnu packages upnp)
   #:use-module (gnu packages video)
+  #:use-module (gnu packages vulkan)
   #:use-module (gnu packages xiph)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
@@ -1914,3 +1917,46 @@ Some feature highlights:
 @item Automatic port forwarding with UPnP
 @end itemize\n")
       (license license:gpl3+))))
+
+
+(define-public monado
+  (package
+    (name "monado")
+    (version "21.0.0")
+        (source (origin
+              (method url-fetch)
+              (uri (string-append "https://gitlab.freedesktop.org/" name "/"
+                                  name "/-/archive/v" version "/"
+                                  name "-v" version ".tar.bz2"))
+              (sha256
+               (base32
+                "0n04k7a8b0i8ga0kbzh7qxmvni1ijawgk98s83519vxg4d0yyjbq"))))
+    (build-system meson-build-system)
+    (inputs
+      `(("ffmpeg" ,ffmpeg)
+        ("glslang" ,glslang)
+        ("libudev" ,eudev)
+        ("libusb" ,libusb)
+        ("libxcb" ,libxcb)
+        ("libxrandr" ,libxrandr)
+        ("opengl" ,mesa)
+        ("v4l" ,v4l-utils)
+        ("vulkan-loader" ,vulkan-loader)
+        ))
+    (native-inputs
+     `(("eigen" ,eigen)
+       ("pkg-config" ,pkg-config)
+       ("vulkan-headers" ,vulkan-headers)
+        ))
+
+    (home-page "https://monado.freedesktop.org/")
+    (synopsis "The open source OpenXR runtime")
+    (description
+     "Monado is an open source XR runtime delivering immersive
experiences such as VR
+and AR on mobile, PC/desktop, and any other device(because gosh darn peoplecome
+up with a lot of weird hardware). Monado aims to be a complete and conforming
+implementation of the OpenXR API made by Khronos. The project
currently is being
+developed for GNU/Linux and aims to support other operating systems in the near
+future.")
+    (license (license:x11-style
"https://gitlab.freedesktop.org/monado/monado/-/blob/master/LICENSE"))))
+
-- 
2.30.0




Information forwarded to guix-patches <at> gnu.org:
bug#46500; Package guix-patches. (Sat, 20 Feb 2021 23:53:02 GMT) Full text and rfc822 format available.

Message #8 received at 46500 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Andy Tai <atai <at> atai.org>
Cc: 46500 <at> debbugs.gnu.org
Subject: Re: [bug#46500] [PATCH] gnu: Add monado
Date: Sat, 20 Feb 2021 18:52:13 -0500
On Sat, Feb 13, 2021 at 06:12:01PM -0800, Andy Tai wrote:
> * gnu/packages/graphics.scm (monado): New variable

Thanks for the patch!

You had asked in #46666 about how to make the review process go more
quickly. We definitely aim for it to be fast and efficient for
contributors, but there are a lot of patches (good!) and reviewers can
get tired. When that happens to me, I start to focus my reviewing energy
on patches that I think will be easy, which means ready-to-push, or on
patches for things I find interesting. I think that's human nature. It
would be better if patches were reviewed more systematically.

My goal when reviewing is to push contributions to guix.git and close
patch tickets.

The linter found a couple issues:

------
$ guix environment guix -- ./pre-inst-env guix lint monado
gnu/packages/graphics.scm:1953:5: monado <at> 21.0.0: sentences in description should be followed by two spaces; possible infractions at 191, 285
gnu/packages/graphics.scm:1943:0: monado <at> 21.0.0: parentheses feel lonely, move to the previous or next line
gnu/packages/graphics.scm:1948:0: monado <at> 21.0.0: parentheses feel lonely, move to the previous or next line
gnu/packages/graphics.scm:1924:16: monado <at> 21.0.0: source not archived on Software Heritage
------

I noticed the parentheses thing before linting, and some extra blank
lines before and after the new package, too. These problems are
effectively cosmetic but, when I see them, I guess that there might be
some other problems that can't be caught with a simple linter, and I get
discouraged from putting more effort into it. So, definitely run the
linter. Don't hesitate to ask for help if you don't understand how to
use it or what it says.

I applied the patch on the current master branch and built it. It fails
in the install phase like this:

------
starting phase `install'
[1/14] Generating u_git_tag.c with a custom command.
[2/6] Generating driver_resources_copy with a custom command.
DIRECTORY ../monado-v21.0.0/src/xrt/targets/steamvr_drv/resources /tmp/guix-build-monado-21.0.0.drv-0/build/steamvr-monado/resources
Copying asset ../monado-v21.0.0/src/xrt/targets/steamvr_drv/resources to /tmp/guix-build-monado-21.0.0.drv-0/build/steamvr-monado/resources
[3/6] Generating driver_manifest_copy with a custom command.
FILE ../monado-v21.0.0/src/xrt/targets/steamvr_drv/driver.vrdrivermanifest /tmp/guix-build-monado-21.0.0.drv-0/build/steamvr-monado/driver.vrdrivermanifest
Copying asset ../monado-v21.0.0/src/xrt/targets/steamvr_drv/driver.vrdrivermanifest to /tmp/guix-build-monado-21.0.0.drv-0/build/steamvr-monado/driver.vrdrivermanifest
[4/6] Generating driver_input_profiles_generate with a custom command.
[5/6] Generating plugin_copy with a custom command.
Copying plugin src/xrt/targets/steamvr_drv/driver_monado.so to /tmp/guix-build-monado-21.0.0.drv-0/build/steamvr-monado/bin/linux64/driver_monado.so
[5/6] Installing files.
+ sysconfdir=/etc
+ manifest=/gnu/store/9598lvcgad60xfid8qxpm0w4p8g9ldr6-monado-21.0.0/share/openxr/1/openxr_monado.json
+ xrversion=1
+ runtime_path=/etc/xdg/openxr/1/active_runtime.json
+ mkdir -p /etc/xdg/openxr/1
mkdir: cannot create directory ‘/etc/xdg’: Permission denied
[...]
------

Can you look into that?

> +    (synopsis "The open source OpenXR runtime")
> +    (description
> +     "Monado is an open source XR runtime delivering immersive
> experiences such as VR
> +and AR on mobile, PC/desktop, and any other device(because gosh darn peoplecome
> +up with a lot of weird hardware). Monado aims to be a complete and conforming
> +implementation of the OpenXR API made by Khronos. The project
> currently is being
> +developed for GNU/Linux and aims to support other operating systems in the near
> +future.")

Guix only includes free software so we usually don't describe packages
as "open source" or "free software". I appreciate the colloquial
language in the parentheses but I would remove it.

We actually have a style guide in the manual:

https://guix.gnu.org/manual/en/html_node/Synopses-and-Descriptions.html

> +    (license (license:x11-style
> "https://gitlab.freedesktop.org/monado/monado/-/blob/master/LICENSE"))))

This looks like the "Boost Software License".




Information forwarded to guix-patches <at> gnu.org:
bug#46500; Package guix-patches. (Sun, 21 Feb 2021 05:49:02 GMT) Full text and rfc822 format available.

Message #11 received at 46500 <at> debbugs.gnu.org (full text, mbox):

From: Andy Tai <atai <at> atai.org>
To: Leo Famulari <leo <at> famulari.name>
Cc: 46500 <at> debbugs.gnu.org
Subject: Re: [bug#46500] [PATCH] gnu: Add monado
Date: Sat, 20 Feb 2021 21:47:18 -0800
[Message part 1 (text/plain, inline)]
review comments addressed;
lint passed cleanly (except the one for Software Heritage)

install fixed and no error now
[0001-gnu-Add-monado.patch (text/x-patch, attachment)]

Reply sent to Leo Famulari <leo <at> famulari.name>:
You have taken responsibility. (Wed, 24 Feb 2021 16:44:01 GMT) Full text and rfc822 format available.

Notification sent to Andy Tai <atai <at> atai.org>:
bug acknowledged by developer. (Wed, 24 Feb 2021 16:44:02 GMT) Full text and rfc822 format available.

Message #16 received at 46500-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Andy Tai <atai <at> atai.org>
Cc: 46500-done <at> debbugs.gnu.org
Subject: Re: [bug#46500] [PATCH] gnu: Add monado
Date: Wed, 24 Feb 2021 11:42:54 -0500
On Sat, Feb 20, 2021 at 09:47:18PM -0800, Andy Tai wrote:
> review comments addressed;
> lint passed cleanly (except the one for Software Heritage)
> 
> install fixed and no error now

> From 99878cebc1e046369100cdae54d69dde3ade7448 Mon Sep 17 00:00:00 2001
> From: Andy Tai <atai <at> atai.org>
> Date: Sat, 20 Feb 2021 21:42:24 -0800
> Subject: [PATCH] gnu: Add monado
> 
> * gnu/packages/graphics.scm (monado): New variable

Thanks! I made the cosmetic changes shown below and pushed as
2fdc8ca7fdf6617835c48276585df6d5ace7c46e

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 0b1c33401e..a76417a508 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -1918,30 +1918,29 @@ Some feature highlights:
 @end itemize\n")
       (license license:gpl3+))))
 
-
 (define-public monado
   (package
     (name "monado")
     (version "21.0.0")
-        (source (origin
-              (method url-fetch)
-              (uri (string-append "https://gitlab.freedesktop.org/" name "/"
-                                  name "/-/archive/v" version "/"
-                                  name "-v" version ".tar.bz2"))
-              (sha256
-               (base32
-                "0n04k7a8b0i8ga0kbzh7qxmvni1ijawgk98s83519vxg4d0yyjbq"))))
+    (source (origin
+          (method url-fetch)
+          (uri (string-append "https://gitlab.freedesktop.org/" name "/"
+                              name "/-/archive/v" version "/"
+                              name "-v" version ".tar.bz2"))
+          (sha256
+           (base32
+            "0n04k7a8b0i8ga0kbzh7qxmvni1ijawgk98s83519vxg4d0yyjbq"))))
     (build-system meson-build-system)
     (inputs
-      `(("ffmpeg" ,ffmpeg)
-        ("glslang" ,glslang)
-        ("libudev" ,eudev)
-        ("libusb" ,libusb)
-        ("libxcb" ,libxcb)
-        ("libxrandr" ,libxrandr)
-        ("opengl" ,mesa)
-        ("v4l" ,v4l-utils)
-        ("vulkan-loader" ,vulkan-loader)))
+     `(("ffmpeg" ,ffmpeg)
+       ("glslang" ,glslang)
+       ("libudev" ,eudev)
+       ("libusb" ,libusb)
+       ("libxcb" ,libxcb)
+       ("libxrandr" ,libxrandr)
+       ("opengl" ,mesa)
+       ("v4l" ,v4l-utils)
+       ("vulkan-loader" ,vulkan-loader)))
     (native-inputs
      `(("eigen" ,eigen)
        ("pkg-config" ,pkg-config)
@@ -1955,4 +1954,3 @@ Some feature highlights:
 such as VR and AR on mobile, PC/desktop, and any other device.  Monado aims to be
 a complete and conforming implementation of the OpenXR API made by Khronos.")
     (license license:boost1.0)))
-




Information forwarded to guix-patches <at> gnu.org:
bug#46500; Package guix-patches. (Wed, 24 Feb 2021 19:04:01 GMT) Full text and rfc822 format available.

Message #19 received at 46500-done <at> debbugs.gnu.org (full text, mbox):

From: Andy Tai <atai <at> atai.org>
To: Leo Famulari <leo <at> famulari.name>
Cc: 46500-done <at> debbugs.gnu.org
Subject: Re: [bug#46500] [PATCH] gnu: Add monado
Date: Wed, 24 Feb 2021 11:02:58 -0800
Awesome, thanks!

On Wed, Feb 24, 2021 at 8:42 AM Leo Famulari <leo <at> famulari.name> wrote:
>
> On Sat, Feb 20, 2021 at 09:47:18PM -0800, Andy Tai wrote:
> > review comments addressed;
> > lint passed cleanly (except the one for Software Heritage)
> >
> > install fixed and no error now
>
> > From 99878cebc1e046369100cdae54d69dde3ade7448 Mon Sep 17 00:00:00 2001
> > From: Andy Tai <atai <at> atai.org>
> > Date: Sat, 20 Feb 2021 21:42:24 -0800
> > Subject: [PATCH] gnu: Add monado
> >
> > * gnu/packages/graphics.scm (monado): New variable
>
> Thanks! I made the cosmetic changes shown below and pushed as
> 2fdc8ca7fdf6617835c48276585df6d5ace7c46e
>
> diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
> index 0b1c33401e..a76417a508 100644
> --- a/gnu/packages/graphics.scm
> +++ b/gnu/packages/graphics.scm
> @@ -1918,30 +1918,29 @@ Some feature highlights:
>  @end itemize\n")
>        (license license:gpl3+))))
>
> -
>  (define-public monado
>    (package
>      (name "monado")
>      (version "21.0.0")
> -        (source (origin
> -              (method url-fetch)
> -              (uri (string-append "https://gitlab.freedesktop.org/" name "/"
> -                                  name "/-/archive/v" version "/"
> -                                  name "-v" version ".tar.bz2"))
> -              (sha256
> -               (base32
> -                "0n04k7a8b0i8ga0kbzh7qxmvni1ijawgk98s83519vxg4d0yyjbq"))))
> +    (source (origin
> +          (method url-fetch)
> +          (uri (string-append "https://gitlab.freedesktop.org/" name "/"
> +                              name "/-/archive/v" version "/"
> +                              name "-v" version ".tar.bz2"))
> +          (sha256
> +           (base32
> +            "0n04k7a8b0i8ga0kbzh7qxmvni1ijawgk98s83519vxg4d0yyjbq"))))
>      (build-system meson-build-system)
>      (inputs
> -      `(("ffmpeg" ,ffmpeg)
> -        ("glslang" ,glslang)
> -        ("libudev" ,eudev)
> -        ("libusb" ,libusb)
> -        ("libxcb" ,libxcb)
> -        ("libxrandr" ,libxrandr)
> -        ("opengl" ,mesa)
> -        ("v4l" ,v4l-utils)
> -        ("vulkan-loader" ,vulkan-loader)))
> +     `(("ffmpeg" ,ffmpeg)
> +       ("glslang" ,glslang)
> +       ("libudev" ,eudev)
> +       ("libusb" ,libusb)
> +       ("libxcb" ,libxcb)
> +       ("libxrandr" ,libxrandr)
> +       ("opengl" ,mesa)
> +       ("v4l" ,v4l-utils)
> +       ("vulkan-loader" ,vulkan-loader)))
>      (native-inputs
>       `(("eigen" ,eigen)
>         ("pkg-config" ,pkg-config)
> @@ -1955,4 +1954,3 @@ Some feature highlights:
>  such as VR and AR on mobile, PC/desktop, and any other device.  Monado aims to be
>  a complete and conforming implementation of the OpenXR API made by Khronos.")
>      (license license:boost1.0)))
> -



-- 
Andy Tai, atai <at> atai.org, Skype: licheng.tai, Line: andy_tai, WeChat: andytai1010
Year 2021 民國110年
自動的精神力是信仰與覺悟
自動的行為力是勞動與技能




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 25 Mar 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 32 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.