[MacPorts] #64141: gdal @3.3.1_2+postgresql13+proj8: Crash with GeoTIFF that uses JPEG compression

MacPorts noreply at macports.org
Tue Dec 7 15:13:50 UTC 2021


#64141: gdal @3.3.1_2+postgresql13+proj8: Crash with GeoTIFF that uses JPEG
compression
-------------------------+----------------------
  Reporter:  bal-agates  |      Owner:  Veence
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.1
Resolution:              |   Keywords:
      Port:  gdal        |
-------------------------+----------------------

Comment (by bal-agates):

 I was able to resolve my "symbol not found" dyld problem using a Portfile
 that changes all (3) [--with-libtiff, --with-geotiff, --with-jpeg].  After
 applying Portfile.patch.2 (attached) to my gdal Portfile I uninstalled all
 dependent ports and rebuilt them.  On my system that was:
 {{{
 $ sudo port uninstall qgis3
 $ sudo port uninstall grass7
 $ sudo port uninstall PDAL
 $ sudo port uninstall liblas
 $ sudo port uninstall py39-gdal
 $ sudo port uninstall gdal
 $ sudo port -s -k install gdal
 $ sudo port -s -k install py39-gdal
 $ sudo port -s -k install liblas
 $ sudo port -s -k install PDAL
 $ sudo port -s -k install grass7
 $ sudo port -s -k install qgis3
 }}}
 I used the "-s" switch to build for source.  I think by default gdal was
 installing from a pre-built dist and I wanted to make sure the source
 cmake/configure was run on each.  The "-k" switch really wasn't needed but
 I wanted to save the work data so if I ran into problems I could see what
 configure found.

 My theory as to my last dyld problem was that I had rebuilt gdal and PDAL
 but that qgis3 was built before making changes to gdal.  The prior
 configure for qgis3 found some functions in the original gdal that were no
 longer there.

 With a clean slate MacPorts should have no problems.  I am uncertain if
 there are edge cases if the gdal Portfile is updated when a user already
 has gdal dependents built?  Does one need to bump the revision level on
 all gdal dependent ports to make sure they are rebuilt when the gdal
 portfile is updated or is there some other mechanism to make sure that
 happens?

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


More information about the macports-tickets mailing list