Skip to contentSkip to conversation

minifi-cpp: Adapt to potential psuedo changes

PATCH New Richard Purdie 1 participant 1 message Sep 28, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minifi-cpp: Adapt to potential psuedo changes

If we do adopt path filtering for pseudo, we may filter out ${B} as not needing to be tracked for "root" permissions. We do need to track the data installed by do_install though, so move the temp directory this recipe uses out of ${B} and place it in WORKDIR.

---
 meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb +4 -3
index 37036ebbb..d75cb9f4e 100644
@@ -52,9 +52,10 @@ TARGET_CXXFLAGS_append_riscv32 += "-fpic"
 TARGET_CFLAGS_append_riscv64 += "-fpic"
 TARGET_CXXFLAGS_append_riscv64 += "-fpic"
 
+do_install[cleandirs] += "${WORKDIR}/minifi-install"
 
 do_install() {
-    DESTDIR='${B}/minifi-install' cmake_runcmake_build --target ${OECMAKE_TARGET_INSTALL}
+    DESTDIR='${WORKDIR}/minifi-install' cmake_runcmake_build --target ${OECMAKE_TARGET_INSTALL}
 
     MINIFI_BIN=${base_prefix}${bindir}
     MINIFI_HOME=${base_prefix}${sysconfdir}/minifi
@@ -63,8 +64,8 @@ do_install() {
 
     install -d ${D}${MINIFI_BIN}
     install -d ${D}${MINIFI_HOME}/conf
-    cp -a ${B}/minifi-install/usr/bin/*   ${D}${MINIFI_BIN}/
-    cp -a ${B}/minifi-install/usr/conf/*  ${D}${MINIFI_HOME}/conf/
+    cp -a ${WORKDIR}/minifi-install/usr/bin/*   ${D}${MINIFI_BIN}/
+    cp -a ${WORKDIR}/minifi-install/usr/conf/*  ${D}${MINIFI_HOME}/conf/
 
     sed -i 's|#appender.rolling.directory=.*|appender.rolling.directory='${MINIFI_LOG}'|g' \
         ${D}${MINIFI_HOME}/conf/minifi-log.properties
Signature · 1 line
2.17.1