Opened 2 years ago

Closed 2 years ago

#5216 closed patch (wontfix)

Error: Package: gdal-libs-1.11.4-12.rhel7.x86_64 (@pgdg11)

Reported by: marc3932 Owned by: pramsey
Priority: high Milestone: PostGIS GDAL
Component: postgis Version: 3.1.x
Keywords: gdal-libs Cc: marc3932

Description (last modified by marc3932)

================================================================

$ cat /etc/redhat-release

Red Hat Enterprise Linux Server release 7.9 (Maipo)

================================================================

# rpm -qa | grep armadillo* | sort

armadillo-8.600.1-2.el7.x86_64

# rpm -qa | grep gdal-libs* | sort

gdal-libs-1.11.4-12.rhel7.x86_64

================================================================

Problem:

# yum update

Error: Package: gdal-libs-1.11.4-12.rhel7.x86_64 (@pgdg11)

Requires: libarmadillo.so.8()(64bit) Removing: armadillo-8.600.1-2.el7.x86_64 (@EPEL7_x64_localrepo)

libarmadillo.so.8()(64bit)

Updated By: armadillo-10.8.2-1.el7.x86_64 (epel)

~libarmadillo.so.10()(64bit)

  • It appears the newer armadillo packages update the libarmadillo.so.8 library to libarmadillo.so.10
  • So it looks like gdal-libs will need to be rebuilt against newer armadillo to fix the problem.

===============================================================

# subscription-manager repos —list-enabled

+—————————————————————————————+

Available Repositories in /etc/yum.repos.d/redhat.repo

+—————————————————————————————+

Repo ID: rhel-7-server-rpms Repo Name: Red Hat Enterprise Linux 7 Server (RPMs) Repo URL: https://red-inf-cap-p01.esri.com/pulp/repos/ESRI/LEP_Patch/cv_patch/content/dist/rhel/server/7/$releasever/$basearch/os Enabled: 1

Repo ID: rhel-server-rhscl-7-rpms Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server Repo URL: https://red-inf-cap-p01.esri.com/pulp/repos/ESRI/LEP_Patch/cv_patch/content/dist/rhel/server/7/$releasever/$basearch/rhscl/1/os Enabled: 1

Repo ID: rhel-7-server-extras-rpms Repo Name: Red Hat Enterprise Linux 7 Server - Extras (RPMs) Repo URL: https://red-inf-cap-p01.esri.com/pulp/repos/ESRI/LEP_Patch/cv_patch/content/dist/rhel/server/7/7Server/$basearch/extras/os Enabled: 1

Repo ID: ESRI_EPEL_7_x86_64 Repo Name: x86_64 Repo URL: https://red-inf-cap-p01.esri.com/pulp/repos/ESRI/LEP_Patch/cv_patch/custom/EPEL_7/x86_64 Enabled: 1

Repo ID: rhel-7-server-optional-rpms Repo Name: Red Hat Enterprise Linux 7 Server - Optional (RPMs) Repo URL: https://red-inf-cap-p01.esri.com/pulp/repos/ESRI/LEP_Patch/cv_patch/content/dist/rhel/server/7/$releasever/$basearch/optional/os Enabled: 1

================================================================

—Workaround:

# yum update —exclude=gdal-libs* —exclude=armadillo*

=================================================================

#Aug/10/2022

#yum update —exclude=postgis31_11 —exclude=postgis31_12 — exclude=postgis31_13 —exclude=postgis32_13 —exclude=postgresql11* —exclude=postgresql12* —exclude=postgresql13* —exclude=gdal-libs* —exclude=armadillo*

=================================================================

$ rpm -qa | grep postgres* | sort

postgresql11-11.16-1PGDG.rhel7.x86_64

postgresql11-contrib-11.16-1PGDG.rhel7.x86_64

postgresql11-libs-11.16-1PGDG.rhel7.x86_64

postgresql11-server-11.16-1PGDG.rhel7.x86_64

postgresql12-12.11-1PGDG.rhel7.x86_64

postgresql12-contrib-12.11-1PGDG.rhel7.x86_64

postgresql12-libs-12.11-1PGDG.rhel7.x86_64

postgresql12-server-12.11-1PGDG.rhel7.x86_64

postgresql13-13.7-1PGDG.rhel7.x86_64

postgresql13-contrib-13.7-1PGDG.rhel7.x86_64

postgresql13-libs-13.7-1PGDG.rhel7.x86_64

postgresql13-server-13.7-1PGDG.rhel7.x86_64

$

=======================================================================

$ rpm -qa | grep postgis* | sort

postgis31_11-3.1.5-1.rhel7.x86_64

postgis31_12-3.1.5-1.rhel7.x86_64

postgis32_13-3.2.1-1.rhel7.x86_64 $

========================================================================

Change History (5)

comment:1 by marc3932, 2 years ago

Description: modified (diff)

comment:2 by marc3932, 2 years ago

Description: modified (diff)

comment:3 by marc3932, 2 years ago

Description: modified (diff)

comment:4 by marc3932, 2 years ago

PostGIS Support replied that the gdal-libs-1.11.4-12.rhel7.x86_64 package is obsolete, then I checked and no other packages depend on it, then removed the obsolete gdal-lib package, and I was able to update the armadillo package from armadillo-8 to armadillo-10. See details below.


# rpm -qa | grep gdal-libs* | sort

gdal-libs-1.11.4-12.rhel7.x86_64

—PostGIS Support: the package is obsoleted for some time.

—How can I find out the dependencies of a package?

https://access.redhat.com/solutions/3373081

# repoquery -R —resolve —recursive <package_name>

# repoquery -R —resolve —recursive gdal-libs-1.11.4-12.rhel7.x86_64

—returns nothing, hence no other packages depend on this old obsolete gdal-libs package —then can remove it and try to update the armadillo package

# rpm -e gdal-libs-1.11.4-12.rhel7.x86_64

# rpm -qa | grep gdal-libs* | sort

<returns nothing, good the old gdal-libs package was removed>

# yum install armadillo

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager ESRI_EPEL_7_x86_64 | 2.8 kB 00:00:00 rhel-7-server-extras-rpms | 2.0 kB 00:00:00 rhel-7-server-optional-rpms | 2.0 kB 00:00:00 rhel-7-server-rpms | 2.0 kB 00:00:00 rhel-server-rhscl-7-rpms | 2.0 kB 00:00:00 Resolving Dependencies —> Running transaction check —→ Package armadillo.x86_64 0:8.600.1-2.el7 will be updated —→ Package armadillo.x86_64 0:10.8.2-1.el7 will be an update —> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================================

Package Arch Version Repository Size

================================================================================================================================================================================================ Updating:

armadillo x86_64 10.8.2-1.el7 epel 36 k

Transaction Summary ================================================================================================================================================================================================ Upgrade 1 Package

Total download size: 36 k Is this ok [y/d/N]: y Downloading packages: epel/x86_64/prestodelta | 553 B 00:00:00 armadillo-10.8.2-1.el7.x86_64.rpm | 36 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum.

Updating : armadillo-10.8.2-1.el7.x86_64 ½ Cleanup : armadillo-8.600.1-2.el7.x86_64 2/2

Loaded plugins: langpacks, product-id, subscription-manager

Verifying : armadillo-10.8.2-1.el7.x86_64 ½ Verifying : armadillo-8.600.1-2.el7.x86_64 2/2

Updated:

armadillo.x86_64 0:10.8.2-1.el7

Complete! #

# rpm -qa | grep armadillo* | sort

armadillo-10.8.2-1.el7.x86_64 #

comment:5 by robe, 2 years ago

Resolution: wontfix
Status: newclosed

This is not a postgis problem but a packaging issue. My guess is either you have an old postgis like a postgis-2.4 installed that you are not using anymore. I recall I ran into this issue on a CentOS 7 I had upgraded from PostGIS-2.4 to PostGIS 3.2.

You need to make sure you have the pg_depends repo in your repos list:

I recall running into this very problem on a CentOS 7.

My entry looks like this:

[pgdg-depends]
name=PostgreSQL RHEL/CentOS 7 - x86_64 common
baseurl=https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/
enabled=1
gpgcheck=0

Anyrate, I'm going to close this out as a won't fix, cause it's a packaging issue we don't manage. If you continue to have issues, you should write the pg yum mailing list — https://www.postgresql.org/list/pgsql-pkg-yum/ (join here - https://lists.postgresql.org/manage/)

Note: See TracTickets for help on using tickets.