Removed redundant versions
This commit is contained in:
parent
1e21d60b9b
commit
d7f0ba2282
@ -1,2 +1 @@
|
|||||||
DIST lazydocker-0.23.3.tar.gz 12166368 BLAKE2B 0474efcdfba157910da94e427b4c51ad8e9fa41b4988f999441e9d627d4d9fd9050eb78fec3c8801c17fbf3b4dd4c9455d7dfc510c16985d2fd49489723cea66 SHA512 355a95dfdc1de37f4067e44aa70c8b8bdcfad25cc758940b24cff0148ae2b8cd68c0a9b97f1f43f9a9129bc0a25b8823c76e3510843e5298d6523bf56fbb9690
|
|
||||||
DIST lazydocker-0.24.1.tar.gz 12548859 BLAKE2B 3931aace12de32c6c9319fe48c1f74892293bfeeb9f207dfb451efdab236c5e38517b5ec65a02331a06dd4ac93fcf17dcd0997a78c7e6053e056eacdccbc9331 SHA512 6e9d3fcb16a274d797578cf2c38eb5ce29570bd65294fe9ca8a499e06a470f5193d8fa27a6566435f1014cef5dad48afa5101461512ab92abf66a53c1251c773
|
DIST lazydocker-0.24.1.tar.gz 12548859 BLAKE2B 3931aace12de32c6c9319fe48c1f74892293bfeeb9f207dfb451efdab236c5e38517b5ec65a02331a06dd4ac93fcf17dcd0997a78c7e6053e056eacdccbc9331 SHA512 6e9d3fcb16a274d797578cf2c38eb5ce29570bd65294fe9ca8a499e06a470f5193d8fa27a6566435f1014cef5dad48afa5101461512ab92abf66a53c1251c773
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit go-module
|
|
||||||
|
|
||||||
DESCRIPTION="The lazier way to manage everything docker"
|
|
||||||
HOMEPAGE="https://github.com/jesseduffield/lazydocker"
|
|
||||||
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${P}"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0 BSD ISC MIT Unlicense"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm64"
|
|
||||||
|
|
||||||
RDEPEND=">=app-containers/docker-cli-1.13
|
|
||||||
>=app-containers/docker-compose-1.23.2"
|
|
||||||
|
|
||||||
DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs )
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
ego build -o bin/${PN} \
|
|
||||||
-ldflags "-X main.version=${PV}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin bin/${PN}
|
|
||||||
einstalldocs
|
|
||||||
}
|
|
@ -1,3 +1 @@
|
|||||||
DIST cudnn-linux-x86_64-9.4.0.58_cuda12-archive.tar.xz 745465960 BLAKE2B ab66068063830f2ee58ce8b83c9285040d7a8f5b22f9d6448f95be54f47250d5cbdba7cd92707e632ff2096763ef2f952353823c3b21e69f1d7439bb6ace1896 SHA512 95ab2b6afb239c9adec58c830c90087c2460d745d65fcef3830c3cbbaa037cbde1b9d1e15f1c14ee8fecac40f8a5fa7336bac4782e849e8634bb91fbe07f6ef1
|
|
||||||
DIST cudnn-linux-x86_64-9.5.1.17_cuda12-archive.tar.xz 744697316 BLAKE2B 414e8081a778e5bbd539e5fe473a5cb753bc74c0f993588093937e123e4597a0ecd0678ff8e08ddd43bb075e645a3e25e5829b5fcb06a9e09c4e0b111ede4021 SHA512 6f43184262439239751ac2ee7adcfea81276fb534ce3914e5dff209c21010d142e000c657cd146003fd36d342487eaa6bdb16b6b2bb5ffd4bafc58a1c1212bb3
|
|
||||||
DIST cudnn-linux-x86_64-9.6.0.74_cuda12-archive.tar.xz 662367552 BLAKE2B 2f4b99825bf57b07580daf6bbf6ea3abbec94ab9942a645f3eafe67ee24e6b9a1acb1b9ae725345a5dbf7a0634c247907394727670b604fa6199bb40cee61f00 SHA512 8e69603af614e12439883d0a5bd4927abc66e03739151ecaa485d340ab02e426a4cce568a556be445223cee8a6a926a8ed821708e9e61e79db5817ddcd3066d5
|
DIST cudnn-linux-x86_64-9.6.0.74_cuda12-archive.tar.xz 662367552 BLAKE2B 2f4b99825bf57b07580daf6bbf6ea3abbec94ab9942a645f3eafe67ee24e6b9a1acb1b9ae725345a5dbf7a0634c247907394727670b604fa6199bb40cee61f00 SHA512 8e69603af614e12439883d0a5bd4927abc66e03739151ecaa485d340ab02e426a4cce568a556be445223cee8a6a926a8ed821708e9e61e79db5817ddcd3066d5
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit unpacker
|
|
||||||
|
|
||||||
CUDA_V="12"
|
|
||||||
|
|
||||||
DESCRIPTION="NVIDIA Accelerated Deep Learning on GPU library"
|
|
||||||
HOMEPAGE="https://developer.nvidia.com/cudnn"
|
|
||||||
SRC_URI="https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-${PV}_cuda${CUDA_V}-archive.tar.xz"
|
|
||||||
S="${WORKDIR}/cudnn-linux-x86_64-${PV%%_*}_cuda${CUDA_V}-archive"
|
|
||||||
|
|
||||||
LICENSE="NVIDIA-cuDNN"
|
|
||||||
SLOT="0/$(ver_cut 1)"
|
|
||||||
KEYWORDS="-* ~amd64 ~amd64-linux"
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
RDEPEND="=dev-util/nvidia-cuda-toolkit-${CUDA_V}*"
|
|
||||||
|
|
||||||
QA_PREBUILT="/opt/cuda/targets/x86_64-linux/lib/*"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /opt/cuda/targets/x86_64-linux
|
|
||||||
|
|
||||||
doins -r include lib
|
|
||||||
}
|
|
@ -1,28 +0,0 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit unpacker
|
|
||||||
|
|
||||||
CUDA_V="12"
|
|
||||||
|
|
||||||
DESCRIPTION="NVIDIA Accelerated Deep Learning on GPU library"
|
|
||||||
HOMEPAGE="https://developer.nvidia.com/cudnn"
|
|
||||||
SRC_URI="https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-${PV}_cuda${CUDA_V}-archive.tar.xz"
|
|
||||||
S="${WORKDIR}/cudnn-linux-x86_64-${PV%%_*}_cuda${CUDA_V}-archive"
|
|
||||||
|
|
||||||
LICENSE="NVIDIA-cuDNN"
|
|
||||||
SLOT="0/$(ver_cut 1)"
|
|
||||||
KEYWORDS="-* ~amd64 ~amd64-linux"
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
RDEPEND="=dev-util/nvidia-cuda-toolkit-${CUDA_V}*"
|
|
||||||
|
|
||||||
QA_PREBUILT="/opt/cuda/targets/x86_64-linux/lib/*"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /opt/cuda/targets/x86_64-linux
|
|
||||||
|
|
||||||
doins -r include lib
|
|
||||||
}
|
|
@ -1,2 +1 @@
|
|||||||
DIST libportal-0.8.1.tar.xz 103136 BLAKE2B 11ae7c64c519320671d89f61d97b1adb0b78089c0ea5fcbaf24078cacd23562569b4a4ae012cbdb9feda168bf6af8ec0dbf663dc2b4fb8d7b68818bb6f68911d SHA512 b0c5d108be63261804dbcb8ef923d023c47017a0bd990b3db669d30257f6adabfe682b704d771397781ea4054a07c0a71d945cddfe41a4983e8f88e99952eb68
|
|
||||||
DIST libportal-0.9.0.tar.xz 107488 BLAKE2B 8ec0b10511b0431e8b518b8ffbf3fc5c2d73d4f19c678aacd62042dc9082045eb0d438f4f476f61648673a947bf3054562f6de21c9dff7e6a03d00f96748d97e SHA512 b0c7a7f4b3f50b8bf9d5403b484b81127b6344907b409e87197fbc643111e03ef20532ce2012e285c25dedb8698a214b2decdf9fc48256a82ebe617bb3d05d79
|
DIST libportal-0.9.0.tar.xz 107488 BLAKE2B 8ec0b10511b0431e8b518b8ffbf3fc5c2d73d4f19c678aacd62042dc9082045eb0d438f4f476f61648673a947bf3054562f6de21c9dff7e6a03d00f96748d97e SHA512 b0c7a7f4b3f50b8bf9d5403b484b81127b6344907b409e87197fbc643111e03ef20532ce2012e285c25dedb8698a214b2decdf9fc48256a82ebe617bb3d05d79
|
||||||
|
@ -1,113 +0,0 @@
|
|||||||
# Copyright 2022-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{10..13} )
|
|
||||||
inherit flag-o-matic meson python-any-r1 vala virtualx
|
|
||||||
|
|
||||||
DESCRIPTION="Flatpak portal library"
|
|
||||||
HOMEPAGE="https://github.com/flatpak/libportal"
|
|
||||||
SRC_URI="https://github.com/flatpak/libportal/releases/download/${PV}/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="LGPL-3"
|
|
||||||
SLOT="0/1-1-1-1" # soname of libportal{,-gtk3,-gtk4,-qt5}.so
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
|
||||||
IUSE="gtk gtk-doc +introspection qt5 test +vala wayland X"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
REQUIRED_USE="
|
|
||||||
gtk-doc? ( introspection )
|
|
||||||
vala? ( introspection )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/glib-2.58:2
|
|
||||||
introspection? ( dev-libs/gobject-introspection:= )
|
|
||||||
gtk? (
|
|
||||||
>=x11-libs/gtk+-3.24.41-r1:3[X?,wayland?]
|
|
||||||
>=gui-libs/gtk-4.12.5-r2:4[X?,wayland?]
|
|
||||||
)
|
|
||||||
qt5? (
|
|
||||||
dev-qt/qtcore:=
|
|
||||||
dev-qt/qtgui:=
|
|
||||||
dev-qt/qtx11extras:=
|
|
||||||
dev-qt/qtwidgets:=
|
|
||||||
)
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
qt5? (
|
|
||||||
test? ( dev-qt/qttest:= )
|
|
||||||
)
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
dev-util/glib-utils
|
|
||||||
virtual/pkgconfig
|
|
||||||
gtk-doc? ( dev-util/gi-docgen )
|
|
||||||
qt5? (
|
|
||||||
test? ( dev-qt/linguist-tools )
|
|
||||||
)
|
|
||||||
test? (
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
$(python_gen_any_dep '
|
|
||||||
dev-python/pytest[${PYTHON_USEDEP}]
|
|
||||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
|
||||||
dev-python/python-dbusmock[${PYTHON_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
vala? ( $(vala_depend) )
|
|
||||||
"
|
|
||||||
|
|
||||||
python_check_deps() {
|
|
||||||
python_has_version \
|
|
||||||
"dev-python/pytest[${PYTHON_USEDEP}]" \
|
|
||||||
"dev-python/dbus-python[${PYTHON_USEDEP}]" \
|
|
||||||
"dev-python/python-dbusmock[${PYTHON_USEDEP}]"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if use test; then
|
|
||||||
python-any-r1_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
vala_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# defang automagic dependencies
|
|
||||||
use wayland || append-cflags -DGENTOO_GTK_HIDE_WAYLAND
|
|
||||||
use X || append-cflags -DGENTOO_GTK_HIDE_X11
|
|
||||||
|
|
||||||
local emesonargs=(
|
|
||||||
$(meson_feature gtk backend-gtk3)
|
|
||||||
$(meson_feature gtk backend-gtk4)
|
|
||||||
$(meson_feature qt5 backend-qt5)
|
|
||||||
-Dportal-tests=false
|
|
||||||
$(meson_use introspection)
|
|
||||||
$(meson_use vala vapi)
|
|
||||||
$(meson_use gtk-doc docs)
|
|
||||||
$(meson_use test tests)
|
|
||||||
)
|
|
||||||
meson_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# Tests only exist for Qt5
|
|
||||||
if use qt5; then
|
|
||||||
virtx meson_src_test
|
|
||||||
else
|
|
||||||
# run meson_src_test to notice if tests are added
|
|
||||||
meson_src_test
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
meson_src_install
|
|
||||||
|
|
||||||
if use gtk-doc; then
|
|
||||||
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
|
|
||||||
mv "${ED}"/usr/share/doc/${PN}-1 "${ED}"/usr/share/gtk-doc/html/ || die
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,3 +1 @@
|
|||||||
DIST cuda_12.6.1_560.35.03_linux.run 4345714567 BLAKE2B 147c7f03e0d9ade4c603d93920d0cd6bb1706efc268797ae870b5244feaa8159393015f96e920c6255e93d8040dd5b046075804cfa7c5da18a645800d65b8c3d SHA512 514ec89f847457c3ba78cd0dc22c25aebf2a19a6bbd5a8d071f31519d1007889cde6ba888a01596434216a8a88bfba21059cdc8e3fa9397133c93d2a9f0c015e
|
|
||||||
DIST cuda_12.6.2_560.35.03_linux.run 4446677374 BLAKE2B edf026c9d98a4460a94502a3942e2139959dadae9a5fa43b4e79acefe196754153c8a6ee4a32ad5ac633dc97810554949ca25037398914ea87fbf6201c5b152f SHA512 b43be2aadc3b261a9758d303d893c7a31bfb353dcfda1adbef1dcc4eb3e7a52dc2ebfb0f30e68c1a08fec68f843e49540ab838436447fb70f9d1b2f2d7246dd4
|
|
||||||
DIST cuda_12.6.3_560.35.05_linux.run 4446722669 BLAKE2B 9ff67a3fca58af6fcb259a5b114b3babd842290d0ba5d7761ea30d8c7b33d293f86d32f19c252d12bb49e0ff10da9bf62f3c34cc87f0589bab0e134575852bba SHA512 a93d9d812d3a3f5823622e2274d1d6dbe17a298b33463fdf9f6d211d38766eab76608f9d545e312b2be2b86b3c59fcd92c37c54b38b0e8206191563d00546d62
|
DIST cuda_12.6.3_560.35.05_linux.run 4446722669 BLAKE2B 9ff67a3fca58af6fcb259a5b114b3babd842290d0ba5d7761ea30d8c7b33d293f86d32f19c252d12bb49e0ff10da9bf62f3c34cc87f0589bab0e134575852bba SHA512 a93d9d812d3a3f5823622e2274d1d6dbe17a298b33463fdf9f6d211d38766eab76608f9d545e312b2be2b86b3c59fcd92c37c54b38b0e8206191563d00546d62
|
||||||
|
@ -1,328 +0,0 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit check-reqs toolchain-funcs unpacker
|
|
||||||
|
|
||||||
DRIVER_PV="560.35.03"
|
|
||||||
|
|
||||||
DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)"
|
|
||||||
HOMEPAGE="https://developer.nvidia.com/cuda-zone"
|
|
||||||
SRC_URI="https://developer.download.nvidia.com/compute/cuda/${PV}/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run"
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
LICENSE="NVIDIA-CUDA"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
KEYWORDS="-* ~amd64 ~amd64-linux"
|
|
||||||
IUSE="debugger examples nsight profiler rdma vis-profiler sanitizer"
|
|
||||||
RESTRICT="bindist mirror"
|
|
||||||
|
|
||||||
# since CUDA 11, the bundled toolkit driver (== ${DRIVER_PV}) and the
|
|
||||||
# actual required minimum driver version are different.
|
|
||||||
RDEPEND="
|
|
||||||
<sys-devel/gcc-14_pre[cxx]
|
|
||||||
virtual/libcrypt
|
|
||||||
examples? (
|
|
||||||
media-libs/freeglut
|
|
||||||
media-libs/glu
|
|
||||||
)
|
|
||||||
nsight? (
|
|
||||||
app-crypt/mit-krb5
|
|
||||||
dev-libs/libpfm
|
|
||||||
dev-libs/wayland
|
|
||||||
dev-qt/qtwayland:6
|
|
||||||
>=dev-libs/openssl-3
|
|
||||||
media-libs/tiff-compat:4
|
|
||||||
sys-libs/zlib
|
|
||||||
)
|
|
||||||
rdma? ( sys-cluster/rdma-core )
|
|
||||||
vis-profiler? (
|
|
||||||
>=virtual/jre-1.8:*
|
|
||||||
)"
|
|
||||||
BDEPEND="nsight? ( dev-util/patchelf )"
|
|
||||||
|
|
||||||
QA_PREBUILT="opt/cuda/*"
|
|
||||||
CHECKREQS_DISK_BUILD="15000M"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
check-reqs_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# ATTENTION: change requires revbump, see link below for supported GCC # versions
|
|
||||||
# https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements
|
|
||||||
local cuda_supported_gcc="8.5 9.5 10 11 12 13"
|
|
||||||
|
|
||||||
sed \
|
|
||||||
-e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
|
|
||||||
"${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local cudadir=/opt/cuda
|
|
||||||
local ecudadir="${EPREFIX}${cudadir}"
|
|
||||||
local pathextradirs ldpathextradirs
|
|
||||||
dodir ${cudadir}
|
|
||||||
into ${cudadir}
|
|
||||||
|
|
||||||
# Install standard sub packages
|
|
||||||
local builddirs=(
|
|
||||||
builds/cuda_{cccl,cudart,cuobjdump,cuxxfilt,demo_suite,nvcc,nvdisasm,nvml_dev,nvprune,nvrtc,nvtx,opencl}
|
|
||||||
builds/lib{cublas,cufft,cufile,curand,cusolver,cusparse,npp,nvjitlink,nvjpeg}
|
|
||||||
builds/nvidia_fs
|
|
||||||
$(usex profiler "builds/cuda_nvprof builds/cuda_cupti builds/cuda_profiler_api" "")
|
|
||||||
$(usex vis-profiler "builds/cuda_nvvp" "")
|
|
||||||
$(usex debugger "builds/cuda_gdb" "")
|
|
||||||
)
|
|
||||||
|
|
||||||
local d f
|
|
||||||
for d in "${builddirs[@]}"; do
|
|
||||||
ebegin "Installing ${d}"
|
|
||||||
[[ -d ${d} ]] || die "Directory does not exist: ${d}"
|
|
||||||
|
|
||||||
if [[ -d ${d}/bin ]]; then
|
|
||||||
for f in ${d}/bin/*; do
|
|
||||||
if [[ -f ${f} ]]; then
|
|
||||||
dobin "${f}"
|
|
||||||
else
|
|
||||||
insinto ${cudadir}/bin
|
|
||||||
doins -r "${f}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
insinto ${cudadir}
|
|
||||||
if [[ -d ${d}/targets ]]; then
|
|
||||||
doins -r "${d}"/targets
|
|
||||||
fi
|
|
||||||
if [[ -d ${d}/share ]]; then
|
|
||||||
doins -r "${d}"/share
|
|
||||||
fi
|
|
||||||
if [[ -d ${d}/extras ]]; then
|
|
||||||
doins -r "${d}"/extras
|
|
||||||
fi
|
|
||||||
eend $?
|
|
||||||
done
|
|
||||||
dobin "${T}"/cuda-config
|
|
||||||
|
|
||||||
doins builds/EULA.txt
|
|
||||||
# nvml and nvvm need special handling
|
|
||||||
ebegin "Installing nvvm"
|
|
||||||
doins -r builds/cuda_nvcc/nvvm
|
|
||||||
fperms +x ${cudadir}/nvvm/bin/cicc
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
ebegin "Installing nvml"
|
|
||||||
doins -r builds/cuda_nvml_dev/nvml
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
if use sanitizer; then
|
|
||||||
ebegin "Installing sanitizer"
|
|
||||||
dobin builds/integration/Sanitizer/compute-sanitizer
|
|
||||||
doins -r builds/cuda_sanitizer_api/compute-sanitizer
|
|
||||||
# special handling for the executable
|
|
||||||
fperms +x ${cudadir}/compute-sanitizer/compute-sanitizer
|
|
||||||
eend $?
|
|
||||||
fi
|
|
||||||
|
|
||||||
use debugger && ldpathextradirs+=":${ecudadir}/extras/Debugger/lib64"
|
|
||||||
use profiler && ldpathextradirs+=":${ecudadir}/extras/CUPTI/lib64"
|
|
||||||
|
|
||||||
if use vis-profiler; then
|
|
||||||
ebegin "Installing libnvvp"
|
|
||||||
doins -r builds/cuda_nvvp/libnvvp
|
|
||||||
# special handling for the executable
|
|
||||||
fperms +x ${cudadir}/libnvvp/nvvp
|
|
||||||
eend $?
|
|
||||||
pathextradirs+=":${ecudadir}/libnvvp"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use nsight; then
|
|
||||||
local ncu_dir=$(grep -o 'nsight-compute-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
|
||||||
ebegin "Installing ${ncu_dir}"
|
|
||||||
mv builds/nsight_compute builds/${ncu_dir} || die
|
|
||||||
doins -r builds/${ncu_dir}
|
|
||||||
|
|
||||||
# check this list on every bump
|
|
||||||
local exes=(
|
|
||||||
${ncu_dir}/ncu
|
|
||||||
${ncu_dir}/ncu-ui
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/libexec/QtWebEngineProcess
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/CrashReporter
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/OpenGLVersionChecker
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/QdstrmImporter
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/ncu-ui
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/ncu-ui.bin
|
|
||||||
${ncu_dir}/target/linux-desktop-glibc_2_11_3-x64/TreeLauncherSubreaper
|
|
||||||
${ncu_dir}/target/linux-desktop-glibc_2_11_3-x64/TreeLauncherTargetLdPreloadHelper
|
|
||||||
${ncu_dir}/target/linux-desktop-glibc_2_11_3-x64/ncu
|
|
||||||
)
|
|
||||||
|
|
||||||
dobin builds/integration/nsight-compute/{ncu,ncu-ui}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
# remove rdma libs (unless USE=rdma)
|
|
||||||
if ! use rdma; then
|
|
||||||
rm -r "${ED}"/${cudadir}/${ncu_dir}/host/target-linux-x64/CollectX || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
local nsys_dir=$(grep -o 'nsight-systems-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
|
||||||
ebegin "Installing ${nsys_dir}"
|
|
||||||
mv builds/nsight_systems builds/${nsys_dir} || die
|
|
||||||
doins -r builds/${nsys_dir}
|
|
||||||
|
|
||||||
# check this list on every bump
|
|
||||||
exes+=(
|
|
||||||
${nsys_dir}/host-linux-x64/nsys-ui
|
|
||||||
${nsys_dir}/host-linux-x64/nsys-ui.bin
|
|
||||||
${nsys_dir}/host-linux-x64/ResolveSymbols
|
|
||||||
${nsys_dir}/host-linux-x64/ImportNvtxt
|
|
||||||
${nsys_dir}/host-linux-x64/CrashReporter
|
|
||||||
${nsys_dir}/host-linux-x64/QdstrmImporter
|
|
||||||
${nsys_dir}/host-linux-x64/libexec/QtWebEngineProcess
|
|
||||||
${nsys_dir}/target-linux-x64/nsys
|
|
||||||
${nsys_dir}/target-linux-x64/launcher
|
|
||||||
${nsys_dir}/target-linux-x64/nvgpucs
|
|
||||||
${nsys_dir}/target-linux-x64/nsys-launcher
|
|
||||||
${nsys_dir}/target-linux-x64/sqlite3
|
|
||||||
${nsys_dir}/target-linux-x64/python/bin/python
|
|
||||||
${nsys_dir}/target-linux-x64/CudaGpuInfoDumper
|
|
||||||
)
|
|
||||||
|
|
||||||
# remove rdma libs (unless USE=rdma)
|
|
||||||
if ! use rdma; then
|
|
||||||
rm -r "${ED}"/${cudadir}/${nsys_dir}/target-linux-x64/CollectX || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
dobin builds/integration/nsight-systems/{nsight-sys,nsys,nsys-ui}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
# nsight scripts and binaries need to have their executable bit set, #691284
|
|
||||||
for f in "${exes[@]}"; do
|
|
||||||
fperms +x ${cudadir}/${f}
|
|
||||||
done
|
|
||||||
|
|
||||||
# fix broken RPATHs
|
|
||||||
patchelf --set-rpath '$ORIGIN' \
|
|
||||||
"${ED}"/${cudadir}/${ncu_dir}/host/{linux-desktop-glibc_2_11_3-x64,target-linux-x64}/{libarrow.so,libparquet.so.500.0.0} || die
|
|
||||||
patchelf --set-rpath '$ORIGIN' \
|
|
||||||
"${ED}"/${cudadir}/${nsys_dir}/{host-linux-x64,target-linux-x64}/{libarrow.so,libparquet.so.500.0.0} || die
|
|
||||||
|
|
||||||
# remove foreign archs (triggers SONAME warning, #749903)
|
|
||||||
rm -r "${ED}"/${cudadir}/${ncu_dir}/target/linux-desktop-t210-a64 || die
|
|
||||||
|
|
||||||
# unbundle libstdc++
|
|
||||||
rm "${ED}"/${cudadir}/${nsys_dir}/host-linux-x64/libstdc++.so.6 || die
|
|
||||||
|
|
||||||
# unbundle openssl
|
|
||||||
rm "${ED}"/${cudadir}/${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/lib{crypto,ssl}.so* || die
|
|
||||||
rm "${ED}"/${cudadir}/${nsys_dir}/host-linux-x64/lib{crypto,ssl}.so* || die
|
|
||||||
|
|
||||||
# unbundle libpfm
|
|
||||||
rm "${ED}"/${cudadir}/${nsys_dir}/host-linux-x64/libpfm.so* || die
|
|
||||||
|
|
||||||
# TODO: unbundle qt5
|
|
||||||
# TODO: unbundle boost
|
|
||||||
# TODO: unbundle icu
|
|
||||||
# TODO: unbundle mesa
|
|
||||||
# TODO: unbundle libSshClient
|
|
||||||
# TODO: unbundle sqlite
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
local exes=(
|
|
||||||
extras/demo_suite/bandwidthTest
|
|
||||||
extras/demo_suite/busGrind
|
|
||||||
extras/demo_suite/deviceQuery
|
|
||||||
extras/demo_suite/nbody
|
|
||||||
extras/demo_suite/oceanFFT
|
|
||||||
extras/demo_suite/randomFog
|
|
||||||
extras/demo_suite/vectorAdd
|
|
||||||
)
|
|
||||||
|
|
||||||
# set executable bit on demo_suite binaries
|
|
||||||
for f in "${exes[@]}"; do
|
|
||||||
fperms +x ${cudadir}/${f}
|
|
||||||
done
|
|
||||||
else
|
|
||||||
rm -r "${ED}"/${cudadir}/extras/demo_suite || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove rdma libs (unless USE=rdma)
|
|
||||||
if ! use rdma; then
|
|
||||||
rm "${ED}"/${cudadir}/targets/x86_64-linux/lib/libcufile_rdma* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Add include and lib symlinks
|
|
||||||
dosym targets/x86_64-linux/include ${cudadir}/include
|
|
||||||
dosym targets/x86_64-linux/lib ${cudadir}/lib64
|
|
||||||
|
|
||||||
# Remove bad symlinks
|
|
||||||
rm "${ED}"/${cudadir}/targets/x86_64-linux/include/include || die
|
|
||||||
rm "${ED}"/${cudadir}/targets/x86_64-linux/lib/lib64 || die
|
|
||||||
|
|
||||||
# Remove dead gdb plugins
|
|
||||||
if use debugger; then
|
|
||||||
rm "${ED}"/${cudadir}/bin/cuda-gdb-python3.{8,9}-tui || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
newenvd - 99cuda <<-EOF
|
|
||||||
PATH=${ecudadir}/bin${pathextradirs}
|
|
||||||
ROOTPATH=${ecudadir}/bin
|
|
||||||
LDPATH=${ecudadir}/lib64:${ecudadir}/nvvm/lib64${ldpathextradirs}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Cuda prepackages libraries, don't revdep-build on them
|
|
||||||
insinto /etc/revdep-rebuild
|
|
||||||
newins - 80${PN} <<-EOF
|
|
||||||
SEARCH_DIRS_MASK="${ecudadir}"
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# https://bugs.gentoo.org/926116
|
|
||||||
insinto /etc/sandbox.d
|
|
||||||
newins - 80${PN} <<-EOF
|
|
||||||
SANDBOX_PREDICT="/proc/self/task"
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst_check() {
|
|
||||||
local a="$("${EROOT}"/opt/cuda/bin/cuda-config -s)"
|
|
||||||
local b="0.0"
|
|
||||||
local v
|
|
||||||
for v in ${a}; do
|
|
||||||
ver_test "${v}" -gt "${b}" && b="${v}"
|
|
||||||
done
|
|
||||||
|
|
||||||
# if gcc and if not gcc-version is at least greatest supported
|
|
||||||
if tc-is-gcc && \
|
|
||||||
ver_test $(gcc-version) -gt "${b}"; then
|
|
||||||
ewarn
|
|
||||||
ewarn "gcc > ${b} will not work with CUDA"
|
|
||||||
ewarn "Make sure you set an earlier version of gcc with gcc-config"
|
|
||||||
ewarn "or append --compiler-bindir= pointing to a gcc bindir like"
|
|
||||||
ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
|
|
||||||
ewarn "to the nvcc compiler flags"
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
|
||||||
pkg_postinst_check
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use profiler || use nsight; then
|
|
||||||
einfo
|
|
||||||
einfo "nvidia-drivers restrict access to performance counters."
|
|
||||||
einfo "You'll need to either run profiling tools (nvprof, nsight) "
|
|
||||||
einfo "using sudo (needs cap SYS_ADMIN) or add the following line to "
|
|
||||||
einfo "a modprobe configuration file "
|
|
||||||
einfo "(e.g. /etc/modprobe.d/nvidia-prof.conf): "
|
|
||||||
einfo
|
|
||||||
einfo "options nvidia NVreg_RestrictProfilingToAdminUsers=0"
|
|
||||||
einfo
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,328 +0,0 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit check-reqs toolchain-funcs unpacker
|
|
||||||
|
|
||||||
DRIVER_PV="560.35.03"
|
|
||||||
|
|
||||||
DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)"
|
|
||||||
HOMEPAGE="https://developer.nvidia.com/cuda-zone"
|
|
||||||
SRC_URI="https://developer.download.nvidia.com/compute/cuda/${PV}/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run"
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
LICENSE="NVIDIA-CUDA"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
KEYWORDS="-* ~amd64 ~amd64-linux"
|
|
||||||
IUSE="debugger examples nsight profiler rdma vis-profiler sanitizer"
|
|
||||||
RESTRICT="bindist mirror"
|
|
||||||
|
|
||||||
# since CUDA 11, the bundled toolkit driver (== ${DRIVER_PV}) and the
|
|
||||||
# actual required minimum driver version are different.
|
|
||||||
RDEPEND="
|
|
||||||
<sys-devel/gcc-14_pre[cxx]
|
|
||||||
virtual/libcrypt
|
|
||||||
examples? (
|
|
||||||
media-libs/freeglut
|
|
||||||
media-libs/glu
|
|
||||||
)
|
|
||||||
nsight? (
|
|
||||||
app-crypt/mit-krb5
|
|
||||||
dev-libs/libpfm
|
|
||||||
dev-libs/wayland
|
|
||||||
dev-qt/qtwayland:6
|
|
||||||
>=dev-libs/openssl-3
|
|
||||||
media-libs/tiff-compat:4
|
|
||||||
sys-libs/zlib
|
|
||||||
)
|
|
||||||
rdma? ( sys-cluster/rdma-core )
|
|
||||||
vis-profiler? (
|
|
||||||
>=virtual/jre-1.8:*
|
|
||||||
)"
|
|
||||||
BDEPEND="nsight? ( dev-util/patchelf )"
|
|
||||||
|
|
||||||
QA_PREBUILT="opt/cuda/*"
|
|
||||||
CHECKREQS_DISK_BUILD="15000M"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
check-reqs_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# ATTENTION: change requires revbump, see link below for supported GCC # versions
|
|
||||||
# https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements
|
|
||||||
local cuda_supported_gcc="8.5 9.5 10 11 12 13"
|
|
||||||
|
|
||||||
sed \
|
|
||||||
-e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
|
|
||||||
"${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local cudadir=/opt/cuda
|
|
||||||
local ecudadir="${EPREFIX}${cudadir}"
|
|
||||||
local pathextradirs ldpathextradirs
|
|
||||||
dodir ${cudadir}
|
|
||||||
into ${cudadir}
|
|
||||||
|
|
||||||
# Install standard sub packages
|
|
||||||
local builddirs=(
|
|
||||||
builds/cuda_{cccl,cudart,cuobjdump,cuxxfilt,demo_suite,nvcc,nvdisasm,nvml_dev,nvprune,nvrtc,nvtx,opencl}
|
|
||||||
builds/lib{cublas,cufft,cufile,curand,cusolver,cusparse,npp,nvjitlink,nvjpeg}
|
|
||||||
builds/nvidia_fs
|
|
||||||
$(usex profiler "builds/cuda_nvprof builds/cuda_cupti builds/cuda_profiler_api" "")
|
|
||||||
$(usex vis-profiler "builds/cuda_nvvp" "")
|
|
||||||
$(usex debugger "builds/cuda_gdb" "")
|
|
||||||
)
|
|
||||||
|
|
||||||
local d f
|
|
||||||
for d in "${builddirs[@]}"; do
|
|
||||||
ebegin "Installing ${d}"
|
|
||||||
[[ -d ${d} ]] || die "Directory does not exist: ${d}"
|
|
||||||
|
|
||||||
if [[ -d ${d}/bin ]]; then
|
|
||||||
for f in ${d}/bin/*; do
|
|
||||||
if [[ -f ${f} ]]; then
|
|
||||||
dobin "${f}"
|
|
||||||
else
|
|
||||||
insinto ${cudadir}/bin
|
|
||||||
doins -r "${f}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
insinto ${cudadir}
|
|
||||||
if [[ -d ${d}/targets ]]; then
|
|
||||||
doins -r "${d}"/targets
|
|
||||||
fi
|
|
||||||
if [[ -d ${d}/share ]]; then
|
|
||||||
doins -r "${d}"/share
|
|
||||||
fi
|
|
||||||
if [[ -d ${d}/extras ]]; then
|
|
||||||
doins -r "${d}"/extras
|
|
||||||
fi
|
|
||||||
eend $?
|
|
||||||
done
|
|
||||||
dobin "${T}"/cuda-config
|
|
||||||
|
|
||||||
doins builds/EULA.txt
|
|
||||||
# nvml and nvvm need special handling
|
|
||||||
ebegin "Installing nvvm"
|
|
||||||
doins -r builds/cuda_nvcc/nvvm
|
|
||||||
fperms +x ${cudadir}/nvvm/bin/cicc
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
ebegin "Installing nvml"
|
|
||||||
doins -r builds/cuda_nvml_dev/nvml
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
if use sanitizer; then
|
|
||||||
ebegin "Installing sanitizer"
|
|
||||||
dobin builds/integration/Sanitizer/compute-sanitizer
|
|
||||||
doins -r builds/cuda_sanitizer_api/compute-sanitizer
|
|
||||||
# special handling for the executable
|
|
||||||
fperms +x ${cudadir}/compute-sanitizer/compute-sanitizer
|
|
||||||
eend $?
|
|
||||||
fi
|
|
||||||
|
|
||||||
use debugger && ldpathextradirs+=":${ecudadir}/extras/Debugger/lib64"
|
|
||||||
use profiler && ldpathextradirs+=":${ecudadir}/extras/CUPTI/lib64"
|
|
||||||
|
|
||||||
if use vis-profiler; then
|
|
||||||
ebegin "Installing libnvvp"
|
|
||||||
doins -r builds/cuda_nvvp/libnvvp
|
|
||||||
# special handling for the executable
|
|
||||||
fperms +x ${cudadir}/libnvvp/nvvp
|
|
||||||
eend $?
|
|
||||||
pathextradirs+=":${ecudadir}/libnvvp"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use nsight; then
|
|
||||||
local ncu_dir=$(grep -o 'nsight-compute-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
|
||||||
ebegin "Installing ${ncu_dir}"
|
|
||||||
mv builds/nsight_compute builds/${ncu_dir} || die
|
|
||||||
doins -r builds/${ncu_dir}
|
|
||||||
|
|
||||||
# check this list on every bump
|
|
||||||
local exes=(
|
|
||||||
${ncu_dir}/ncu
|
|
||||||
${ncu_dir}/ncu-ui
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/libexec/QtWebEngineProcess
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/CrashReporter
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/OpenGLVersionChecker
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/QdstrmImporter
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/ncu-ui
|
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/ncu-ui.bin
|
|
||||||
${ncu_dir}/target/linux-desktop-glibc_2_11_3-x64/TreeLauncherSubreaper
|
|
||||||
${ncu_dir}/target/linux-desktop-glibc_2_11_3-x64/TreeLauncherTargetLdPreloadHelper
|
|
||||||
${ncu_dir}/target/linux-desktop-glibc_2_11_3-x64/ncu
|
|
||||||
)
|
|
||||||
|
|
||||||
dobin builds/integration/nsight-compute/{ncu,ncu-ui}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
# remove rdma libs (unless USE=rdma)
|
|
||||||
if ! use rdma; then
|
|
||||||
rm -r "${ED}"/${cudadir}/${ncu_dir}/host/target-linux-x64/CollectX || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
local nsys_dir=$(grep -o 'nsight-systems-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
|
||||||
ebegin "Installing ${nsys_dir}"
|
|
||||||
mv builds/nsight_systems builds/${nsys_dir} || die
|
|
||||||
doins -r builds/${nsys_dir}
|
|
||||||
|
|
||||||
# check this list on every bump
|
|
||||||
exes+=(
|
|
||||||
${nsys_dir}/host-linux-x64/nsys-ui
|
|
||||||
${nsys_dir}/host-linux-x64/nsys-ui.bin
|
|
||||||
${nsys_dir}/host-linux-x64/ResolveSymbols
|
|
||||||
${nsys_dir}/host-linux-x64/ImportNvtxt
|
|
||||||
${nsys_dir}/host-linux-x64/CrashReporter
|
|
||||||
${nsys_dir}/host-linux-x64/QdstrmImporter
|
|
||||||
${nsys_dir}/host-linux-x64/libexec/QtWebEngineProcess
|
|
||||||
${nsys_dir}/target-linux-x64/nsys
|
|
||||||
${nsys_dir}/target-linux-x64/launcher
|
|
||||||
${nsys_dir}/target-linux-x64/nvgpucs
|
|
||||||
${nsys_dir}/target-linux-x64/nsys-launcher
|
|
||||||
${nsys_dir}/target-linux-x64/sqlite3
|
|
||||||
${nsys_dir}/target-linux-x64/python/bin/python
|
|
||||||
${nsys_dir}/target-linux-x64/CudaGpuInfoDumper
|
|
||||||
)
|
|
||||||
|
|
||||||
# remove rdma libs (unless USE=rdma)
|
|
||||||
if ! use rdma; then
|
|
||||||
rm -r "${ED}"/${cudadir}/${nsys_dir}/target-linux-x64/CollectX || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
dobin builds/integration/nsight-systems/{nsight-sys,nsys,nsys-ui}
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
# nsight scripts and binaries need to have their executable bit set, #691284
|
|
||||||
for f in "${exes[@]}"; do
|
|
||||||
fperms +x ${cudadir}/${f}
|
|
||||||
done
|
|
||||||
|
|
||||||
# fix broken RPATHs
|
|
||||||
patchelf --set-rpath '$ORIGIN' \
|
|
||||||
"${ED}"/${cudadir}/${ncu_dir}/host/{linux-desktop-glibc_2_11_3-x64,target-linux-x64}/{libarrow.so,libparquet.so.500.0.0} || die
|
|
||||||
patchelf --set-rpath '$ORIGIN' \
|
|
||||||
"${ED}"/${cudadir}/${nsys_dir}/{host-linux-x64,target-linux-x64}/{libarrow.so,libparquet.so.500.0.0} || die
|
|
||||||
|
|
||||||
# remove foreign archs (triggers SONAME warning, #749903)
|
|
||||||
rm -r "${ED}"/${cudadir}/${ncu_dir}/target/linux-desktop-t210-a64 || die
|
|
||||||
|
|
||||||
# unbundle libstdc++
|
|
||||||
rm "${ED}"/${cudadir}/${nsys_dir}/host-linux-x64/libstdc++.so.6 || die
|
|
||||||
|
|
||||||
# unbundle openssl
|
|
||||||
rm "${ED}"/${cudadir}/${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/lib{crypto,ssl}.so* || die
|
|
||||||
rm "${ED}"/${cudadir}/${nsys_dir}/host-linux-x64/lib{crypto,ssl}.so* || die
|
|
||||||
|
|
||||||
# unbundle libpfm
|
|
||||||
rm "${ED}"/${cudadir}/${nsys_dir}/host-linux-x64/libpfm.so* || die
|
|
||||||
|
|
||||||
# TODO: unbundle qt5
|
|
||||||
# TODO: unbundle boost
|
|
||||||
# TODO: unbundle icu
|
|
||||||
# TODO: unbundle mesa
|
|
||||||
# TODO: unbundle libSshClient
|
|
||||||
# TODO: unbundle sqlite
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
local exes=(
|
|
||||||
extras/demo_suite/bandwidthTest
|
|
||||||
extras/demo_suite/busGrind
|
|
||||||
extras/demo_suite/deviceQuery
|
|
||||||
extras/demo_suite/nbody
|
|
||||||
extras/demo_suite/oceanFFT
|
|
||||||
extras/demo_suite/randomFog
|
|
||||||
extras/demo_suite/vectorAdd
|
|
||||||
)
|
|
||||||
|
|
||||||
# set executable bit on demo_suite binaries
|
|
||||||
for f in "${exes[@]}"; do
|
|
||||||
fperms +x ${cudadir}/${f}
|
|
||||||
done
|
|
||||||
else
|
|
||||||
rm -r "${ED}"/${cudadir}/extras/demo_suite || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove rdma libs (unless USE=rdma)
|
|
||||||
if ! use rdma; then
|
|
||||||
rm "${ED}"/${cudadir}/targets/x86_64-linux/lib/libcufile_rdma* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Add include and lib symlinks
|
|
||||||
dosym targets/x86_64-linux/include ${cudadir}/include
|
|
||||||
dosym targets/x86_64-linux/lib ${cudadir}/lib64
|
|
||||||
|
|
||||||
# Remove bad symlinks
|
|
||||||
rm "${ED}"/${cudadir}/targets/x86_64-linux/include/include || die
|
|
||||||
rm "${ED}"/${cudadir}/targets/x86_64-linux/lib/lib64 || die
|
|
||||||
|
|
||||||
# Remove dead gdb plugins
|
|
||||||
if use debugger; then
|
|
||||||
rm "${ED}"/${cudadir}/bin/cuda-gdb-python3.{8,9}-tui || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
newenvd - 99cuda <<-EOF
|
|
||||||
PATH=${ecudadir}/bin${pathextradirs}
|
|
||||||
ROOTPATH=${ecudadir}/bin
|
|
||||||
LDPATH=${ecudadir}/lib64:${ecudadir}/nvvm/lib64${ldpathextradirs}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Cuda prepackages libraries, don't revdep-build on them
|
|
||||||
insinto /etc/revdep-rebuild
|
|
||||||
newins - 80${PN} <<-EOF
|
|
||||||
SEARCH_DIRS_MASK="${ecudadir}"
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# https://bugs.gentoo.org/926116
|
|
||||||
insinto /etc/sandbox.d
|
|
||||||
newins - 80${PN} <<-EOF
|
|
||||||
SANDBOX_PREDICT="/proc/self/task"
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst_check() {
|
|
||||||
local a="$("${EROOT}"/opt/cuda/bin/cuda-config -s)"
|
|
||||||
local b="0.0"
|
|
||||||
local v
|
|
||||||
for v in ${a}; do
|
|
||||||
ver_test "${v}" -gt "${b}" && b="${v}"
|
|
||||||
done
|
|
||||||
|
|
||||||
# if gcc and if not gcc-version is at least greatest supported
|
|
||||||
if tc-is-gcc && \
|
|
||||||
ver_test $(gcc-version) -gt "${b}"; then
|
|
||||||
ewarn
|
|
||||||
ewarn "gcc > ${b} will not work with CUDA"
|
|
||||||
ewarn "Make sure you set an earlier version of gcc with gcc-config"
|
|
||||||
ewarn "or append --compiler-bindir= pointing to a gcc bindir like"
|
|
||||||
ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
|
|
||||||
ewarn "to the nvcc compiler flags"
|
|
||||||
ewarn
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
|
||||||
pkg_postinst_check
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use profiler || use nsight; then
|
|
||||||
einfo
|
|
||||||
einfo "nvidia-drivers restrict access to performance counters."
|
|
||||||
einfo "You'll need to either run profiling tools (nvprof, nsight) "
|
|
||||||
einfo "using sudo (needs cap SYS_ADMIN) or add the following line to "
|
|
||||||
einfo "a modprobe configuration file "
|
|
||||||
einfo "(e.g. /etc/modprobe.d/nvidia-prof.conf): "
|
|
||||||
einfo
|
|
||||||
einfo "options nvidia NVreg_RestrictProfilingToAdminUsers=0"
|
|
||||||
einfo
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,2 +1 @@
|
|||||||
DIST lazygit-0.44.1.tar.gz 4731978 BLAKE2B 97a1f518f61127802ffde18f5c976c0e82af9c7d4fc0739fab5d28b4c5e0ca57237986c9ad63fe26bf4b7a87821a565ed9265f5dbb64b5219328025455d87f75 SHA512 036b17618c9bc4c436a9d08dd62b7553293a414ed3ac852c7a7edb39f20de86fb405d111391856bc4bf542e7d3ac163481e267249433705f40c7bc6eb83805ac
|
|
||||||
DIST lazygit-0.45.0.tar.gz 4762115 BLAKE2B 0c341599b721a742362919f80c7e75f40b3fd97b238f54b3599f07896f876ad87b971a341eeea954ba840a57dbe0f0e52c6b775c7088238ca7cdaf1dcd22f6d9 SHA512 cf91a32b2d505d36c4e84bfa4d3d98a901845ce9e9f6c1aebaf680d7a861bcabd737fad4119f33881198a63fcee879f534fa597f12ae32e6c689fc60276ccf8c
|
DIST lazygit-0.45.0.tar.gz 4762115 BLAKE2B 0c341599b721a742362919f80c7e75f40b3fd97b238f54b3599f07896f876ad87b971a341eeea954ba840a57dbe0f0e52c6b775c7088238ca7cdaf1dcd22f6d9 SHA512 cf91a32b2d505d36c4e84bfa4d3d98a901845ce9e9f6c1aebaf680d7a861bcabd737fad4119f33881198a63fcee879f534fa597f12ae32e6c689fc60276ccf8c
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit go-module
|
|
||||||
|
|
||||||
DESCRIPTION="Simple terminal UI for git commands"
|
|
||||||
HOMEPAGE="https://github.com/jesseduffield/lazygit"
|
|
||||||
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0 BSD ISC MIT Unlicense"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm64"
|
|
||||||
|
|
||||||
RDEPEND="dev-vcs/git"
|
|
||||||
|
|
||||||
DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs )
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
ego build -o bin/lazygit \
|
|
||||||
-ldflags "-X main.version=${PV}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
ego test ./... -short
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin bin/lazygit
|
|
||||||
einstalldocs
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
BDEPEND=>=dev-lang/go-1.20:= app-arch/unzip
|
|
||||||
DEFINED_PHASES=compile install unpack
|
|
||||||
DESCRIPTION=The lazier way to manage everything docker
|
|
||||||
EAPI=8
|
|
||||||
HOMEPAGE=https://github.com/jesseduffield/lazydocker
|
|
||||||
INHERIT=go-module
|
|
||||||
KEYWORDS=~amd64 ~arm64
|
|
||||||
LICENSE=Apache-2.0 BSD ISC MIT Unlicense
|
|
||||||
RDEPEND=>=app-containers/docker-cli-1.13 >=app-containers/docker-compose-1.23.2
|
|
||||||
RESTRICT=strip
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=https://github.com/jesseduffield/lazydocker/archive/v0.23.3.tar.gz -> lazydocker-0.23.3.tar.gz
|
|
||||||
_eclasses_=multiprocessing 1e32df7deee68372153dca65f4a7c21f toolchain-funcs 14648d8795f7779e11e1bc7cf08b7536 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe go-env 90efbc8636d2f02d9654183330e84cf7 go-module df32d29550d40a92da723d3b8e17b467
|
|
||||||
_md5_=1af01ff37138970f9042051124cbcf82
|
|
@ -1,13 +0,0 @@
|
|||||||
DEFINED_PHASES=install unpack
|
|
||||||
DESCRIPTION=NVIDIA Accelerated Deep Learning on GPU library
|
|
||||||
EAPI=8
|
|
||||||
HOMEPAGE=https://developer.nvidia.com/cudnn
|
|
||||||
INHERIT=unpacker
|
|
||||||
KEYWORDS=-* ~amd64 ~amd64-linux
|
|
||||||
LICENSE=NVIDIA-cuDNN
|
|
||||||
RDEPEND==dev-util/nvidia-cuda-toolkit-12*
|
|
||||||
RESTRICT=mirror
|
|
||||||
SLOT=0/9
|
|
||||||
SRC_URI=https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-9.4.0.58_cuda12-archive.tar.xz
|
|
||||||
_eclasses_=multiprocessing 1e32df7deee68372153dca65f4a7c21f toolchain-funcs 14648d8795f7779e11e1bc7cf08b7536 multilib b2a329026f2e404e9e371097dda47f96 unpacker fb4b84181244b3b9990fa0bf40232dd2
|
|
||||||
_md5_=c3d0794b82e576897961ec2ff1b72724
|
|
@ -1,13 +0,0 @@
|
|||||||
DEFINED_PHASES=install unpack
|
|
||||||
DESCRIPTION=NVIDIA Accelerated Deep Learning on GPU library
|
|
||||||
EAPI=8
|
|
||||||
HOMEPAGE=https://developer.nvidia.com/cudnn
|
|
||||||
INHERIT=unpacker
|
|
||||||
KEYWORDS=-* ~amd64 ~amd64-linux
|
|
||||||
LICENSE=NVIDIA-cuDNN
|
|
||||||
RDEPEND==dev-util/nvidia-cuda-toolkit-12*
|
|
||||||
RESTRICT=mirror
|
|
||||||
SLOT=0/9
|
|
||||||
SRC_URI=https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-9.5.1.17_cuda12-archive.tar.xz
|
|
||||||
_eclasses_=multiprocessing 1e32df7deee68372153dca65f4a7c21f toolchain-funcs 14648d8795f7779e11e1bc7cf08b7536 multilib b2a329026f2e404e9e371097dda47f96 unpacker fb4b84181244b3b9990fa0bf40232dd2
|
|
||||||
_md5_=c3d0794b82e576897961ec2ff1b72724
|
|
@ -1,17 +0,0 @@
|
|||||||
BDEPEND=dev-util/glib-utils virtual/pkgconfig gtk-doc? ( dev-util/gi-docgen ) qt5? ( test? ( dev-qt/linguist-tools ) ) test? ( || ( dev-lang/python:3.13 dev-lang/python:3.12 dev-lang/python:3.11 dev-lang/python:3.10 ) || ( ( dev-lang/python:3.13 dev-python/pytest[python_targets_python3_13(-)] dev-python/dbus-python[python_targets_python3_13(-)] dev-python/python-dbusmock[python_targets_python3_13(-)] ) ( dev-lang/python:3.12 dev-python/pytest[python_targets_python3_12(-)] dev-python/dbus-python[python_targets_python3_12(-)] dev-python/python-dbusmock[python_targets_python3_12(-)] ) ( dev-lang/python:3.11 dev-python/pytest[python_targets_python3_11(-)] dev-python/dbus-python[python_targets_python3_11(-)] dev-python/python-dbusmock[python_targets_python3_11(-)] ) ( dev-lang/python:3.10 dev-python/pytest[python_targets_python3_10(-)] dev-python/dbus-python[python_targets_python3_10(-)] dev-python/python-dbusmock[python_targets_python3_10(-)] ) ) ) vala? ( || ( dev-lang/vala:0.56 ) ) >=dev-build/meson-1.2.3 app-alternatives/ninja dev-build/meson-format-array test? ( x11-base/xorg-server[xvfb] x11-apps/xhost )
|
|
||||||
DEFINED_PHASES=compile configure install prepare setup test
|
|
||||||
DEPEND=>=dev-libs/glib-2.58:2 introspection? ( dev-libs/gobject-introspection:= ) gtk? ( >=x11-libs/gtk+-3.24.41-r1:3[X?,wayland?] >=gui-libs/gtk-4.12.5-r2:4[X?,wayland?] ) qt5? ( dev-qt/qtcore:= dev-qt/qtgui:= dev-qt/qtx11extras:= dev-qt/qtwidgets:= ) qt5? ( test? ( dev-qt/qttest:= ) )
|
|
||||||
DESCRIPTION=Flatpak portal library
|
|
||||||
EAPI=8
|
|
||||||
HOMEPAGE=https://github.com/flatpak/libportal
|
|
||||||
INHERIT=flag-o-matic meson python-any-r1 vala virtualx
|
|
||||||
IUSE=gtk gtk-doc +introspection qt5 test +vala wayland X test
|
|
||||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86
|
|
||||||
LICENSE=LGPL-3
|
|
||||||
RDEPEND=>=dev-libs/glib-2.58:2 introspection? ( dev-libs/gobject-introspection:= ) gtk? ( >=x11-libs/gtk+-3.24.41-r1:3[X?,wayland?] >=gui-libs/gtk-4.12.5-r2:4[X?,wayland?] ) qt5? ( dev-qt/qtcore:= dev-qt/qtgui:= dev-qt/qtx11extras:= dev-qt/qtwidgets:= )
|
|
||||||
REQUIRED_USE=gtk-doc? ( introspection ) vala? ( introspection )
|
|
||||||
RESTRICT=!test? ( test ) !test? ( test )
|
|
||||||
SLOT=0/1-1-1-1
|
|
||||||
SRC_URI=https://github.com/flatpak/libportal/releases/download/0.8.1/libportal-0.8.1.tar.xz
|
|
||||||
_eclasses_=toolchain-funcs 14648d8795f7779e11e1bc7cf08b7536 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 python-utils-r1 42c5abe4a656a4993a06a4fc61dbdd12 meson 99466844dd8d4fcfb07578a76f5a9922 python-any-r1 6ddb5e75c10db046f89ebe39c85e1d82 vala e477903dbe0105930c51f170a592dc16 virtualx 9741d451eb64ea8bb9faee90d68a9b68
|
|
||||||
_md5_=baee074b69f0bd032d0c4d8a9cb6bcc2
|
|
@ -1,15 +0,0 @@
|
|||||||
BDEPEND=nsight? ( dev-util/patchelf )
|
|
||||||
DEFINED_PHASES=install postinst prepare pretend setup unpack
|
|
||||||
DESCRIPTION=NVIDIA CUDA Toolkit (compiler and friends)
|
|
||||||
EAPI=8
|
|
||||||
HOMEPAGE=https://developer.nvidia.com/cuda-zone
|
|
||||||
INHERIT=check-reqs toolchain-funcs unpacker
|
|
||||||
IUSE=debugger examples nsight profiler rdma vis-profiler sanitizer
|
|
||||||
KEYWORDS=-* ~amd64 ~amd64-linux
|
|
||||||
LICENSE=NVIDIA-CUDA
|
|
||||||
RDEPEND=<sys-devel/gcc-14_pre[cxx] virtual/libcrypt examples? ( media-libs/freeglut media-libs/glu ) nsight? ( app-crypt/mit-krb5 dev-libs/libpfm dev-libs/wayland dev-qt/qtwayland:6 >=dev-libs/openssl-3 media-libs/tiff-compat:4 sys-libs/zlib ) rdma? ( sys-cluster/rdma-core ) vis-profiler? ( >=virtual/jre-1.8:* )
|
|
||||||
RESTRICT=bindist mirror
|
|
||||||
SLOT=0/12.6.1
|
|
||||||
SRC_URI=https://developer.download.nvidia.com/compute/cuda/12.6.1/local_installers/cuda_12.6.1_560.35.03_linux.run
|
|
||||||
_eclasses_=check-reqs 2a9731073c152554078a9a8df8fc0f1b toolchain-funcs 14648d8795f7779e11e1bc7cf08b7536 multilib b2a329026f2e404e9e371097dda47f96 multiprocessing 1e32df7deee68372153dca65f4a7c21f unpacker fb4b84181244b3b9990fa0bf40232dd2
|
|
||||||
_md5_=613c71dbd1db215587f5e8c2b53e02b2
|
|
@ -1,15 +0,0 @@
|
|||||||
BDEPEND=nsight? ( dev-util/patchelf )
|
|
||||||
DEFINED_PHASES=install postinst prepare pretend setup unpack
|
|
||||||
DESCRIPTION=NVIDIA CUDA Toolkit (compiler and friends)
|
|
||||||
EAPI=8
|
|
||||||
HOMEPAGE=https://developer.nvidia.com/cuda-zone
|
|
||||||
INHERIT=check-reqs toolchain-funcs unpacker
|
|
||||||
IUSE=debugger examples nsight profiler rdma vis-profiler sanitizer
|
|
||||||
KEYWORDS=-* ~amd64 ~amd64-linux
|
|
||||||
LICENSE=NVIDIA-CUDA
|
|
||||||
RDEPEND=<sys-devel/gcc-14_pre[cxx] virtual/libcrypt examples? ( media-libs/freeglut media-libs/glu ) nsight? ( app-crypt/mit-krb5 dev-libs/libpfm dev-libs/wayland dev-qt/qtwayland:6 >=dev-libs/openssl-3 media-libs/tiff-compat:4 sys-libs/zlib ) rdma? ( sys-cluster/rdma-core ) vis-profiler? ( >=virtual/jre-1.8:* )
|
|
||||||
RESTRICT=bindist mirror
|
|
||||||
SLOT=0/12.6.2
|
|
||||||
SRC_URI=https://developer.download.nvidia.com/compute/cuda/12.6.2/local_installers/cuda_12.6.2_560.35.03_linux.run
|
|
||||||
_eclasses_=check-reqs 2a9731073c152554078a9a8df8fc0f1b toolchain-funcs 14648d8795f7779e11e1bc7cf08b7536 multilib b2a329026f2e404e9e371097dda47f96 multiprocessing 1e32df7deee68372153dca65f4a7c21f unpacker fb4b84181244b3b9990fa0bf40232dd2
|
|
||||||
_md5_=613c71dbd1db215587f5e8c2b53e02b2
|
|
@ -1,14 +0,0 @@
|
|||||||
BDEPEND=>=dev-lang/go-1.20:= app-arch/unzip
|
|
||||||
DEFINED_PHASES=compile install test unpack
|
|
||||||
DESCRIPTION=Simple terminal UI for git commands
|
|
||||||
EAPI=8
|
|
||||||
HOMEPAGE=https://github.com/jesseduffield/lazygit
|
|
||||||
INHERIT=go-module
|
|
||||||
KEYWORDS=~amd64 ~arm64
|
|
||||||
LICENSE=Apache-2.0 BSD ISC MIT Unlicense
|
|
||||||
RDEPEND=dev-vcs/git
|
|
||||||
RESTRICT=strip
|
|
||||||
SLOT=0
|
|
||||||
SRC_URI=https://github.com/jesseduffield/lazygit/archive/v0.44.1.tar.gz -> lazygit-0.44.1.tar.gz
|
|
||||||
_eclasses_=multiprocessing 1e32df7deee68372153dca65f4a7c21f toolchain-funcs 14648d8795f7779e11e1bc7cf08b7536 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe go-env 90efbc8636d2f02d9654183330e84cf7 go-module df32d29550d40a92da723d3b8e17b467
|
|
||||||
_md5_=0bac9dced99b1fff4702aa6ea02d7791
|
|
Loading…
x
Reference in New Issue
Block a user