Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fixes #650

Open
wants to merge 5 commits into
base: 4.x
Choose a base branch
from
Open

Build fixes #650

wants to merge 5 commits into from

Conversation

grooverdan
Copy link
Contributor

Consolidated collection of commits merged into mariadb-4.x branch to make the compilation more portable.

The building of RPMs assumes the code is already built. This may have
been done with CMake. Having the build depends here can fail if scons
isn't installed, despite is never used.

Adjust rpm.sh to use teh galera-obs.spec file.
Handle with -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
Detection is just for the detection of sles. Remove other RPM distros.

Use this where the distro cannot be queried with rpm.

From /etc/SuSE-release
    SUSE Linux Enterprise Server 12 (s390x)
    VERSION = 12
    PATCHLEVEL = 5
    # This file is deprecated and will be removed in a future service pack or release.
    # Please check /etc/os-release for details about this release.

On SLES12:
 rpm --eval '%{dist}'
%{dist}

/etc/os-release
    NAME="SLES"
    VERSION="12-SP5"
    VERSION_ID="12.5"
    PRETTY_NAME="SUSE Linux Enterprise Server 12 SP5"
    ID="sles"
    ANSI_COLOR="0;32"
    CPE_NAME="cpe:/o:suse:sles:12:sp5"

So we use NAME/ID/VERSION_ID to form the required distro tag.
@grooverdan grooverdan mentioned this pull request Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant