Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2014 17:11:49 GMT
From:      Matthieu Volat <mazhe@alkumuna.eu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/187548: [PATCH] Fix graphic/ImageMagick OPENMP option
Message-ID:  <201403131711.s2DHBnWQ087486@cgiserv.freebsd.org>
Resent-Message-ID: <201403131720.s2DHK0Yu090313@freefall.freebsd.org>

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

>Number:         187548
>Category:       ports
>Synopsis:       [PATCH] Fix graphic/ImageMagick OPENMP option
>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 Mar 13 17:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Matthieu Volat
>Release:        10.0-RELEASE
>Organization:
>Environment:
>Description:
The graphic/ImageMagick port has a OPENMP option, but this also require building it with gcc (either from older base, or port).

As of now, if the option is set when the port compiler is clang, no error msg will be displayed, and the package will build and install fine, albeit without openmp support.
>How-To-Repeat:
Build ImageMagick with clang set as default compiler and OPENMP option set; check features after build installation with identify -version
>Fix:
Simply add a USE_GCC if OPENMP set

Index: Makefile
===================================================================
--- Makefile	(revision 347895)
+++ Makefile	(working copy)
@@ -119,6 +119,7 @@
 . if ${_IMAGEMAGICK_THREADS} == "no"
 IGNORE=OpenMP requires threads${_IMAGEMAGICK_THREADS_IGNORE_MSG}
 . else
+USE_GCC= yes
 CONFIGURE_ARGS+=	--enable-openmp
 . endif
 .else

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



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