ports/174587: graphics/vigra cannot detect clang
Sayetsky Anton
vsjcfm at gmail.com
Thu Dec 20 12:40:01 UTC 2012
>Number: 174587
>Category: ports
>Synopsis: graphics/vigra cannot detect clang
>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: Thu Dec 20 12:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Sayetsky Anton
>Release: FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD jw.local 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r244078: Mon Dec 10 14:48:18 EET 2012 root at jw.local:/usr/obj/media/dvlfiles/build/src/sys/JASONW amd64
>Description:
vigra tries to install gcc-4.6 even if clang installed (as clang, clang++ & clang-cpp).
>How-To-Repeat:
Try to compile vigra when clang installed not as gcc. Following lines are incorrect:
# Check for clang, else use gcc46+
CPP_check!= ${CPP} --version | tr -d '()'
.if !${CPP_check:Mclang}
USE_GCC= 4.6+
.endif
>Fix:
Adding following lines to make.conf resolves problem:
.if ${.CURDIR:M*/ports/graphics/vigra*}
CC=clang
CXX=clang++
CPP=clang-cpp
.endif
But it's only a workaround. I think that clang check must be added similar to editors/libreoffice/Makefile.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list