diff options
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap_git.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb index 89f550c859..74bf7cb35c 100644 --- a/meta/recipes-kernel/systemtap/systemtap_git.bb +++ b/meta/recipes-kernel/systemtap/systemtap_git.bb | |||
@@ -66,7 +66,7 @@ do_install_append () { | |||
66 | rm ${D}${libexecdir}/${PN}/stap-env | 66 | rm ${D}${libexecdir}/${PN}/stap-env |
67 | fi | 67 | fi |
68 | 68 | ||
69 | if [ ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then | 69 | if [ -d ${D}${prefix}/lib/systemd -a ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then |
70 | # Fix makefile hardcoded path assumptions for systemd (assumes $prefix) | 70 | # Fix makefile hardcoded path assumptions for systemd (assumes $prefix) |
71 | # without usrmerge distro feature enabled | 71 | # without usrmerge distro feature enabled |
72 | install -d `dirname ${D}${systemd_unitdir}` | 72 | install -d `dirname ${D}${systemd_unitdir}` |
@@ -75,7 +75,9 @@ do_install_append () { | |||
75 | fi | 75 | fi |
76 | 76 | ||
77 | # Ensure correct ownership for files copied in | 77 | # Ensure correct ownership for files copied in |
78 | chown root:root ${D}${sysconfdir}/stap-exporter/* -R | 78 | if [ -d ${D}${sysconfdir}/stap-exporter ]; then |
79 | chown root:root ${D}${sysconfdir}/stap-exporter/* -R | ||
80 | fi | ||
79 | } | 81 | } |
80 | 82 | ||
81 | BBCLASSEXTEND = "nativesdk" | 83 | BBCLASSEXTEND = "nativesdk" |