Page MenuHomeFreeBSD

databases/mysql57-server: Fix build w/ libressl3.5
ClosedPublic

Authored by zirias on Oct 19 2022, 1:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 15 2024, 5:36 PM
Unknown Object (File)
Mar 15 2024, 5:36 PM
Unknown Object (File)
Mar 15 2024, 5:36 PM
Unknown Object (File)
Mar 15 2024, 5:36 PM
Unknown Object (File)
Mar 11 2024, 7:46 PM
Unknown Object (File)
Dec 22 2023, 10:25 PM
Unknown Object (File)
Dec 8 2023, 8:18 AM
Unknown Object (File)
Dec 8 2023, 8:18 AM
Subscribers

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Oct 29 2022, 10:50 AM

what is the error with libressl?
I had no error with my update yesterday

what is the error with libressl?
I had no error with my update yesterday

The patch forced to access struct members of structs with libressl that are opaque in libressl 3.5 as well, e.g.

/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.39/vio/viosslfactories.c:130:7: error: incomplete definition of type 'struct dh_st'
    dh->p=p;
    ~~^
/usr/local/include/openssl/ossl_typ.h:132:16: note: forward declaration of 'struct dh_st'
typedef struct dh_st DH;
               ^

Full log (will be deleted some time later): https://home.palmen-it.de/builder/data/def-default/2022-10-17_15h15m54s/logs/errors/mysql57-server-5.7.39_1.log

MySQL 5.7 is currently available in version 5.7.40 in the ports

Ok, but looking at yesterday's commit, it did not remove this offending patch (that definitely breaks the code for libressl 3.5+).

So, if the new version indeed builds fine with DEFAULT_VERSIONS+= ssl=libressl, there might be another hidden issue, like e.g. accidentally picking up base openssl, or statically linking some bundled openssl?

I just wanted to test MySQL with libressl, however now libssh2 does not build. I'll try to take a closer look.

https://joneumbox.org/build.html?mastername=131amd64-ports-libressl&build=2022-10-29_17h15m36s

For this problem, see https://reviews.freebsd.org/D37045 ;)

I'll have a look tomorrow which reviews already have all the required approvals and will commit them.

Update to latest port version.

This revision now requires review to proceed.Nov 4 2022, 11:05 AM
This revision is now accepted and ready to land.Nov 6 2022, 12:59 PM