commit: 4eb9d71922ad1676dd3411a9644d8576860e7ca4 Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> AuthorDate: Thu Jan 16 16:11:12 2025 +0000 Commit: Nowa Ammerlaan <nowa <AT> gentoo <DOT> org> CommitDate: Fri Jan 17 12:51:24 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4eb9d719
sci-libs/ondselsolver: install Demangle.h Closes: https://bugs.gentoo.org/948172 Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/40163 Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org> ...ndselsolver-1.0.1-properly-demangle-typenames.patch | 18 ++++++++++++++++++ ...7.ebuild => ondselsolver-1.0.1_p20241127-r1.ebuild} | 0 2 files changed, 18 insertions(+) diff --git a/sci-libs/ondselsolver/files/ondselsolver-1.0.1-properly-demangle-typenames.patch b/sci-libs/ondselsolver/files/ondselsolver-1.0.1-properly-demangle-typenames.patch index 20c6533d73a9..7d536796d9f5 100644 --- a/sci-libs/ondselsolver/files/ondselsolver-1.0.1-properly-demangle-typenames.patch +++ b/sci-libs/ondselsolver/files/ondselsolver-1.0.1-properly-demangle-typenames.patch @@ -3,6 +3,12 @@ From: Paul Zander <[email protected]> Date: Sun, 12 Jan 2025 19:22:48 +0100 Subject: [PATCH] properly demangle typenames +C++ class names are mangled. How these are mangled is implementation specific. +Using string offsets is naive and caused at minimum testfailures. + +For gcc and clang you can use cxxabi.h to get demangled name. +This initial patch uses this for linux only, so the gentoo build suceeeds. + Signed-off-by: Paul Zander <[email protected]> diff --git a/OndselSolver/ASMTItem.cpp b/OndselSolver/ASMTItem.cpp @@ -168,6 +174,18 @@ index 75bcbb6..4961964 100644 } std::shared_ptr<std::vector<Symsptr>> Symbolic::getTerms() +diff --git a/OndselSolver/CMakeLists.txt b/OndselSolver/CMakeLists.txt +index 6836e72..30d5bf4 100644 +--- a/OndselSolver/CMakeLists.txt ++++ b/OndselSolver/CMakeLists.txt +@@ -426,6 +426,7 @@ set(ONDSELSOLVER_HEADERS + CREATE.h + CylindricalJoint.h + CylSphJoint.h ++ Demangle.h + DiagonalMatrix.h + DifferenceOperator.h + DifferentiatedGeneralSpline.h -- 2.48.0 diff --git a/sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127.ebuild b/sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127-r1.ebuild similarity index 100% rename from sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127.ebuild rename to sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127-r1.ebuild
