summaryrefslogtreecommitdiff
path: root/dev-python/pygccxml
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pygccxml')
-rw-r--r--dev-python/pygccxml/files/pygccxml-2.5.0-fix-test-flags.patch10
-rw-r--r--dev-python/pygccxml/pygccxml-2.5.0.ebuild5
2 files changed, 15 insertions, 0 deletions
diff --git a/dev-python/pygccxml/files/pygccxml-2.5.0-fix-test-flags.patch b/dev-python/pygccxml/files/pygccxml-2.5.0-fix-test-flags.patch
new file mode 100644
index 000000000000..c96ef5e8d7ab
--- /dev/null
+++ b/dev-python/pygccxml/files/pygccxml-2.5.0-fix-test-flags.patch
@@ -0,0 +1,10 @@
+diff --git a/unittests/xml_generator.cfg b/unittests/xml_generator.cfg
+index cb00818..58899b6 100644
+--- a/unittests/xml_generator.cfg
++++ b/unittests/xml_generator.cfg
+@@ -15,3 +15,5 @@ include_paths=
+ compiler=
+ # Keep xml files after errors (useful for debugging)
+ keep_xml=
++# needed with clang-19
++cflags=-fsized-deallocation
diff --git a/dev-python/pygccxml/pygccxml-2.5.0.ebuild b/dev-python/pygccxml/pygccxml-2.5.0.ebuild
index d2bc4fa5a2ad..35d67ab4614f 100644
--- a/dev-python/pygccxml/pygccxml-2.5.0.ebuild
+++ b/dev-python/pygccxml/pygccxml-2.5.0.ebuild
@@ -36,6 +36,9 @@ distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
EPYTEST_DESELECT=(
# TODO; too new LLVM? upstream tests against LLVM 13
unittests/test_overrides.py::Test::test
+ # fails with >=GCC-15.0.2 (bug #940578)
+ unittests/test_smart_pointer.py::Test::test_smart_pointer_value_type
+
)
python_prepare_all() {
@@ -44,6 +47,8 @@ python_prepare_all() {
"${FILESDIR}/${PN}-2.4.0-doc.patch"
# https://github.com/CastXML/pygccxml/pull/179
"${FILESDIR}/${P}-which.patch"
+ # fixes tests with clang-19
+ "${FILESDIR}/${PN}-2.5.0-fix-test-flags.patch"
)
distutils-r1_python_prepare_all