Skip to contentSkip to conversation

pacemaker: Remove build host path

PATCH In review Soumya 2 participants 2 messages Apr 24, 2023

lore
Share & tools
lore

Soumya

author
#0 lore raw

PATCH 1/1 pacemaker: Remove build host path

File installed by pacemaker-cli-utils contains path of build host.

---
 meta-cgl-common/recipes-cgl/pacemaker/pacemaker_2.0.5.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-cgl-common/recipes-cgl/pacemaker/pacemaker_2.0.5.bb +6 -0
index 2b4f96d..c3fdff3 100644
@@ -84,6 +84,12 @@ do_install:append() {
     do
         sed -i "s:${RECIPE_SYSROOT_NATIVE}::g" $temdir
     done
+
+    hostdir=$(grep -Rn ${HOSTTOOLS_DIR} ${D}/* | awk -F: '{print $1}' | uniq)
+    for tmpdir in $hostdir
+   do
+        sed -i "s:${HOSTTOOLS_DIR}::g" $tmpdir
+    done
 }
 
 PACKAGES:prepend = "${PN}-cli-utils ${PN}-libs ${PN}-cluster-libs ${PN}-remote "
Signature · 1 line
2.40.0
#1 lore raw

Meregd, thanks.

Quoted 33 lines · Soumya via lists.yoctoproject.org

File installed by pacemaker-cli-utils contains path of build host.

---
  meta-cgl-common/recipes-cgl/pacemaker/pacemaker_2.0.5.bb | 6 ++++++
  1 file changed, 6 insertions(+)
meta-cgl-common/recipes-cgl/pacemaker/pacemaker_2.0.5.bb +6 -1
index 2b4f96d..c3fdff3 100644
@@ -84,6 +84,12 @@ do_install:append() {
      do
          sed -i "s:${RECIPE_SYSROOT_NATIVE}::g" $temdir
      done
+
+    hostdir=$(grep -Rn ${HOSTTOOLS_DIR} ${D}/* | awk -F: '{print $1}' | uniq)
+    for tmpdir in $hostdir
+   do
+        sed -i "s:${HOSTTOOLS_DIR}::g" $tmpdir
+    done
  }
 
  PACKAGES:prepend = "${PN}-cli-utils ${PN}-libs ${PN}-cluster-libs ${PN}-remote "
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#59764): https://lists.yoctoproject.org/g/yocto/message/59764
Mute This Topic: https://lists.yoctoproject.org/mt/98462814/2167262
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
Jeremy Puhlman
[email protected]