[MDEV-21430] compat rpms missing for EL 8 / Centos 8 [10.3 / 10.4 / 10.5] Created: 2020-01-07  Updated: 2020-01-16  Resolved: 2020-01-16

Status: Closed
Project: MariaDB Server
Component/s: Packaging
Affects Version/s: 10.3.19, 10.4.10, 10.5.0
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Gerwin Assignee: Daniel Bartholomew
Resolution: Not a Bug Votes: 0
Labels: packaging


 Description   

Seems there are no MariaDB-compat RPMS for RHEL 8 / Centos 8 being build. For EL7 they are there though. Same story for 10.4 and 10.5.

Having some problems with thirdparty rpm now because they are no other mysqlclient version.



 Comments   
Comment by Daniel Bartholomew [ 2020-01-13 ]

It appears that when cpack goes to create the compat rpm, it is not finding the files it needs.

From the compile log of this 10.3 build there's the following error when building MariaDB-compat:

error: File not found: /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.3.22/_CPack_Packages/Linux/RPM/mariadb-10.3.22-linux-x86_64/compat/usr/lib64/libmysqlclient_r.so.18
error: File not found: /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.3.22/_CPack_Packages/Linux/RPM/mariadb-10.3.22-linux-x86_64/compat/usr/lib64/libmysqlclient_r.so.18.0.0
    File not found: /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.3.22/_CPack_Packages/Linux/RPM/mariadb-10.3.22-linux-x86_64/compat/usr/lib64/libmysqlclient_r.so.18
    File not found: /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.3.22/_CPack_Packages/Linux/RPM/mariadb-10.3.22-linux-x86_64/compat/usr/lib64/libmysqlclient_r.so.18.0.0
 ***

Those missing libs are supposed to come from the MariaDB-shared-10.1.kvm-rpm-rhel8-amd64.rpm file which the compile log shows as being present near the top of the log:

Using ../MariaDB-shared-5.3.kvm-rpm-rhel8-amd64.rpm to build MariaDB-compat
Using ../MariaDB-shared-10.1.kvm-rpm-rhel8-amd64.rpm to build MariaDB-compat

Not sure what is going on right now. I'll need to investigate further.

Comment by Sergei Golubchik [ 2020-01-16 ]

rodehoed, what was this third part rpm linked with, where was it built?

Conceptually, MariaDB-compat rpm contains old libraries that we've used to ship in MariaDB-shared, but no longer do. Currently MariaDB-compat contains libraries from MariaDB 5.3.x and 10.1.x releases.

We've never built MariaDB-10.1 (or 5.3) for RHEL8/CentOS8, so there cannot be any RHEL8/CentOS8 packages that might possibly require these old libraries.

Perhaps your third-party rpm was built on CentOS7? Then it can use MariaDB-compat from CentOS7.

Comment by Gerwin [ 2020-01-16 ]

Thanks for pickint it up! I digged in it today. I had PowerDNS Authoritive (https://repo.powerdns.com/centos/x86_64/8/auth-43/) complaining:

package pdns-backend-mysql-4.3.0-0.alpha1.master.86.g051dea6e4.1pdns.el8.x86_64 requires libmysqlclient.so.21()(64bit), but none of the providers can be installed

But it seems that it was build against mysql-libs (8.0) instead of MariaDB. And because I had the Redhat mysql and mariadb rpm module stream disabled it couldn't meet the requirements. I never thought about it either because MySQL was not available in RHEL 7 and in RHEL 8 it's there again.

So basicly it's not an bug. Sorry for all of your precious time!

Generated at Thu Feb 08 09:07:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.