glusterfs: support usrmerge
PATCH 1/1 glusterfs: support usrmerge
From: Changqing Li <[email protected]>
Signed-off-by Changqing Li <[email protected]>
--- recipes-extended/glusterfs/glusterfs.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
recipes-extended/glusterfs/glusterfs.inc +5 -3
@@ -64,9 +64,11 @@ do_install_append() { install -m 0755 ${WORKDIR}/glusterd.init \ ${D}${sysconfdir}/init.d/glusterd - # Mount looks for mount.* plug-ins in /sbin; fix it with a symlink. - mkdir -p ${D}${base_sbindir} - (cd ${D}${base_sbindir}; ln -s ..${sbindir}/mount.glusterfs .) + if ! ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','false',d)}; then + # Mount looks for mount.* plug-ins in /sbin; fix it with a symlink. + mkdir -p ${D}${base_sbindir} + (cd ${D}${base_sbindir}; ln -s ..${sbindir}/mount.glusterfs .) + fi # These are plug-ins, so they don't need libtool configs. find ${D}${libdir}/glusterfs/${PV} -name '*.la' -exec rm -f '{}' ';'
Signature · 1 line
2.7.4
merged
Bruce
Quoted 35 lines · On Fri, Aug 30, 2019 at 2:13 AM <[email protected]> wrote:
From: Changqing Li <[email protected]>
Signed-off-by Changqing Li <[email protected]>--- recipes-extended/glusterfs/glusterfs.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)recipes-extended/glusterfs/glusterfs.inc +5
-4@@ -64,9 +64,11 @@ do_install_append() { install -m 0755 ${WORKDIR}/glusterd.init \ ${D}${sysconfdir}/init.d/glusterd - # Mount looks for mount.* plug-ins in /sbin; fix it with a symlink. - mkdir -p ${D}${base_sbindir} - (cd ${D}${base_sbindir}; ln -s ..${sbindir}/mount.glusterfs .) + if ! ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','false',d)}; then + # Mount looks for mount.* plug-ins in /sbin; fix it with a symlink. + mkdir -p ${D}${base_sbindir} + (cd ${D}${base_sbindir}; ln -s ..${sbindir}/mount.glusterfs .) + fi # These are plug-ins, so they don't need libtool configs. find ${D}${libdir}/glusterfs/${PV} -name '*.la' -exec rm -f '{}' ';' --2.7.4
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II