Skip to content

Commit 72ed653

Browse files
committed
dev-ada/libadalang: fix usage of pyyaml load
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alfredo Tupone <[email protected]>
1 parent c3c9600 commit 72ed653

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/ada/testsuite/testsuite_support/polyfill.py 2020-03-26 20:52:45.678476467 +0100
2+
+++ b/ada/testsuite/testsuite_support/polyfill.py 2020-03-26 20:53:13.612979979 +0100
3+
@@ -368,7 +368,7 @@
4+
# First load data provided by this testcase
5+
try:
6+
with open(os.path.join(test_dir, 'test.yaml'), 'r') as f:
7+
- test_data = yaml.load(f)
8+
+ test_data = yaml.safe_load(f)
9+
except (IOError, yaml.error.YAMLError) as exc:
10+
status = 'PROBLEM'
11+
message = 'Invalid test.yaml: {}'.format(exc)

dev-ada/libadalang/libadalang-2018-r2.ebuild

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ pkg_setup() {
3939
PATCHES=(
4040
"${FILESDIR}"/${P}-gentoo.patch
4141
"${FILESDIR}"/${PN}-2017-gentoo.patch
42+
"${FILESDIR}"/${PN}-2019-pyyaml.patch
4243
)
4344

4445
src_configure() {

dev-ada/libadalang/libadalang-2019-r1.ebuild

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ pkg_setup() {
3737
ada_pkg_setup
3838
}
3939

40-
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
40+
PATCHES=(
41+
"${FILESDIR}"/${P}-gentoo.patch
42+
"${FILESDIR}"/${P}-pyyaml.patch
43+
)
4144

4245
src_configure() {
4346
ada/manage.py -v debug generate || die

0 commit comments

Comments
 (0)