[MacPorts] #56175: py27-spatialite does not build and install

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #56175: py27-spatialite does not build and install

MacPorts
#56175: py27-spatialite does not build and install
----------------------+-----------------------------
 Reporter:  danrabin  |      Owner:
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.4.2
 Keywords:            |       Port:  py27-spatialite
----------------------+-----------------------------
 On a clean, freshly installed Macports, sudo port install py27-spatialite
 fails with

 [excerpt from main.log]
 :info:build __main__.HeaderNotFoundException: cannot find proj_api.h,
 bailing out
 [end excerpt]

 Dependency is on proj4, which doesn't seem to install the file in
 question, but not clear whether proj4 or py27-spatialite is at fault.

--
Ticket URL: <https://trac.macports.org/ticket/56175>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56175: py27-spatialite does not build and install

MacPorts
#56175: py27-spatialite does not build and install
------------------------------+-------------------
  Reporter:  danrabin         |      Owner:
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.4.2
Resolution:                   |   Keywords:
      Port:  py27-spatialite  |
------------------------------+-------------------
Changes (by danrabin):

 * Attachment "main.log" added.

 main.log from py27-spatialite build

--
Ticket URL: <https://trac.macports.org/ticket/56175>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56175: py27-spatialite does not build and install

MacPorts
In reply to this post by MacPorts
#56175: py27-spatialite does not build and install
----------------------------+-------------------
  Reporter:  danrabin       |      Owner:
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.4.2
Resolution:                 |   Keywords:
      Port:  py-spatialite  |
----------------------------+-------------------
Changes (by mf2k):

 * port:  py27-spatialite => py-spatialite


Comment:

 In the future, please use WikiFormatting.

--
Ticket URL: <https://trac.macports.org/ticket/56175#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56175: py27-spatialite does not build and install

MacPorts
In reply to this post by MacPorts
#56175: py27-spatialite does not build and install
----------------------------+-------------------
  Reporter:  danrabin       |      Owner:
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.4.2
Resolution:                 |   Keywords:
      Port:  py-spatialite  |
----------------------------+-------------------
Description changed by mf2k:

Old description:

> On a clean, freshly installed Macports, sudo port install py27-spatialite
> fails with
>
> [excerpt from main.log]
> :info:build __main__.HeaderNotFoundException: cannot find proj_api.h,
> bailing out
> [end excerpt]
>
> Dependency is on proj4, which doesn't seem to install the file in
> question, but not clear whether proj4 or py27-spatialite is at fault.

New description:

 On a clean, freshly installed Macports, sudo port install py27-spatialite
 fails with

 {{{
 :info:build __main__.HeaderNotFoundException: cannot find proj_api.h,
 bailing out
 }}}

 Dependency is on proj4, which doesn't seem to install the file in
 question, but not clear whether proj4 or py27-spatialite is at fault.

--

--
Ticket URL: <https://trac.macports.org/ticket/56175#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56175: py27-spatialite does not build and install

MacPorts
In reply to this post by MacPorts
#56175: py27-spatialite does not build and install
----------------------------+-------------------
  Reporter:  danrabin       |      Owner:
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.4.2
Resolution:                 |   Keywords:
      Port:  py-spatialite  |
----------------------------+-------------------

Comment (by mankoff):

 I've run into this bug too (and now QGIS has stopped working!)

 The comment `Dependency is on proj4, which doesn't seem to install the
 file in question, but not clear whether proj4 or py27-spatialite is at
 fault` may be incorrect. At least on my system, `proj4` *does* install
 `/opt/local//lib/proj49/include/proj_api.h`. From this I think the fault
 is not `proj4` but in `py27-spatialite`.

--
Ticket URL: <https://trac.macports.org/ticket/56175#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56175: py27-spatialite does not build and install

MacPorts
In reply to this post by MacPorts
#56175: py27-spatialite does not build and install
----------------------------+-------------------
  Reporter:  danrabin       |      Owner:
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.4.2
Resolution:                 |   Keywords:
      Port:  py-spatialite  |
----------------------------+-------------------

Comment (by news24lor):

 Hi
 I've checked.
 py27-spatialite does not see the new "proj49" (proj 4.9.3) or "proj5"
 (proj 5.0.0) folder inside /opt/local/lib/ and it does not see all bin and
 lib inside. It's important to remember that proj 5.0.0 has bug and now
 it's better the 4.9.3 version.
 The error is inside py27-spatialite.

 py27-spatialite error is important because it stop QGIS and QGIS3

--
Ticket URL: <https://trac.macports.org/ticket/56175#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56175: py27-spatialite does not build and install

MacPorts
In reply to this post by MacPorts
#56175: py27-spatialite does not build and install
----------------------------+-------------------
  Reporter:  danrabin       |      Owner:
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.4.2
Resolution:                 |   Keywords:
      Port:  py-spatialite  |
----------------------------+-------------------

Comment (by news24lor):

 I've created some symbolic links inside /opt/local/bin and lib folder: py-
 spatialite see these binaries and it is built without errors.[[BR]]

 This is not the best solution but it works:[[BR]]

 {{{

 $ sudo ln -s /opt/local/lib/proj49/bin/geod /opt/local/bin/
 $ sudo ln -s /opt/local/lib/proj49/bin/nad2bin /opt/local/bin/
 $ sudo ln -s /opt/local/lib/proj49/bin/proj /opt/local/bin/
 $ sudo ln -s /opt/local/lib/proj49/lib/libproj.dylib /opt/local/lib/
 $ sudo ln -s /opt/local/lib/proj49/lib/libproj.a /opt/local/lib/
 $
 $ sudo port upgrade py-spatialite
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/56175#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56175: py27-spatialite does not build and install

MacPorts
In reply to this post by MacPorts
#56175: py27-spatialite does not build and install
----------------------------+--------------------
  Reporter:  danrabin       |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.4.2
Resolution:                 |   Keywords:
      Port:  py-spatialite  |
----------------------------+--------------------

Comment (by mankoff):

 Unfortunately this hack does not work for me.

--
Ticket URL: <https://trac.macports.org/ticket/56175#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56175: py27-spatialite does not build and install

MacPorts
In reply to this post by MacPorts
#56175: py27-spatialite does not build and install
----------------------------+--------------------
  Reporter:  danrabin       |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.4.2
Resolution:                 |   Keywords:
      Port:  py-spatialite  |
----------------------------+--------------------

Comment (by news24lor):

 Missing one row...


 {{{
 ...
 sudo ln -s /opt/local/lib/proj49/include/proj_api.h /opt/local/include

 sudo port upgrade py-spatialite
 }}}

 Try

--
Ticket URL: <https://trac.macports.org/ticket/56175#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56175: py27-spatialite does not build and install

MacPorts
In reply to this post by MacPorts
#56175: py27-spatialite does not build and install
----------------------------+--------------------
  Reporter:  danrabin       |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.4.2
Resolution:                 |   Keywords:
      Port:  py-spatialite  |
----------------------------+--------------------

Comment (by basmac):

 Above links worked for me ;-)

--
Ticket URL: <https://trac.macports.org/ticket/56175#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56175: py27-spatialite does not build and install

MacPorts
In reply to this post by MacPorts
#56175: py27-spatialite does not build and install
----------------------------+--------------------
  Reporter:  danrabin       |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.4.2
Resolution:                 |   Keywords:
      Port:  py-spatialite  |
----------------------------+--------------------

Comment (by dbevans):

 The install paths for proj (version 5) and proj4 have been modified to
 allow for parallel installation without conflict.  Using symbolic links as
 described here subverts the intent of these modifications and should be
 removed once a better fix is committed.

 The correct fix is to patch setup.py to use the new install paths.  See
 #56150 for a more detailed discussion of the issue.

--
Ticket URL: <https://trac.macports.org/ticket/56175#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56175: py27-spatialite does not build and install

MacPorts
In reply to this post by MacPorts
#56175: py27-spatialite does not build and install
----------------------------+---------------------
  Reporter:  danrabin       |      Owner:  dbevans
      Type:  defect         |     Status:  closed
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.4.2
Resolution:  fixed          |   Keywords:
      Port:  py-spatialite  |
----------------------------+---------------------
Changes (by dbevans):

 * owner:  (none) => dbevans
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"7bd182906a0fdcff28a5a53b1a2791059886b399/macports-ports"
 7bd182906a0fdcff28a5a53b1a2791059886b399/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="7bd182906a0fdcff28a5a53b1a2791059886b399"
 py-spatialite: build fix for relocated proj4

 Add proj4 include and lib paths to setup.py.

 See https://trac.macports.org/ticket/56150
 Closes https://trac.macports.org/ticket/56175
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/56175#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS