From 23778b53f420f54eebc195dd8430e79bda165e5b Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Thu, 16 May 2024 16:15:25 -0400 Subject: Backport an upstream patch to enable demangling on mips64el --- debian/changelog | 6 ++++++ debian/patches/mips-cxa-demangle.diff | 21 +++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 28 insertions(+) create mode 100644 debian/patches/mips-cxa-demangle.diff (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 21991859..275c8bb5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +abseil (20240116.2-2) experimental; urgency=medium + + * Backport an upstream patch to enable demangling on mips64el. + + -- Benjamin Barenblat Thu, 16 May 2024 16:15:02 -0400 + abseil (20240116.2-1) experimental; urgency=medium * New upstream release. diff --git a/debian/patches/mips-cxa-demangle.diff b/debian/patches/mips-cxa-demangle.diff new file mode 100644 index 00000000..81a5cbac --- /dev/null +++ b/debian/patches/mips-cxa-demangle.diff @@ -0,0 +1,21 @@ +From: Benjamin Barenblat +Subject: Allow __cxa_demangle on MIPS +Origin: backport, https://github.com/abseil/abseil-cpp/commit/519ef3b3f1927972bce669d775abb9b512dd590d + +Both libstdc++ and libc++abi currently ship a __cxa_demangle on MIPS; +there’s no reason to avoid using it. + +--- a/absl/base/config.h ++++ b/absl/base/config.h +@@ -902,9 +902,8 @@ + #error ABSL_INTERNAL_HAS_CXA_DEMANGLE cannot be directly set + #elif defined(OS_ANDROID) && (defined(__i386__) || defined(__x86_64__)) + #define ABSL_INTERNAL_HAS_CXA_DEMANGLE 0 +-#elif defined(__GNUC__) && defined(__GNUC_MINOR__) && \ +- (__GNUC__ >= 4 || (__GNUC__ >= 3 && __GNUC_MINOR__ >= 4)) && \ +- !defined(__mips__) ++#elif defined(__GNUC__) && defined(__GNUC_MINOR__) && \ ++ (__GNUC__ >= 4 || (__GNUC__ >= 3 && __GNUC_MINOR__ >= 4)) + #define ABSL_INTERNAL_HAS_CXA_DEMANGLE 1 + #elif defined(__clang__) && !defined(_MSC_VER) + #define ABSL_INTERNAL_HAS_CXA_DEMANGLE 1 diff --git a/debian/patches/series b/debian/patches/series index ad7c41cc..b7caff14 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -6,3 +6,4 @@ pkg-config-directives.diff riscv-nan-formatting.diff riscv-rdcycle.diff overload-test-dependencies.diff +mips-cxa-demangle.diff -- cgit v1.2.3