Date: Wed, 26 Sep 2012 22:01:58 GMT From: Oliver Pinter <oliver.pntr@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/172102: [PATCH] gccmakedep build error with clang-cpp Message-ID: <201209262201.q8QM1wEM061868@red.freebsd.org> Resent-Message-ID: <201209262210.q8QMA5MT074145@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 172102 >Category: ports >Synopsis: [PATCH] gccmakedep build error with clang-cpp >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 26 22:10:04 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Oliver Pinter >Release: FreeBSD 10-CURRENT >Organization: >Environment: FreeBSD pandora-test 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r+e17c996: Tue Sep 25 20:02:51 CEST 2012 root@pandora-test:/usr/obj/usr/src/sys/OP amd64 >Description: gccmakedep build error (broken autoconf preprocessor test) when using clang as base c compiler (WITH_CLANG_IS_CC= in src.conf) >How-To-Repeat: >Fix: Patch attached with submission follows: diff --git a/devel/gccmakedep/Makefile b/devel/gccmakedep/Makefile index b55bebf..f504b37 100644 --- a/devel/gccmakedep/Makefile +++ b/devel/gccmakedep/Makefile @@ -18,4 +18,14 @@ MAN1= gccmakedep.1 PLIST_FILES= bin/gccmakedep +# XXX unbreak build with clang as CC +CPP_check!= ${CPP} --version | tr -d '()' +.if ${CPP_check:Mclang} +.if exists(/usr/bin/gcpp) +CONFIGURE_ENV+= ac_cv_path_RAWCPP="gcpp" +.else +BROKEN= does not build without gcc cpp +.endif +.endif + .include <bsd.port.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209262201.q8QM1wEM061868>