GNU bug report logs - #72302
[PATCH] gnu: Add drm-info.

Previous Next

Package: guix-patches;

Reported by: Wilko Meyer <w <at> wmeyer.eu>

Date: Thu, 25 Jul 2024 23:11:02 UTC

Severity: normal

Tags: patch

Done: Zheng Junjie <zhengjunjie <at> iscas.ac.cn>

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 72302 in the body.
You can then email your comments to 72302 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#72302; Package guix-patches. (Thu, 25 Jul 2024 23:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Wilko Meyer <w <at> wmeyer.eu>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 25 Jul 2024 23:11:02 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: guix-patches <at> gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>
Subject: [PATCH] gnu: Add drm-info.
Date: Fri, 26 Jul 2024 01:06:05 +0200
* 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 <at> newstore.com>
 ;;; Copyright © 2024 aurtzy <aurtzy <at> gmail.com>
 ;;; Copyright © 2024 Dariqq <dariqq <at> posteo.net>
+;;; Copyright © 2024 Wilko Meyer <w <at> 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





Reply sent to Zheng Junjie <zhengjunjie <at> iscas.ac.cn>:
You have taken responsibility. (Tue, 30 Jul 2024 06:46:02 GMT) Full text and rfc822 format available.

Notification sent to Wilko Meyer <w <at> wmeyer.eu>:
bug acknowledged by developer. (Tue, 30 Jul 2024 06:46:02 GMT) Full text and rfc822 format available.

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

From: Zheng Junjie <zhengjunjie <at> iscas.ac.cn>
To: Wilko Meyer <w <at> wmeyer.eu>
Cc: 72302-done <at> debbugs.gnu.org
Subject: Re: [bug#72302] [PATCH] gnu: Add drm-info.
Date: Tue, 30 Jul 2024 14:45:24 +0800
[Message part 1 (text/plain, inline)]
Wilko Meyer <w <at> wmeyer.eu> writes:

> * 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 <at> newstore.com>
>  ;;; Copyright © 2024 aurtzy <aurtzy <at> gmail.com>
>  ;;; Copyright © 2024 Dariqq <dariqq <at> posteo.net>
> +;;; Copyright © 2024 Wilko Meyer <w <at> 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.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 27 Aug 2024 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 51 days ago.

Previous Next


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