From 9e906f4260d9ce44a78cc315930677b3bd0ab9c1 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Fri, 19 Dec 2014 00:27:54 -0800 Subject: lsb: remove sendmail from sysroot The sysroot/${libdir}/sendmail conflicts with esmtp's, and it's a symlink to ${sbindir}/sendmail which is meaningless for sysroot, so remove it. Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- meta/recipes-extended/lsb/lsb_4.1.bb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta/recipes-extended/lsb/lsb_4.1.bb b/meta/recipes-extended/lsb/lsb_4.1.bb index 69f3962ec4..b4ef98eea7 100644 --- a/meta/recipes-extended/lsb/lsb_4.1.bb +++ b/meta/recipes-extended/lsb/lsb_4.1.bb @@ -121,3 +121,11 @@ FILES_${PN} += "/lib64 \ ${base_libdir}/lsb/* \ ${libdir}/sendmail \ " + +# The sysroot/${libdir}/sendmail conflicts with esmtp's, and it's a +# symlink to ${sbindir}/sendmail which is meaningless for sysroot, so +# remove it. +SYSROOT_PREPROCESS_FUNCS += "remove_sysroot_sendmail" +remove_sysroot_sendmail() { + rm -r "${SYSROOT_DESTDIR}${libdir}/sendmail" +} -- cgit 1.2.3-korg