From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YFNFEZfbomZ9ogAA62LTzQ:P1 (envelope-from ) for ; Thu, 25 Jul 2024 23:11:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id YFNFEZfbomZ9ogAA62LTzQ (envelope-from ) for ; Fri, 26 Jul 2024 01:11:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wmeyer.eu header.s=mail header.b=XH+658Y3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wmeyer.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721949079; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=eA4RVccRqr+VpdXRvtcVdLYS5Bq1tc2FgXlnFAMZBYg=; b=Tf1tMJoQwHeDqaQbiJIXfN6i+07REwDHNpLhaUU9bZFYtv3IgbNQHHZCv7CFvTEtD2bNdp 84RcRTh7DhGMBT7gTK79E4LrNTdnGT3iG+cjr04l7vq5i3dtS038HLQV23Fdd5qK+NRs8v UHQND0cWpdymWmIYuPljYBgWbHOzIAfzDL6RwzgC4MkMjd/mXwHXD8UGmIZEjW+P8zyswb QfSPT44QadrQmYdZjqnq3lw2wQhMyHBLnJyiixRhE6U8cyy/3zDE9zIIzJwF8mWqzlCtL+ fAnQ8u/oXXFle0B208tbJYCgl/UNidFccUsRfB2yHjto4fXpL9URvao27iV7oQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721949079; a=rsa-sha256; cv=none; b=SnKfBhqJcybJPHPXz6QdTHjurhLwKpTRKBu9QqQMgE24pIXsSycp3TgZlHjeNG/e616RUJ NGvOFPsNbLYVDm/pmfJqIuP7UWKysdljBrfO3MC+Jgg/QyEjq7cdBpy4Jwll/wp+RUKhdh 6a6kH3QDlpG9OXOTISRjONggL1wui7kDKkT+ahIkKxObKapNBKGhE3hNA8EXigbgxqge+s pegASt27wIOHJLVboS9QDWVeIib4RfGVnjbK3aOPCSr20XT99h8pxUQKpx4XcwOUedlCXl cA/X8wFPIvYNnRNjmZwgRntOvBcrYqgpGH46fp8XpwXR9bjdrO9qWjlQ5ibHTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wmeyer.eu header.s=mail header.b=XH+658Y3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wmeyer.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" 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 D339D67185 for ; Fri, 26 Jul 2024 01:11:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sX7bt-0003sF-AX; Thu, 25 Jul 2024 19:10:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sX7br-0003s3-Sp for guix-patches@gnu.org; Thu, 25 Jul 2024 19:10:55 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sX7br-0007aT-L3 for guix-patches@gnu.org; Thu, 25 Jul 2024 19:10:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sX7by-0005XN-AZ for guix-patches@gnu.org; Thu, 25 Jul 2024 19:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72302] [PATCH] gnu: Add drm-info. Resent-From: Wilko Meyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jul 2024 23:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72302 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72302@debbugs.gnu.org Cc: Wilko Meyer X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172194905621265 (code B ref -1); Thu, 25 Jul 2024 23:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jul 2024 23:10:56 +0000 Received: from localhost ([127.0.0.1]:38003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sX7br-0005Wu-Ld for submit@debbugs.gnu.org; Thu, 25 Jul 2024 19:10:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:60328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sX7bp-0005Wm-1f for submit@debbugs.gnu.org; Thu, 25 Jul 2024 19:10:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sX7bg-0003p8-JP for guix-patches@gnu.org; Thu, 25 Jul 2024 19:10:44 -0400 Received: from mail.wmeyer.eu ([95.216.196.112]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sX7be-0007ZN-RT for guix-patches@gnu.org; Thu, 25 Jul 2024 19:10:44 -0400 From: Wilko Meyer DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wmeyer.eu; s=mail; t=1721949039; bh=eA4RVccRqr+VpdXRvtcVdLYS5Bq1tc2FgXlnFAMZBYg=; h=From:To:Cc:Subject:Date; b=XH+658Y3VhKPbDlScRTKYlIYiFJokwl0Bn3+0+8UllVNR0edk+weJDgrKahTbx4W+ gAaB10bvcXez7mhkJilPYv0xSfyQJS4IQLSHPX0ZaXg4OCDg7OwyIaxqOAMkklZR8F ao9B2YQB3UAdDwYGyXeDrgAkSwqOhK6Y9RVRM4eg= Date: Fri, 26 Jul 2024 01:06:05 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=95.216.196.112; envelope-from=w@wmeyer.eu; helo=mail.wmeyer.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: D339D67185 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.52 X-Spam-Score: -4.52 X-TUID: 05JpcFuGpRDr * 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 ;;; Copyright © 2024 aurtzy ;;; Copyright © 2024 Dariqq +;;; Copyright © 2024 Wilko Meyer ;;; ;;; 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