diff options
Diffstat (limited to 'meta/recipes-core/libcgroup')
-rw-r--r-- | meta/recipes-core/libcgroup/libcgroup_0.37.1.bb | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/meta/recipes-core/libcgroup/libcgroup_0.37.1.bb b/meta/recipes-core/libcgroup/libcgroup_0.37.1.bb index e74f8312dc..d217f7b149 100644 --- a/meta/recipes-core/libcgroup/libcgroup_0.37.1.bb +++ b/meta/recipes-core/libcgroup/libcgroup_0.37.1.bb | |||
@@ -23,5 +23,16 @@ FILES_cgroups-pam-plugin = "${base_libdir}/security/pam_cgroup.so*" | |||
23 | FILES_${PN}-dbg += "${base_libdir}/security/.debug" | 23 | FILES_${PN}-dbg += "${base_libdir}/security/.debug" |
24 | FILES_${PN}-dev += "${base_libdir}/security/*.la" | 24 | FILES_${PN}-dev += "${base_libdir}/security/*.la" |
25 | 25 | ||
26 | # We really need the symlink so :( | 26 | do_install_append() { |
27 | INSANE_SKIP_cgroups-pam-plugin = "dev-so" | 27 | # Moving libcgroup to base_libdir |
28 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
29 | mkdir -p ${D}/${base_libdir}/ | ||
30 | mv -f ${D}${libdir}/libcgroup.so.* ${D}${base_libdir}/ | ||
31 | ln -sf ${D}${base_libdir}/libcgroup.so.1 ${D}${libdir}/libcgroup.so | ||
32 | fi | ||
33 | # pam modules in ${base_libdir}/security/ should be binary .so files, not symlinks. | ||
34 | if [ -f ${D}${base_libdir}/security/pam_cgroup.so.0.0.0 ]; then | ||
35 | mv -f ${D}${base_libdir}/security/pam_cgroup.so.0.0.0 ${D}${base_libdir}/security/pam_cgroup.so | ||
36 | rm -f ${D}${base_libdir}/security/pam_cgroup.so.* | ||
37 | fi | ||
38 | } | ||