From: Robert Siebeck Date: Sun, 19 Apr 2020 22:02:26 +0000 (+0200) Subject: mail-client/alpine: don't call cc directly X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f2a8302db892759b973a994cdf8544bf431b7370;p=gentoo.git mail-client/alpine: don't call cc directly Closes: https://bugs.gentoo.org/718368 Signed-off-by: Robert Siebeck Closes: https://github.com/gentoo/gentoo/pull/15424 Signed-off-by: Joonas Niilola --- diff --git a/mail-client/alpine/alpine-2.22.ebuild b/mail-client/alpine/alpine-2.22.ebuild index 75f6d6673383..c2b83e1187b5 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 000000000000..87132bdd6b51 --- /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: MRC@CAC.Washington.EDU + + +-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