mariadb: Build against openssl-1.1
This commit is contained in:
parent
22569de3c4
commit
fa2ba0849c
@ -3,10 +3,13 @@ TERMUX_PKG_DESCRIPTION="A drop-in replacement for mysql server"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=2:10.6.4
|
||||
TERMUX_PKG_REVISION=8
|
||||
TERMUX_PKG_REVISION=9
|
||||
TERMUX_PKG_SRCURL=http://ftp.hosteurope.de/mirror/archive.mariadb.org/mariadb-${TERMUX_PKG_VERSION:2}/source/mariadb-${TERMUX_PKG_VERSION:2}.tar.gz
|
||||
TERMUX_PKG_SHA256=75bf9b147a95d38160d01a73b098d50a1960563b46d16a235971fff64d99643c
|
||||
TERMUX_PKG_DEPENDS="libc++, libiconv, liblzma, ncurses, libedit, openssl, pcre2, libcrypt, libandroid-support, libandroid-glob, zlib, liblz4"
|
||||
# MariaDB 10.6.x does not support OpenSSL 3.0:
|
||||
# https://github.com/MariaDB/server/commit/c9beef43154a199bfcd9f71049c011a2ed77ca74
|
||||
# https://jira.mariadb.org/browse/MDEV-25785
|
||||
TERMUX_PKG_DEPENDS="libc++, libiconv, liblzma, ncurses, libedit, openssl-1.1, pcre2, libcrypt, libandroid-support, libandroid-glob, zlib, liblz4"
|
||||
TERMUX_PKG_BREAKS="mariadb-dev"
|
||||
TERMUX_PKG_REPLACES="mariadb-dev"
|
||||
TERMUX_PKG_SERVICE_SCRIPT=("mysqld" "exec mysqld --basedir=$TERMUX_PREFIX --datadir=$TERMUX_PREFIX/var/lib/mysql 2>&1")
|
||||
@ -54,6 +57,10 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
-DWITH_INNODB_SNAPPY=OFF
|
||||
-DWITH_UNIT_TESTS=OFF
|
||||
-DINSTALL_SYSCONFDIR=$TERMUX_PREFIX/etc
|
||||
-DOPENSSL_INCLUDE_DIR=$TERMUX_PREFIX/include/openssl-1.1
|
||||
-DOPENSSL_LIBRARIES=$TERMUX_PREFIX/lib/openssl-1.1
|
||||
-DOPENSSL_CRYPTO_LIBRARY=$TERMUX_PREFIX/lib/openssl-1.1/libcrypto.so.1.1
|
||||
-DOPENSSL_SSL_LIBRARY=$TERMUX_PREFIX/lib/openssl-1.1/libssl.so.1.1
|
||||
"
|
||||
TERMUX_PKG_HOSTBUILD=true
|
||||
TERMUX_PKG_CONFLICTS="mysql"
|
||||
@ -99,6 +106,11 @@ termux_step_pre_configure() {
|
||||
CFLAGS+=" -latomic"
|
||||
fi
|
||||
sed -i 's/^\s*END[(][)]/ENDIF()/g' $TERMUX_PKG_SRCDIR/libmariadb/cmake/ConnectorName.cmake
|
||||
|
||||
CFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CFLAGS"
|
||||
CPPFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CPPFLAGS"
|
||||
CXXFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CXXFLAGS"
|
||||
LDFLAGS="-L$TERMUX_PREFIX/lib/openssl-1.1 -Wl,-rpath=$TERMUX_PREFIX/lib/openssl-1.1 $LDFLAGS"
|
||||
}
|
||||
|
||||
termux_step_post_massage() {
|
||||
|
23
packages/mariadb/mariadb-10.6.x-no-openssl-3.0.patch
Normal file
23
packages/mariadb/mariadb-10.6.x-no-openssl-3.0.patch
Normal file
@ -0,0 +1,23 @@
|
||||
From c9beef43154a199bfcd9f71049c011a2ed77ca74 Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Golubchik <serg@mariadb.org>
|
||||
Date: Sat, 15 Jan 2022 17:33:28 +0100
|
||||
Subject: [PATCH] don't build with OpenSSL 3.0, it doesn't work before
|
||||
MDEV-25785
|
||||
|
||||
---
|
||||
cmake/ssl.cmake | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/cmake/ssl.cmake b/cmake/ssl.cmake
|
||||
index 1b23882631169..707aa4a017f3e 100644
|
||||
--- a/cmake/ssl.cmake
|
||||
+++ b/cmake/ssl.cmake
|
||||
@@ -127,7 +127,7 @@ MACRO (MYSQL_CHECK_SSL)
|
||||
ENDIF()
|
||||
FIND_PACKAGE(OpenSSL)
|
||||
SET_PACKAGE_PROPERTIES(OpenSSL PROPERTIES TYPE RECOMMENDED)
|
||||
- IF(OPENSSL_FOUND)
|
||||
+ IF(OPENSSL_FOUND AND OPENSSL_VERSION AND OPENSSL_VERSION VERSION_LESS "3.0.0")
|
||||
SET(OPENSSL_LIBRARY ${OPENSSL_SSL_LIBRARY})
|
||||
SET(SSL_SOURCES "")
|
||||
SET(SSL_LIBRARIES ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY})
|
Loading…
Reference in New Issue
Block a user