[MacPorts] #37635: py-spatialite 2.6.2 fails to build
MacPorts
noreply at macports.org
Mon Jan 14 02:25:44 PST 2013
#37635: py-spatialite 2.6.2 fails to build
------------------------+--------------------------------
Reporter: ian.rees@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: haspatch | Port: py-spatialite
------------------------+--------------------------------
Macports 2.1.2 updated ports tree 2013-01-14
Darwin 11.4.2
Xcode 4.2
spatialite 2.3.1 installed
Build fails with errors relating to finding geos_c.h .
The problem seems to be that setup.py in py-spatialite directory doesn't
add my macports installation ${PREFIX}/include and ${PREFIX}/lib
directories to clang search paths. I'm not sure on the proper way to fix
this - the existing diff file for setup.py makes some changes to the
include/lib directories to remove the wrong paths, but doesn't put
anything in to replace them. I'd imagine there's a clever portfile
construct to inject the desired macports prefix into the diff files, or
otherwise get the proper include/lib directories to clang by the time it
runs?
Have attached an updated patch-setup_py.diff that gets it going* assuming
the macports installation prefix is /opt/local/ .
*This doesn't resolve (what I think is) a separate issue -
src/connection.h redefines spatialite_init() from the existing
/opt/local/include/spatialite.h, so I hackily fixed that in
src/connection.h:
{{{
#ifndef SPATIALITE_DECLARE
int spatialite_init(int verbose);
#endif
}}}
--
Ticket URL: <https://trac.macports.org/ticket/37635>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list