[MacPorts] #37635: py-spatialite 2.6.2 fails to build
#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
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => and.damore@… -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Changes (by and.damore@…): * status: new => assigned Comment: I'd like to reproduce the error before patching, I'm on 11.4.2 as well and I'm using XC 4.5.2 . What command are you actually running in order to install pyXX-spatialite? Can you please run {{{ port log py27-spatialite >~/Desktop/port_py-spatialite.log }}} and attach to this ticket the file that gets created on your desktop? Change the python version according to your selection, I picked python 2.7 in the upward command. -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Comment (by ian.rees@…): Replying to [comment:2 and.damore@…]:
I'd like to reproduce the error before patching. I'm on 11.4.2 as well, using Xcode 4.5.2 and I'm able to build py27-spatialite without errors.
Understood - it's entirely possible that my machine is in some weird state. In case it matters, I've got sqlite3 3.7.15.2 installed through macports as well.
What command are you actually running in order to install pyXX-
spatialite? I started with 'sudo port install qgis', then 'sudo port install py- spatialite' when that didn't fly.
Can you please run {{{ port log py27-spatialite >~/Desktop/port_py-spatialite.log }}} and attach to this ticket the file that gets created on your desktop?
Sure, will do shortly.
Change the python version according to your selection, I picked python
2.7 in the upward command. Thanks! -Ian- -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Comment (by jmr@…): Clang versions that support CPATH wouldn't have problems due to the missing -I flag. -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Comment (by and.damore@…): Replying to [comment:4 jmr@…]:
Clang versions that support CPATH wouldn't have problems due to the missing -I flag.
Is there a reference to check what Xcode version and compiler combinations support what/whatnot? -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Comment (by dshean@…): Ran into the same issue during an install of qgis. The patch for the existing setup.py patchfile (!) and the connection.h hack worked for me. Are there plans to incorporate these fixes, or something cleaner? Darwin 11.4.2 x86_64, XCode 4.2.1 -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Comment (by and.damore@…): What issue is the connection.h hack trying to fix? -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Changes (by and.damore@…): * status: assigned => closed * resolution: => fixed Comment: Committed r103345, ticket closed. -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Comment (by jmr@…): You appear to have forgotten to commit the new patchfile? -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Comment (by and.damore@…): No, it's there. The proposed patchfile was an extension to the already existing one, compare the [https://trac.macports.org/browser/trunk/dports/python/py-spatialite/files /patch-setup_py.diff?rev=103345 committed version] and the [https://trac.macports.org/attachment/ticket/37635/patch-setup_py.diff-new proposed one]. -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Comment (by jmr@…): #38211 says otherwise. -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37635: py-spatialite 2.6.2 fails to build ----------------------------+-------------------------- Reporter: ian.rees@… | Owner: and.damore@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: haspatch Port: py-spatialite | ----------------------------+-------------------------- Comment (by and.damore@…): Correct, I thought you were referring to file ''patch-setup_py.diff-new'' attached to this very ticket due to the "-new" in name, see comment:ticket:38211:3. -- Ticket URL: <https://trac.macports.org/ticket/37635#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts