[PATCH] gnu: Add drm-info.

  • Done
  • quality assurance status badge
Details
2 participants
  • Wilko Meyer
  • Zheng Junjie
Owner
unassigned
Submitted by
Wilko Meyer
Severity
normal

Debbugs page

W
W
Wilko Meyer wrote on 25 Jul 16:06 -0700
(address . guix-patches@gnu.org)(name . Wilko Meyer)(address . w@wmeyer.eu)
a4041a3edad944509633f36eb962275f00236cf2.1721948765.git.w@wmeyer.eu
* gnu/packages/freedesktop.scm (drm-info): New variable.

Change-Id: I02a0bdcbb49644de9884038cd36bf6d8482f84ae
---
Hi Guix,

Needed drm_info today while debugging a /dev/dri/card* related
issue. As the tool isn't yet available in guix, here's a patch adding
it.

FTR: There's a comment in gnu/packages/hardware.scm on l261 referring
to it with a comment saying:

;; Not packaged in Guix (TODO).

which could be removed after applying this patch. I would've done it
myself and included the removal in this patch, but wasn't too sure on
how to handle the commit messages right for such a case.

Cheers!

gnu/packages/freedesktop.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)

Toggle diff (48 lines)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 222ea0fb0b..05b016f802 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -38,6 +38,7 @@
;;; Copyright © 2022 Samuel Culpepper <sculpepper@newstore.com>
;;; Copyright © 2024 aurtzy <aurtzy@gmail.com>
;;; Copyright © 2024 Dariqq <dariqq@posteo.net>
+;;; Copyright © 2024 Wilko Meyer <w@wmeyer.eu>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2475,6 +2476,31 @@ (define-public desktop-file-utils
@end table")
(license license:gpl2+)))
+(define-public drm-info
+ (package
+ (name "drm-info")
+ (version "2.6.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.freedesktop.org/emersion/drm_info.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0fc1rd3c16ddzbdpcj473ykszipzblj98lk376slk63v7mqvc1qm"))))
+ (build-system meson-build-system)
+ (native-inputs
+ (list pkg-config))
+ (inputs
+ (list libdrm json-c))
+ (home-page "https://gitlab.freedesktop.org/emersion/drm_info")
+ (synopsis "Dump DRM device info")
+ (description "Displaying and dumping information on Direct
+Rendering Manager devices.")
+ (license license:expat)))
+
(define-public xdg-user-dirs
(package
(name "xdg-user-dirs")

base-commit: 07293655b77619b61bd25abe692d0218c3d8142b
--
2.41.0
Z
Z
Zheng Junjie wrote on 29 Jul 23:45 -0700
(name . Wilko Meyer)(address . w@wmeyer.eu)(address . 72302-done@debbugs.gnu.org)
87cymvz8cb.fsf@iscas.ac.cn
Wilko Meyer <w@wmeyer.eu> writes:

Toggle quote (71 lines)
> * gnu/packages/freedesktop.scm (drm-info): New variable.
>
> Change-Id: I02a0bdcbb49644de9884038cd36bf6d8482f84ae
> ---
> Hi Guix,
>
> Needed drm_info today while debugging a /dev/dri/card* related
> issue. As the tool isn't yet available in guix, here's a patch adding
> it.
>
> FTR: There's a comment in gnu/packages/hardware.scm on l261 referring
> to it with a comment saying:
>
> ;; Not packaged in Guix (TODO).
>
> which could be removed after applying this patch. I would've done it
> myself and included the removal in this patch, but wasn't too sure on
> how to handle the commit messages right for such a case.
>
> Cheers!
>
> gnu/packages/freedesktop.scm | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
>
> diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
> index 222ea0fb0b..05b016f802 100644
> --- a/gnu/packages/freedesktop.scm
> +++ b/gnu/packages/freedesktop.scm
> @@ -38,6 +38,7 @@
> ;;; Copyright © 2022 Samuel Culpepper <sculpepper@newstore.com>
> ;;; Copyright © 2024 aurtzy <aurtzy@gmail.com>
> ;;; Copyright © 2024 Dariqq <dariqq@posteo.net>
> +;;; Copyright © 2024 Wilko Meyer <w@wmeyer.eu>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -2475,6 +2476,31 @@ (define-public desktop-file-utils
> @end table")
> (license license:gpl2+)))
>
> +(define-public drm-info
> + (package
> + (name "drm-info")
> + (version "2.6.0")
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://gitlab.freedesktop.org/emersion/drm_info.git")
> + (commit (string-append "v" version))))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32
> + "0fc1rd3c16ddzbdpcj473ykszipzblj98lk376slk63v7mqvc1qm"))))
> + (build-system meson-build-system)
> + (native-inputs
> + (list pkg-config))
> + (inputs
> + (list libdrm json-c))
> + (home-page "https://gitlab.freedesktop.org/emersion/drm_info")
> + (synopsis "Dump DRM device info")
> + (description "Displaying and dumping information on Direct
> +Rendering Manager devices.")
> + (license license:expat)))
> +
> (define-public xdg-user-dirs
> (package
> (name "xdg-user-dirs")
>
> base-commit: 07293655b77619b61bd25abe692d0218c3d8142b

Enable libpci and man-pages option, and pushed.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmaojAQACgkQO1qpk+Gi
3/Ai6BAArKtbMm0QQuNmUA40fRpNIOUJk6lgiZIfJLjE1hOG4idWIYPJ+ia4picS
Pldvjmub7dBQNp6x4IPYCK+dExdD0rofvDGYBMSQzhbHBYB5JXsufY4h/ibvD5qy
9LVa6xl3vvoBiwI9iHCzLSYVB+7gU7IlH44QKq/9jAcxXCk8bfHR9XFW0IFtsJUu
ah3KYJAe1fBNo96JO9dNUG8/0R7JseMsdHXWLCikbh6Tp5KeKpHTPfTEYToUlDGL
INHbTkHt6oqKSG5V7ENW7hnEukRg72Xe/nJjuenCclcWJLKvCBlUc7X+ix46gsHh
+vg0pVk/BUwX/I1eyTyOh3RaW+S4XIqphn/I5IyASLUeGt0xongEDKX5NS7WkBUH
BxPq2Fm7h/51bYk27laOY8+GV/kBnRKrIIt/6FoNY58XKm2B/tvkmZyyJ2NuUV0q
aQq0snMsIziVDsYKfjF3pA0ZxzrMpMeLXUC2339xN4dEDpRLsIbMajQNwkD93ZVa
UknVXdMvjW9QFUDx5gbM8f0HyaRTiC7SQLopolh8HlN1qP0i3U9uelmTs3Onuok0
z6yqL2bmmElrB6Hzu0+m6zsxOyJbhryQPIod4KeBoe56zl80YuLfc7LYO9pF6Ar4
bCNpBjjdnymEgD6FfW2RlOpig2xp79AXr02P98ki413/1XofRY8=
=G/zA
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 72302@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 72302
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch