Skip to content

Commit

Permalink
databases/mariadb101-server: 12 not broken with security/openssl
Browse files Browse the repository at this point in the history
 - Backport to 5.5 and 10.0 too
 - See also https://reviews.freebsd.org/D17834

PR:		232944
Reported by:	iron udjin gmail com
  • Loading branch information
Sp1l committed Nov 4, 2018
1 parent 69a7362 commit 93c9ec8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
9 changes: 5 additions & 4 deletions databases/mariadb100-server/Makefile
Expand Up @@ -25,10 +25,8 @@ LICENSE_NAME_PerconaFT= PerconaFT patents license
LICENSE_FILE_PerconaFT= ${WRKSRC}/storage/tokudb/PerconaFT/PATENTS
LICENSE_PERMS_PerconaFT= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

BROKEN_SSL= openssl-devel openssl111
BROKEN_SSL_REASON= incomplete definition of type 'struct dh_st'
BROKEN_FreeBSD_12= Does not support OpenSSL 1.1, use the 10.2 or 10.3 port
BROKEN_FreeBSD_13= ${BROKEN_FreeBSD_12}
BROKEN_SSL= openssl111
BROKEN_SSL_REASON_openssl111= Does not support OpenSSL 1.1, use MariaDB 10.2 or 10.3

SUB_FILES= pkg-message

Expand Down Expand Up @@ -147,6 +145,9 @@ post-install-TOKUDB-on:
.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD
. if ${OSVERSION} >= 1200085 && ${SSL_DEFAULT} == base
BROKEN= ${BROKEN_SSL_REASON_openssl111}
. endif
CMAKE_ARGS+= -DWITH_JEMALLOC="system"
.else
CMAKE_ARGS+= -DWITH_JEMALLOC="no"
Expand Down
9 changes: 5 additions & 4 deletions databases/mariadb101-server/Makefile
Expand Up @@ -21,10 +21,8 @@ LICENSE_NAME_PerconaFT= PerconaFT patents license
LICENSE_FILE_PerconaFT= ${WRKSRC}/storage/tokudb/PerconaFT/PATENTS
LICENSE_PERMS_PerconaFT= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

BROKEN_SSL= openssl-devel openssl111
BROKEN_SSL_REASON= incomplete definition of type 'struct dh_st'
BROKEN_FreeBSD_12= Does not support OpenSSL 1.1, use the 10.2 or 10.3 port
BROKEN_FreeBSD_13= ${BROKEN_FreeBSD_12}
BROKEN_SSL= openssl111
BROKEN_SSL_REASON_openssl111= Does not support OpenSSL 1.1, use MariaDB 10.2 or 10.3

SUB_FILES= pkg-message

Expand Down Expand Up @@ -194,6 +192,9 @@ IGNORE= BASE_GSSAPI is not compatible with OpenSSL from ports. Use other GSSAPI

.if ${OPSYS} == FreeBSD
CMAKE_ARGS+= -DWITH_JEMALLOC="system"
. if ${OSVERSION} >= 1200085 && ${SSL_DEFAULT} == base
BROKEN= ${BROKEN_SSL_REASON_openssl111}
. endif
.endif

post-patch:
Expand Down
8 changes: 5 additions & 3 deletions databases/mariadb55-server/Makefile
Expand Up @@ -49,10 +49,9 @@ CMAKE_ARGS+= -DINSTALL_DOCDIR="share/doc/mysql" \

DATADIR= ${PREFIX}/share/mysql

BROKEN_FreeBSD_12= Does not support OpenSSL 1.1
BROKEN_sparc64= Does not compile: Unsupported platform
BROKEN_SSL= openssl-devel
BROKEN_SSL_REASON_openssl-devel= incomplete definition of type 'struct dh_st'
BROKEN_SSL= openssl111
BROKEN_SSL_REASON_openssl111= Does not support OpenSSL 1.1, use MariaDB 10.2 or 10.3

.if defined(USE_MYSQL)
.error You have 'USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again.
Expand Down Expand Up @@ -112,6 +111,9 @@ SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment "
.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD
. if ${OSVERSION} >= 1200085 && ${SSL_DEFAULT} == base
BROKEN= ${BROKEN_SSL_REASON_openssl111}
. endif
CMAKE_ARGS+= -DWITH_JEMALLOC="system"
.else
CMAKE_ARGS+= -DWITH_JEMALLOC="no"
Expand Down

0 comments on commit 93c9ec8

Please sign in to comment.