dev-python/pyyaml: treeclean
This commit is contained in:
parent
7b7e4935ef
commit
71921a07de
@ -1,4 +0,0 @@
|
||||
AUX pyyaml-5.1-cve-2017-18342.patch 1420 BLAKE2B bf053ed121355aea1e44f9bd29b22c9afbca7b99b68e59a6e213d2723531044049964dcb20dbc036ee27ae8bcc2c26e317cf080637e611fa0105a9d451496125 SHA512 8e7737761555d851b21ca61128d2ced4163d446acb87510b6962a20dc217923bcf835d70224c9e721486351e0aeb57f9f3c570b57086a0a00c3e8ac656a458c5
|
||||
DIST PyYAML-5.3.tar.gz 268214 BLAKE2B 2017ec6d64744323c7e6f3bdcea77b249943ba93844de363ba5d2b14cf70cc5c06e8427d12515e1e60f8432a87a115df1033d959fc42851f61818d0bdc8cd7a2 SHA512 9124bf4d58ebe925f430fd6ed749e5a3311a54d536a035d39794c485843ddb80692fd7f7bac05797507128b933297ff730d967f49e7237c7c567086a83ee9e1f
|
||||
EBUILD pyyaml-5.3.ebuild 1170 BLAKE2B fe5d265f7cdd64ffd3d5e6e38a781feae6c4bafa25106574fe4cd82f34246bd2f1ee54b52d78aca1075b84b54e900db0b13c1906ffaee2cbcf9440dbb2d9e26c SHA512 505303c5c45686f2f402fa4257802e69f90d56987619382627e6797f589e2e2b5a1d69268f8bf106ff477b58f06647102807a707e639580eba93a808d33fda8e
|
||||
MISC metadata.xml 345 BLAKE2B 8c26b8b05b08ed9abab5ed2cb36552dc9af33ee2b30cf3ebe551576d7ad44908b3dff195cd7f1a3f5af9323d17eadee407e42bfeb99150be2a0ac4b48653c1eb SHA512 1fdee5219c989b3edf11bdb63264c6ca6bd54fb1f44907bf20ce7ee6b1968c9c6f2c94363698be87d92eb6cd07a034acca7dbcffaeac40d2add8d57a240772da
|
@ -1,40 +0,0 @@
|
||||
diff --git a/lib/yaml/__init__.py b/lib/yaml/__init__.py
|
||||
index e7a419d..5f80761 100644
|
||||
--- a/lib/yaml/__init__.py
|
||||
+++ b/lib/yaml/__init__.py
|
||||
@@ -106,6 +106,7 @@ def load(stream, Loader=None):
|
||||
and produce the corresponding Python object.
|
||||
"""
|
||||
if Loader is None:
|
||||
+ raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
|
||||
load_warning('load')
|
||||
Loader = FullLoader
|
||||
|
||||
@@ -121,6 +122,7 @@ def load_all(stream, Loader=None):
|
||||
and produce corresponding Python objects.
|
||||
"""
|
||||
if Loader is None:
|
||||
+ raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
|
||||
load_warning('load_all')
|
||||
Loader = FullLoader
|
||||
|
||||
diff --git a/lib3/yaml/__init__.py b/lib3/yaml/__init__.py
|
||||
index 5df0bb5..6952ba5 100644
|
||||
--- a/lib3/yaml/__init__.py
|
||||
+++ b/lib3/yaml/__init__.py
|
||||
@@ -106,6 +106,7 @@ def load(stream, Loader=None):
|
||||
and produce the corresponding Python object.
|
||||
"""
|
||||
if Loader is None:
|
||||
+ raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
|
||||
load_warning('load')
|
||||
Loader = FullLoader
|
||||
|
||||
@@ -121,6 +122,7 @@ def load_all(stream, Loader=None):
|
||||
and produce corresponding Python objects.
|
||||
"""
|
||||
if Loader is None:
|
||||
+ raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
|
||||
load_warning('load_all')
|
||||
Loader = FullLoader
|
||||
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="libyaml">enable support for C implementation using libyaml</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=no
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P="PyYAML-${PV}"
|
||||
|
||||
DESCRIPTION="YAML parser and emitter for Python"
|
||||
HOMEPAGE="https://pyyaml.org/wiki/PyYAML https://pypi.org/project/PyYAML/"
|
||||
SRC_URI="https://pyyaml.org/download/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="examples libyaml"
|
||||
|
||||
RDEPEND="libyaml? ( dev-libs/libyaml )"
|
||||
DEPEND="${RDEPEND}
|
||||
libyaml? ( $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' python2_7 'python3*') )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
# bug #659348
|
||||
"${FILESDIR}/pyyaml-5.1-cve-2017-18342.patch"
|
||||
)
|
||||
|
||||
python_configure_all() {
|
||||
mydistutilsargs=( $(use_with libyaml) )
|
||||
}
|
||||
|
||||
python_test() {
|
||||
YAML_TEST_VERBOSE=1 esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}
|
||||
fi
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user