ports/180608: [patch] graphics/oyranos: fix package build

Tijl Coosemans tijl at FreeBSD.org
Wed Jul 17 13:30:00 UTC 2013


>Number:         180608
>Category:       ports
>Synopsis:       [patch] graphics/oyranos: fix package build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 17 13:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tijl Coosemans
>Release:        FreeBSD 10.0-CURRENT i386
>Organization:
>Environment:
>Description:
Fix for this package build error:
http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.8.20130716075822.pointyhat/oyranos-0.9.4.log

Apparently the INDEX is built on a machine with clang while the package
is not, so add a limit on OSVERSION like editors/libreoffice does.

Also, it may be better to replace USE_GCC with a build dependency on
lang/clang. USE_GCC adds a run dependency on gcc which makes the package
a lot heavier to download and install.
>How-To-Repeat:
>Fix:

--- oyranos.patch begins here ---
Index: graphics/oyranos/Makefile
===================================================================
--- graphics/oyranos/Makefile	(revision 323099)
+++ graphics/oyranos/Makefile	(working copy)
@@ -38,7 +38,7 @@ MAN1=		oyranos-config-fltk.1 oyranos-mon
 		oyranos-profile.1 oyranos-profiles.1 oyranos-xforms-modules.1 qcmsevents.1
 MAN3=		oyranos-config.3 oyranos.3
 
-.if exists(/usr/bin/clang)
+.if exists(/usr/bin/clang) && ${OSVERSION} > 901502
 CC=		/usr/bin/clang
 CPP=		/usr/bin/clang-cpp
 CXX=		/usr/bin/clang++
--- oyranos.patch ends here ---

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


More information about the freebsd-ports-bugs mailing list