mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 02:10:04 +00:00
recipes-connectivity/samba: Only rmdir directories that exist
Depending on PACKAGECONFIG selection, the /run/samba directory may not have been created. Make the do_install_append handle both situations by checking whether these directories exist before attempting to remove them. This fixes do_install failing with an error like this: rmdir: failed to remove '/.../samba/4.1.12-r0/image/run/samba': No such file or directory Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
committed by
Joe MacDonald
parent
37edcea5b7
commit
751659c243
@@ -111,8 +111,12 @@ EXTRA_OECONF += "--enable-fhs \
|
||||
LDFLAGS += "-Wl,-z,relro,-z,now"
|
||||
|
||||
do_install_append() {
|
||||
rmdir --ignore-fail-on-non-empty "${D}/run/samba"
|
||||
rmdir --ignore-fail-on-non-empty "${D}/run"
|
||||
if [ -d "${D}/run" ]; then
|
||||
if [ -d "${D}/run/samba" ]; then
|
||||
rmdir --ignore-fail-on-non-empty "${D}/run/samba"
|
||||
fi
|
||||
rmdir --ignore-fail-on-non-empty "${D}/run"
|
||||
fi
|
||||
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
|
||||
Reference in New Issue
Block a user