Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 849593 - dev-db/mariadb-10.6.8 fails to build with openssl-3: Cannot find appropriate system libraries for SSL
Summary: dev-db/mariadb-10.6.8 fails to build with openssl-3: Cannot find appropriate ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: openssl-3.0
  Show dependency tree
 
Reported: 2022-06-04 05:19 UTC by Michał Górny
Modified: 2022-12-14 14:36 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/dev-db:mariadb-10.6.8:20220604-045805.log (dev-db:mariadb-10.6.8:20220604-045805.log,27.39 KB, text/plain)
2022-06-04 05:19 UTC, Michał Górny
Details
emerge --info (emerge-info.txt,8.83 KB, text/plain)
2022-06-04 05:20 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-06-04 05:19:38 UTC
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!
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-06-04 05:20:21 UTC
Created attachment 782627 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-04 05:59:53 UTC
Fedora apply https://src.fedoraproject.org/rpms/mariadb/blob/rawhide/f/mariadb-openssl3.patch to 10.5.x. Bit invasive though.
Comment 3 Reuben Farrelly 2022-06-04 06:17:32 UTC
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.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-06 00:25:46 UTC
(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.
Comment 5 Larry the Git Cow gentoo-dev 2022-06-06 00:37:01 UTC
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(+)
Comment 6 Larry the Git Cow gentoo-dev 2022-12-14 09:12:28 UTC
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(-)