Subject: Re: cc vs gcc in elm
To: None <tech-pkg@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-pkg
Date: 10/12/2002 20:27:07
--LQksG6bCIzRHxTLp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Oct 11, 2002 at 11:04:58PM -0700, Johnny C. Lam wrote:
> On Fri, Oct 11, 2002 at 12:36:38PM +0200, Manuel Bouyer wrote:
> > Hi,
> > the elm package explicitely calls cc, which causes problems on solaris
> > (/usr/ucb/cc:  language optional software package not installed). The
> > easiest would probably be to change it to always call gcc.
> > Are there zoularis-supported platforms where this could cause a problem
> > (where there is a working cc, and no gcc available) ?
> 
> Convert it to use buildlink2.  The cc wrapper will call GNU cc.

Does the attached patch looks good ?
It's not enouth, anyway, as it still tries to use cc for ./Configure

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--

--LQksG6bCIzRHxTLp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff

? README.html
? work
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/elm/Makefile,v
retrieving revision 1.21
diff -u -r1.21 Makefile
--- Makefile	2002/05/26 10:42:39	1.21
+++ Makefile	2002/10/12 18:19:04
@@ -9,6 +9,8 @@
 HOMEPAGE=		http://www.instinct.org/elm/
 COMMENT=		ELM Mail User Agent (without ME extensions)
 
+USE_BUILDLINK2=         YES
+
 CONFLICTS+=		mm-[0-9]* metamail-[0-9]*
 CONFLICTS+=		elm-me-[0-9]*
 
@@ -25,5 +27,5 @@
 	${MV} ${WRKSRC}/nls/LANGS ${WRKSRC}/nls/LANGS.tmpl
 	${SED} -e 's:__PREFIX:'${PREFIX}':g' < ${WRKSRC}/nls/LANGS.tmpl > ${WRKSRC}/nls/LANGS
 
-.include "../../devel/gettext-lib/buildlink.mk"
+.include "../../devel/gettext-lib/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"

--LQksG6bCIzRHxTLp--