diff options
author | 2022-11-30 19:12:11 +0100 | |
---|---|---|
committer | 2022-11-30 19:13:03 +0100 | |
commit | 1b1b577bb33b34295e8cad2294c5486ee50200cf (patch) | |
tree | 446bd42c95439694ee1782324ce92f950cca7014 /sci-libs/pytorch/pytorch-1.11.0.ebuild | |
parent | sys-libs/libvpd: drop 2.2.8-r1 (diff) | |
download | gentoo-1b1b577bb33b34295e8cad2294c5486ee50200cf.tar.gz gentoo-1b1b577bb33b34295e8cad2294c5486ee50200cf.tar.bz2 gentoo-1b1b577bb33b34295e8cad2294c5486ee50200cf.zip |
sci-libs/pytorch: fix CVE-2022-45907
Bug: https://bugs.gentoo.org/883381
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'sci-libs/pytorch/pytorch-1.11.0.ebuild')
-rw-r--r-- | sci-libs/pytorch/pytorch-1.11.0.ebuild | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/sci-libs/pytorch/pytorch-1.11.0.ebuild b/sci-libs/pytorch/pytorch-1.11.0.ebuild deleted file mode 100644 index 401bdea8264a..000000000000 --- a/sci-libs/pytorch/pytorch-1.11.0.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10} ) -inherit distutils-r1 - -DESCRIPTION="Tensors and Dynamic neural networks in Python" -HOMEPAGE="https://pytorch.org/" -SRC_URI="https://github.com/pytorch/${PN}/archive/refs/tags/v${PV}.tar.gz - -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" -RESTRICT="test" -IUSE="cuda ffmpeg nnpack +numpy opencl opencv openmp qnnpack xnnpack" - -REQUIRED_USE=${PYTHON_REQUIRED_USE} -RDEPEND=" - ${PYTHON_DEPS} - ~sci-libs/caffe2-${PV}[${PYTHON_USEDEP}] - sci-libs/caffe2[cuda?,ffmpeg?,nnpack?,numpy?,opencl?,opencv?,openmp?,qnnpack?,xnnpack?] - dev-python/typing-extensions[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND} - dev-python/pyyaml[${PYTHON_USEDEP}] -" - -src_prepare() { - eapply \ - "${FILESDIR}"/0002-Don-t-build-libtorch-again-for-PyTorch-1.7.1.patch \ - "${FILESDIR}"/pytorch-1.9.0-Change-library-directory-according-to-CMake-build.patch \ - "${FILESDIR}"/${PN}-1.6.0-global-dlopen.patch \ - "${FILESDIR}"/pytorch-1.7.1-torch_shm_manager.patch - - # Set build dir for pytorch's setup - sed -i \ - -e "/BUILD_DIR/s|build|/var/lib/caffe2/|" \ - tools/setup_helpers/env.py \ - || die - distutils-r1_src_prepare -} - -src_compile() { - PYTORCH_BUILD_VERSION=${PV} \ - PYTORCH_BUILD_NUMBER=0 \ - USE_SYSTEM_LIBS=ON \ - CMAKE_BUILD_DIR="${BUILD_DIR}" \ - BUILD_DIR= \ - distutils-r1_src_compile -} - -src_install() { - USE_SYSTEM_LIBS=ON distutils-r1_src_install -} |