Skip to contentSkip to conversation

catfish: fix buildpaths issue

PATCH New Chen Qi 1 participant 1 message Jul 20, 2022

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 catfish: fix buildpaths issue

---
 meta-xfce/recipes-apps/catfish/catfish_4.16.3.bb | 9 +++++++++
 1 file changed, 9 insertions(+)
meta-xfce/recipes-apps/catfish/catfish_4.16.3.bb +9 -0
index 98cd251d2..8fe879b81 100644
@@ -12,3 +12,12 @@ SRC_URI[sha256sum] = "e9a99a62d10981391508dd43f3cbfa2d50a69bd6b7d1eeef7d30ba4c67
 FILES:${PN} += "${datadir}/metainfo"
 
 RDEPENDS:${PN} += "python3-pygobject python3-dbus"
+
+do_install:append() {
+    #
+    # Until catfish upstream figures out a way to overcome this buildpath issue, we need to do such adjustments here.
+    #
+    sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' ${D}${datadir}/applications/org.xfce.Catfish.desktop
+    sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/catfish_lib/catfishconfig.py
+    rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/catfish_lib/__pycache__/catfishconfig.*.pyc
+}
Signature · 1 line
2.37.0