diff mbox series

[meta-oe,1/5] remmina: Fix buildpaths QA warnings

Message ID 20230525054712.1593592-1-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,1/5] remmina: Fix buildpaths QA warnings | expand

Commit Message

Khem Raj May 25, 2023, 5:47 a.m. UTC
buildflags.h is generated file which contains buildtime CFLAGS and it
gets included into sources via src/remmina_exec.c

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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-support/remmina/remmina_1.4.30.bb | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/remmina/remmina_1.4.30.bb b/meta-oe/recipes-support/remmina/remmina_1.4.30.bb
index c22eaf1d38..0437fba515 100644
--- a/meta-oe/recipes-support/remmina/remmina_1.4.30.bb
+++ b/meta-oe/recipes-support/remmina/remmina_1.4.30.bb
@@ -38,6 +38,10 @@  PACKAGECONFIG[spice] = "-DWITH_SPICE=ON, -DWITH_SPICE=OFF, spice spice-protocol"
 # Switch on gtk support in avahi recipe if you want to enable avahi support
 PACKAGECONFIG[avahi] = "-DWITH_AVAHI=ON, -DWITH_AVAHI=OFF, avahi"
 
+do_configure:append() {
+    sed -i -e 's|${WORKDIR}|<WORKDIR>|g' ${B}/generated/buildflags.h
+}
+
 RDEPENDS:${PN} = "bash"
 
 FILES:${PN}+= " \