public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Rui Huang" <vowstar@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-process/nvtop/files/, sys-process/nvtop/
Date: Fri, 13 Dec 2024 09:54:00 +0000 (UTC)	[thread overview]
Message-ID: <1734083627.1e5a34abc2c94614b8fbe5c295be145fcde69aa5.vowstar@gentoo> (raw)

commit:     1e5a34abc2c94614b8fbe5c295be145fcde69aa5
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Fri Dec 13 09:52:29 2024 +0000
Commit:     Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Fri Dec 13 09:53:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1e5a34ab

sys-process/nvtop: fix missing drm.h

- fix drm.h not find while build
- apply https://github.com/Syllo/nvtop/pull/338

Signed-off-by: Huang Rui <vowstar <AT> gmail.com>

 .../nvtop/files/nvtop-3.1.0-fix-drm-missing.patch  | 23 ++++++++++++++++++++++
 sys-process/nvtop/nvtop-3.1.0.ebuild               |  4 ++++
 2 files changed, 27 insertions(+)

diff --git a/sys-process/nvtop/files/nvtop-3.1.0-fix-drm-missing.patch b/sys-process/nvtop/files/nvtop-3.1.0-fix-drm-missing.patch
new file mode 100644
index 000000000..ea08bef38
--- /dev/null
+++ b/sys-process/nvtop/files/nvtop-3.1.0-fix-drm-missing.patch
@@ -0,0 +1,23 @@
+Merged by upstream: https://github.com/Syllo/nvtop/pull/338
+From 28328c5a6931786e57c9a205b2415114fa68a1ce Mon Sep 17 00:00:00 2001
+From: Takuya Wakazono <pastalian46@gmail.com>
+Date: Sat, 30 Nov 2024 21:54:23 +0900
+Subject: [PATCH] Include libdrm for builds with panfrost and panthor support
+
+---
+ src/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 169e112..25e4865 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -74,7 +74,7 @@ if(AMDGPU_SUPPORT OR INTEL_SUPPORT)
+   target_sources(nvtop PRIVATE device_discovery_linux.c)
+ endif()
+ 
+-if(AMDGPU_SUPPORT OR MSM_SUPPORT)
++if(AMDGPU_SUPPORT OR MSM_SUPPORT OR PANFROST_SUPPORT OR PANTHOR_SUPPORT)
+   # Search for libdrm for AMDGPU support
+   find_package(Libdrm)
+ 

diff --git a/sys-process/nvtop/nvtop-3.1.0.ebuild b/sys-process/nvtop/nvtop-3.1.0.ebuild
index 81c40c089..a12d95529 100644
--- a/sys-process/nvtop/nvtop-3.1.0.ebuild
+++ b/sys-process/nvtop/nvtop-3.1.0.ebuild
@@ -35,6 +35,10 @@ BDEPEND="
 	virtual/pkgconfig
 "
 
+PATCHES=(
+	"${FILESDIR}/${PN}-3.1.0-fix-drm-missing.patch"
+)
+
 src_configure() {
 	local mycmakeargs=(
 		-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"


             reply	other threads:[~2024-12-13  9:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-13  9:54 Rui Huang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-14 12:46 [gentoo-commits] repo/proj/guru:dev commit in: sys-process/nvtop/files/, sys-process/nvtop/ David Roman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1734083627.1e5a34abc2c94614b8fbe5c295be145fcde69aa5.vowstar@gentoo \
    --to=vowstar@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox