summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2020-03-26 20:50:28 +0100
committerTupone Alfredo <tupone@gentoo.org>2020-03-26 20:50:28 +0100
commit9581a0b568efbe0f22efde7bf54d66024e159ebc (patch)
treef56b9561e0273bbd3c503a2159bc7810ea941d18 /dev-ada/langkit
parentdev-perl/Email-Address: security cleanup (bug #658562) (diff)
downloadgentoo-9581a0b568efbe0f22efde7bf54d66024e159ebc.tar.gz
gentoo-9581a0b568efbe0f22efde7bf54d66024e159ebc.tar.bz2
gentoo-9581a0b568efbe0f22efde7bf54d66024e159ebc.zip
dev-ada/langkit: fix usage of pyyaml
Closes: https://bugs.gentoo.org/713340 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada/langkit')
-rw-r--r--dev-ada/langkit/files/langkit-2019-pyyaml.patch11
-rw-r--r--dev-ada/langkit/langkit-2018.ebuild8
-rw-r--r--dev-ada/langkit/langkit-2019.ebuild9
3 files changed, 22 insertions, 6 deletions
diff --git a/dev-ada/langkit/files/langkit-2019-pyyaml.patch b/dev-ada/langkit/files/langkit-2019-pyyaml.patch
new file mode 100644
index 000000000000..58a64992a7c9
--- /dev/null
+++ b/dev-ada/langkit/files/langkit-2019-pyyaml.patch
@@ -0,0 +1,11 @@
+--- a/testsuite/testsuite_support/polyfill.py 2020-03-26 20:43:40.861154768 +0100
++++ b/testsuite/testsuite_support/polyfill.py 2020-03-26 20:44:07.874675123 +0100
+@@ -376,7 +376,7 @@
+ # First load data provided by this testcase
+ try:
+ with open(os.path.join(test_dir, 'test.yaml'), 'r') as f:
+- test_data = yaml.load(f)
++ test_data = yaml.safe_load(f)
+ except (IOError, yaml.error.YAMLError) as exc:
+ status = 'PROBLEM'
+ message = 'Invalid test.yaml: {}'.format(exc)
diff --git a/dev-ada/langkit/langkit-2018.ebuild b/dev-ada/langkit/langkit-2018.ebuild
index 348ef449845a..743c42e819dd 100644
--- a/dev-ada/langkit/langkit-2018.ebuild
+++ b/dev-ada/langkit/langkit-2018.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -24,7 +24,6 @@ DEPEND="${PYTHON_DEPS}
dev-ada/gnatcoll-bindings[iconv,shared]
dev-python/mako
dev-python/pyyaml
- <dev-python/pyyaml-5
dev-python/enum34
dev-python/funcy
dev-python/docutils
@@ -33,7 +32,10 @@ RDEPEND="${DEPEND}"
S="${WORKDIR}"/${MYP}-src
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${PN}-2019-pyyaml.patch
+)
src_test() {
testsuite/testsuite.py -j $(makeopts_jobs) --show-error-output | tee testsuite.log
diff --git a/dev-ada/langkit/langkit-2019.ebuild b/dev-ada/langkit/langkit-2019.ebuild
index 229fdd526dcc..31a57f6edd44 100644
--- a/dev-ada/langkit/langkit-2019.ebuild
+++ b/dev-ada/langkit/langkit-2019.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -24,7 +24,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
dev-ada/gnatcoll-bindings[iconv,shared]
dev-python/mako
- <dev-python/pyyaml-5
+ dev-python/pyyaml
dev-python/enum34
dev-python/funcy
dev-python/docutils"
@@ -34,7 +34,10 @@ DEPEND="${RDEPEND}
S="${WORKDIR}"/${MYP}-src
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-pyyaml.patch
+)
src_test() {
testsuite/testsuite.py -j $(makeopts_jobs) --show-error-output | tee testsuite.log