mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
dev-ada/libadalang: support gcc:15, fix test with python3.13
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
32
dev-ada/libadalang/files/libadalang-25.0.0-pipes.patch
Normal file
32
dev-ada/libadalang/files/libadalang-25.0.0-pipes.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
From 2ffad60f987b39f23d3cc339103c502e1d24fbd4 Mon Sep 17 00:00:00 2001
|
||||
From: Pierre-Marie de Rodat <derodat@adacore.com>
|
||||
Date: Wed, 4 Dec 2024 13:12:12 +0000
|
||||
Subject: [PATCH] Transition uses of the Python pipes module to shlex
|
||||
|
||||
"pipes" was removed from Python 3.13.
|
||||
---
|
||||
testsuite/python_support/utils.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/testsuite/python_support/utils.py b/testsuite/python_support/utils.py
|
||||
index 6c5dac4de..f88f337a6 100644
|
||||
--- a/testsuite/python_support/utils.py
|
||||
+++ b/testsuite/python_support/utils.py
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
import os.path
|
||||
-import pipes
|
||||
import re
|
||||
+import shlex
|
||||
import subprocess
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ def run_nameres(args):
|
||||
|
||||
if p.returncode:
|
||||
print('nameres exitted with status code {}'.format(p.returncode))
|
||||
- print('Command line was:', ' '.join(pipes.quote(a) for a in argv))
|
||||
+ print('Command line was:', shlex.join(argv))
|
||||
print('Output was:')
|
||||
print('')
|
||||
print(stdout)
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
ADA_COMPAT=( gcc_14 )
|
||||
ADA_COMPAT=( gcc_{14..15} )
|
||||
|
||||
inherit ada python-single-r1 multiprocessing
|
||||
|
||||
@@ -39,7 +39,10 @@ BDEPEND="
|
||||
')
|
||||
test? ( dev-ada/e3-testsuite )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-23.0.0-test.patch )
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-23.0.0-test.patch
|
||||
"${FILESDIR}"/${P}-pipes.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
@@ -48,11 +51,16 @@ pkg_setup() {
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm -r testsuite/tests/ada_api/foreign_nodes || die
|
||||
rm -r testsuite/tests/{c_api,python}/gpr_ada_only || die
|
||||
rm -r testsuite/tests/lexical_envs/envs_* || die
|
||||
rm -r testsuite/tests/lexical_envs/records || die
|
||||
rm -r testsuite/tests/lexical_envs/gen_pkg_inst || die
|
||||
rm -r testsuite/tests/ada_api/foreign_nodes || die
|
||||
rm -r testsuite/tests/name_resolution/concat_op || die
|
||||
rm -r testsuite/tests/name_resolution/entries_tasks_attrs || die
|
||||
rm -r testsuite/tests/name_resolution/gnat_compare_implicit_references || die
|
||||
rm -r testsuite/tests/name_resolution/qual_expr_stmt || die
|
||||
rm -r testsuite/tests/properties/fully_qualified_name_4 || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
Reference in New Issue
Block a user