[MDEV-28778] Galera 4 spec file doesn't support RHEL 9 Created: 2022-06-08  Updated: 2023-04-11  Resolved: 2023-04-11

Status: Closed
Project: MariaDB Server
Component/s: Galera
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Daniel Bartholomew Assignee: Jan Lindström (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-28726 RHEL-9 Builds Closed

 Description   

The scripts/pacakges/galera.spec file for galera4 has a conditional statement to require python3-scons for rhel 8, and requires the scons package for all others. This results in build failures on RHEL 9.

A quick one-character fix is to change the == to >= in the spec file like so:

diff --git a/scripts/packages/galera.spec b/scripts/packages/galera.spec
index 3f2a89bf..9ed73982 100644
--- a/scripts/packages/galera.spec
+++ b/scripts/packages/galera.spec
@@ -53,7 +53,7 @@ BuildRoot:     %{_tmppath}/%{name}-%{version}
 BuildRequires: glibc-devel
 BuildRequires: openssl-devel
 
-%if 0%{?rhel} == 8
+%if 0%{?rhel} >= 8
 BuildRequires: python3-scons
 %else
 BuildRequires: scons

Not sure if there are other places where RHEL 8 is hard coded or not.

Also it is worth noting that the python3-scons package is no longer available in the RHEL codeready-builder repository like it was in RHEL 8. Instead the package needs to be installed from the EPEL repository.



 Comments   
Comment by Jan Lindström (Inactive) [ 2022-09-09 ]

dbart It seems that Galera library was build successfully on Jenkins and it was part of RHEL 9 community release, is this change really needed?

Comment by Jan Lindström [ 2023-04-11 ]

Use cmake or ./scripts/build.sh

Generated at Thu Feb 08 10:03:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.