From 366f90b3b4fe807bb825906a80f849a1d86b6cec Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 11 May 2015 18:55:13 +0200 Subject: [PATCH] qt5: unbreak musl build (take 2). --- srcpkgs/qt5/patches/fix-execinfo.patch | 94 ++++++++++++++++++++++++++ srcpkgs/qt5/template | 2 +- 2 files changed, 95 insertions(+), 1 deletion(-) diff --git a/srcpkgs/qt5/patches/fix-execinfo.patch b/srcpkgs/qt5/patches/fix-execinfo.patch index 11cb4b96933..1085f79d92d 100644 --- a/srcpkgs/qt5/patches/fix-execinfo.patch +++ b/srcpkgs/qt5/patches/fix-execinfo.patch @@ -18,3 +18,97 @@ *size = backtrace(stack, *size); #elif OS(WINDOWS) && !OS(WINCE) // The CaptureStackBackTrace function is available in XP, but it is not defined +--- qtwebengine/src/3rdparty/chromium/base/debug/stack_trace_posix.cc.orig 2015-05-11 17:47:05.730337744 +0200 ++++ qtwebengine/src/3rdparty/chromium/base/debug/stack_trace_posix.cc 2015-05-11 17:50:09.730450061 +0200 +@@ -22,7 +22,7 @@ + #if defined(__GLIBCXX__) + #include + #endif +-#if !defined(__UCLIBC__) ++#if defined(__GLIBC__) + #include + #endif + +@@ -73,7 +73,7 @@ void DemangleSymbols(std::string* text) + // Note: code in this function is NOT async-signal safe (std::string uses + // malloc internally). + +-#if defined(__GLIBCXX__) && !defined(__UCLIBC__) ++#if defined(__GLIBCXX__) && defined(__GLIBC__) + + std::string::size_type search_from = 0; + while (search_from < text->size()) { +@@ -110,7 +110,7 @@ void DemangleSymbols(std::string* text) + } + } + +-#endif // defined(__GLIBCXX__) && !defined(__UCLIBC__) ++#endif // defined(__GLIBCXX__) && defined(__GLIBC__) + } + #endif // !defined(USE_SYMBOLIZE) + +@@ -169,7 +169,7 @@ void ProcessBacktrace(void *const *trace + + handler->HandleOutput("\n"); + } +-#elif !defined(__UCLIBC__) ++#elif defined(__GLIBC__) + bool printed = false; + + // Below part is async-signal unsafe (uses malloc), so execute it only +@@ -281,7 +281,7 @@ void StackDumpSignalHandler(int signal, + } + PrintToStderr("\n"); + +-#if !defined(__UCLIBC__) ++#if defined(__GLIBC__) + debug::StackTrace().Print(); + #endif + +@@ -742,7 +742,7 @@ StackTrace::StackTrace() { + // NOTE: This code MUST be async-signal safe (it's used by in-process + // stack dumping signal handler). NO malloc or stdio is allowed here. + +-#if !defined(__UCLIBC__) ++#if defined(__GLIBC__) + // Though the backtrace API man page does not list any possible negative + // return values, we take no chance. + count_ = base::saturated_cast(backtrace(trace_, arraysize(trace_))); +@@ -751,7 +751,7 @@ StackTrace::StackTrace() { + #endif + } + +-#if !defined(__UCLIBC__) ++#if defined(__GLIBC__) + void StackTrace::Print() const { + // NOTE: This code MUST be async-signal safe (it's used by in-process + // stack dumping signal handler). NO malloc or stdio is allowed here. +--- qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/wtf/Assertions.cpp.orig 2015-05-11 17:52:11.308845782 +0200 ++++ qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/wtf/Assertions.cpp 2015-05-11 17:52:54.731344269 +0200 +@@ -65,7 +65,7 @@ + #define HAVE_ISDEBUGGERPRESENT 1 + #endif + +-#if OS(MACOSX) || (OS(LINUX) && !defined(__UCLIBC__)) ++#if OS(MACOSX) || (OS(LINUX) && defined(__GLIBC__)) + #include + #include + #include +@@ -228,7 +228,7 @@ void WTFReportArgumentAssertionFailure(c + + void WTFGetBacktrace(void** stack, int* size) + { +-#if OS(MACOSX) || (OS(LINUX) && !defined(__UCLIBC__)) ++#if OS(MACOSX) || (OS(LINUX) && defined(__GLIBC__)) + *size = backtrace(stack, *size); + #elif OS(WIN) + // The CaptureStackBackTrace function is available in XP, but it is not defined +@@ -266,7 +266,7 @@ FrameToNameScope::FrameToNameScope(void* + : m_name(0) + , m_cxaDemangled(0) + { +-#if OS(MACOSX) || (OS(LINUX) && !defined(__UCLIBC__)) ++#if OS(MACOSX) || (OS(LINUX) && defined(__GLIBC__)) + Dl_info info; + if (!dladdr(addr, &info) || !info.dli_sname) + return; diff --git a/srcpkgs/qt5/template b/srcpkgs/qt5/template index a36c16f6336..1e67b68173a 100644 --- a/srcpkgs/qt5/template +++ b/srcpkgs/qt5/template @@ -1,4 +1,4 @@ -# Template file for 'qt5' +# Template file for 'qt5' pkgname=qt5 version=5.4.1 revision=4