FreeBSD Bugzilla – Attachment 205056 Details for
Bug 238365
Update default MySQL version to 5.7
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch
mysql.patch (text/plain), 16.42 KB, created by
Alex Dupre
on 2019-06-14 08:32:57 UTC
(
hide
)
Description:
Updated patch
Filename:
MIME Type:
Creator:
Alex Dupre
Created:
2019-06-14 08:32:57 UTC
Size:
16.42 KB
patch
obsolete
>Index: Mk/Uses/mysql.mk >=================================================================== >--- Mk/Uses/mysql.mk (revisione 504065) >+++ Mk/Uses/mysql.mk (copia di lavoro) >@@ -7,7 +7,8 @@ > # > # version If no version is given (by the maintainer via the port), try to > # find the currently installed version. Fall back to default if >-# necessary (MySQL-5.6 = 56). >+# necessary (MySQL-5.7 = 57, look at bsd.default-versions.mk for >+# possible values). > # client Depends on the libmysqlclient library (default) > # server/embedded > # Depend on the server at run/build time. If none of these is >Index: Mk/bsd.default-versions.mk >=================================================================== >--- Mk/bsd.default-versions.mk (revisione 504065) >+++ Mk/bsd.default-versions.mk (copia di lavoro) >@@ -63,7 +63,7 @@ > # Possible values: 5.1, 5.2, 5.3 > LUA_DEFAULT?= 5.2 > # Possible values: 5.5, 5.6, 5.7, 8.0, 5.5m, 10.0m, 10.1m, 10.2m, 10.3m, 5.5p, 5.6p, 5.7p, 5.6w >-MYSQL_DEFAULT?= 5.6 >+MYSQL_DEFAULT?= 5.7 > # Possible values: 5.26, 5.28, 5.30, devel > .if !exists(${LOCALBASE}/bin/perl) || (!defined(_PORTS_ENV_CHECK) && \ > defined(PACKAGE_BUILDING)) >Index: audio/amarok/Makefile >=================================================================== >--- audio/amarok/Makefile (revisione 504065) >+++ audio/amarok/Makefile (copia di lavoro) >@@ -19,7 +19,8 @@ > libqjson-qt5.so:devel/qjson \ > libqca-qt5.so:devel/qca \ > libtag.so:audio/taglib \ >- libtag-extras.so:audio/taglib-extras >+ libtag-extras.so:audio/taglib-extras \ >+ liblz4.so:archivers/liblz4 > > USES= cmake compiler:c++11-lang desktop-file-utils \ > kde:5 mysql:client,embedded pkgconfig qt:5 shebangfix ssl >Index: audio/amarok/files/patch-cmake_modules_FindMySQL.cmake >=================================================================== >--- audio/amarok/files/patch-cmake_modules_FindMySQL.cmake (nonexistent) >+++ audio/amarok/files/patch-cmake_modules_FindMySQL.cmake (copia di lavoro) >@@ -0,0 +1,25 @@ >+--- cmake/modules/FindMySQL.cmake.orig 2019-06-14 07:24:31 UTC >++++ cmake/modules/FindMySQL.cmake >+@@ -31,21 +31,7 @@ if(MYSQLCONFIG_EXECUTABLE) >+ OUTPUT_STRIP_TRAILING_WHITESPACE >+ ) >+ >+- execute_process( >+- COMMAND ${MYSQLCONFIG_EXECUTABLE} --libmysqld-libs >+- RESULT_VARIABLE MC_return_embedded >+- OUTPUT_VARIABLE MC_MYSQL_EMBEDDED_LIBRARIES >+- OUTPUT_STRIP_TRAILING_WHITESPACE >+- ) >+- >+- if(NOT MC_MYSQL_EMBEDDED_LIBRARIES) >+- # At least on OpenSUSE --libmysql-libs doesn't exist, so we just use >+- # MYSQL_LIBRARIES for that. We'll see if that's enough when testing >+- # below. >+- set(MYSQL_EMBEDDED_LIBRARIES ${MYSQL_LIBRARIES}) >+- else() >+- set(MYSQL_EMBEDDED_LIBRARIES ${MC_MYSQL_EMBEDDED_LIBRARIES}) >+- endif() >++ set(MYSQL_EMBEDDED_LIBRARIES "-L/usr/local/lib/mysql" -lmysqld -llz4) >+ endif() >+ >+ # Try searching manually via find_path/find_library, possibly with hints > >Property changes on: audio/amarok/files/patch-cmake_modules_FindMySQL.cmake >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: databases/apq-mysql/Makefile >=================================================================== >--- databases/apq-mysql/Makefile (revisione 504065) >+++ databases/apq-mysql/Makefile (copia di lavoro) >@@ -18,8 +18,9 @@ > ${LOCALBASE}/lib/gnat/apq.gpr:databases/apq > RUN_DEPENDS= ${LOCALBASE}/lib/gnat/apq.gpr:databases/apq > >-USES= ada tar:bzip2 >-USE_MYSQL= yes >+USES= ada tar:bzip2 mysql >+ >+IGNORE_WITH_MYSQL= 57 80 101m 102m 103m 57p 57w > HAS_CONFIGURE= yes > WRKPATH= ${WRKDIR}/build > CONFIGURE_ARGS= --prefix=${PREFIX} \ >Index: databases/ateam_mysql_ldap_auth/Makefile >=================================================================== >--- databases/ateam_mysql_ldap_auth/Makefile (revisione 504065) >+++ databases/ateam_mysql_ldap_auth/Makefile (copia di lavoro) >@@ -17,6 +17,8 @@ > USE_OPENLDAP= yes > USES= gmake mysql:client,server > >+IGNORE_WITH_MYSQL= 57 80 101m 102m 103m 57p 57w >+ > USE_GITHUB= yes > GH_ACCOUNT= ateamsystems > GH_TAGNAME= f6a1a5d >Index: databases/mroonga/Makefile >=================================================================== >--- databases/mroonga/Makefile (revisione 504065) >+++ databases/mroonga/Makefile (copia di lavoro) >@@ -16,6 +16,7 @@ > > USES= libtool mysql pkgconfig > >+IGNORE_WITH_MYSQL= 57 80 101m 102m 103m 57p 57w > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --with-mysql-source="$$(cd ${PORTSDIR}/${_MYSQL_SERVER}; ${MAKE} -V WRKSRC)" \ > --with-mysql-build="$$(cd ${PORTSDIR}/${_MYSQL_SERVER}; ${MAKE} -V BUILD_WRKSRC)" \ >Index: databases/mysac/Makefile >=================================================================== >--- databases/mysac/Makefile (revisione 504065) >+++ databases/mysac/Makefile (copia di lavoro) >@@ -12,8 +12,11 @@ > > LICENSE= LGPL3 > >+USES= mysql >+ >+IGNORE_WITH_MYSQL= 57 80 101m 102m 103m 57p 57w >+ > USE_LDCONFIG= yes >-USE_MYSQL= yes > > CFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -I${LOCALBASE}/lib >Index: databases/mysql-connector-odbc/Makefile >=================================================================== >--- databases/mysql-connector-odbc/Makefile (revisione 504072) >+++ databases/mysql-connector-odbc/Makefile (copia di lavoro) >@@ -2,8 +2,7 @@ > # $FreeBSD$ > > PORTNAME= mysql-connector-odbc >-PORTVERSION= 5.3.4 >-PORTREVISION= 1 >+PORTVERSION= 5.3.13 > CATEGORIES= databases > MASTER_SITES= MYSQL/Connector-ODBC/5.3 > PKGNAMESUFFIX= -${DRIVER_MANAGER}-mysql${MYSQL_VER} >@@ -13,25 +12,22 @@ > COMMENT= ODBC driver for MySQL${MYSQL_VER} / ${DRIVER_MANAGER} > > LICENSE= GPLv2 >-LICENSE_FILE= ${WRKSRC}/COPYING >+LICENSE_FILE= ${WRKSRC}/LICENSE.txt > >-BUILD_DEPENDS= unixODBC>=2.2.14_1:databases/unixODBC > LIB_DEPENDS= libodbc.so:databases/unixODBC > > USES= cmake mysql >-CMAKE_ARGS= -DWITH_UNIXODBC=1 >+ >+CMAKE_ARGS= -DWITH_UNIXODBC=1 -DDISABLE_GUI=1 > USE_LDCONFIG= yes > > MAKE_JOBS_UNSAFE=yes > >-IGNORE_WITH_MYSQL= 55 55m 55p 51 51m 51p >- > LDFLAGS+= -L${LOCALBASE}/lib > > DRIVER_MANAGER= unixodbc > >-PORTDOCS= ChangeLog INSTALL \ >- README README.debug Licenses_for_Third-Party_Components.txt >+PORTDOCS= * > > PLIST_FILES= bin/myodbc-installer \ > lib/libmyodbc5a.so \ >Index: databases/mysql-connector-odbc/distinfo >=================================================================== >--- databases/mysql-connector-odbc/distinfo (revisione 504072) >+++ databases/mysql-connector-odbc/distinfo (copia di lavoro) >@@ -1,2 +1,3 @@ >-SHA256 (mysql-connector-odbc-5.3.4-src.tar.gz) = a5f7a490f2958f2768d18b8a57f71909f9699a8619c82776b3ad1c02b8abce0d >-SIZE (mysql-connector-odbc-5.3.4-src.tar.gz) = 667340 >+TIMESTAMP = 1560498109 >+SHA256 (mysql-connector-odbc-5.3.13-src.tar.gz) = 6127639a503e80cff71e211d7534801a074e781624974807a279c7f6e6f0353a >+SIZE (mysql-connector-odbc-5.3.13-src.tar.gz) = 3009032 >Index: databases/mysql-connector-odbc/files/patch-CMakeLists.txt >=================================================================== >--- databases/mysql-connector-odbc/files/patch-CMakeLists.txt (revisione 504072) >+++ databases/mysql-connector-odbc/files/patch-CMakeLists.txt (copia di lavoro) >@@ -1,36 +1,30 @@ >---- CMakeLists.txt.orig 2014-06-18 22:50:16 UTC >+--- CMakeLists.txt.orig 2019-04-15 16:56:34 UTC > +++ CMakeLists.txt >-@@ -269,7 +269,7 @@ ENDIF(NOT DISABLE_GUI) >+@@ -431,7 +431,6 @@ ENDIF(NOT DISABLE_GUI) >+ > ADD_SUBDIRECTORY(dltest) > ADD_SUBDIRECTORY(installer) >- > -ADD_SUBDIRECTORY(test) >-+# ADD_SUBDIRECTORY(test) > >- ############################################################################## >- # >-@@ -382,18 +382,17 @@ IF(WIN32) >+ # For dynamic linking use the built-in sys and strings >+ IF(NOT MYSQLCLIENT_STATIC_LINKING) >+@@ -501,8 +500,8 @@ cmake/sql.*\\\\.c$ >+ #------------ Installation --------------------------- > >+ >+-INSTALL(FILES LICENSE.txt DESTINATION .) >+-INSTALL(FILES README.txt DESTINATION .) >++INSTALL(FILES LICENSE.txt DESTINATION ./share/doc/mysql-connector-odbc/) >++INSTALL(FILES README.txt DESTINATION ./share/doc/mysql-connector-odbc/) >+ >+ IF(WIN32) >+ >+@@ -542,7 +541,7 @@ IF(WIN32) >+ > ELSE(WIN32) > > - INSTALL(FILES ChangeLog DESTINATION .) >-- INSTALL(FILES README DESTINATION .) >-- INSTALL(FILES README.debug DESTINATION .) >-- INSTALL(FILES INSTALL DESTINATION .) > + INSTALL(FILES ChangeLog DESTINATION ./share/doc/mysql-connector-odbc/) >-+ INSTALL(FILES README DESTINATION ./share/doc/mysql-connector-odbc/) >-+ INSTALL(FILES README.debug DESTINATION ./share/doc/mysql-connector-odbc/) >-+ INSTALL(FILES INSTALL DESTINATION ./share/doc/mysql-connector-odbc/) >- IF(EXISTS "${CMAKE_SOURCE_DIR}/COPYING") >-- INSTALL(FILES COPYING DESTINATION .) >- ELSE() >-- INSTALL(FILES LICENSE.mysql DESTINATION .) >-+ INSTALL(FILES LICENSE.mysql DESTINATION ./share/doc/mysql-connector-odbc/) >- ENDIF() > > ENDIF(WIN32) > >--INSTALL(FILES Licenses_for_Third-Party_Components.txt DESTINATION .) >-+INSTALL(FILES Licenses_for_Third-Party_Components.txt DESTINATION ./share/doc/mysql-connector-odbc/) >- >- INCLUDE(CPack) >Index: databases/mysql-connector-odbc/files/patch-driver_catalog_no_i_s.c >=================================================================== >--- databases/mysql-connector-odbc/files/patch-driver_catalog_no_i_s.c (revisione 504072) >+++ databases/mysql-connector-odbc/files/patch-driver_catalog_no_i_s.c (nonexistent) >@@ -1,14 +0,0 @@ >---- driver/catalog_no_i_s.c.orig 2014-06-19 02:50:16.000000000 +0400 >-+++ driver/catalog_no_i_s.c 2015-03-26 12:31:13.356945009 +0300 >-@@ -1093,7 +1093,11 @@ >- unsigned long *lengths; >- SQLRETURN rc= SQL_SUCCESS; >- >-+#ifdef MARIADB_BASE_VERSION >-+ my_init_dynamic_array(&records, sizeof(MY_FOREIGN_KEY_FIELD), 0, 0, 0); >-+#else >- my_init_dynamic_array(&records, sizeof(MY_FOREIGN_KEY_FIELD), 0, 0); >-+#endif >- >- /* Get the list of tables that match szCatalog and szTable */ >- pthread_mutex_lock(&stmt->dbc->lock); > >Property changes on: databases/mysql-connector-odbc/files/patch-driver_catalog_no_i_s.c >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: databases/mysql-connector-odbc/files/patch-driver_desc.c >=================================================================== >--- databases/mysql-connector-odbc/files/patch-driver_desc.c (revisione 504072) >+++ databases/mysql-connector-odbc/files/patch-driver_desc.c (nonexistent) >@@ -1,37 +0,0 @@ >---- driver/desc.c.orig 2014-06-19 02:50:16.000000000 +0400 >-+++ driver/desc.c 2015-03-26 12:34:50.610931661 +0300 >-@@ -63,13 +63,21 @@ >- but in desc_get_rec we manually get a pointer to it. This avoids >- having to call set_dynamic after modifying the DESCREC. >- */ >-+#ifdef MARIADB_BASE_VERSION >-+ if (my_init_dynamic_array(&desc->records, sizeof(DESCREC), 0, 0, 0)) >-+#else >- if (my_init_dynamic_array(&desc->records, sizeof(DESCREC), 0, 0)) >-+#endif >- { >- x_free((char *)desc); >- return NULL; >- } >- >-+#ifdef MARIADB_BASE_VERSION >-+ if (my_init_dynamic_array(&desc->bookmark, sizeof(DESCREC), 0, 0, 0)) >-+#else >- if (my_init_dynamic_array(&desc->bookmark, sizeof(DESCREC), 0, 0)) >-+#endif >- { >- delete_dynamic(&desc->records); >- x_free((char *)desc); >-@@ -997,7 +1005,12 @@ >- delete_dynamic(&dest->records); >- if (my_init_dynamic_array(&dest->records, sizeof(DESCREC), >- src->records.max_element, >-+#ifdef MARIADB_BASE_VERSION >-+ src->records.alloc_increment, >-+ 0)) >-+#else >- src->records.alloc_increment)) >-+#endif >- { >- return set_desc_error(dest, "HY001", >- "Memory allocation error", > >Property changes on: databases/mysql-connector-odbc/files/patch-driver_desc.c >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: databases/mysql-connector-odbc/files/patch-driver_handle.c >=================================================================== >--- databases/mysql-connector-odbc/files/patch-driver_handle.c (revisione 504072) >+++ databases/mysql-connector-odbc/files/patch-driver_handle.c (nonexistent) >@@ -1,14 +0,0 @@ >---- driver/handle.c.orig 2014-06-19 02:50:16.000000000 +0400 >-+++ driver/handle.c 2015-03-26 12:36:14.548929818 +0300 >-@@ -403,7 +403,11 @@ >- } >- } >- >-+#ifdef MARIADB_BASE_VERSION >-+ my_init_dynamic_array(*param_bind, sizeof(MYSQL_BIND), elements, 10, 0); >-+#else >- my_init_dynamic_array(*param_bind, sizeof(MYSQL_BIND), elements, 10); >-+#endif >- memset((*param_bind)->buffer, 0, sizeof(MYSQL_BIND) * >- (*param_bind)->max_element); >- > >Property changes on: databases/mysql-connector-odbc/files/patch-driver_handle.c >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: databases/mysql-connector-odbc/files/patch-driver_parse.c >=================================================================== >--- databases/mysql-connector-odbc/files/patch-driver_parse.c (revisione 504072) >+++ databases/mysql-connector-odbc/files/patch-driver_parse.c (nonexistent) >@@ -1,16 +0,0 @@ >---- driver/parse.c.orig 2014-06-19 02:50:16.000000000 +0400 >-+++ driver/parse.c 2015-03-26 12:37:12.112907082 +0300 >-@@ -129,8 +129,13 @@ >- >- /* TODO: Store offsets rather than ptrs. In this case we will be fine >- if work with copy of the originally parsed string */ >-+#ifdef MARIADB_BASE_VERSION >-+ my_init_dynamic_array(&pq->token, sizeof(uint), 20, 10, 0); >-+ my_init_dynamic_array(&pq->param_pos, sizeof(uint), 10, 10, 0); >-+#else >- my_init_dynamic_array(&pq->token, sizeof(uint), 20, 10); >- my_init_dynamic_array(&pq->param_pos, sizeof(uint), 10, 10); >-+#endif >- } >- >- return pq; > >Property changes on: databases/mysql-connector-odbc/files/patch-driver_parse.c >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: databases/mysql-connector-odbc/files/patch-util_odbcinstw.c >=================================================================== >--- databases/mysql-connector-odbc/files/patch-util_odbcinstw.c (revisione 504072) >+++ databases/mysql-connector-odbc/files/patch-util_odbcinstw.c (nonexistent) >@@ -1,12 +0,0 @@ >---- util/odbcinstw.c.orig 2015-03-26 15:10:03.189270855 +0300 >-+++ util/odbcinstw.c 2015-03-26 15:10:43.503271192 +0300 >-@@ -105,7 +105,8 @@ >- x_free(section); >- x_free(entry); >- x_free(def); >-- x_free(ret); >-+ if (ret) >-+ free(ret); >- x_free(filename); >- >- return rc; > >Property changes on: databases/mysql-connector-odbc/files/patch-util_odbcinstw.c >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: databases/mysql-q4m/Makefile >=================================================================== >--- databases/mysql-q4m/Makefile (revisione 504065) >+++ databases/mysql-q4m/Makefile (copia di lavoro) >@@ -14,8 +14,9 @@ > FETCH_DEPENDS+= ${NONEXISTENT}:${_MYSQL_SERVER}:fetch > BUILD_DEPENDS+= ${NONEXISTENT}:${_MYSQL_SERVER}:build > >-USES= gmake perl5 libtool >-USE_MYSQL= server >+USES= gmake perl5 libtool mysql:server >+ >+IGNORE_WITH_MYSQL= 57 80 101m 102m 103m 57p 57w > USE_GCC= any > USE_PERL5= run > >Index: databases/mysqlbigram/Makefile >=================================================================== >--- databases/mysqlbigram/Makefile (revisione 504065) >+++ databases/mysqlbigram/Makefile (copia di lavoro) >@@ -13,9 +13,10 @@ > > LICENSE= LGPL21 > >+USES= libtool mysql >+ > GNU_CONFIGURE= yes >-USES= libtool >-USE_MYSQL= yes >+IGNORE_WITH_MYSQL= 57 80 101m 102m 103m 57p 57w > INSTALL_TARGET= install-strip > WRKSRC= ${WRKDIR}/bi_gram >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238365
:
204859
| 205056