[MacPorts] #51314: gdal build fails when qhull port is active
#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
#51314: gdal build fails when qhull port is active -----------------------+--------------------- Reporter: gnwiii@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: gdal | -----------------------+--------------------- Changes (by mf2k@…): * cc: vince@… (removed) * keywords: gdal qhull libqhull => * owner: macports-tickets@… => vince@… -- Ticket URL: <https://trac.macports.org/ticket/51314#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51314: gdal build fails when qhull port is active -----------------------+--------------------- Reporter: gnwiii@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: gdal | -----------------------+--------------------- Comment (by vince@…): Thanks for reporting. I'm going to look into this. -- Ticket URL: <https://trac.macports.org/ticket/51314#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51314: gdal build fails when qhull port is active -----------------------+--------------------- Reporter: gnwiii@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: gdal | -----------------------+--------------------- Comment (by vince@…): Should be fixed in r148372. In the first place, I updated qhull to 2015.2, the current version. Next, I altered gdal’s Portfile to make qhull a mandatory dependency. This way, all should work nicely. Please tell me. -- Ticket URL: <https://trac.macports.org/ticket/51314#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#51314: gdal build fails when qhull port is active -----------------------+--------------------- Reporter: gnwiii@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: gdal | -----------------------+--------------------- Comment (by md14-macports@…): Replying to [comment:4 vince@…]:
Should be fixed in r148372. ... Please tell me.
`sudo port -vs install gdal` completed successfully for me. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/51314#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#51314: gdal build fails when qhull port is active -----------------------+--------------------- Reporter: gnwiii@… | Owner: vince@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: Port: gdal | -----------------------+--------------------- Changes (by vince@…): * status: new => closed * resolution: => fixed Comment: Fine! Thanks for giving it a stab. -- Ticket URL: <https://trac.macports.org/ticket/51314#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#51314: gdal build fails when qhull port is active -----------------------+--------------------- Reporter: gnwiii@… | Owner: vince@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: Port: gdal | -----------------------+--------------------- Comment (by gnwiii@…): Replying to [comment:4 vince@…]:
Should be fixed in r148372. In the first place, I updated qhull to 2015.2, the current version. Next, I altered gdal’s Portfile to make qhull a mandatory dependency. This way, all should work nicely. Please tell me.
Thanks. With the changes, gdal builds for me on El Capitan and simple tests using gdal_grid (with options to trigger Delauney triangulation) work, but the new qhull fails to build on Snow Leopard with gcc-4.2. It does build using: {{{ sudo port -s upgrade qhull configure.compiler=macports-clang-3.6 }}} so you may want to blacklist older gcc-4.2 (the gcc5 Portfile can provide some examples) -- Ticket URL: <https://trac.macports.org/ticket/51314#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts