commit:     f2a8302db892759b973a994cdf8544bf431b7370
Author:     Robert Siebeck <gentoo.2019 <AT> r123 <DOT> de>
AuthorDate: Sun Apr 19 22:02:26 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Apr 22 13:38:38 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2a8302d

mail-client/alpine: don't call cc directly

Closes: https://bugs.gentoo.org/718368
Signed-off-by: Robert Siebeck <gentoo.2019 <AT> r123.de>
Closes: https://github.com/gentoo/gentoo/pull/15424
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 mail-client/alpine/alpine-2.22.ebuild         |  6 ++++++
 mail-client/alpine/files/alpine-2.22-cc.patch | 24 ++++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/mail-client/alpine/alpine-2.22.ebuild 
b/mail-client/alpine/alpine-2.22.ebuild
index 75f6d667338..c2b83e1187b 100644
--- a/mail-client/alpine/alpine-2.22.ebuild
+++ b/mail-client/alpine/alpine-2.22.ebuild
@@ -27,9 +27,15 @@ RDEPEND="${DEPEND}
        app-misc/mime-types
 "
 
+PATCHES=(
+       "${FILESDIR}/${P}-cc.patch"
+)
+
 src_prepare() {
        default
        eautoreconf
+       tc-export CC RANLIB AR
+       export CC_FOR_BUILD=$(tc-getBUILD_CC)
 }
 
 src_configure() {

diff --git a/mail-client/alpine/files/alpine-2.22-cc.patch 
b/mail-client/alpine/files/alpine-2.22-cc.patch
new file mode 100644
index 00000000000..87132bdd6b5
--- /dev/null
+++ b/mail-client/alpine/files/alpine-2.22-cc.patch
@@ -0,0 +1,24 @@
+--- ./imap/tools/Makefile      2020-04-19 23:45:13.080083548 +0200
++++ ./imap/tools/Makefile      2020-04-19 23:45:24.525083844 +0200
+@@ -21,7 +21,6 @@
+ #              Internet: [email protected]
+ 
+ 
+-CC=cc
+ RM=rm -f
+
+
+--- ./imap/src/osdep/unix/Makefile     2020-04-19 23:54:55.454098598 +0200
++++ ./imap/src/osdep/unix/Makefile     2020-04-19 23:54:55.454098598 +0200
+@@ -132,10 +132,8 @@
+
+ # Commands possibly overridden by the individual port
+
+-ARRC=ar rc
+-CC=cc
++ARRC=$(AR) rc
+ LN=ln -s
+-RANLIB=ranlib
+
+
+ # Standard distribution build parameters

Reply via email to