Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 21:57:02 GMT
From:      Oliver Pinter <oliver.pntr@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/172100: [PATCH] xdm build error with clang-cpp
Message-ID:  <201209262157.q8QLv2FB061283@red.freebsd.org>
Resent-Message-ID: <201209262200.q8QM0GmR065391@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172100
>Category:       ports
>Synopsis:       [PATCH] xdm 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:00:16 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:
XDM 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/x11/xdm/Makefile b/x11/xdm/Makefile
index 51dbe09..4372ec8 100644
--- a/x11/xdm/Makefile
+++ b/x11/xdm/Makefile
@@ -28,6 +28,16 @@ OPTIONS=	XDMSHELL "Install xdmshell" off
 
 .include <bsd.port.options.mk>
 
+# 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
+
 .if defined(WITH_XDMSHELL)
 CONFIGURE_ARGS+=--enable-xdmshell
 MAN1+=		xdmshell.1


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209262157.q8QLv2FB061283>