Skip to contentSkip to conversation

apitrace: Exclude from builds with glibc 2.34+

PATCH New Khem Raj 1 participant 2 messages Aug 3, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 apitrace: Exclude from builds with glibc 2.34+

It needs some work see [1]

[1] https://github.com/apitrace/apitrace/issues/756

---
 meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 1 -
 meta-oe/recipes-devtools/apitrace/apitrace_10.0.bb         | 3 +++
 2 files changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +0 -1
index 06bde46a3c..a95fe8b040 100644
@@ -227,7 +227,6 @@ RDEPENDS_packagegroup-meta-oe-dbs-python2 ="\
 
 RDEPENDS_packagegroup-meta-oe-devtools ="\
     abseil-cpp \
-    apitrace \
     breakpad \
     bootchart \
     android-tools-conf \
meta-oe/recipes-devtools/apitrace/apitrace_10.0.bb +3 -0
index e42b891d46..a1e82970a3 100644
@@ -30,3 +30,6 @@ EXTRA_OECMAKE += "\
 "
 
 SECURITY_CFLAGS_toolchain-clang = ""
+
+# see https://github.com/apitrace/apitrace/issues/756
+PNBLACKLIST[apitrace] ?= "Needs porting to glibc 2.34+"

--
2.32.0

author
#1 lore raw

PATCH 1/1 libhugetlbfs: Disable build with glibc 2.34+

It uses __morecore internal function from glibc which has been removed in 2.34+ and replacing it is not so simple and upstream needs to fix it see [1]

[1] https://github.com/libhugetlbfs/libhugetlbfs/issues/52

---
 meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 3 +++
 meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 1 -
 meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb  | 3 +--
 3 files changed, 4 insertions(+), 3 deletions(-)
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +3 -0
index aa9eb02b34..124b142d83 100644
@@ -74,3 +74,6 @@ INSANE_SKIP_${PN} = "dev-so"
 
 INHIBIT_PACKAGE_STRIP = "1"
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+# see https://github.com/libhugetlbfs/libhugetlbfs/issues/52
+PNBLACKLIST[libhugetlbfs] ?= "Needs porting to glibc 2.34+"
meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +0 -1
index a95fe8b040..84f89f4e71 100644
@@ -68,7 +68,6 @@ RDEPENDS_packagegroup-meta-oe-benchmarks = "\
     iperf2 \
     iperf3 \
     libc-bench \
-    libhugetlbfs \
     linpack \
     lmbench \
     mbw \
meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb +1 -2
index 4caf217c24..11cf935c73 100644
@@ -18,7 +18,7 @@ SRC_URI += "file://run-ptest \
 # we will append other kernel selftest in the future
 # bpf was added in 4.10 with: https://github.com/torvalds/linux/commit/5aa5bd14c5f8660c64ceedf14a549781be47e53d
 # if you have older kernel than that you need to remove it from PACKAGECONFIG
-PACKAGECONFIG ??= "firmware vm"
+PACKAGECONFIG ??= "firmware"
 PACKAGECONFIG_remove_x86 = "bpf"
 PACKAGECONFIG_remove_arm = "bpf vm"
 # host ptrace.h is used to compile BPF target but mips ptrace.h is needed
@@ -137,4 +137,3 @@ COMPATIBLE_HOST_libc-musl = 'null'
 # It has native clang/llvm dependency, poky distro is reluctant to include them as deps
 # this helps with world builds on AB
 EXCLUDE_FROM_WORLD = "1"
-

--
2.32.0