[oe-commits] Robert Yang : esmtp: remove sendmail from sysroot

git at git.openembedded.org git at git.openembedded.org
Fri Dec 19 19:21:08 UTC 2014


Module: meta-openembedded.git
Branch: master-next
Commit: 08f7b94c6f726ab9ae3790cf362ab9fc42d3be31
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=08f7b94c6f726ab9ae3790cf362ab9fc42d3be31

Author: Robert Yang <liezhi.yang at windriver.com>
Date:   Fri Dec 19 00:29:24 2014 -0800

esmtp: remove sendmail from sysroot

The sysroot/${libdir}/sendmail conflicts with lsb's, and it's a
symlink to ${bindir}/esmtp which is meaningless for sysroot, so
remove it.

(LOCAL REV: NOT UPSTREAM) -- Sent to meta-networking on 20141219

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-networking/recipes-support/esmtp/esmtp_1.2.bb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta-networking/recipes-support/esmtp/esmtp_1.2.bb b/meta-networking/recipes-support/esmtp/esmtp_1.2.bb
index 60d34e1..21cc1c3 100644
--- a/meta-networking/recipes-support/esmtp/esmtp_1.2.bb
+++ b/meta-networking/recipes-support/esmtp/esmtp_1.2.bb
@@ -30,3 +30,11 @@ SRC_URI[md5sum] = "79a9c1f9023d53f35bb82bf446150a72"
 SRC_URI[sha256sum] = "a0d26931bf731f97514da266d079d8bc7d73c65b3499ed080576ab606b21c0ce"
 
 FILES_${PN} += "${libdir}/"
+
+# The sysroot/${libdir}/sendmail conflicts with lsb's, and it's a
+# symlink to ${bindir}/esmtp which is meaningless for sysroot, so
+# remove it.
+SYSROOT_PREPROCESS_FUNCS += "remove_sysroot_sendmail"
+remove_sysroot_sendmail() {
+    rm -r "${SYSROOT_DESTDIR}${libdir}/sendmail"
+}



More information about the Openembedded-commits mailing list