I’m trying to run a program that requires gdal. After installing the gdal package in almaLinux 9.7 I noticed that the GTiff format I require is not present. I only have:
So formats like GTiff are missing even though gdal-libs is installed.
As a workaround, I rebuilt an older EL9/EPEL SRPM (gdal-3.4.3-3.el9.src.rpm) with mock and installed the resulting RPMs locally; then GTiff and many other drivers appear.
This looks like a packaging/build regression in the AppStream gdal 3.10.3 packages. Where should this be reported (AlmaLinux/RHEL)?
Rebuilding from SRPM with mock works as a workaround, but it’s not a reasonable solution for typical users; the AppStream package should ship working drivers (at least GTiff) out of the box.
Thanks
If you can reproduce it in CentOS Stream 9 (or RHEL 9), then report to Red Hat.
If RHEL gdal has more formats than AlmaLinux, then it is a bug in AlmaLinux.
Thanks. Understood — CentOS Stream bugs are tracked in Red Hat Jira (RHEL project). I’ll file a report in Red Hat Jira for this issue and will post the link here once it’s created.
The “created this issue by mistake due to a misunderstanding” wording was about me posting the wrong link (I deleted that post). I still believe this is a real packaging bug
Workaround (works for me on AlmaLinux 9.7):** use an older EL9/EPEL GDAL build (e.g. rebuild gdal-3.4.3-3.el9.src.rpm with mock) and install the resulting gdal/gdal-libs RPMs.
The exact commands are in my earlier post in this thread (the one with the mock rebuild steps).
Thanks. I don’t think this is a missing dependency. It looks like the AppStream build is shipping without the real drivers. On AlmaLinux 9.7, gdalinfo --formats only shows VRT/MEM. With gdal-libs installed, /usr/lib64/gdalplugins/ has drivers.ini but no actual driver modules, so GTiff (and others) are missing out of the box.
I just experienced the same issue. The fix for me - your mileage may vary, this is a messy box I’m on - was to run a yum downgrade on the relevant packages:
Ah, sorry, I missed the detail that this was on 9.7. I’m running AlmaLinux version 10, and while the latest GDAL packages exhibit the same behaviour described here, I don’t know whether a downgrade route exists for 9.*.
For what it’s worth, I’m using x86-64-v2architecture, and I downgraded to 3.el10_0.alma_altarchfrom the epel repo.
The “broken” version missing all the drivers is Version 3.10.3 Release 3.el10, which shows as an available update in the appstream repo.
[Alma 9]# dnf -q --enablerepo=epel list gdal gdal3.4 --showduplicates
Available Packages
gdal.x86_64 3.10.3-3.el9 appstream
gdal3.4.x86_64 3.4.3-5.el9 epel
[Alma 10 v2]# dnf -q --enablerepo=epel list gdal --showduplicates
Available Packages
gdal.x86_64_v2 3.10.0-3.el10_0.alma_altarch epel
gdal.x86_64_v2 3.10.3-3.el10 appstream
EPEL 9 has old gdal with distinct name, so it will never compete with distro version.
EPEL 10 has packet with same name as AppStream. Isn’t it EPEL policy to not do that?
That is obviously not a question for AlmaLinux, except …
I do not see “gdal*” in EPEL 10z x86_64. Therefore, the 3.10.0-3.el10_0.alma_altarch package is only in AlmaLinux’s x86_64_v2 version of EPEL. That is an AlmaLinux “issue”.