Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-134206

GDAL 3.10.3 in CentOS Stream 9 ships without raster drivers (GTiff, PNG, JPEG) - regression from 3.4.3

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Yes
    • None
    • rhel-databases
    • None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Use GDAL raster drivers (GTiff, PNG, JPEG) in CentOS Stream 9 / Rocky Linux 9.7 after the GDAL upgrade from 3.4.3 to 3.10.3.

      What is the impact of this issue to you?

      Any software relying on GDAL cannot read or write common raster formats:
        - QGIS fails to open GeoTIFF files
        - R packages (terra, raster, sf) fail with "invalid driver"
        - Python (rasterio, GDAL bindings) cannot create outputs
        - GDAL CLI tools (gdal_translate, gdalwarp) cannot write TIFF/PNG/JPEG

        This breaks core geospatial workflows for all CentOS Stream 9 / RHEL 9 users.

      Please provide the package NVR for which the bug is seen:

       gdal-3.10.3-3.el9.x86_64
        gdal-libs-3.10.3-3.el9.x86_64

      How reproducible is this bug?:

        100% reproducible on any CentOS Stream 9 / Rocky 9.7 system with gdal-libs-3.10.3

      Steps to reproduce

      1. Install gdal package: dnf install gdal
      2.  List available formats: gdalinfo --formats
      3. Observe only VRT and MEM drivers are available

      Expected results

      152 drivers available including GTiff, PNG, JPEG (as in gdal-3.4.3-3.el9)  

        $ gdalinfo --formats | wc -l
        152
        $ gdalinfo --formats | grep -E 'GTiff|PNG|JPEG'
          GTiff -raster- (rw+vs): GeoTIFF
          PNG -raster- (rwv): Portable Network Graphics
          JPEG -raster- (rwv): JPEG JFIF
        $ nm -D /usr/lib64/libgdal.so.30 | grep GDALRegister_ | wc -l
        151  
      

      Actual results

       Only 2 drivers available (VRT, MEM). GTiff, PNG, JPEG and 149 other drivers are missing.

        $ gdalinfo --formats
        Supported Formats:
          VRT -raster,multidimensional raster- (rw+v): Virtual Raster
          MEM -raster,multidimensional raster- (rw+): In Memory Raster
        $ ls -la /usr/lib64/gdalplugins/
        drivers.ini    # Config file lists GTiff etc, but no .so plugin files
        $ nm -D /usr/lib64/libgdal.so.36 | grep GDALRegister_
        GDALRegister_MEM
        GDALRegister_VRT
      

      Root Cause

        The gdal-3.10.3 package was built with CMake flags that disable built-in drivers:

        -DGDAL_USE_GEOTIFF=OFF
        -DGDAL_USE_GEOTIFF_INTERNAL=OFF
        -DGDAL_BUILD_OPTIONAL_DRIVERS=OFF
        -DOGR_BUILD_OPTIONAL_DRIVERS=OFF

      This moves drivers to plugin mode, but no plugin RPMs are shipped. The drivers.ini file exists but the corresponding gdal_*.so plugin files do not.

      According to upstream GDAL documentation, GTiff is a "built-in default driver" that should always be available: https://gdal.org/en/stable/drivers/raster/gtiff.html

              fjanus@redhat.com Filip Janus
              ben.wolstenholme Ben Wolstenholme
              Filip Janus Filip Janus
              Vaclav Danek Vaclav Danek
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: