Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-28778

Galera 4 spec file doesn't support RHEL 9

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Galera
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jplindst Jan Lindström
              Reporter:
              dbart Daniel Bartholomew
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.