Skip to contentSkip to conversation

xrdb: Pass target CPP location to configure

PATCH New Khem Raj 1 participant 3 messages May 22, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/3 xrdb: Pass target CPP location to configure

CPP is encoded into xrdb binary and it ends up encoding the cpp from HOSTTOOLS location which obviously wont be where cpp will live at runtime

Fixes
WARNING: xrdb-1.2.1-r0 do_package_qa: QA Issue: File /usr/bin/xrdb in package xrdb contains reference to TMPDIR [buildpaths]

---
 meta-oe/recipes-graphics/xorg-app/xrdb_1.2.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-graphics/xorg-app/xrdb_1.2.1.bb +2 -0
index a8c5b3d0a4..20fdea1a54 100644
@@ -6,3 +6,5 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d1167c4f586bd41f0c62166db4384a69"
 DEPENDS += "libxmu"
 
 SRC_URI[sha256sum] = "4f5d031c214ffb88a42ae7528492abde1178f5146351ceb3c05f3b8d5abee8b4"
+
+EXTRA_OECONF += "--with-cpp=${bindir}/cpp"
Signature · 1 line
2.40.1
author
#1 lore raw

PATCH 2/3 mce-test: Update to latest

---
 meta-oe/recipes-support/mcelog/mce-test_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/mcelog/mce-test_git.bb +2 -2
index f4f1b37d78..99487fd9b6 100644
@@ -14,8 +14,8 @@ SRC_URI = "git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git;protocol=git;
            file://makefile-remove-ldflags.patch \
            file://0001-gcov_merge.py-scov_merge.py-switch-to-python3.patch \
           "
-SRCREV = "7643baf6c3919b3d727e6ba6c2e545dc6a653307"
-PV = "20190917+git${SRCPV}"
+SRCREV = "025014dedca39d2b8a57a82e52286e72e157d73a"
+PV = "20222810+git${SRCPV}"
 
 RDEPENDS:${PN} = "mcelog mce-inject dialog bash"
 
Signature · 1 line
2.40.1
author
#2 lore raw

PATCH 3/3 mce-test: Pass CFLAGS to make

In reply to Khem Raj

Fixes QA errors like below
File /opt/mce-test/cases/function/erst-inject/erst-inject.o in package mce-test contains reference to TMPDIR

---
 meta-oe/recipes-support/mcelog/mce-test_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-support/mcelog/mce-test_git.bb +2 -0
index 99487fd9b6..fd302db897 100644
@@ -23,6 +23,8 @@ COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
 
 S ="${WORKDIR}/git"
 
+EXTRA_OEMAKE += "CFLAGS='${CFLAGS}'"
+
 do_install:append(){
    install -d ${D}/opt/mce-test
    cp -rf ${S}/* ${D}/opt/mce-test/
Signature · 1 line
2.40.1