Skip to content

Commit d025551

Browse files
committed
Merge branch 'master' of github.com:/quantcast/qfs
2 parents 7b35b1d + af120b2 commit d025551

File tree

4 files changed

+98
-28
lines changed

4 files changed

+98
-28
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ jobs:
8787
btype: release
8888
buser: qfsbuild
8989
runs_on: ubuntu-latest
90+
- distro: debian
91+
ver: 13
92+
codecov: no
93+
btype: release
94+
buser: qfsbuild
95+
runs_on: ubuntu-latest
96+
- distro: debian
97+
ver: 13
98+
codecov: no
99+
btype: release
100+
buser: qfsbuild
101+
runs_on: ubuntu-24.04-arm
90102
- distro: debian
91103
ver: 12
92104
codecov: no
@@ -123,6 +135,18 @@ jobs:
123135
btype: release
124136
buser: qfsbuild
125137
runs_on: ubuntu-latest
138+
- distro: rockylinux/rockylinux
139+
ver: 10
140+
codecov: no
141+
btype: release
142+
buser: qfsbuild
143+
runs_on: ubuntu-latest
144+
- distro: rockylinux/rockylinux
145+
ver: 10
146+
codecov: no
147+
btype: release
148+
buser: qfsbuild
149+
runs_on: ubuntu-24.04-arm
126150
- distro: rockylinux
127151
ver: 9
128152
codecov: no

src/cc/kfsio/SslFilter.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,22 @@ class SslFilter::Impl : private IOBuffer::Reader
107107
// implementation.
108108
CRYPTO_THREADID_get_callback();
109109
#endif
110+
#if OPENSSL_VERSION_NUMBER < 0x10100000L
110111
CRYPTO_set_locking_callback(&LockingCB);
111112
OpenSSL_add_all_algorithms();
112113
SSL_load_error_strings();
113114
ERR_load_crypto_strings();
115+
#else
116+
if (OPENSSL_init_ssl(0, NULL) == 0) {
117+
return GetAndClearErr();
118+
}
119+
#endif
114120
#if OPENSSL_VERSION_NUMBER < 0x30000000L
115121
ENGINE_load_builtin_engines();
116122
#endif
123+
#if OPENSSL_VERSION_NUMBER < 0x10100000L
117124
SSL_library_init();
125+
#endif
118126
sOpenSslInitPtr->mAES256CbcCypherDebugPtr = EVP_aes_256_cbc();
119127
sOpenSslInitPtr->mExDataIdx =
120128
SSL_get_ex_new_index(0, (void*)"SslFilter::Impl", 0, 0, 0);
@@ -159,6 +167,7 @@ class SslFilter::Impl : private IOBuffer::Reader
159167
if (! sOpenSslInitPtr) {
160168
return 0;
161169
}
170+
#if OPENSSL_VERSION_NUMBER < 0x10100000L
162171
ENGINE_cleanup();
163172
EVP_cleanup();
164173
CRYPTO_cleanup_all_ex_data();
@@ -167,6 +176,9 @@ class SslFilter::Impl : private IOBuffer::Reader
167176
#endif
168177
ERR_free_strings();
169178
CRYPTO_set_locking_callback(0);
179+
#else
180+
OPENSSL_cleanup();
181+
#endif
170182
sOpenSslInitPtr = 0;
171183
return 0;
172184
}

travis/script.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ DEPS_CENTOS5=$DEPS_CENTOS' cmake28 openssl101e openssl101e-devel'$DEPS_CENTOS_PR
3939
DEPS_CENTOS=$DEPS_CENTOS' openssl-devel cmake chrpath python3-devel'
4040
DEPS_CENTOS8=$DEPS_CENTOS' diffutils hostname'
4141
DEPS_CENTOS9=$DEPS_CENTOS8' zlib-devel fuse3-devel'
42+
DEPS_CENTOS10=$DEPS_CENTOS9
4243
# amazonlinux 2023 is based on centos 9
4344
DEPS_CENTOS2023=$DEPS_CENTOS9' tar java-17-amazon-corretto java-17-amazon-corretto-devel'
4445
DEPS_CENTOS2023=$DEPS_CENTOS2023' maven-amazon-corretto17 golang-go'
45-
for ver in '' 5 8 9; do
46+
for ver in '' 5 8 9 10; do
4647
eval DEPS_CENTOS"$ver"='$DEPS_CENTOS'"$ver' java-openjdk java-devel'"
4748
done
4849
DEPS_CENTOS=$DEPS_CENTOS$DEPS_CENTOS_PRIOR_TO_9
@@ -201,7 +202,8 @@ install_maven() {
201202
}
202203

203204
build_ubuntu() {
204-
if [ x"$1" = x'22.04' -o x"$1" = x'24.04' -o x"$1" = x'd12' ]; then
205+
if [ x"$1" = x'22.04' -o x"$1" = x'24.04' -o x"$1" = x'd12' \
206+
-o x"$1" = x'd13' ]; then
205207
MYDEPS=$DEPS_UBUNTU22
206208
elif [ x"$1" = x'14.04' -o x"$1" = x'16.04' ]; then
207209
MYDEPS=$DEPS_UBUNTU14_16
@@ -212,13 +214,16 @@ build_ubuntu() {
212214
$MYSUDO apt-get update
213215
$MYSUDO /bin/bash -c \
214216
"DEBIAN_FRONTEND='noninteractive' $APT_GET_CMD install -y gnupg"
215-
$MYSUDO apt-key update
217+
if which apt-key >/dev/null 2>&1; then
218+
$MYSUDO apt-key update
219+
fi
216220
$MYSUDO $APT_GET_CMD update
217221
$MYSUDO /bin/bash -c \
218222
"DEBIAN_FRONTEND='noninteractive' $APT_GET_CMD install -y $MYDEPS"
219223
if [ x"$1" = x'18.04' -o x"$1" = x'20.04' -o x"$1" = x'22.04' \
220224
-o x"$1" = x'24.04' \
221-
-o x"$1" = x'd10' -o x"$1" = x'd11' -o x"$1" = x'd12' ]; then
225+
-o x"$1" = x'd10' -o x"$1" = x'd11' -o x"$1" = x'd12' \
226+
-o x"$1" = x'd13' ]; then
222227
QFSHADOOP_VERSIONS=$MYQFSHADOOP_VERSIONS_UBUNTU1804
223228
fi
224229
if [ x"$1" = x'14.04' ]; then

0 commit comments

Comments
 (0)