mirror of
https://github.com/MariaDB/server.git
synced 2025-07-20 16:56:36 +00:00
Fix failing Gitlab-CI by adding pcre2-devel as a build dependency
The commitsa73acf6c06
and4d74bac8bc
updated the PCRE library to a new version, which in turn requires CMake 3.0. That does not exist in CentOS 7 nor 8, so builds started failing. Actually the build should not be downloading anything at all. The root cause was that pcre2-devel was missing from the dependencies. This was originally not detected, as the download fallback had masked the issue.
This commit is contained in:

committed by
Daniel Black

parent
fbef100530
commit
ffb7f8854a
@ -177,7 +177,7 @@ centos8:
|
||||
GIT_STRATEGY: fetch
|
||||
GIT_SUBMODULE_STRATEGY: normal
|
||||
script:
|
||||
- yum install -y yum-utils rpm-build openssl-devel
|
||||
- yum install -y yum-utils rpm-build openssl-devel pcre2-devel
|
||||
- yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
||||
# dnf --enablerepo=powertools install Judy-devel #--> not found
|
||||
- dnf config-manager --set-enabled powertools
|
||||
@ -226,7 +226,7 @@ centos7:
|
||||
# This repository does not have any .spec files, so install dependencies based on Fedora spec file
|
||||
- yum-builddep -y mariadb-server
|
||||
# ..with a few extra ones, as CentOS 7 is very old and these are added in newer MariaDB releases
|
||||
- yum install -y yum-utils rpm-build gcc gcc-c++ bison libxml2-devel libevent-devel openssl-devel
|
||||
- yum install -y yum-utils rpm-build gcc gcc-c++ bison libxml2-devel libevent-devel openssl-devel pcre2-devel
|
||||
- mkdir builddir; cd builddir
|
||||
- cmake -DRPM=$CI_JOB_NAME $CMAKE_FLAGS .. 2>&1 | tee -a ../build-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG.log
|
||||
- make package -j 2 2>&1 | tee -a ../build-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG.log
|
||||
|
Reference in New Issue
Block a user