Skip to contentSkip to conversation

evince: fix do_install problem

PATCH New [email protected] 1 participant 1 message Apr 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 evince: fix do_install problem

From: Chen Qi <[email protected]>

When building evince for multilib, we would meet the following do_install error.

mv: cannot stat [snip]/usr/lib64/systemd/user/evince.service: No such file or directory

Fix to use the correct directory related to systemd in do_install function.

---
 meta-gnome/recipes-gnome/evince/evince_3.24.0.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
meta-gnome/recipes-gnome/evince/evince_3.24.0.bb +4 -3
index 2b75244..aae8e71 100644
@@ -30,12 +30,13 @@ do_install_append() {
     if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}
     then
         install -d ${D}${systemd_unitdir}/system
-        mv ${D}${libdir}/systemd/user/evince.service ${D}${systemd_unitdir}/system/evince.service
+        mv ${D}${systemd_user_unitdir}/evince.service ${D}${systemd_system_unitdir}/evince.service
     else
         rm -rf ${D}${libdir}/systemd/user/evince.service
     fi
-    rmdir --ignore-fail-on-non-empty ${D}${libdir}/systemd/user
-    rmdir --ignore-fail-on-non-empty ${D}${libdir}/systemd
+    rmdir --ignore-fail-on-non-empty ${D}${systemd_user_unitdir}
+    rmdir --ignore-fail-on-non-empty ${D}${nonarch_libdir}/systemd
+    rmdir --ignore-fail-on-non-empty ${D}${nonarch_libdir}
 }
 
 PACKAGECONFIG ??= ""
Signature · 1 line
1.9.1