Created attachment 782624 [details] /var/log/portage/dev-db:mariadb-10.6.8:20220604-045805.log -- Found OpenSSL: /usr/lib64/libcrypto.so (found version "3.0.3") CMake Error at cmake/ssl.cmake:157 (MESSAGE): Cannot find appropriate system libraries for SSL. Use WITH_SSL=bundled to enable SSL support Call Stack (most recent call first): CMakeLists.txt:384 (MYSQL_CHECK_SSL) -- Configuring incomplete, errors occurred!
Created attachment 782627 [details] emerge --info
Fedora apply https://src.fedoraproject.org/rpms/mariadb/blob/rawhide/f/mariadb-openssl3.patch to 10.5.x. Bit invasive though.
The upstream fixes to add OpenSSL-3.0 support and also fix the build issue in this report are in the tree for upcoming 10.6.9. https://github.com/MariaDB/server/compare/mariadb-10.6.8...10.6 The main two fixes from upstream you want at a very bare minumum are: 1. MDEV-25785 Add support for OpenSSL 3.0 (f0fa40efada3f46d76b735fa61e9f20cc9ce18fc) 2. Revert "don't build with OpenSSL 3.0, it doesn't work before MDEV-25785" (987d16a0b43c163264ab37d3e01795577f97d83b) It would be good if we could pick the above patches up and include them in the 10.6.8 ebuild so that the whole openssl-3.0 build problem goes away now rather than having to wait till 10.6.9 comes out.
(In reply to Reuben Farrelly from comment #3) > The upstream fixes to add OpenSSL-3.0 support and also fix the build issue > in this report are in the tree for upcoming 10.6.9. > > https://github.com/MariaDB/server/compare/mariadb-10.6.8...10.6 > > The main two fixes from upstream you want at a very bare minumum are: > > 1. MDEV-25785 Add support for OpenSSL 3.0 > (f0fa40efada3f46d76b735fa61e9f20cc9ce18fc) > > 2. Revert "don't build with OpenSSL 3.0, it doesn't work before MDEV-25785" > (987d16a0b43c163264ab37d3e01795577f97d83b) > > It would be good if we could pick the above patches up and include them in > the 10.6.8 ebuild so that the whole openssl-3.0 build problem goes away now > rather than having to wait till 10.6.9 comes out. Thanks a bunch.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8a6c534218755943cb627f0ccb960947851b060 commit f8a6c534218755943cb627f0ccb960947851b060 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-06-06 00:36:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-06 00:36:23 +0000 dev-db/mariadb: apply upstream 10.6.x OpenSSL 3 patches (to 10.6.8-r1) These are already queued on the upstream 10.6.x branch. Having a version of MariaDB that's OpenSSL 3 capable is important given it unblocks other packages and more wide testing. (Also, while this isn't what we're doing, Fedora has been using a bunch of OpenSSL 3 patches on top of 10.5.x for a while.) Closes: https://bugs.gentoo.org/849593 Signed-off-by: Sam James <sam@gentoo.org> dev-db/mariadb/files/mariadb-10.6.8-openssl3.patch | 461 +++++++ dev-db/mariadb/mariadb-10.6.8-r1.ebuild | 1318 ++++++++++++++++++++ 2 files changed, 1779 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c82691365c4a173027dc057686b72869045c6ce commit 3c82691365c4a173027dc057686b72869045c6ce Author: Sam James <sam@gentoo.org> AuthorDate: 2022-12-14 09:10:52 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-12-14 09:11:40 +0000 dev-db/mariadb: depend on < openssl 3 for 10.3, 10.4, 10.5 MariaDB 10.6+ supports OpenSSL 3. Bug: https://bugs.gentoo.org/849593 Signed-off-by: Sam James <sam@gentoo.org> dev-db/mariadb/mariadb-10.3.37.ebuild | 2 +- dev-db/mariadb/mariadb-10.4.27.ebuild | 2 +- dev-db/mariadb/mariadb-10.5.18.ebuild | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)