Skip to contentSkip to conversation

fvwm: Fix build time paths in target perl/python scripts

PATCH New Khem Raj 1 participant 1 message Aug 5, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 fvwm: Fix build time paths in target perl/python scripts

Add rdeps as needed
Fixes shebang-size QA warnings

---
 meta-oe/recipes-graphics/fvwm/fvwm_2.6.9.bb | 7 +++++++
 1 file changed, 7 insertions(+)
meta-oe/recipes-graphics/fvwm/fvwm_2.6.9.bb +7 -0
index 54e0a0ef4d..e0449269c0 100644
@@ -82,6 +82,9 @@ do_install:append() {
 
     install -d -m 0755 ${D}/${datadir}/fvwm
     touch ${D}/${datadir}/fvwm/ConfigFvwmDefaults
+    sed -i -e 's:${STAGING_BINDIR_NATIVE}/perl-native/perl:${USRBINPATH}/env perl:g' ${D}${bindir}/fvwm-*
+    sed -i -e 's:${STAGING_BINDIR_NATIVE}/perl-native/perl:${USRBINPATH}/env perl:g' ${D}${libexecdir}/fvwm/*/Fvwm*
+    sed -i -e 's:${STAGING_BINDIR_NATIVE}/python3-native/python3:${USRBINPATH}/env python3:g' ${D}${bindir}/fvwm-menu-desktop
 }
 
 # the only needed packages (note: locale packages are automatically generated
@@ -112,3 +115,7 @@ FILES:${PN}-doc = " \
 RDEPENDS:${PN} = " \
     xuser-account \
 "
+RDEPENDS:${PN}-extra += "\
+    perl \
+    python3-core \
+"

--
2.32.0