apitrace: Enable on glibc >= 2.34

Drop unused patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2021-09-01 10:11:22 -07:00
parent 924d66e14e
commit 9fdc7960ba
4 changed files with 30 additions and 36 deletions
@@ -226,6 +226,7 @@ RDEPENDS:packagegroup-meta-oe-dbs-python2 ="\
RDEPENDS:packagegroup-meta-oe-devtools ="\ RDEPENDS:packagegroup-meta-oe-devtools ="\
abseil-cpp \ abseil-cpp \
apitrace \
breakpad \ breakpad \
android-tools-conf \ android-tools-conf \
android-tools \ android-tools \
@@ -0,0 +1,28 @@
From 1926700b367745e976dae9d9dc2236da21f4435b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 1 Sep 2021 10:07:48 -0700
Subject: [PATCH] Workaround glibc 2.34 build failure by disabling dlsym
wrapper
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
wrappers/dlsym.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wrappers/dlsym.cpp b/wrappers/dlsym.cpp
index 5ab8465b..d353bbf7 100644
--- a/wrappers/dlsym.cpp
+++ b/wrappers/dlsym.cpp
@@ -34,7 +34,7 @@
#include "os.hpp"
-#if defined(__GLIBC__) && !defined(__UCLIBC__)
+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !(__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34)
#include <dlfcn.h>
--
2.33.0
@@ -1,33 +0,0 @@
From bdd5f0834d95a9598b0d87a18e7e96afade9d418 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 10 May 2021 15:28:05 -0700
Subject: [PATCH] libbacktrace: include config.h
Fixes
thirdparty/libbacktrace/backtrace.h:53:10: fatal error: gstdint.h: No such file or directory
53 | #include "gstdint.h"
| ^~~~~~~~~~~
compilation terminated.
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
thirdparty/libbacktrace/backtrace.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/thirdparty/libbacktrace/backtrace.h b/thirdparty/libbacktrace/backtrace.h
index 2814763f..802cf989 100644
--- a/thirdparty/libbacktrace/backtrace.h
+++ b/thirdparty/libbacktrace/backtrace.h
@@ -33,6 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. */
#ifndef BACKTRACE_H
#define BACKTRACE_H
+#include <config.h>
#include <stddef.h>
#include <stdio.h>
--
2.31.1
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aeb969185a143c3c25130bc2c3ef9a50 \
SRCREV = "9d42f667e2a36a6624d92b9bd697de097cc4e619" SRCREV = "9d42f667e2a36a6624d92b9bd697de097cc4e619"
PV .= "+10.0.1+git${SRCPV}" PV .= "+10.0.1+git${SRCPV}"
SRC_URI = "gitsm://github.com/${BPN}/${BPN}.git \ SRC_URI = "gitsm://github.com/${BPN}/${BPN}.git \
file://0001-Workaround-glibc-2.34-build-failure-by-disabling-dls.patch \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
@@ -30,6 +31,3 @@ EXTRA_OECMAKE += "\
" "
SECURITY_CFLAGS:toolchain-clang = "" SECURITY_CFLAGS:toolchain-clang = ""
# see https://github.com/apitrace/apitrace/issues/756
PNBLACKLIST[apitrace] ?= "Needs porting to glibc 2.34+"