Skip to contentSkip to conversation

esmtp: use BPN in SRC_URI

PATCH In review Robert Yang 2 participants 3 messages Dec 30, 2014 – Jan 5, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 esmtp: use BPN in SRC_URI

---
 meta-networking/recipes-support/esmtp/esmtp_1.2.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/esmtp/esmtp_1.2.bb +1 -1
index 46d468c..60d34e1 100644
@@ -11,7 +11,7 @@ DEPENDS = "libesmtp"
 LICENSE = "GPL-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
-SRC_URI = "http://nchc.dl.sourceforge.net/project/${PN}/${PN}/${PV}/${PN}-${PV}.tar.bz2"
+SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.bz2"
 
 # Have to set this or we get -L/lib in LDFLAGS
 EXTRA_OECONF = "--with-libesmtp=${STAGING_EXECPREFIXDIR}"
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v2 2/2 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.

---
 meta-networking/recipes-support/esmtp/esmtp_1.2.bb |    8 ++++++++
 1 file changed, 8 insertions(+)
meta-networking/recipes-support/esmtp/esmtp_1.2.bb +8 -0
index 60d34e1..21cc1c3 100644
@@ -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"
+}
Signature · 1 line
1.7.9.5
#2 lore raw
In reply to Robert Yang

Merged these, with one minor tweak. I dropped in ${SOURCEFORGE_MIRROR} in the SRC_URI here as we've been doing with others.

Thanks Robert.
-J.

Quoted 21 lines · [[oe] [meta-networking] [PATCH 1/2 V2] esmtp: use BPN in SRC_URI] On 14.12.30…
---
 meta-networking/recipes-support/esmtp/esmtp_1.2.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/esmtp/esmtp_1.2.bb +1 -1
index 46d468c..60d34e1 100644
@@ -11,7 +11,7 @@ DEPENDS = "libesmtp"
 LICENSE = "GPL-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
-SRC_URI = "http://nchc.dl.sourceforge.net/project/${PN}/${PN}/${PV}/${PN}-${PV}.tar.bz2"
+SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.bz2"
 
 # Have to set this or we get -L/lib in LDFLAGS
 EXTRA_OECONF = "--with-libesmtp=${STAGING_EXECPREFIXDIR}"
Signature · 1 line
1.7.9.5
Signature · 2 lines
-Joe MacDonald.
:wq