[MacPorts] #51314: gdal build fails when qhull port is active

MacPorts noreply at macports.org
Thu May 5 08:21:11 PDT 2016


#51314: gdal build fails when qhull port is active
---------------------------------+--------------------------------
 Reporter:  gnwiii@…             |      Owner:  macports-tickets@…
     Type:  defect               |     Status:  new
 Priority:  Normal               |  Milestone:
Component:  ports                |    Version:  2.3.4
 Keywords:  gdal qhull libqhull  |       Port:  gdal
---------------------------------+--------------------------------
 On both El Capitan and Snow Leopard, "upgrade gdal" fails if the variants
 require a local build.

 With an active qhull port, the build fails to find {{{libqhull.h}}},
 although

 {{{
 $ port installed qhull
 The following ports are currently installed:
 qhull @2012.1_3 (active)

 $ locate libqhull.h
 /opt/local/include/libqhull/libqhull.h
 }}}

 From {{{config.log}}}:

 {{{
 configure:29172: checking libqhull/libqhull.h usability
 configure:29172: /usr/bin/clang -c -pipe -DGDAL_COMPILATION -arch x86_64
 -I/opt/local/include -I/opt/local/include conftest.c >&5
 configure:29172: $? = 0
 configure:29172: result: yes
 configure:29172: checking libqhull/libqhull.h presence
 configure:29172: /usr/bin/clang -E -I/opt/local/include
 -I/opt/local/include conftest.c
 configure:29172: $? = 0
 configure:29172: result: yes
 }}}

 and {{{config.status}}} has:

 {{{
 S["EXTRA_INCLUDES"]="-I/usr/local/include/qhull -I/usr/local/include/qhull
 -I/opt/local/include -I/opt/local -I/opt/local/include -I/opt/local
 -I/opt/local/include -I/op"\
 "t/local/include -I/opt/local/include -I/opt/local -I/opt/local/include
 -I/opt/local -I/opt/local/include "
 }}}

 This matches what is installed

 {{{
 $ cd /opt/local/include
 $ ls -ld qhull libqhull
 drwxr-xr-x  25 root  admin  850 23 Mar 13:38 libqhull
 lrwxr-xr-x   1 root  admin   27 30 Jan 00:18 qhull ->
 /opt/local/include/libqhull
 }}}

 Gdal provides libqhull:

 {{{
 $ cd $(port dir gdal)/work/gdal-2.1.0
 $ find . -name libqhull.h
 ./alg/libqhull/libqhull.h
 }}}

 A workaround is to deactivate qhull port, build gdal, activate qhull, then
 upgrade outdated.

-- 
Ticket URL: <https://trac.macports.org/ticket/51314>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list