Ticket #46766: mysql56-openssl_1.0.2.patch

File mysql56-openssl_1.0.2.patch, 1.6 KB (added by asedeno@…, 10 years ago)
  • dports/databases/mysql56/Portfile

     
    3939    patchfiles-append   patch-scripts-mysql_install_db.pl.in.diff \
    4040                        patch-scripts-mysql_secure_installation.pl.in.diff
    4141
     42    # Patch cmake/ssl.cmake to be compatible with OpenSSL 1.0.2.
     43    # http://bugs.mysql.com/bug.php?id=75622
     44    patchfiles-append   patch-cmake-ssl.cmake.diff
     45
    4246    if { (![variant_isset universal] && ${build_arch} eq "i386") || ([variant_isset universal] && [lsearch ${universal_archs} i386] != -1) } {
    4347        # Disallow clang versions older than the clang version which caused the problem
    4448        #compiler.blacklist {clang < 425}
  • dports/databases/mysql56/files/patch-cmake-ssl.cmake.diff

     
     1--- a/cmake/ssl.cmake   2015-01-19 08:48:32.000000000 -0500
     2+++ b/cmake/ssl.cmake   2015-02-11 00:41:55.000000000 -0500
     3@@ -166,7 +166,7 @@
     4     # Encoded as MNNFFPPS: major minor fix patch status
     5     FILE(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h"
     6       OPENSSL_VERSION_NUMBER
     7-      REGEX "^#define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*"
     8+      REGEX "^#[\t ]+define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*"
     9     )
     10     STRING(REGEX REPLACE
     11       "^.*OPENSSL_VERSION_NUMBER[\t ]+0x([0-9]).*$" "\\1"