ports/172102: [PATCH] gccmakedep build error with clang-cpp
Oliver Pinter
oliver.pntr at gmail.com
Wed Sep 26 22:10:05 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list