Bug 246070

Summary: databases/mysql57-client: Fails to build with LibreSSL (mysql-5.7.30): error: use of undeclared identifier 'OPENSSL_INIT_NO_ATEXIT'
Product: Ports & Packages Reporter: jakub_lach
Component: Individual Port(s)Assignee: Jochen Neumeister <joneum>
Status: Closed FIXED    
Severity: Affects Some People CC: brnrd, joneum
Priority: --- Keywords: needs-qa
Version: LatestFlags: koobs: maintainer-feedback? (joneum)
koobs: merge-quarterly?
Hardware: Any   
OS: Any   

Description jakub_lach 2020-05-01 00:41:47 UTC
In file included from /usr/obj/usr/ports/databases/mysql57-client/work/mysql-5.7.30/vio/viosslfactories.c:29:
/usr/obj/usr/ports/databases/mysql57-client/work/mysql-5.7.30/include/my_openssl.h:55:30: error: use of undeclared identifier 'OPENSSL_INIT_NO_ATEXIT'
  return OPENSSL_init_crypto(OPENSSL_INIT_NO_ATEXIT, NULL);
                             ^
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-05-01 03:12:32 UTC
Are other MySQL versions also affected?
Comment 2 jakub_lach 2020-05-01 10:32:21 UTC
Affected:
databases/mysql57-server
databases/mysql57-client
Comment 3 commit-hook freebsd_committer freebsd_triage 2020-05-04 09:44:26 UTC
A commit references this bug:

Author: joneum
Date: Mon May  4 09:44:09 UTC 2020
New revision: 533909
URL: https://svnweb.freebsd.org/changeset/ports/533909

Log:
  In file included from /usr/obj/usr/ports/databases/mysql57-client/work/mysql-5.7.30/vio/viosslfactories.c:29:
  /usr/obj/usr/ports/databases/mysql57-client/work/mysql-5.7.30/include/my_openssl.h:55:30: error: use of undeclared identifier 'OPENSSL_INIT_NO_ATEXIT'
    return OPENSSL_init_crypto(OPENSSL_INIT_NO_ATEXIT, NULL);

  This fix a problem with libressl

  PR:		246070
  MFH:		2020Q2
  Sponsored by:	Netzkommune GmbH

Changes:
  head/databases/mysql57-client/files/patch-include_my_openssl.h
  head/databases/mysql57-client/files/patch-sql_auth_sha2_password_common.cc
  head/databases/mysql57-client/files/patch-vio_viosslfactories.c
  head/databases/mysql57-server/Makefile
  head/databases/mysql57-server/files/patch-include_my_openssl.h
  head/databases/mysql57-server/files/patch-rapid_plugin_group_replication_libmysqlgcs_src_bindings_xcom_xcom_xcom_ssl_transport.c
  head/databases/mysql57-server/files/patch-sql_auth_sha2_password_common.cc
  head/databases/mysql57-server/files/patch-vio_viosslfactories.c
Comment 4 commit-hook freebsd_committer freebsd_triage 2020-05-04 09:46:28 UTC
A commit references this bug:

Author: joneum
Date: Mon May  4 09:45:42 UTC 2020
New revision: 533910
URL: https://svnweb.freebsd.org/changeset/ports/533910

Log:
  MFH: r533909

  In file included from /usr/obj/usr/ports/databases/mysql57-client/work/mysql-5.7.30/vio/viosslfactories.c:29:
  /usr/obj/usr/ports/databases/mysql57-client/work/mysql-5.7.30/include/my_openssl.h:55:30: error: use of undeclared identifier 'OPENSSL_INIT_NO_ATEXIT'
    return OPENSSL_init_crypto(OPENSSL_INIT_NO_ATEXIT, NULL);

  This fix a problem with libressl

  PR:		246070
  Sponsored by:	Netzkommune GmbH

  Approved by:	ports-secteam (joneum)

Changes:
_U  branches/2020Q2/
  branches/2020Q2/databases/mysql57-client/files/patch-include_my_openssl.h
  branches/2020Q2/databases/mysql57-client/files/patch-sql_auth_sha2_password_common.cc
  branches/2020Q2/databases/mysql57-client/files/patch-vio_viosslfactories.c
  branches/2020Q2/databases/mysql57-server/Makefile
  branches/2020Q2/databases/mysql57-server/files/patch-include_my_openssl.h
  branches/2020Q2/databases/mysql57-server/files/patch-rapid_plugin_group_replication_libmysqlgcs_src_bindings_xcom_xcom_xcom_ssl_transport.c
  branches/2020Q2/databases/mysql57-server/files/patch-sql_auth_sha2_password_common.cc
  branches/2020Q2/databases/mysql57-server/files/patch-vio_viosslfactories.c