[MacPorts] #64141: gdal @3.3.1_2+postgresql13+proj8: Crash with GeoTIFF that uses JPEG compression
MacPorts
noreply at macports.org
Sun Dec 5 18:45:43 UTC 2021
#64141: gdal @3.3.1_2+postgresql13+proj8: Crash with GeoTIFF that uses JPEG
compression
-------------------------------------------+--------------------
Reporter: bal-agates | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: gdal GeoTIFF JPEG compression | Port: gdal
-------------------------------------------+--------------------
The initial symptoms was QGIS crashing for a specific GeoTIFF file. The
problem appeared to be in gdal. Reference
[https://github.com/OSGeo/gdal/issues/4948] for details of the problem. A
quick summary is the MacPorts gdal project uses configuration settings:
{{{
--with-libtiff=internal
--with-jpeg=internal
--with-proj=${prefix}/lib/proj8
}}}
Port proj8 @8.2.0_0+tiff depends on port tiff. libproj.22.dylib
references libtiff.5.dylib.
Port tiff @4.3.0_0 depends on port libjpeg_turbo. libtiff.5.dylib
references libjpeg.8.dylib
Port libjpeg-turbo @2.1.2_0 provides libjpeg.8.dylib
Apparently references to libjpeg.8.dylib anywhere in the libgdal hierarchy
has the potential to use those rather than the built-in functions
generated with "--with-jpeg=internal". The built-in JPEG functions are
version 62 and the libjpeg-turbo are version 80 and apparently they are
completely incompatible.
I am not certain of the best way to fix the problem. What I did on my
machine was modify the Portfile to use
{{{
--with-libtiff=/opt/local
--with-jpeg=/opt/local
}}}
That would appear safe for builds with variant proj8. Probably better to
use ${prefix}. Those settings could be changed just for that variant.
One would need to check the other variants to see if the same solution
applies. Another solution might be to explicitly make port tiff and jpeg-
turbo dependents of gdal and then change the above settings for all
builds. Maybe there is another solution I haven't thought of?
--
Ticket URL: <https://trac.macports.org/ticket/64141>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list