浏览代码

monkey: Remove buildpaths from generated mk_env.h

It has paths to compiler and assembler which are technically cross
compilers in OE. We do have these names symlinked on target too but
paths needs to be removed.

Fixes
WARNING: monkey-1.6.9-r0 do_package_qa: QA Issue: File /usr/include/monkey/mk_env.h in package monkey-dev contains reference to TMPDIR [buildpaths]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj 2 年之前
父节点
当前提交
1b7655c46c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb

+ 4 - 0
meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb

@@ -39,6 +39,10 @@ inherit cmake pkgconfig update-rc.d systemd
 
 OECMAKE_GENERATOR = "Unix Makefiles"
 
+do_configure:append() {
+    sed -i -e 's|${STAGING_BINDIR_TOOLCHAIN}/||g' ${S}/include/monkey/mk_env.h
+}
+
 do_install:append() {
     rmdir ${D}${localstatedir}/log/${BPN} ${D}${localstatedir}/run ${D}${localstatedir}/log
     rmdir --ignore-fail-on-non-empty ${D}${localstatedir}