Commit Graph

28 Commits

Author SHA1 Message Date
Mahdi Mokhtari
2e596e3fc4 databases/mysql57-{client, server}: Update to latest release 5.7.26
This update includes:
Bugfix:
- InnoDB: Optimized internal temporary tables did not support
    in-place UPDATE operations
- InnoDB: A function called by a CREATE TABLE thread attempted access after free()
- InnoDB: The INDEX_LENGTH value in INFORMATION_SCHEMA.TABLES
    was not updated when adding an index
- The authentication_ldap_simple plugin could enforce authentication incorrectly
More info: https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-26.html

Security Fix:
CVE-2019-2632, CVE-2019-1559, CVE-2018-3123, and other fixes.
More info: https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html#AppendixMSQL

PR:		237399
Reported by:	Brent Busby <brent@jfi.uchicago.edu>
Sponsored by:	The FreeBSD Foundation
2019-04-28 21:34:14 +00:00
Mahdi Mokhtari
bba499001a databases/mysql57-server: Fix build for i386
Make MySQL build-script assume that FreeBSD's Clang (on i386)
doesn't have "atomic_*" functions builtin implemented.
This is added to cmake/os/FreeBSD.cmake to make the merge for upstream easier.

PR:		229605
Reported by:	gbromov@gmail.com
Sponsored by:	The FreeBSD Foundation
2018-12-26 12:08:25 +00:00
Mahdi Mokhtari
61e60d6d52 databases/mysql57-{client, server}: Update to 5.7.24
Delete merged-to-upstream FreeBSD patches, edit half-merged ones.

Upstream bugfixes:
    Regression of Bug #27753193 (segfault on ALTER TABLE adding primary key, InnoDB)
    Query interruption during a lock wait caused an error: Bug #28068293
    Raised assertion during an OPTIMIZE TABLE operation for InnoDB: Bug #27753193
More info on update: https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-24.html

PR:		232685
Reported by:	Markus Kohlmeyer <rootservice@gmail.com>
Sponsored by:	The FreeBSD Foundation
2018-10-28 22:31:54 +00:00
Mahdi Mokhtari
36da122789 mysql57-server: Fix build with LibreSSL 2.7
PR:		230527
Submitted by:	Markus Kohlmeyer <rootservice@gmail.com>
Reported by:	Markus Kohlmeyer <rootservice@gmail.com>
Sponsored by:	The FreeBSD Foundation
2018-08-11 17:52:22 +00:00
Mahdi Mokhtari
afc37e723e databases/mysql57-server: Adapt ${name}_limits to the new mechanism
Regarding to the changes to rc.subr(8) it is no longer necessary to
define a resource limiting logic in service scripts.
limits(1) is now run by default and its configuration is handled
via the "${name}_limits" variable.
This however causes collision of variable names and also is not
compatible with the old mechanism.
This fixes the rc-script of mysql57 for the bases with both
old and new mechanism.
(This is port of the r466505 [and r466506])

PR:		227230
Submitted by:	0mp
Reported by:	0mp
Differential Revision:	Netzkommune GmbH
2018-04-04 20:57:11 +00:00
Mahdi Mokhtari
733b35d35e databases/mysql57-server: Fix rc-script ${name}_limits conflict for post-r328331 base
This is port of r461217
2018-02-08 12:45:25 +00:00
Mahdi Mokhtari
d7dc34b710 databases/mysql57-server: Delete no-longer-needed patch.
The patch was casting variables to right size on previous versions
Issue seems fixed by upstream it's not needed anymore.
It also fixes a warning/error for from Clang6 on the port build.
2018-01-18 16:09:53 +00:00
Mahdi Mokhtari
553f6ced0d databases/mysql56-{client, server}: Update to 5.7.21
This update fixes bugs like CVE-2018-2696, CVE-2018-2562, CVE-2018-2640,
CVE-2018-2668, CVE-2017-3737 (and more) in MySQL protocol by upstream.

Delete local patches (CMake plugin macros) that are merged by upstream.

PR:		225195
Sponsored by:	Netzkommune GmbH
2018-01-17 22:43:46 +00:00
Mahdi Mokhtari
85d7d2170a databases/mysql57-{server client}: Fix broken SASL/LDAP integration on newest 5.7.19 upgrade
-Add a SASL/LDAP option for mysql57-client
-Fix plugin.cmake for "FreeBSD != Linux" case

For new plugin, MySQL build assumes everything is MacOS or Windows or Linux.
This breaks upgrades when you have SASL/LDAP client-library installed.
Because it "Decides" that you "Want" SASL/LDAP support and tries to build it.

PR:		220865
Submitted by:	mmokhi
Reported by:	Vladimir Omelchuk <admin@vladiom.com.ua>
Reviewed by:	mat, feld (mentors)
Approved by:	feld (mentor)
MFH:		2017Q3
Differential Revision:	https://reviews.freebsd.org/D11667
2017-07-23 16:45:07 +00:00
Mahdi Mokhtari
efba8f70aa databases/mysql57-{server client}: Update to latest 5.7.18 release
Fix some no-longer-valid (but needed) patches.

Reviewed by:	feld, mat (mentors)
Approved by:	feld (mentor)
Differential Revision:	https://reviews.freebsd.org/D10392
2017-04-17 14:58:06 +00:00
Mahdi Mokhtari
b9db446854 databases/mysql{56 57 80}:
Improve ${mysql_optfile} default usage in rc script.
Improve pkg-message.

Reviewed by:	feld, mat
Approved by:	feld, mat (mentors)
Differential Revision:	https://reviews.freebsd.org/D9646
2017-02-22 17:25:22 +00:00
Dmitry Marakasov
9d79e7b146 - Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL
Approved by:	portmgr blanket
2017-01-09 13:16:49 +00:00
Nikolai Lifanov
624e03d2c1 update mysql57 ports to 5.7.17
Changelog: https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-17.html

PR:		215711
Submitted by:	Mahdi Mokhtari <mokhi64@gmail.com> (maintainer)
Reviewed by:	matthew
Approved by:	matthew (mentor)
Differential Revision:	https://reviews.freebsd.org/D9027
2017-01-03 14:40:32 +00:00
Thomas Zander
b5931dac78 Update to upstream version 5.7.15; fixes zero-day remote vuln CVE-2016-6662
PR:		212690
Submitted by:	mokhi64@gmail.com (maintainer)
MFH:		2016Q3
Security:	CVE 2016-6662
2016-09-16 15:55:15 +00:00
Bernard Spil
b4ada78629 databases/mysql57-server: Fix build with LibreSSL
- Fix building when OPENSSL_VERSION_NUMBER == 2
  - Switch USE_OPENSSL to USES= ssl

PR:		211770
Submitted by:	Markus Kohlmeyer <rootservice@gmail.com>
Reported by:	Markus Kohlmeyer <rootservice@gmail.com>
Approved by:	Mahdi Mokhtari <mokhi64@gmail.com>
MFH:		2016Q3
2016-08-24 18:56:34 +00:00
Thomas Zander
cad0f5776b Make my.cnf path correct according to hier(7), bump PORTREVISION
PR:		209579
Submitted by:	mokhi64@gmail.com
Reviewed by:	rootservice@gmail.com
2016-07-04 14:59:15 +00:00
Thomas Zander
f83159f188 Update to 5.7.12, fixing 31 partially critical vulnerabilities
List of vulnerabilities is documented on:
http://vuxml.freebsd.org/freebsd/8c2b2f11-0ebe-11e6-b55e-b499baebfeaf.html
CVE IDs see below.

PR:		206998
Submitted by:	mokhi64@gmail.com (maintainer)
Reviewed by:	rootservice@gmail.com
Approved by:	mokhi64@gmail.com (maintainer)
MFH:		2016Q2
Security:	CVE-2016-0705
		CVE-2016-0639
		CVE-2015-3194
		CVE-2016-0640
		CVE-2016-0641
		CVE-2016-3461
		CVE-2016-2047
		CVE-2016-0642
		CVE-2016-0643
		CVE-2016-0644
		CVE-2016-0646
		CVE-2016-0647
		CVE-2016-0648
		CVE-2016-0649
		CVE-2016-0650
		CVE-2016-0652
		CVE-2016-0653
		CVE-2016-0654
		CVE-2016-0655
		CVE-2016-0656
		CVE-2016-0657
		CVE-2016-0658
		CVE-2016-0651
		CVE-2016-0659
		CVE-2016-0661
		CVE-2016-0662
		CVE-2016-0663
		CVE-2016-0665
		CVE-2016-0666
		CVE-2016-0667
		CVE-2016-0668
2016-05-06 14:39:59 +00:00
Thomas Zander
64d67d90ee Cosmetic change of handling manual pages; preparation for upcoming update
PR:		208634
Submitted by:	rootservice@gmail.com
Approved by:	mokhi64@gmail.com (maintainer)
2016-04-23 07:15:57 +00:00
Dimitry Andric
df8bf3a88a Fix patches that were accidentally concatenated twice in r412695.
Reported by:	Vladimir Omelchuk <admin@vladiom.com.ua>
Pointy hat to:	dim
PR:		208525
MFH:		2016Q2
2016-04-08 08:42:34 +00:00
Dimitry Andric
a5741fb5a7 In the exp-run for bug 208158, building databases/mysql57-server
resulted in errors with libc++ 3.8.0, because it declares the allocators
for several std::map declarations incorrectly.  Fix this by sprinkling
const in the right places.

Approved by:	mokhi64@gmail.com (maintainer)
PR:		208525
MFH:		2016Q2
2016-04-07 22:23:19 +00:00
Thomas Zander
5c7fab5bfc Revert recent change on performance_schema; introduce OPTION for it
The recent port version 5.7.10_2 introduced a change in the default
behaviour of performance_schema. Due to an ongoing debate in the
community whether the default setting should lean towards performance
(previous default before 5.7.10_2) or memory consumption, maintainer
had changed the default to memory consumption in 5.7.10_2.
This introduces an OPTION knob PERFSCHM to control the default behaviour
of performance_schema. It defaults to ON, hence restoring the previous
default.
Bump PORTREVISION.

PR:		206912
Submitted by:	smh
Reviewed by:	mokhi64@gmail.com (maintainer), riggs
Approved by:	mokhi64@gmail.com (maintainer)
MFH:		2016Q1
2016-02-07 08:08:20 +00:00
Thomas Zander
ee7169c0c1 - Fix plist
- binary_log_types.h is now installed only by client, not server
  - lib/mysql/plugin/ha_example.so is only installed if
    EXAMPLES OPTION is turned off
- Bump PORTREVISION
- Allow slave port to override PORTREVISION if necessary
- Deactivate performance_schema feature to conserve memory
- Add notes to pkg-message:
  - root password
  - performance_schema feature is deactivated by default to reduce
    memory footprint

PR:		205956 206065
Submitted by:	smh
Reviewed by:	mokhi64@gmail.com (maintainer)
Approved by:	mokhi64@gmail.com (maintainer)
MFH:		2016Q1
2016-02-03 23:11:17 +00:00
Kurt Jaeger
f8d239353c databases/mysql57-client, databases/mysql57-server:
change all files that were missed in the last commit

PR:		204607
2016-01-10 20:07:48 +00:00
Kurt Jaeger
79c95318b4 databases/mysql57-client, databases/mysql57-server:
re-add for proper repo-copy

PR:		204607
2016-01-10 20:02:30 +00:00
Kurt Jaeger
8e2b429602 databases/mysql57-client, databases/mysql57-server:
remove to prepare for proper repo-copy

PR:		204607
2016-01-10 20:00:18 +00:00
Martin Wilke
3c7802e932 - Restore backwards compatibility
- Bump PORTREVISION

PR:	    205433
2015-12-27 02:15:06 +00:00
John Marino
929e5dccb6 databases/mysql57-*: Support DragonFly
PR:	204607
2015-12-17 12:08:06 +00:00
Kurt Jaeger
3184bed097 New ports: databases/mysql57-client, databases/mysql57-server
The next major release of mysql.

MySQL is a very fast, multi-threaded, multi-user and robust SQL
(Structured Query Language) database server.

WWW: http://www.mysql.com/

PR:		204607
Submitted by:	mokhi64@gmail.com
Reviewed by:	koobs, brnrd
Approved by:	mat
2015-12-15 19:40:21 +00:00