* [gentoo-commits] repo/gentoo:master commit in: dev-util/nsight-compute/
@ 2025-04-22 0:41 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2025-04-22 0:41 UTC (permalink / raw
To: gentoo-commits
commit: 71c5a4429b7419f69a3cfa88f7b5b51413faa21c
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Wed Apr 16 13:32:52 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 22 00:37:46 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71c5a442
dev-util/nsight-compute: use edo, ebuild cleanup
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../nsight-compute-2025.1.1.2.ebuild | 50 ++++++++++++----------
1 file changed, 27 insertions(+), 23 deletions(-)
diff --git a/dev-util/nsight-compute/nsight-compute-2025.1.1.2.ebuild b/dev-util/nsight-compute/nsight-compute-2025.1.1.2.ebuild
index 7efa373cda03..40b25470751a 100644
--- a/dev-util/nsight-compute/nsight-compute-2025.1.1.2.ebuild
+++ b/dev-util/nsight-compute/nsight-compute-2025.1.1.2.ebuild
@@ -3,13 +3,14 @@
EAPI=8
-inherit desktop unpacker
+inherit desktop edo unpacker
DESCRIPTION="performance analysis tool designed to visualize an application’s algorithms"
HOMEPAGE="https://developer.nvidia.com/nsight-systems"
-MY_PV=$(ver_cut 1-3)
-MY_PV=${MY_PV//./_}
+MY_PV="$(ver_rs 1-3 '_' "$(ver_cut 1-3)")"
+MY_PN="${PN//nsight-}"
+MY_PN_SHORT="cu"
PV_BUILD="35528883"
SRC_URI="
@@ -19,9 +20,10 @@ SRC_URI="
arm64? (
https://developer.nvidia.com/downloads/assets/tools/secure/${PN}/${MY_PV}/${PN}-armserver-${PV}-${PV_BUILD}.run
)
- mirror+https://developer.download.nvidia.com/images/nvidia-nsight-compute-icon-gbp-shaded-128.png
- -> nvidia-nsight-compute-icon-gbp-shaded-128.20231126.png
+ mirror+https://developer.download.nvidia.com/images/nvidia-nsight-${MY_PN}-icon-gbp-shaded-128.png
+ -> nvidia-nsight-${MY_PN}-icon-gbp-shaded-128.20231126.png
"
+
S="${WORKDIR}/pkg"
LICENSE="NVIDIA-r2"
@@ -67,6 +69,7 @@ RDEPEND="
x11-libs/xcb-util-renderutil
x11-libs/xcb-util-wm
"
+
BDEPEND="
dev-util/patchelf
"
@@ -80,18 +83,18 @@ src_prepare() {
pushd host/linux-desktop-* >/dev/null || die
- readarray -t rpath_bins < <(find . -maxdepth 1 -name '*.bin')
- for rpath_bin in "${rpath_bins[@]}"; do
- ebegin "fixing rpath for ${rpath_bin}"
- patchelf --set-rpath '$ORIGIN' "${rpath_bin}" || die
- eend $?
+ local rpaths rpath
+ readarray -t rpaths < <(find . -maxdepth 1 -name '*.bin')
+ for rpath in "${rpaths[@]}"; do
+ edob -m "fixing rpath for ${rpath}" \
+ patchelf --set-rpath '$ORIGIN' "${rpath}"
# OpenGLVersionChecker stumbles on "OpenGL ES profile version string" so disable the check
sed \
-e "s/NV_AGORA_PATH/NV_AGORA_PATH_/g" \
-e "4i export QT_PLUGIN_PATH=\"\${NV_AGORA_PATH_}/Plugins\"" \
-e "s/AGORA_USE_MESA_FALLBACK=true/AGORA_USE_MESA_FALLBACK=false/" \
- -i "$(basename "${rpath_bin}" .bin)" \
+ -i "$(basename "${rpath}" .bin)" \
|| die
done
@@ -115,28 +118,29 @@ src_install() {
dodir "${dir}"
mv ./* "${ED}${dir}" || die
- local arch_dir="$(find "${ED}${dir}/host" -mindepth 1 -maxdepth 1 -name 'linux-*' -exec basename {} \;)"
- if [[ -z "${arch_dir}" ]]; then
+ local arch_dirs
+ readarray -t arch_dirs < <(find "${ED}${dir}/host" -mindepth 1 -maxdepth 1 -name 'linux-*' -exec basename {} \;)
+ if [[ -z "${arch_dirs[*]}" ]]; then
die "failed to find arch dir"
fi
- if [[ "$(echo "${arch_dir}" | wc -l )" -gt 1 ]]; then
- echo ${arch_dir}
- die "found $(echo "${arch_dir}" | wc -l )"
+ if [[ "$(echo "${#arch_dirs[@]}" | wc -l )" -gt 1 ]]; then
+ eerror "${arch_dirs[*]}"
+ die "found ${#arch_dirs[*]} arch dirs"
fi
cp \
- "${DISTDIR}/nvidia-nsight-compute-icon-gbp-shaded-128.20231126.png" \
- "${ED}${dir}/host/${arch_dir}/ncu-ui.png" \
+ "${DISTDIR}/nvidia-nsight-${MY_PN}-icon-gbp-shaded-128.20231126.png" \
+ "${ED}${dir}/host/${arch_dirs[0]}/n${MY_PN_SHORT}-ui.png" \
|| die
newmenu - "${P}.desktop" <<-EOF || die
[Desktop Entry]
Type=Application
- Name=NVIDIA Nsight Compute ${PV}
- GenericName=NVIDIA Nsight Compute
- Icon=${EPREFIX}${dir}/host/${arch_dir}/ncu-ui.png
- Exec=env WAYLAND_DISPLAY= ${EPREFIX}${dir}/host/${arch_dir}/ncu-ui
- TryExec=${EPREFIX}${dir}/host/${arch_dir}/ncu-ui
+ Name=NVIDIA Nsight ${MY_PN^} ${PV}
+ GenericName=NVIDIA Nsight ${MY_PN^}
+ Icon=${EPREFIX}${dir}/host/${arch_dirs[0]}/n${MY_PN_SHORT}-ui.png
+ Exec=env WAYLAND_DISPLAY= ${EPREFIX}${dir}/host/${arch_dirs[0]}/n${MY_PN_SHORT}-ui
+ TryExec=${EPREFIX}${dir}/host/${arch_dirs[0]}/n${MY_PN_SHORT}-ui
Keywords=cuda;gpu;nvidia;nsight;
X-AppInstall-Keywords=cuda;gpu;nvidia;nsight;
X-GNOME-Keywords=cuda;gpu;nvidia;nsight;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nsight-compute/
@ 2025-05-23 12:39 David Seifert
0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2025-05-23 12:39 UTC (permalink / raw
To: gentoo-commits
commit: bf5b2d631509e9837b67c302c6e793430e5ad1bd
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri May 23 12:37:47 2025 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri May 23 12:37:47 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf5b2d63
dev-util/nsight-compute: add 2025.2.0.11
Signed-off-by: David Seifert <soap <AT> gentoo.org>
dev-util/nsight-compute/Manifest | 2 +
.../nsight-compute-2025.2.0.11.ebuild | 150 +++++++++++++++++++++
2 files changed, 152 insertions(+)
diff --git a/dev-util/nsight-compute/Manifest b/dev-util/nsight-compute/Manifest
index 680a56599483..aa3786d2ab54 100644
--- a/dev-util/nsight-compute/Manifest
+++ b/dev-util/nsight-compute/Manifest
@@ -1,3 +1,5 @@
DIST nsight-compute-armserver-2025.1.1.2-35528883.run 159558687 BLAKE2B c331393081a26c2d66d5f2f022f3aa422a453802d7d54d48bb39033d7d7fb902a2ee0347608baf10091b56383c1fab689493882356f7dae232b8bad691c1cbe0 SHA512 092d2f20738570ae01f3942d472879f5f13cb9d864532314b432cfa81205976d114cd55c69d207b290abb917195b26068c27bc4c1440ff0bd0fd3b2c636c9cb8
+DIST nsight-compute-armserver-2025.2.0.11-35613519.run 151634412 BLAKE2B dbc2567459a3d369b69188e760cfc77a3814018dab2aba1705ff7f36794c425b556435d4f083caee0d76cb9b69d5c8a77daa64d4d9dce4910957f5e8dfcc17aa SHA512 169a474bc47c8603093b2668652b4277659cd61f074a25bd017e90b804822c5dc20238be6af51cc2f2edff41d36487bed7bfab5657849fb373459b4323035e30
DIST nsight-compute-linux-2025.1.1.2-35528883.run 433112184 BLAKE2B d657aa7b8e3b075ef25e04318ff34c0eeac2bd60b881524d922aee8aa955e01ece740b3c2b5b4cfb993046999894610ecf1fc2443f36bfefa6b6882baf5328a2 SHA512 bd42323f3e22713386db4a29e422ef4ae1322d030b5705ba50b52b04a532e3e19f7b9af6731a3b47ec023460bb09b286bc2752a8838d6f2d8077ce43970f3670
+DIST nsight-compute-linux-2025.2.0.11-35613519.run 437421991 BLAKE2B 7ece25195f733a83fad8511e7aa850c5652a9f958c2b2644d737f9dfd70120fc64c40fab9b63c0b26b78de8a29b6fc59d2db2e8fb33c2474792a5b8eb0bfb0ab SHA512 3af3894c1f5825dd339b0c4b57ba219988fff46a80a363be8d5835ff467272899d53e7c5d429ea08f2bf9be1ff62c6185a5bfec36b9a0cf3e9851f99a8b0d626
DIST nvidia-nsight-compute-icon-gbp-shaded-128.20231126.png 17468 BLAKE2B 2150f8c31ad12945614d07c33aafce838b381e40025ed72b77cbd2bcc42e532d82a9159f7ce9b51b2f8b8cddd49433c8ba9bebffb8c29b77560a476df8632025 SHA512 1e5a08b4b02ea7f1a3eb1dc4fe340fbe887eff70b663c61f5a3ffedef0ed7f6c6478ac70e05d90b11c070959529cfcdd899735409e92f5d4fedc6785f993db2b
diff --git a/dev-util/nsight-compute/nsight-compute-2025.2.0.11.ebuild b/dev-util/nsight-compute/nsight-compute-2025.2.0.11.ebuild
new file mode 100644
index 000000000000..4887e2bb3741
--- /dev/null
+++ b/dev-util/nsight-compute/nsight-compute-2025.2.0.11.ebuild
@@ -0,0 +1,150 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop edo unpacker
+
+DESCRIPTION="performance analysis tool designed to visualize an application's algorithms"
+HOMEPAGE="https://developer.nvidia.com/nsight-systems"
+
+MY_PV="$(ver_rs 1-3 '_' "$(ver_cut 1-3)")"
+MY_PN="${PN//nsight-}"
+MY_PN_SHORT="cu"
+
+PV_BUILD="35613519"
+SRC_URI="
+ amd64? (
+ https://developer.nvidia.com/downloads/assets/tools/secure/${PN}/${MY_PV}/${PN}-linux-${PV}-${PV_BUILD}.run
+ )
+ arm64? (
+ https://developer.nvidia.com/downloads/assets/tools/secure/${PN}/${MY_PV}/${PN}-armserver-${PV}-${PV_BUILD}.run
+ )
+ mirror+https://developer.download.nvidia.com/images/nvidia-nsight-${MY_PN}-icon-gbp-shaded-128.png
+ -> nvidia-nsight-${MY_PN}-icon-gbp-shaded-128.20231126.png
+"
+
+S="${WORKDIR}/pkg"
+
+LICENSE="NVIDIA-r2"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~arm64"
+
+RESTRICT="bindist mirror strip test"
+
+RDEPEND="
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ dev-libs/wayland
+ dev-qt/qtdeclarative:6
+ dev-qt/qtpositioning:6
+ dev-qt/qtwayland:6
+ dev-qt/qtwebchannel:6
+ dev-qt/qtwebengine:6
+ media-libs/fontconfig
+ media-libs/libglvnd
+ media-libs/tiff-compat:4
+ sys-apps/dbus
+ sys-cluster/rdma-core
+ x11-drivers/nvidia-drivers
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXtst
+ x11-libs/libdrm
+ x11-libs/libxcb:=
+ x11-libs/libxkbcommon
+ x11-libs/libxkbfile
+ x11-libs/libxshmfence
+ x11-libs/xcb-util-cursor
+ x11-libs/xcb-util-image
+ x11-libs/xcb-util-keysyms
+ x11-libs/xcb-util-renderutil
+ x11-libs/xcb-util-wm
+"
+
+BDEPEND="
+ dev-util/patchelf
+"
+
+QA_PREBUILT="/opt/nvidia/${PN}/$(ver_cut 1-2)"
+
+src_prepare() {
+ if [[ -n "${EPREFIX}" ]]; then
+ sed -e "s#=/#=${EPREFIX}/#g" -i usr/share/applications/*.desktop || die
+ fi
+
+ pushd host/linux-desktop-* >/dev/null || die
+
+ local rpaths rpath
+ readarray -t rpaths < <(find . -maxdepth 1 -name '*.bin')
+ for rpath in "${rpaths[@]}"; do
+ edob -m "fixing rpath for ${rpath}" \
+ patchelf --set-rpath '$ORIGIN' "${rpath}"
+
+ # OpenGLVersionChecker stumbles on "OpenGL ES profile version string" so disable the check
+ sed \
+ -e "s/NV_AGORA_PATH/NV_AGORA_PATH_/g" \
+ -e "4i export QT_PLUGIN_PATH=\"\${NV_AGORA_PATH_}/Plugins\"" \
+ -e "s/AGORA_USE_MESA_FALLBACK=true/AGORA_USE_MESA_FALLBACK=false/" \
+ -i "$(basename "${rpath}" .bin)" \
+ || die
+ done
+
+ popd &>/dev/null || die
+
+ eapply_user
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ local dir
+ dir="/opt/nvidia/${PN}/$(ver_cut 1-2)"
+
+ dodir "${dir}"
+ mv ./* "${ED}${dir}" || die
+
+ local arch_dirs
+ readarray -t arch_dirs < <(find "${ED}${dir}/host" -mindepth 1 -maxdepth 1 -name 'linux-*' -exec basename {} \;)
+ if [[ -z "${arch_dirs[*]}" ]]; then
+ die "failed to find arch dir"
+ fi
+ if [[ "$(echo "${#arch_dirs[@]}" | wc -l )" -gt 1 ]]; then
+ eerror "${arch_dirs[*]}"
+ die "found ${#arch_dirs[*]} arch dirs"
+ fi
+
+ cp \
+ "${DISTDIR}/nvidia-nsight-${MY_PN}-icon-gbp-shaded-128.20231126.png" \
+ "${ED}${dir}/host/${arch_dirs[0]}/n${MY_PN_SHORT}-ui.png" \
+ || die
+
+ newmenu - "${P}.desktop" <<-EOF || die
+ [Desktop Entry]
+ Type=Application
+ Name=NVIDIA Nsight ${MY_PN^} ${PV}
+ GenericName=NVIDIA Nsight ${MY_PN^}
+ Icon=${EPREFIX}${dir}/host/${arch_dirs[0]}/n${MY_PN_SHORT}-ui.png
+ Exec=env WAYLAND_DISPLAY= ${EPREFIX}${dir}/host/${arch_dirs[0]}/n${MY_PN_SHORT}-ui
+ TryExec=${EPREFIX}${dir}/host/${arch_dirs[0]}/n${MY_PN_SHORT}-ui
+ Keywords=cuda;gpu;nvidia;nsight;
+ X-AppInstall-Keywords=cuda;gpu;nvidia;nsight;
+ X-GNOME-Keywords=cuda;gpu;nvidia;nsight;
+ Terminal=false
+ Categories=Development;Profiling;ParallelComputing
+ EOF
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-23 12:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-22 0:41 [gentoo-commits] repo/gentoo:master commit in: dev-util/nsight-compute/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2025-05-23 12:39 David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox