String formatting
This commit is contained in:
parent
5c95e50803
commit
99298f2203
@ -5,5 +5,5 @@ EAPI=8
|
|||||||
|
|
||||||
inherit acct-group
|
inherit acct-group
|
||||||
|
|
||||||
DESCRIPTION="A group for ollama"
|
DESCRIPTION='A group for ollama'
|
||||||
ACCT_GROUP_ID=-1
|
ACCT_GROUP_ID=-1
|
||||||
|
@ -5,7 +5,7 @@ EAPI=8
|
|||||||
|
|
||||||
inherit acct-user
|
inherit acct-user
|
||||||
|
|
||||||
DESCRIPTION="A user for ollama"
|
DESCRIPTION='A user for ollama'
|
||||||
ACCT_USER_ID=-1
|
ACCT_USER_ID=-1
|
||||||
ACCT_USER_HOME=/var/lib/ollama
|
ACCT_USER_HOME=/var/lib/ollama
|
||||||
ACCT_USER_HOME_PERMS=0700
|
ACCT_USER_HOME_PERMS=0700
|
||||||
|
@ -5,27 +5,25 @@ EAPI=8
|
|||||||
|
|
||||||
inherit go-module
|
inherit go-module
|
||||||
|
|
||||||
DESCRIPTION="The lazier way to manage everything docker"
|
DESCRIPTION='The lazier way to manage everything docker'
|
||||||
HOMEPAGE="https://github.com/jesseduffield/lazydocker"
|
HOMEPAGE='https://github.com/jesseduffield/lazydocker'
|
||||||
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
S="${WORKDIR}/${P}"
|
S="${WORKDIR}/${P}"
|
||||||
|
|
||||||
LICENSE="Apache-2.0 BSD ISC MIT Unlicense"
|
LICENSE='Apache-2.0 BSD ISC MIT Unlicense'
|
||||||
SLOT="0"
|
SLOT='0'
|
||||||
KEYWORDS="~amd64 ~arm64"
|
KEYWORDS='~amd64 ~arm64'
|
||||||
|
|
||||||
RDEPEND=">=app-containers/docker-cli-1.13
|
RDEPEND='>=app-containers/docker-cli-1.13 >=app-containers/docker-compose-1.23.2'
|
||||||
>=app-containers/docker-compose-1.23.2"
|
|
||||||
|
|
||||||
DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs )
|
DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs )
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
ego build -o bin/${PN} \
|
ego build -o bin/"${PN}" -ldflags "-X main.version=${PV}"
|
||||||
-ldflags "-X main.version=${PV}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dobin bin/${PN}
|
dobin bin/"${PN}"
|
||||||
einstalldocs
|
einstalldocs
|
||||||
}
|
}
|
||||||
|
@ -165,24 +165,26 @@ src_compile() {
|
|||||||
tc-export CC CXX
|
tc-export CC CXX
|
||||||
|
|
||||||
# bug 821871
|
# bug 821871
|
||||||
local MY_LIBDIR="${ESYSROOT}/usr/$(get_libdir)"
|
local MY_LIBDIR
|
||||||
|
MY_LIBDIR="${ESYSROOT}/usr/$(get_libdir)"
|
||||||
export FT_LIB_DIR="${MY_LIBDIR}" HUNSPELL_LIB_DIR="${MY_LIBDIR}" PODOFO_LIB_DIR="${MY_LIBDIR}"
|
export FT_LIB_DIR="${MY_LIBDIR}" HUNSPELL_LIB_DIR="${MY_LIBDIR}" PODOFO_LIB_DIR="${MY_LIBDIR}"
|
||||||
export QMAKE="$(qt6_get_bindir)/qmake"
|
QMAKE="$(qt6_get_bindir)/qmake"
|
||||||
|
export QMAKE
|
||||||
|
|
||||||
edo ${EPYTHON} setup.py build
|
edo "${EPYTHON}" setup.py build
|
||||||
edo ${EPYTHON} setup.py gui
|
edo "${EPYTHON}" setup.py gui
|
||||||
|
|
||||||
# A few different resources are bundled in the distfile by default, because
|
# A few different resources are bundled in the distfile by default, because
|
||||||
# not all systems necessarily have them. We un-vendor them, using the
|
# not all systems necessarily have them. We un-vendor them, using the
|
||||||
# upstream integrated approach if possible. See setup/revendor.py and
|
# upstream integrated approach if possible. See setup/revendor.py and
|
||||||
# consider migrating other resources to this if they do not use it, in
|
# consider migrating other resources to this if they do not use it, in
|
||||||
# *preference* over manual rm'ing.
|
# *preference* over manual rm'ing.
|
||||||
edo ${EPYTHON} setup.py liberation_fonts \
|
edo "${EPYTHON}" setup.py liberation_fonts \
|
||||||
--path-to-liberation_fonts "${EPREFIX}"/usr/share/fonts/liberation-fonts \
|
--path-to-liberation_fonts "${EPREFIX}"/usr/share/fonts/liberation-fonts \
|
||||||
--system-liberation_fonts
|
--system-liberation_fonts
|
||||||
if use system-mathjax; then
|
if use system-mathjax; then
|
||||||
edo ${EPYTHON} setup.py mathjax --path-to-mathjax "${EPREFIX}"/usr/share/mathjax --system-mathjax
|
edo "${EPYTHON}" setup.py mathjax --path-to-mathjax "${EPREFIX}"/usr/share/mathjax --system-mathjax
|
||||||
edo ${EPYTHON} setup.py rapydscript
|
edo "${EPYTHON}" setup.py rapydscript
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -210,7 +212,7 @@ src_test() {
|
|||||||
# have a different control mechanism
|
# have a different control mechanism
|
||||||
use speech || export SKIP_SPEECH_TESTS=1
|
use speech || export SKIP_SPEECH_TESTS=1
|
||||||
|
|
||||||
edo ${PYTHON} setup.py test "${_test_excludes[@]/#/--exclude-test-name=}"
|
edo "${PYTHON}" setup.py test "${_test_excludes[@]/#/--exclude-test-name=}"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
@ -220,7 +222,7 @@ src_install() {
|
|||||||
# File '/usr/lib/python2.6/locale.py', line 418, in _parse_localename
|
# File '/usr/lib/python2.6/locale.py', line 418, in _parse_localename
|
||||||
# raise ValueError, 'unknown locale: %s' % localename
|
# raise ValueError, 'unknown locale: %s' % localename
|
||||||
#ValueError: unknown locale: 46
|
#ValueError: unknown locale: 46
|
||||||
export -n LANG LANGUAGE ${!LC_*}
|
export -n LANG LANGUAGE "${!LC_*}"
|
||||||
export LC_ALL=C.utf8 # bug #709682
|
export LC_ALL=C.utf8 # bug #709682
|
||||||
|
|
||||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||||
|
@ -5,21 +5,21 @@ EAPI=8
|
|||||||
|
|
||||||
inherit unpacker
|
inherit unpacker
|
||||||
|
|
||||||
CUDA_V="12"
|
CUDA_V='12'
|
||||||
|
|
||||||
DESCRIPTION="NVIDIA Accelerated Deep Learning on GPU library"
|
DESCRIPTION='NVIDIA Accelerated Deep Learning on GPU library'
|
||||||
HOMEPAGE="https://developer.nvidia.com/cudnn"
|
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"
|
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"
|
S="${WORKDIR}/cudnn-linux-x86_64-${PV%%_*}_cuda${CUDA_V}-archive"
|
||||||
|
|
||||||
LICENSE="NVIDIA-cuDNN"
|
LICENSE='NVIDIA-cuDNN'
|
||||||
SLOT="0/$(ver_cut 1)"
|
SLOT="0/$(ver_cut 1)"
|
||||||
KEYWORDS="-* ~amd64 ~amd64-linux"
|
KEYWORDS='-* ~amd64 ~amd64-linux'
|
||||||
RESTRICT="mirror"
|
RESTRICT='mirror'
|
||||||
|
|
||||||
RDEPEND="=dev-util/nvidia-cuda-toolkit-${CUDA_V}*"
|
RDEPEND="=dev-util/nvidia-cuda-toolkit-${CUDA_V}*"
|
||||||
|
|
||||||
QA_PREBUILT="/opt/cuda/targets/x86_64-linux/lib/*"
|
QA_PREBUILT='/opt/cuda/targets/x86_64-linux/lib/*'
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
insinto /opt/cuda/targets/x86_64-linux
|
insinto /opt/cuda/targets/x86_64-linux
|
||||||
|
@ -5,21 +5,21 @@ EAPI=8
|
|||||||
|
|
||||||
inherit unpacker
|
inherit unpacker
|
||||||
|
|
||||||
CUDA_V="12"
|
CUDA_V='12'
|
||||||
|
|
||||||
DESCRIPTION="NVIDIA Accelerated Deep Learning on GPU library"
|
DESCRIPTION='NVIDIA Accelerated Deep Learning on GPU library'
|
||||||
HOMEPAGE="https://developer.nvidia.com/cudnn"
|
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"
|
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"
|
S="${WORKDIR}/cudnn-linux-x86_64-${PV%%_*}_cuda${CUDA_V}-archive"
|
||||||
|
|
||||||
LICENSE="NVIDIA-cuDNN"
|
LICENSE='NVIDIA-cuDNN'
|
||||||
SLOT="0/$(ver_cut 1)"
|
SLOT="0/$(ver_cut 1)"
|
||||||
KEYWORDS="-* ~amd64 ~amd64-linux"
|
KEYWORDS='-* ~amd64 ~amd64-linux'
|
||||||
RESTRICT="mirror"
|
RESTRICT='mirror'
|
||||||
|
|
||||||
RDEPEND="=dev-util/nvidia-cuda-toolkit-${CUDA_V}*"
|
RDEPEND="=dev-util/nvidia-cuda-toolkit-${CUDA_V}*"
|
||||||
|
|
||||||
QA_PREBUILT="/opt/cuda/targets/x86_64-linux/lib/*"
|
QA_PREBUILT='/opt/cuda/targets/x86_64-linux/lib/*'
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
insinto /opt/cuda/targets/x86_64-linux
|
insinto /opt/cuda/targets/x86_64-linux
|
||||||
|
@ -6,21 +6,21 @@ EAPI=8
|
|||||||
PYTHON_COMPAT=( python3_{10..13} )
|
PYTHON_COMPAT=( python3_{10..13} )
|
||||||
inherit flag-o-matic meson python-any-r1 vala virtualx
|
inherit flag-o-matic meson python-any-r1 vala virtualx
|
||||||
|
|
||||||
DESCRIPTION="Flatpak portal library"
|
DESCRIPTION='Flatpak portal library'
|
||||||
HOMEPAGE="https://github.com/flatpak/libportal"
|
HOMEPAGE='https://github.com/flatpak/libportal'
|
||||||
SRC_URI="https://github.com/flatpak/libportal/releases/download/${PV}/${P}.tar.xz"
|
SRC_URI="https://github.com/flatpak/libportal/releases/download/${PV}/${P}.tar.xz"
|
||||||
|
|
||||||
LICENSE="LGPL-3"
|
LICENSE='LGPL-3'
|
||||||
SLOT="0/1-1-1-1" # soname of libportal{,-gtk3,-gtk4,-qt5}.so
|
SLOT='0/1-1-1-1' # soname of libportal{,-gtk3,-gtk4,-qt5}.so
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
KEYWORDS='~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86'
|
||||||
IUSE="gtk gtk-doc +introspection qt5 test +vala wayland X"
|
IUSE='gtk gtk-doc +introspection qt5 test +vala wayland X'
|
||||||
RESTRICT="!test? ( test )"
|
RESTRICT='!test? ( test )'
|
||||||
REQUIRED_USE="
|
REQUIRED_USE='
|
||||||
gtk-doc? ( introspection )
|
gtk-doc? ( introspection )
|
||||||
vala? ( introspection )
|
vala? ( introspection )
|
||||||
"
|
'
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND='
|
||||||
>=dev-libs/glib-2.58:2
|
>=dev-libs/glib-2.58:2
|
||||||
introspection? ( dev-libs/gobject-introspection:= )
|
introspection? ( dev-libs/gobject-introspection:= )
|
||||||
gtk? (
|
gtk? (
|
||||||
@ -33,7 +33,7 @@ RDEPEND="
|
|||||||
dev-qt/qtx11extras:=
|
dev-qt/qtx11extras:=
|
||||||
dev-qt/qtwidgets:=
|
dev-qt/qtwidgets:=
|
||||||
)
|
)
|
||||||
"
|
'
|
||||||
DEPEND="${RDEPEND}
|
DEPEND="${RDEPEND}
|
||||||
qt5? (
|
qt5? (
|
||||||
test? ( dev-qt/qttest:= )
|
test? ( dev-qt/qttest:= )
|
||||||
|
@ -1,29 +1,28 @@
|
|||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
EAPI="7"
|
EAPI='7'
|
||||||
DESCRIPTION="LaTeX package for drawing flags of countries using PSTricks"
|
DESCRIPTION='LaTeX package for drawing flags of countries using PSTricks'
|
||||||
HOMEPAGE="https://ctan.org/tex-archive/graphics/pstricks/contrib/pst-flags"
|
HOMEPAGE='https://ctan.org/tex-archive/graphics/pstricks/contrib/pst-flags'
|
||||||
SRC_URI="http://mirrors.ctan.org/graphics/pstricks/contrib/pst-flags.zip -> ${P}.zip"
|
SRC_URI="http://mirrors.ctan.org/graphics/pstricks/contrib/pst-flags.zip -> ${P}.zip"
|
||||||
LICENSE="lppl-1-3c"
|
LICENSE='lppl-1-3c'
|
||||||
SLOT="0"
|
SLOT='0'
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~m68k ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos"
|
KEYWORDS='~alpha ~amd64 ~arm ~hppa ~m68k ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos'
|
||||||
DEPEND="app-text/texlive
|
DEPEND='app-text/texlive app-arch/unzip'
|
||||||
app-arch/unzip"
|
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
if [[ -n ${A} ]]; then
|
if [[ -n ${A} ]]; then
|
||||||
unpack ${A}
|
unpack "${A}"
|
||||||
mv ${PN} ${P}
|
mv "${PN}" "${P}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dodoc README.md doc/amm-pst-doc.cls doc/${PN}-examples.tex doc/${PN}-doc.tex doc/${PN}-doc.pdf
|
dodoc README.md doc/amm-pst-doc.cls doc/"${PN}"-examples.tex doc/"${PN}"-doc.tex doc/"${PN}"-doc.pdf
|
||||||
|
|
||||||
insinto /usr/share/texmf-dist/tex/${PN}
|
insinto /usr/share/texmf-dist/tex/"${PN}"
|
||||||
doins tex/${PN}.sty
|
doins tex/"${PN}".sty
|
||||||
doins tex/${PN}-colors-html.sty
|
doins tex/"${PN}"-colors-html.sty
|
||||||
insinto /usr/share/texmf-dist/tex/${PN}/Flags
|
insinto /usr/share/texmf-dist/tex/"${PN}"/Flags
|
||||||
doins tex/Flags/*.tex
|
doins tex/Flags/*.tex
|
||||||
doins tex/Flags/*.eps
|
doins tex/Flags/*.eps
|
||||||
}
|
}
|
||||||
|
@ -1,27 +1,26 @@
|
|||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
EAPI="7"
|
EAPI='7'
|
||||||
DESCRIPTION="Drawing flags with TikZ, by Wilhelm Haager"
|
DESCRIPTION='Drawing flags with TikZ, by Wilhelm Haager'
|
||||||
HOMEPAGE="https://www.ctan.org/pkg/worldflags"
|
HOMEPAGE='https://www.ctan.org/pkg/worldflags'
|
||||||
SRC_URI="https://mirrors.ctan.org/graphics/pgf/contrib/worldflags.zip -> ${P}.zip"
|
SRC_URI="https://mirrors.ctan.org/graphics/pgf/contrib/worldflags.zip -> ${P}.zip"
|
||||||
LICENSE="lppl-1-3"
|
LICENSE='lppl-1-3'
|
||||||
SLOT="0"
|
SLOT='0'
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~m68k ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos"
|
KEYWORDS='~alpha ~amd64 ~arm ~hppa ~m68k ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos'
|
||||||
DEPEND="app-text/texlive
|
DEPEND='app-text/texlive app-arch/unzip'
|
||||||
app-arch/unzip"
|
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
if [[ -n ${A} ]]; then
|
if [[ -n ${A} ]]; then
|
||||||
unpack ${A}
|
unpack "${A}"
|
||||||
mv ${PN} ${P}
|
mv "${PN}" "${P}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dodoc README doc/${PN}.pdf doc/${PN}.tex
|
dodoc README doc/"${PN}".pdf doc/"${PN}".tex
|
||||||
|
|
||||||
insinto /usr/share/texmf-dist/tex/${PN}
|
insinto /usr/share/texmf-dist/tex/"${PN}"
|
||||||
doins tex/${PN}.sty
|
doins tex/"${PN}".sty
|
||||||
doins tex/*.tex
|
doins tex/*.tex
|
||||||
doins tex/*.pdf
|
doins tex/*.pdf
|
||||||
}
|
}
|
||||||
|
@ -5,22 +5,22 @@ EAPI=8
|
|||||||
|
|
||||||
inherit check-reqs toolchain-funcs unpacker
|
inherit check-reqs toolchain-funcs unpacker
|
||||||
|
|
||||||
DRIVER_PV="560.35.05"
|
DRIVER_PV='560.35.05'
|
||||||
|
|
||||||
DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)"
|
DESCRIPTION='NVIDIA CUDA Toolkit (compiler and friends)'
|
||||||
HOMEPAGE="https://developer.nvidia.com/cuda-zone"
|
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"
|
SRC_URI="https://developer.download.nvidia.com/compute/cuda/${PV}/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run"
|
||||||
S="${WORKDIR}"
|
S="${WORKDIR}"
|
||||||
|
|
||||||
LICENSE="NVIDIA-CUDA"
|
LICENSE='NVIDIA-CUDA'
|
||||||
SLOT="0/${PV}"
|
SLOT="0/${PV}"
|
||||||
KEYWORDS="-* ~amd64 ~amd64-linux"
|
KEYWORDS='-* ~amd64 ~amd64-linux'
|
||||||
IUSE="debugger examples nsight profiler rdma vis-profiler sanitizer"
|
IUSE='debugger examples nsight profiler rdma vis-profiler sanitizer'
|
||||||
RESTRICT="bindist mirror"
|
RESTRICT='bindist mirror'
|
||||||
|
|
||||||
# since CUDA 11, the bundled toolkit driver (== ${DRIVER_PV}) and the
|
# since CUDA 11, the bundled toolkit driver (== ${DRIVER_PV}) and the
|
||||||
# actual required minimum driver version are different.
|
# actual required minimum driver version are different.
|
||||||
RDEPEND="
|
RDEPEND='
|
||||||
<sys-devel/gcc-14_pre[cxx]
|
<sys-devel/gcc-14_pre[cxx]
|
||||||
virtual/libcrypt
|
virtual/libcrypt
|
||||||
examples? (
|
examples? (
|
||||||
@ -39,11 +39,11 @@ RDEPEND="
|
|||||||
rdma? ( sys-cluster/rdma-core )
|
rdma? ( sys-cluster/rdma-core )
|
||||||
vis-profiler? (
|
vis-profiler? (
|
||||||
>=virtual/jre-1.8:*
|
>=virtual/jre-1.8:*
|
||||||
)"
|
)'
|
||||||
BDEPEND="nsight? ( dev-util/patchelf )"
|
BDEPEND='nsight? ( dev-util/patchelf )'
|
||||||
|
|
||||||
QA_PREBUILT="opt/cuda/*"
|
QA_PREBUILT='opt/cuda/*'
|
||||||
CHECKREQS_DISK_BUILD="15000M"
|
CHECKREQS_DISK_BUILD='15000M'
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
check-reqs_pkg_setup
|
check-reqs_pkg_setup
|
||||||
@ -52,7 +52,7 @@ pkg_setup() {
|
|||||||
src_prepare() {
|
src_prepare() {
|
||||||
# ATTENTION: change requires revbump, see link below for supported GCC # versions
|
# ATTENTION: change requires revbump, see link below for supported GCC # versions
|
||||||
# https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements
|
# 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"
|
local cuda_supported_gcc='8.5 9.5 10 11 12 13'
|
||||||
|
|
||||||
sed \
|
sed \
|
||||||
-e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
|
-e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
|
||||||
@ -73,9 +73,9 @@ src_install() {
|
|||||||
builds/cuda_{cccl,cudart,cuobjdump,cuxxfilt,demo_suite,nvcc,nvdisasm,nvml_dev,nvprune,nvrtc,nvtx,opencl}
|
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/lib{cublas,cufft,cufile,curand,cusolver,cusparse,npp,nvjitlink,nvjpeg}
|
||||||
builds/nvidia_fs
|
builds/nvidia_fs
|
||||||
$(usex profiler "builds/cuda_nvprof builds/cuda_cupti builds/cuda_profiler_api" "")
|
$(usex profiler 'builds/cuda_nvprof builds/cuda_cupti builds/cuda_profiler_api' '')
|
||||||
$(usex vis-profiler "builds/cuda_nvvp" "")
|
$(usex vis-profiler 'builds/cuda_nvvp' '')
|
||||||
$(usex debugger "builds/cuda_gdb" "")
|
$(usex debugger 'builds/cuda_gdb' '')
|
||||||
)
|
)
|
||||||
|
|
||||||
local d f
|
local d f
|
||||||
@ -84,7 +84,7 @@ src_install() {
|
|||||||
[[ -d ${d} ]] || die "Directory does not exist: ${d}"
|
[[ -d ${d} ]] || die "Directory does not exist: ${d}"
|
||||||
|
|
||||||
if [[ -d ${d}/bin ]]; then
|
if [[ -d ${d}/bin ]]; then
|
||||||
for f in ${d}/bin/*; do
|
for f in "${d}"/bin/*; do
|
||||||
if [[ -f ${f} ]]; then
|
if [[ -f ${f} ]]; then
|
||||||
dobin "${f}"
|
dobin "${f}"
|
||||||
else
|
else
|
||||||
@ -110,17 +110,17 @@ src_install() {
|
|||||||
|
|
||||||
doins builds/EULA.txt
|
doins builds/EULA.txt
|
||||||
# nvml and nvvm need special handling
|
# nvml and nvvm need special handling
|
||||||
ebegin "Installing nvvm"
|
ebegin 'Installing nvvm'
|
||||||
doins -r builds/cuda_nvcc/nvvm
|
doins -r builds/cuda_nvcc/nvvm
|
||||||
fperms +x ${cudadir}/nvvm/bin/cicc
|
fperms +x ${cudadir}/nvvm/bin/cicc
|
||||||
eend $?
|
eend $?
|
||||||
|
|
||||||
ebegin "Installing nvml"
|
ebegin 'Installing nvml'
|
||||||
doins -r builds/cuda_nvml_dev/nvml
|
doins -r builds/cuda_nvml_dev/nvml
|
||||||
eend $?
|
eend $?
|
||||||
|
|
||||||
if use sanitizer; then
|
if use sanitizer; then
|
||||||
ebegin "Installing sanitizer"
|
ebegin 'Installing sanitizer'
|
||||||
dobin builds/integration/Sanitizer/compute-sanitizer
|
dobin builds/integration/Sanitizer/compute-sanitizer
|
||||||
doins -r builds/cuda_sanitizer_api/compute-sanitizer
|
doins -r builds/cuda_sanitizer_api/compute-sanitizer
|
||||||
# special handling for the executable
|
# special handling for the executable
|
||||||
@ -132,7 +132,7 @@ src_install() {
|
|||||||
use profiler && ldpathextradirs+=":${ecudadir}/extras/CUPTI/lib64"
|
use profiler && ldpathextradirs+=":${ecudadir}/extras/CUPTI/lib64"
|
||||||
|
|
||||||
if use vis-profiler; then
|
if use vis-profiler; then
|
||||||
ebegin "Installing libnvvp"
|
ebegin 'Installing libnvvp'
|
||||||
doins -r builds/cuda_nvvp/libnvvp
|
doins -r builds/cuda_nvvp/libnvvp
|
||||||
# special handling for the executable
|
# special handling for the executable
|
||||||
fperms +x ${cudadir}/libnvvp/nvvp
|
fperms +x ${cudadir}/libnvvp/nvvp
|
||||||
@ -141,24 +141,25 @@ src_install() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if use nsight; then
|
if use nsight; then
|
||||||
local ncu_dir=$(grep -o 'nsight-compute-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
local ncu_dir
|
||||||
|
ncu_dir=$(grep -o 'nsight-compute-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
||||||
ebegin "Installing ${ncu_dir}"
|
ebegin "Installing ${ncu_dir}"
|
||||||
mv builds/nsight_compute builds/${ncu_dir} || die
|
mv builds/nsight_compute builds/"${ncu_dir}" || die
|
||||||
doins -r builds/${ncu_dir}
|
doins -r builds/"${ncu_dir}"
|
||||||
|
|
||||||
# check this list on every bump
|
# check this list on every bump
|
||||||
local exes=(
|
local exes=(
|
||||||
${ncu_dir}/ncu
|
"${ncu_dir}"/ncu
|
||||||
${ncu_dir}/ncu-ui
|
"${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/libexec/QtWebEngineProcess
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/CrashReporter
|
"${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/OpenGLVersionChecker
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/QdstrmImporter
|
"${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
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/ncu-ui.bin
|
"${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/TreeLauncherSubreaper
|
||||||
${ncu_dir}/target/linux-desktop-glibc_2_11_3-x64/TreeLauncherTargetLdPreloadHelper
|
"${ncu_dir}"/target/linux-desktop-glibc_2_11_3-x64/TreeLauncherTargetLdPreloadHelper
|
||||||
${ncu_dir}/target/linux-desktop-glibc_2_11_3-x64/ncu
|
"${ncu_dir}"/target/linux-desktop-glibc_2_11_3-x64/ncu
|
||||||
)
|
)
|
||||||
|
|
||||||
dobin builds/integration/nsight-compute/{ncu,ncu-ui}
|
dobin builds/integration/nsight-compute/{ncu,ncu-ui}
|
||||||
@ -166,35 +167,36 @@ src_install() {
|
|||||||
|
|
||||||
# remove rdma libs (unless USE=rdma)
|
# remove rdma libs (unless USE=rdma)
|
||||||
if ! use rdma; then
|
if ! use rdma; then
|
||||||
rm -r "${ED}"/${cudadir}/${ncu_dir}/host/target-linux-x64/CollectX || die
|
rm -r "${ED}/${cudadir}/${ncu_dir}"/host/target-linux-x64/CollectX || die
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local nsys_dir=$(grep -o 'nsight-systems-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
local nsys_dir
|
||||||
|
nsys_dir=$(grep -o 'nsight-systems-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
||||||
ebegin "Installing ${nsys_dir}"
|
ebegin "Installing ${nsys_dir}"
|
||||||
mv builds/nsight_systems builds/${nsys_dir} || die
|
mv builds/nsight_systems builds/"${nsys_dir}" || die
|
||||||
doins -r builds/${nsys_dir}
|
doins -r builds/"${nsys_dir}"
|
||||||
|
|
||||||
# check this list on every bump
|
# check this list on every bump
|
||||||
exes+=(
|
exes+=(
|
||||||
${nsys_dir}/host-linux-x64/nsys-ui
|
"${nsys_dir}"/host-linux-x64/nsys-ui
|
||||||
${nsys_dir}/host-linux-x64/nsys-ui.bin
|
"${nsys_dir}"/host-linux-x64/nsys-ui.bin
|
||||||
${nsys_dir}/host-linux-x64/ResolveSymbols
|
"${nsys_dir}"/host-linux-x64/ResolveSymbols
|
||||||
${nsys_dir}/host-linux-x64/ImportNvtxt
|
"${nsys_dir}"/host-linux-x64/ImportNvtxt
|
||||||
${nsys_dir}/host-linux-x64/CrashReporter
|
"${nsys_dir}"/host-linux-x64/CrashReporter
|
||||||
${nsys_dir}/host-linux-x64/QdstrmImporter
|
"${nsys_dir}"/host-linux-x64/QdstrmImporter
|
||||||
${nsys_dir}/host-linux-x64/libexec/QtWebEngineProcess
|
"${nsys_dir}"/host-linux-x64/libexec/QtWebEngineProcess
|
||||||
${nsys_dir}/target-linux-x64/nsys
|
"${nsys_dir}"/target-linux-x64/nsys
|
||||||
${nsys_dir}/target-linux-x64/launcher
|
"${nsys_dir}"/target-linux-x64/launcher
|
||||||
${nsys_dir}/target-linux-x64/nvgpucs
|
"${nsys_dir}"/target-linux-x64/nvgpucs
|
||||||
${nsys_dir}/target-linux-x64/nsys-launcher
|
"${nsys_dir}"/target-linux-x64/nsys-launcher
|
||||||
${nsys_dir}/target-linux-x64/sqlite3
|
"${nsys_dir}"/target-linux-x64/sqlite3
|
||||||
${nsys_dir}/target-linux-x64/python/bin/python
|
"${nsys_dir}"/target-linux-x64/python/bin/python
|
||||||
${nsys_dir}/target-linux-x64/CudaGpuInfoDumper
|
"${nsys_dir}"/target-linux-x64/CudaGpuInfoDumper
|
||||||
)
|
)
|
||||||
|
|
||||||
# remove rdma libs (unless USE=rdma)
|
# remove rdma libs (unless USE=rdma)
|
||||||
if ! use rdma; then
|
if ! use rdma; then
|
||||||
rm -r "${ED}"/${cudadir}/${nsys_dir}/target-linux-x64/CollectX || die
|
rm -r "${ED}/${cudadir}/${nsys_dir}"/target-linux-x64/CollectX || die
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dobin builds/integration/nsight-systems/{nsight-sys,nsys,nsys-ui}
|
dobin builds/integration/nsight-systems/{nsight-sys,nsys,nsys-ui}
|
||||||
@ -202,27 +204,27 @@ src_install() {
|
|||||||
|
|
||||||
# nsight scripts and binaries need to have their executable bit set, #691284
|
# nsight scripts and binaries need to have their executable bit set, #691284
|
||||||
for f in "${exes[@]}"; do
|
for f in "${exes[@]}"; do
|
||||||
fperms +x ${cudadir}/${f}
|
fperms +x "${cudadir}/${f}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# fix broken RPATHs
|
# fix broken RPATHs
|
||||||
patchelf --set-rpath '$ORIGIN' \
|
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
|
"${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' \
|
patchelf --set-rpath '$ORIGIN' \
|
||||||
"${ED}"/${cudadir}/${nsys_dir}/{host-linux-x64,target-linux-x64}/{libarrow.so,libparquet.so.500.0.0} || die
|
"${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)
|
# remove foreign archs (triggers SONAME warning, #749903)
|
||||||
rm -r "${ED}"/${cudadir}/${ncu_dir}/target/linux-desktop-t210-a64 || die
|
rm -r "${ED}/${cudadir}/${ncu_dir}"/target/linux-desktop-t210-a64 || die
|
||||||
|
|
||||||
# unbundle libstdc++
|
# unbundle libstdc++
|
||||||
rm "${ED}"/${cudadir}/${nsys_dir}/host-linux-x64/libstdc++.so.6 || die
|
rm "${ED}/${cudadir}/${nsys_dir}"/host-linux-x64/libstdc++.so.6 || die
|
||||||
|
|
||||||
# unbundle openssl
|
# unbundle openssl
|
||||||
rm "${ED}"/${cudadir}/${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/lib{crypto,ssl}.so* || die
|
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
|
rm "${ED}/${cudadir}/${nsys_dir}"/host-linux-x64/lib{crypto,ssl}.so* || die
|
||||||
|
|
||||||
# unbundle libpfm
|
# unbundle libpfm
|
||||||
rm "${ED}"/${cudadir}/${nsys_dir}/host-linux-x64/libpfm.so* || die
|
rm "${ED}/${cudadir}/${nsys_dir}"/host-linux-x64/libpfm.so* || die
|
||||||
|
|
||||||
# TODO: unbundle qt5
|
# TODO: unbundle qt5
|
||||||
# TODO: unbundle boost
|
# TODO: unbundle boost
|
||||||
@ -245,7 +247,7 @@ src_install() {
|
|||||||
|
|
||||||
# set executable bit on demo_suite binaries
|
# set executable bit on demo_suite binaries
|
||||||
for f in "${exes[@]}"; do
|
for f in "${exes[@]}"; do
|
||||||
fperms +x ${cudadir}/${f}
|
fperms +x "${cudadir}/${f}"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
rm -r "${ED}"/${cudadir}/extras/demo_suite || die
|
rm -r "${ED}"/${cudadir}/extras/demo_suite || die
|
||||||
@ -277,20 +279,21 @@ src_install() {
|
|||||||
|
|
||||||
# Cuda prepackages libraries, don't revdep-build on them
|
# Cuda prepackages libraries, don't revdep-build on them
|
||||||
insinto /etc/revdep-rebuild
|
insinto /etc/revdep-rebuild
|
||||||
newins - 80${PN} <<-EOF
|
newins - "80${PN}" <<-EOF
|
||||||
SEARCH_DIRS_MASK="${ecudadir}"
|
SEARCH_DIRS_MASK="${ecudadir}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# https://bugs.gentoo.org/926116
|
# https://bugs.gentoo.org/926116
|
||||||
insinto /etc/sandbox.d
|
insinto /etc/sandbox.d
|
||||||
newins - 80${PN} <<-EOF
|
newins - "80${PN}" <<-EOF
|
||||||
SANDBOX_PREDICT="/proc/self/task"
|
SANDBOX_PREDICT='/proc/self/task'
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst_check() {
|
pkg_postinst_check() {
|
||||||
local a="$("${EROOT}"/opt/cuda/bin/cuda-config -s)"
|
local a
|
||||||
local b="0.0"
|
a="$("${EROOT}"/opt/cuda/bin/cuda-config -s)"
|
||||||
|
local b='0.0'
|
||||||
local v
|
local v
|
||||||
for v in ${a}; do
|
for v in ${a}; do
|
||||||
ver_test "${v}" -gt "${b}" && b="${v}"
|
ver_test "${v}" -gt "${b}" && b="${v}"
|
||||||
@ -298,13 +301,13 @@ pkg_postinst_check() {
|
|||||||
|
|
||||||
# if gcc and if not gcc-version is at least greatest supported
|
# if gcc and if not gcc-version is at least greatest supported
|
||||||
if tc-is-gcc && \
|
if tc-is-gcc && \
|
||||||
ver_test $(gcc-version) -gt "${b}"; then
|
ver_test "$(gcc-version)" -gt "${b}"; then
|
||||||
ewarn
|
ewarn
|
||||||
ewarn "gcc > ${b} will not work with CUDA"
|
ewarn "gcc > ${b} will not work with CUDA"
|
||||||
ewarn "Make sure you set an earlier version of gcc with gcc-config"
|
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 'or append --compiler-bindir= pointing to a gcc bindir like'
|
||||||
ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
|
ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
|
||||||
ewarn "to the nvcc compiler flags"
|
ewarn 'to the nvcc compiler flags'
|
||||||
ewarn
|
ewarn
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -316,13 +319,13 @@ pkg_postinst() {
|
|||||||
|
|
||||||
if use profiler || use nsight; then
|
if use profiler || use nsight; then
|
||||||
einfo
|
einfo
|
||||||
einfo "nvidia-drivers restrict access to performance counters."
|
einfo 'nvidia-drivers restrict access to performance counters.'
|
||||||
einfo "You'll need to either run profiling tools (nvprof, nsight) "
|
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 'using sudo (needs cap SYS_ADMIN) or add the following line to '
|
||||||
einfo "a modprobe configuration file "
|
einfo 'a modprobe configuration file '
|
||||||
einfo "(e.g. /etc/modprobe.d/nvidia-prof.conf): "
|
einfo '(e.g. /etc/modprobe.d/nvidia-prof.conf): '
|
||||||
einfo
|
einfo
|
||||||
einfo "options nvidia NVreg_RestrictProfilingToAdminUsers=0"
|
einfo 'options nvidia NVreg_RestrictProfilingToAdminUsers=0'
|
||||||
einfo
|
einfo
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -5,22 +5,22 @@ EAPI=8
|
|||||||
|
|
||||||
inherit check-reqs toolchain-funcs unpacker
|
inherit check-reqs toolchain-funcs unpacker
|
||||||
|
|
||||||
DRIVER_PV="570.86.10"
|
DRIVER_PV='570.86.10'
|
||||||
|
|
||||||
DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)"
|
DESCRIPTION='NVIDIA CUDA Toolkit (compiler and friends)'
|
||||||
HOMEPAGE="https://developer.nvidia.com/cuda-zone"
|
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"
|
SRC_URI="https://developer.download.nvidia.com/compute/cuda/${PV}/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run"
|
||||||
S="${WORKDIR}"
|
S="${WORKDIR}"
|
||||||
|
|
||||||
LICENSE="NVIDIA-CUDA"
|
LICENSE='NVIDIA-CUDA'
|
||||||
SLOT="0/${PV}"
|
SLOT="0/${PV}"
|
||||||
KEYWORDS="-* ~amd64 ~amd64-linux"
|
KEYWORDS='-* ~amd64 ~amd64-linux'
|
||||||
IUSE="debugger examples nsight profiler rdma vis-profiler sanitizer"
|
IUSE='debugger examples nsight profiler rdma vis-profiler sanitizer'
|
||||||
RESTRICT="bindist mirror"
|
RESTRICT='bindist mirror'
|
||||||
|
|
||||||
# since CUDA 11, the bundled toolkit driver (== ${DRIVER_PV}) and the
|
# since CUDA 11, the bundled toolkit driver (== ${DRIVER_PV}) and the
|
||||||
# actual required minimum driver version are different.
|
# actual required minimum driver version are different.
|
||||||
RDEPEND="
|
RDEPEND='
|
||||||
<sys-devel/gcc-14_pre[cxx]
|
<sys-devel/gcc-14_pre[cxx]
|
||||||
virtual/libcrypt
|
virtual/libcrypt
|
||||||
examples? (
|
examples? (
|
||||||
@ -39,11 +39,11 @@ RDEPEND="
|
|||||||
rdma? ( sys-cluster/rdma-core )
|
rdma? ( sys-cluster/rdma-core )
|
||||||
vis-profiler? (
|
vis-profiler? (
|
||||||
>=virtual/jre-1.8:*
|
>=virtual/jre-1.8:*
|
||||||
)"
|
)'
|
||||||
BDEPEND="nsight? ( dev-util/patchelf )"
|
BDEPEND='nsight? ( dev-util/patchelf )'
|
||||||
|
|
||||||
QA_PREBUILT="opt/cuda/*"
|
QA_PREBUILT='opt/cuda/*'
|
||||||
CHECKREQS_DISK_BUILD="15000M"
|
CHECKREQS_DISK_BUILD='15000M'
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
check-reqs_pkg_setup
|
check-reqs_pkg_setup
|
||||||
@ -52,7 +52,7 @@ pkg_setup() {
|
|||||||
src_prepare() {
|
src_prepare() {
|
||||||
# ATTENTION: change requires revbump, see link below for supported GCC # versions
|
# ATTENTION: change requires revbump, see link below for supported GCC # versions
|
||||||
# https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements
|
# 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"
|
local cuda_supported_gcc='8.5 9.5 10 11 12 13'
|
||||||
|
|
||||||
sed \
|
sed \
|
||||||
-e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
|
-e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
|
||||||
@ -73,9 +73,9 @@ src_install() {
|
|||||||
builds/cuda_{cccl,cudart,cuobjdump,cuxxfilt,demo_suite,nvcc,nvdisasm,nvml_dev,nvprune,nvrtc,nvtx,opencl}
|
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/lib{cublas,cufft,cufile,curand,cusolver,cusparse,npp,nvjitlink,nvjpeg}
|
||||||
builds/nvidia_fs
|
builds/nvidia_fs
|
||||||
$(usex profiler "builds/cuda_nvprof builds/cuda_cupti builds/cuda_profiler_api" "")
|
$(usex profiler 'builds/cuda_nvprof builds/cuda_cupti builds/cuda_profiler_api' '')
|
||||||
$(usex vis-profiler "builds/cuda_nvvp" "")
|
$(usex vis-profiler 'builds/cuda_nvvp' '')
|
||||||
$(usex debugger "builds/cuda_gdb" "")
|
$(usex debugger 'builds/cuda_gdb' '')
|
||||||
)
|
)
|
||||||
|
|
||||||
local d f
|
local d f
|
||||||
@ -84,7 +84,7 @@ src_install() {
|
|||||||
[[ -d ${d} ]] || die "Directory does not exist: ${d}"
|
[[ -d ${d} ]] || die "Directory does not exist: ${d}"
|
||||||
|
|
||||||
if [[ -d ${d}/bin ]]; then
|
if [[ -d ${d}/bin ]]; then
|
||||||
for f in ${d}/bin/*; do
|
for f in "${d}"/bin/*; do
|
||||||
if [[ -f ${f} ]]; then
|
if [[ -f ${f} ]]; then
|
||||||
dobin "${f}"
|
dobin "${f}"
|
||||||
else
|
else
|
||||||
@ -110,17 +110,17 @@ src_install() {
|
|||||||
|
|
||||||
doins builds/EULA.txt
|
doins builds/EULA.txt
|
||||||
# nvml and nvvm need special handling
|
# nvml and nvvm need special handling
|
||||||
ebegin "Installing nvvm"
|
ebegin 'Installing nvvm'
|
||||||
doins -r builds/cuda_nvcc/nvvm
|
doins -r builds/cuda_nvcc/nvvm
|
||||||
fperms +x ${cudadir}/nvvm/bin/cicc
|
fperms +x ${cudadir}/nvvm/bin/cicc
|
||||||
eend $?
|
eend $?
|
||||||
|
|
||||||
ebegin "Installing nvml"
|
ebegin 'Installing nvml'
|
||||||
doins -r builds/cuda_nvml_dev/nvml
|
doins -r builds/cuda_nvml_dev/nvml
|
||||||
eend $?
|
eend $?
|
||||||
|
|
||||||
if use sanitizer; then
|
if use sanitizer; then
|
||||||
ebegin "Installing sanitizer"
|
ebegin 'Installing sanitizer'
|
||||||
dobin builds/integration/Sanitizer/compute-sanitizer
|
dobin builds/integration/Sanitizer/compute-sanitizer
|
||||||
doins -r builds/cuda_sanitizer_api/compute-sanitizer
|
doins -r builds/cuda_sanitizer_api/compute-sanitizer
|
||||||
# special handling for the executable
|
# special handling for the executable
|
||||||
@ -132,7 +132,7 @@ src_install() {
|
|||||||
use profiler && ldpathextradirs+=":${ecudadir}/extras/CUPTI/lib64"
|
use profiler && ldpathextradirs+=":${ecudadir}/extras/CUPTI/lib64"
|
||||||
|
|
||||||
if use vis-profiler; then
|
if use vis-profiler; then
|
||||||
ebegin "Installing libnvvp"
|
ebegin 'Installing libnvvp'
|
||||||
doins -r builds/cuda_nvvp/libnvvp
|
doins -r builds/cuda_nvvp/libnvvp
|
||||||
# special handling for the executable
|
# special handling for the executable
|
||||||
fperms +x ${cudadir}/libnvvp/nvvp
|
fperms +x ${cudadir}/libnvvp/nvvp
|
||||||
@ -141,24 +141,25 @@ src_install() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if use nsight; then
|
if use nsight; then
|
||||||
local ncu_dir=$(grep -o 'nsight-compute-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
local ncu_dir
|
||||||
|
ncu_dir=$(grep -o 'nsight-compute-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
||||||
ebegin "Installing ${ncu_dir}"
|
ebegin "Installing ${ncu_dir}"
|
||||||
mv builds/nsight_compute builds/${ncu_dir} || die
|
mv builds/nsight_compute builds/"${ncu_dir}" || die
|
||||||
doins -r builds/${ncu_dir}
|
doins -r builds/"${ncu_dir}"
|
||||||
|
|
||||||
# check this list on every bump
|
# check this list on every bump
|
||||||
local exes=(
|
local exes=(
|
||||||
${ncu_dir}/ncu
|
"${ncu_dir}"/ncu
|
||||||
${ncu_dir}/ncu-ui
|
"${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/libexec/QtWebEngineProcess
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/CrashReporter
|
"${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/OpenGLVersionChecker
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/QdstrmImporter
|
"${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
|
||||||
${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/ncu-ui.bin
|
"${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/TreeLauncherSubreaper
|
||||||
${ncu_dir}/target/linux-desktop-glibc_2_11_3-x64/TreeLauncherTargetLdPreloadHelper
|
"${ncu_dir}"/target/linux-desktop-glibc_2_11_3-x64/TreeLauncherTargetLdPreloadHelper
|
||||||
${ncu_dir}/target/linux-desktop-glibc_2_11_3-x64/ncu
|
"${ncu_dir}"/target/linux-desktop-glibc_2_11_3-x64/ncu
|
||||||
)
|
)
|
||||||
|
|
||||||
dobin builds/integration/nsight-compute/{ncu,ncu-ui}
|
dobin builds/integration/nsight-compute/{ncu,ncu-ui}
|
||||||
@ -166,35 +167,36 @@ src_install() {
|
|||||||
|
|
||||||
# remove rdma libs (unless USE=rdma)
|
# remove rdma libs (unless USE=rdma)
|
||||||
if ! use rdma; then
|
if ! use rdma; then
|
||||||
rm -r "${ED}"/${cudadir}/${ncu_dir}/host/target-linux-x64/CollectX || die
|
rm -r "${ED}/${cudadir}/${ncu_dir}"/host/target-linux-x64/CollectX || die
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local nsys_dir=$(grep -o 'nsight-systems-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
local nsys_dir
|
||||||
|
nsys_dir=$(grep -o 'nsight-systems-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml)
|
||||||
ebegin "Installing ${nsys_dir}"
|
ebegin "Installing ${nsys_dir}"
|
||||||
mv builds/nsight_systems builds/${nsys_dir} || die
|
mv builds/nsight_systems builds/"${nsys_dir}" || die
|
||||||
doins -r builds/${nsys_dir}
|
doins -r builds/"${nsys_dir}"
|
||||||
|
|
||||||
# check this list on every bump
|
# check this list on every bump
|
||||||
exes+=(
|
exes+=(
|
||||||
${nsys_dir}/host-linux-x64/nsys-ui
|
"${nsys_dir}"/host-linux-x64/nsys-ui
|
||||||
${nsys_dir}/host-linux-x64/nsys-ui.bin
|
"${nsys_dir}"/host-linux-x64/nsys-ui.bin
|
||||||
${nsys_dir}/host-linux-x64/ResolveSymbols
|
"${nsys_dir}"/host-linux-x64/ResolveSymbols
|
||||||
${nsys_dir}/host-linux-x64/ImportNvtxt
|
"${nsys_dir}"/host-linux-x64/ImportNvtxt
|
||||||
${nsys_dir}/host-linux-x64/CrashReporter
|
"${nsys_dir}"/host-linux-x64/CrashReporter
|
||||||
${nsys_dir}/host-linux-x64/QdstrmImporter
|
"${nsys_dir}"/host-linux-x64/QdstrmImporter
|
||||||
${nsys_dir}/host-linux-x64/libexec/QtWebEngineProcess
|
"${nsys_dir}"/host-linux-x64/libexec/QtWebEngineProcess
|
||||||
${nsys_dir}/target-linux-x64/nsys
|
"${nsys_dir}"/target-linux-x64/nsys
|
||||||
${nsys_dir}/target-linux-x64/launcher
|
"${nsys_dir}"/target-linux-x64/launcher
|
||||||
${nsys_dir}/target-linux-x64/nvgpucs
|
"${nsys_dir}"/target-linux-x64/nvgpucs
|
||||||
${nsys_dir}/target-linux-x64/nsys-launcher
|
"${nsys_dir}"/target-linux-x64/nsys-launcher
|
||||||
${nsys_dir}/target-linux-x64/sqlite3
|
"${nsys_dir}"/target-linux-x64/sqlite3
|
||||||
${nsys_dir}/target-linux-x64/python/bin/python
|
"${nsys_dir}"/target-linux-x64/python/bin/python
|
||||||
${nsys_dir}/target-linux-x64/CudaGpuInfoDumper
|
"${nsys_dir}"/target-linux-x64/CudaGpuInfoDumper
|
||||||
)
|
)
|
||||||
|
|
||||||
# remove rdma libs (unless USE=rdma)
|
# remove rdma libs (unless USE=rdma)
|
||||||
if ! use rdma; then
|
if ! use rdma; then
|
||||||
rm -r "${ED}"/${cudadir}/${nsys_dir}/target-linux-x64/CollectX || die
|
rm -r "${ED}/${cudadir}/${nsys_dir}"/target-linux-x64/CollectX || die
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dobin builds/integration/nsight-systems/{nsight-sys,nsys,nsys-ui}
|
dobin builds/integration/nsight-systems/{nsight-sys,nsys,nsys-ui}
|
||||||
@ -202,27 +204,27 @@ src_install() {
|
|||||||
|
|
||||||
# nsight scripts and binaries need to have their executable bit set, #691284
|
# nsight scripts and binaries need to have their executable bit set, #691284
|
||||||
for f in "${exes[@]}"; do
|
for f in "${exes[@]}"; do
|
||||||
fperms +x ${cudadir}/${f}
|
fperms +x "${cudadir}/${f}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# fix broken RPATHs
|
# fix broken RPATHs
|
||||||
patchelf --set-rpath '$ORIGIN' \
|
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
|
"${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' \
|
patchelf --set-rpath '$ORIGIN' \
|
||||||
"${ED}"/${cudadir}/${nsys_dir}/{host-linux-x64,target-linux-x64}/{libarrow.so,libparquet.so.500.0.0} || die
|
"${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)
|
# remove foreign archs (triggers SONAME warning, #749903)
|
||||||
rm -r "${ED}"/${cudadir}/${ncu_dir}/target/linux-desktop-t210-a64 || die
|
rm -r "${ED}/${cudadir}/${ncu_dir}"/target/linux-desktop-t210-a64 || die
|
||||||
|
|
||||||
# unbundle libstdc++
|
# unbundle libstdc++
|
||||||
rm "${ED}"/${cudadir}/${nsys_dir}/host-linux-x64/libstdc++.so.6 || die
|
rm "${ED}/${cudadir}/${nsys_dir}"/host-linux-x64/libstdc++.so.6 || die
|
||||||
|
|
||||||
# unbundle openssl
|
# unbundle openssl
|
||||||
rm "${ED}"/${cudadir}/${ncu_dir}/host/linux-desktop-glibc_2_11_3-x64/lib{crypto,ssl}.so* || die
|
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
|
rm "${ED}/${cudadir}/${nsys_dir}"/host-linux-x64/lib{crypto,ssl}.so* || die
|
||||||
|
|
||||||
# unbundle libpfm
|
# unbundle libpfm
|
||||||
rm "${ED}"/${cudadir}/${nsys_dir}/host-linux-x64/libpfm.so* || die
|
rm "${ED}/${cudadir}/${nsys_dir}"/host-linux-x64/libpfm.so* || die
|
||||||
|
|
||||||
# TODO: unbundle qt5
|
# TODO: unbundle qt5
|
||||||
# TODO: unbundle boost
|
# TODO: unbundle boost
|
||||||
@ -245,7 +247,7 @@ src_install() {
|
|||||||
|
|
||||||
# set executable bit on demo_suite binaries
|
# set executable bit on demo_suite binaries
|
||||||
for f in "${exes[@]}"; do
|
for f in "${exes[@]}"; do
|
||||||
fperms +x ${cudadir}/${f}
|
fperms +x "${cudadir}/${f}"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
rm -r "${ED}"/${cudadir}/extras/demo_suite || die
|
rm -r "${ED}"/${cudadir}/extras/demo_suite || die
|
||||||
@ -277,20 +279,21 @@ src_install() {
|
|||||||
|
|
||||||
# Cuda prepackages libraries, don't revdep-build on them
|
# Cuda prepackages libraries, don't revdep-build on them
|
||||||
insinto /etc/revdep-rebuild
|
insinto /etc/revdep-rebuild
|
||||||
newins - 80${PN} <<-EOF
|
newins - "80${PN}" <<-EOF
|
||||||
SEARCH_DIRS_MASK="${ecudadir}"
|
SEARCH_DIRS_MASK="${ecudadir}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# https://bugs.gentoo.org/926116
|
# https://bugs.gentoo.org/926116
|
||||||
insinto /etc/sandbox.d
|
insinto /etc/sandbox.d
|
||||||
newins - 80${PN} <<-EOF
|
newins - "80${PN}" <<-EOF
|
||||||
SANDBOX_PREDICT="/proc/self/task"
|
SANDBOX_PREDICT='/proc/self/task'
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst_check() {
|
pkg_postinst_check() {
|
||||||
local a="$("${EROOT}"/opt/cuda/bin/cuda-config -s)"
|
local a
|
||||||
local b="0.0"
|
a="$("${EROOT}"/opt/cuda/bin/cuda-config -s)"
|
||||||
|
local b='0.0'
|
||||||
local v
|
local v
|
||||||
for v in ${a}; do
|
for v in ${a}; do
|
||||||
ver_test "${v}" -gt "${b}" && b="${v}"
|
ver_test "${v}" -gt "${b}" && b="${v}"
|
||||||
@ -298,13 +301,13 @@ pkg_postinst_check() {
|
|||||||
|
|
||||||
# if gcc and if not gcc-version is at least greatest supported
|
# if gcc and if not gcc-version is at least greatest supported
|
||||||
if tc-is-gcc && \
|
if tc-is-gcc && \
|
||||||
ver_test $(gcc-version) -gt "${b}"; then
|
ver_test "$(gcc-version)" -gt "${b}"; then
|
||||||
ewarn
|
ewarn
|
||||||
ewarn "gcc > ${b} will not work with CUDA"
|
ewarn "gcc > ${b} will not work with CUDA"
|
||||||
ewarn "Make sure you set an earlier version of gcc with gcc-config"
|
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 'or append --compiler-bindir= pointing to a gcc bindir like'
|
||||||
ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
|
ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
|
||||||
ewarn "to the nvcc compiler flags"
|
ewarn 'to the nvcc compiler flags'
|
||||||
ewarn
|
ewarn
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -316,13 +319,13 @@ pkg_postinst() {
|
|||||||
|
|
||||||
if use profiler || use nsight; then
|
if use profiler || use nsight; then
|
||||||
einfo
|
einfo
|
||||||
einfo "nvidia-drivers restrict access to performance counters."
|
einfo 'nvidia-drivers restrict access to performance counters.'
|
||||||
einfo "You'll need to either run profiling tools (nvprof, nsight) "
|
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 'using sudo (needs cap SYS_ADMIN) or add the following line to '
|
||||||
einfo "a modprobe configuration file "
|
einfo 'a modprobe configuration file '
|
||||||
einfo "(e.g. /etc/modprobe.d/nvidia-prof.conf): "
|
einfo '(e.g. /etc/modprobe.d/nvidia-prof.conf): '
|
||||||
einfo
|
einfo
|
||||||
einfo "options nvidia NVreg_RestrictProfilingToAdminUsers=0"
|
einfo 'options nvidia NVreg_RestrictProfilingToAdminUsers=0'
|
||||||
einfo
|
einfo
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -5,15 +5,15 @@ EAPI=8
|
|||||||
|
|
||||||
inherit go-module
|
inherit go-module
|
||||||
|
|
||||||
DESCRIPTION="Simple terminal UI for git commands"
|
DESCRIPTION='Simple terminal UI for git commands'
|
||||||
HOMEPAGE="https://github.com/jesseduffield/lazygit"
|
HOMEPAGE='https://github.com/jesseduffield/lazygit'
|
||||||
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
LICENSE="Apache-2.0 BSD ISC MIT Unlicense"
|
LICENSE='Apache-2.0 BSD ISC MIT Unlicense'
|
||||||
SLOT="0"
|
SLOT='0'
|
||||||
KEYWORDS="~amd64 ~arm64"
|
KEYWORDS='~amd64 ~arm64'
|
||||||
|
|
||||||
RDEPEND="dev-vcs/git"
|
RDEPEND='dev-vcs/git'
|
||||||
|
|
||||||
DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs )
|
DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs )
|
||||||
|
|
||||||
|
@ -5,26 +5,25 @@ EAPI=8
|
|||||||
|
|
||||||
inherit go-module
|
inherit go-module
|
||||||
|
|
||||||
DESCRIPTION="terminal UI for npm"
|
DESCRIPTION='terminal UI for npm'
|
||||||
HOMEPAGE="https://github.com/jesseduffield/lazynpm"
|
HOMEPAGE='https://github.com/jesseduffield/lazynpm'
|
||||||
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
S="${WORKDIR}/${P}"
|
S="${WORKDIR}/${P}"
|
||||||
|
|
||||||
LICENSE="Apache-2.0 BSD ISC MIT Unlicense"
|
LICENSE='Apache-2.0 BSD ISC MIT Unlicense'
|
||||||
SLOT="0"
|
SLOT='0'
|
||||||
KEYWORDS="~amd64 ~arm64"
|
KEYWORDS='~amd64 ~arm64'
|
||||||
|
|
||||||
RDEPEND="net-libs/nodejs"
|
RDEPEND='net-libs/nodejs'
|
||||||
|
|
||||||
DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs )
|
DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs )
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
ego build -o bin/${PN} \
|
ego build -o bin/"${PN}" -ldflags "-X main.version=${PV}"
|
||||||
-ldflags "-X main.version=${PV}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dobin bin/${PN}
|
dobin bin/"${PN}"
|
||||||
einstalldocs
|
einstalldocs
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user