Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2012 14:38:41 +0200 (EET)
From:      Sayetsky Anton <vsjcfm@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/174587: graphics/vigra cannot detect clang
Message-ID:  <201212201238.qBKCcfNB017230@jw.lds.net.ua>
Resent-Message-ID: <201212201240.qBKCe0Jg063404@freefall.freebsd.org>

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

>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@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:



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