summaryrefslogtreecommitdiff
path: root/dev-cpp/folly/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-02 15:29:04 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-02 15:29:04 +0100
commit27c1d146e5ee9e472a31a7958ad4dc70a5451ea7 (patch)
treefe573cd3516126d757c143a469871b88e5851548 /dev-cpp/folly/files
parentbc3875d3a71ac3fdb07c0fcf863843b4fdfcf0c0 (diff)
gentoo auto-resync : 02:06:2023 - 15:29:04
Diffstat (limited to 'dev-cpp/folly/files')
-rw-r--r--dev-cpp/folly/files/folly-2023.05.22.00-musl-fix.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-cpp/folly/files/folly-2023.05.22.00-musl-fix.patch b/dev-cpp/folly/files/folly-2023.05.22.00-musl-fix.patch
new file mode 100644
index 000000000000..6f92db0a785a
--- /dev/null
+++ b/dev-cpp/folly/files/folly-2023.05.22.00-musl-fix.patch
@@ -0,0 +1,26 @@
+# Elf.cpp expects __ELF_NATIVE_CLASS to be defined at least for platforms
+# besides FreeBSD-based ones, and so it defines FOLLY_ELF_NATIVE_CLASS with it.
+# Without __ELF_NATIVE_CLASS (and apparently musl does not define it),
+# FOLLY_ELF_NATIVE_CLASS is also not defined so what was supposed to be
+# expanded to ELFCLASS32 or ELFCLASS64 ends up being
+# ELFCLASSFOLLY_ELF_NATIVE_CLASS.
+#
+# Please refer: https://github.com/facebook/folly/issues/1478
+#
+# Closes: https://bugs.gentoo.org/835744
+--- a/folly/experimental/symbolizer/Elf.cpp
++++ b/folly/experimental/symbolizer/Elf.cpp
+@@ -39,12 +39,10 @@
+
+ #if defined(__ELF_NATIVE_CLASS)
+ #define FOLLY_ELF_NATIVE_CLASS __ELF_NATIVE_CLASS
+-#elif defined(__FreeBSD__)
+-#if defined(__LP64__)
++#elif defined(__LP64__)
+ #define FOLLY_ELF_NATIVE_CLASS 64
+ #else
+ #define FOLLY_ELF_NATIVE_CLASS 32
+-#endif
+ #endif // __ELF_NATIVE_CLASS
+
+ namespace folly {