Bug 174587 - graphics/vigra cannot detect clang
Summary: graphics/vigra cannot detect clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dima Panov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-20 12:40 UTC by vsjcfm
Modified: 2013-10-20 11:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vsjcfm 2012-12-20 12:40:00 UTC
vigra tries to install gcc-4.6 even if clang installed (as clang, clang++ & clang-cpp).

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.
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-12-20 12:40:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->fluffy

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Dima Panov 2012-12-23 04:15:07 UTC
20.12.2012 23:38, Sayetsky Anton пиÑеÑ:
>> 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).

Installed, but not used as default. it make sence, because base gcc 
4.2.1 can't compile vigra anymore.

>> 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
Logic is absolutely correct, if used default compiler isn't "clang", use 
gcc46, or you need to specify it by hands, as described at bottom


>> 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:
> _______________________________________________
> freebsd-ports-bugs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
> To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"


-- 
Dima Panov (fluffy@FreeBSD.org)
(KDE, Office)@FreeBSD team

Facebook: http://www.facebook.com/fluffy.khv
IRC: fluffy@EFNet, fluffykhv@FreeNode
twitter: fluffy_khv | skype: dima.panov
Comment 3 vsjcfm 2013-01-14 07:43:25 UTC
Then maybe a pre-configure message needed that will inform user about
it (line in print/freetype2 about LCD_FILTERING)?
Comment 4 Dima Panov freebsd_committer freebsd_triage 2013-10-20 11:14:12 UTC
State Changed
From-To: open->closed

Port was fixed a long time ago