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.

(From OE-Core rev: 9e906f4260d9ce44a78cc315930677b3bd0ab9c1)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Robert Yang 2014-12-19 00:27:54 -08:00 committed by Richard Purdie
parent 422c317818
commit 51374d55ef
1 changed files with 8 additions and 0 deletions

View File

@ -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"
}