commit:     bb7f219c99bd6dfcac19d0d88dbfe106132c1173
Author:     Rolf Eike Beer <eike <AT> sf-mail <DOT> de>
AuthorDate: Wed Aug  7 09:49:34 2019 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Aug 10 05:56:01 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb7f219c

mail-mta/netqmail: fix build without ssl

Closes: https://bugs.gentoo.org/649854
Closes: https://bugs.gentoo.org/674688
Signed-off-by: Rolf Eike Beer <eike <AT> sf-mail.de>
Closes: https://github.com/gentoo/gentoo/pull/12630
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 mail-mta/netqmail/netqmail-1.06-r4.ebuild | 14 ++++++++------
 mail-mta/netqmail/netqmail-1.06-r5.ebuild | 16 +++++++++-------
 mail-mta/netqmail/netqmail-1.06-r6.ebuild | 16 +++++++++-------
 3 files changed, 26 insertions(+), 20 deletions(-)

diff --git a/mail-mta/netqmail/netqmail-1.06-r4.ebuild 
b/mail-mta/netqmail/netqmail-1.06-r4.ebuild
index 1f750f0f171..aa64d3d57d5 100644
--- a/mail-mta/netqmail/netqmail-1.06-r4.ebuild
+++ b/mail-mta/netqmail/netqmail-1.06-r4.ebuild
@@ -101,12 +101,14 @@ src_prepare() {
        ht_fix_file Makefile*
 
        if ! use vanilla; then
-               # This patch contains relative paths and needs to be cleaned up.
-               sed 's~^--- ../../~--- ~g' \
-                       <"${DISTDIR}"/${QMAIL_TLS_F} \
-                       >"${T}"/${QMAIL_TLS_F} || die
-               use ssl        && epatch "${T}"/${QMAIL_TLS_F}
-               use ssl        && epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
+               if use ssl; then
+                       # This patch contains relative paths and needs to be 
cleaned up.
+                       sed 's~^--- ../../~--- ~g' \
+                               < "${DISTDIR}"/${QMAIL_TLS_F} \
+                               > "${T}"/${QMAIL_TLS_F} || die
+                       epatch "${T}"/${QMAIL_TLS_F}
+                       epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
+               fi
                use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F}
 
                if use qmail-spp; then

diff --git a/mail-mta/netqmail/netqmail-1.06-r5.ebuild 
b/mail-mta/netqmail/netqmail-1.06-r5.ebuild
index 31387c27673..f6f4cfb3dee 100644
--- a/mail-mta/netqmail/netqmail-1.06-r5.ebuild
+++ b/mail-mta/netqmail/netqmail-1.06-r5.ebuild
@@ -105,12 +105,14 @@ src_prepare() {
        ht_fix_file Makefile*
 
        if ! use vanilla; then
-               # This patch contains relative paths and needs to be cleaned up.
-               sed 's~^--- ../../~--- ~g' \
-                       <"${DISTDIR}"/${QMAIL_TLS_F} \
-                       >"${T}"/${QMAIL_TLS_F} || die
-               use ssl        && epatch "${T}"/${QMAIL_TLS_F}
-               use ssl        && epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
+               if use ssl; then
+                       # This patch contains relative paths and needs to be 
cleaned up.
+                       sed 's~^--- ../../~--- ~g' \
+                               < "${DISTDIR}"/${QMAIL_TLS_F} \
+                               > "${T}"/${QMAIL_TLS_F} || die
+                       epatch "${T}"/${QMAIL_TLS_F}
+                       epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
+               fi
                use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F}
 
                if use qmail-spp; then
@@ -127,7 +129,7 @@ src_prepare() {
 
        cd "${WORKDIR}" || die
        epatch "${FILESDIR}"/use-new-path-for-functions.sh.patch
-       epatch "${FILESDIR}"/qmail-smtputf8.patch
+       use ssl && epatch "${FILESDIR}"/qmail-smtputf8.patch
        cd - || die
 
        qmail_src_postunpack

diff --git a/mail-mta/netqmail/netqmail-1.06-r6.ebuild 
b/mail-mta/netqmail/netqmail-1.06-r6.ebuild
index ea0d2b7b10c..f78baf94aac 100644
--- a/mail-mta/netqmail/netqmail-1.06-r6.ebuild
+++ b/mail-mta/netqmail/netqmail-1.06-r6.ebuild
@@ -105,12 +105,14 @@ src_prepare() {
        ht_fix_file Makefile*
 
        if ! use vanilla; then
-               # This patch contains relative paths and needs to be cleaned up.
-               sed 's~^--- ../../~--- ~g' \
-                       <"${DISTDIR}"/${QMAIL_TLS_F} \
-                       >"${T}"/${QMAIL_TLS_F} || die
-               use ssl        && epatch "${T}"/${QMAIL_TLS_F}
-               use ssl        && epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
+               if use ssl; then
+                       # This patch contains relative paths and needs to be 
cleaned up.
+                       sed 's~^--- ../../~--- ~g' \
+                               < "${DISTDIR}"/${QMAIL_TLS_F} \
+                               > "${T}"/${QMAIL_TLS_F} || die
+                       epatch "${T}"/${QMAIL_TLS_F}
+                       epatch "${DISTDIR}"/${QMAIL_TLS_CVE}
+               fi
                use highvolume && epatch "${DISTDIR}"/${QMAIL_BIGTODO_F}
 
                if use qmail-spp; then
@@ -127,7 +129,7 @@ src_prepare() {
 
        cd "${WORKDIR}" || die
        epatch "${FILESDIR}"/use-new-path-for-functions.sh.patch
-       epatch "${FILESDIR}"/qmail-smtputf8.patch
+       use ssl && epatch "${FILESDIR}"/qmail-smtputf8.patch
        cd - || die
 
        qmail_src_postunpack

Reply via email to