1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

patch for gcc and clang install fix

This commit is contained in:
Leonid Fedorov
2024-11-15 12:23:04 +00:00
parent f7df187ba9
commit 78e7cc3262
2 changed files with 21 additions and 2 deletions

View File

@@ -141,8 +141,8 @@ if [[ ${ID} == 'ubuntu' || ${ID} == 'debian' ]]; then
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime
DEBIAN_FRONTEND=noninteractive apt install -y -qq automake cmake curl file g++ gcc git jq libjemalloc-dev libssl-dev mono-devel patch python3-dev python3-venv unzip DEBIAN_FRONTEND=noninteractive apt install -y -qq automake cmake curl file g++ gcc git jq libjemalloc-dev libssl-dev mono-devel patch python3-dev python3-venv unzip
if [[ ${OS_ID} == 'ubuntu' && ${VERSION_ID} == '20.04' || ${OS_ID} == 'debian' && ${VERSION_ID} == '11' ]]; then if [[ ${ID} == 'ubuntu' && ${VERSION_ID} == '20.04' || ${ID} == 'debian' && ${VERSION_ID} == '11' ]]; then
install_clang ${OS_ID} install_clang ${ID}
fi fi
elif [[ ${ID} == "rocky" ]]; then elif [[ ${ID} == "rocky" ]]; then
@@ -191,6 +191,13 @@ message "Downloading sources"
wget https://github.com/apple/foundationdb/archive/refs/tags/${FDB_VERSION}.zip wget https://github.com/apple/foundationdb/archive/refs/tags/${FDB_VERSION}.zip
unzip -q ${FDB_VERSION}.zip unzip -q ${FDB_VERSION}.zip
message "Patching sources"
cd foundationdb-${FDB_VERSION}
patch -p1 -i ../mariadb_foundationdb-7.1.63_gcc.patch
cd -
message "Configuring cmake" message "Configuring cmake"
mkdir -p fdb_build mkdir -p fdb_build
cd fdb_build cd fdb_build

View File

@@ -0,0 +1,12 @@
--- a/fdbbackup/FileDecoder.actor.cpp 2024-11-15 12:10:29.888975838 +0000
+++ b/fdbbackup/FileDecoder.actor.cpp 2024-11-15 12:09:42.619162451 +0000
@@ -634,7 +634,7 @@
}
}
- self->lfd = open(self->file.fileName.c_str(), O_WRONLY | O_CREAT | O_TRUNC);
+ self->lfd = open(self->file.fileName.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0600);
if (self->lfd == -1) {
TraceEvent(SevError, "OpenLocalFileFailed").detail("File", self->file.fileName);
throw platform_error();