Commit graph

35 commits

Author SHA1 Message Date
nia
39013575d1 mk: Switch default MySQL version to mariadb105. 2021-06-23 19:55:39 +00:00
nia
073326436c mk: add mariadb105 2021-05-23 15:36:45 +00:00
jperkin
25f53256d2 mk: Overhaul mysql.buildlink3.mk.
- Avoid shouting in version names.  Users may still set MYSQL_VERSION_DEFAULT
  to "MARIADB104", but it is preferred to switch to "mariadb104".

- Set the correct variables in BUILD_DEFS_EFFECTS and _SYS_VARS.

- Instead of hardcoding library names with per-OPSYS logic and testing for
  their existence to see if the package is installed, do it the correct way
  using pkg_info(1).

- Make it easier to add new MySQL versions.

- Avoid unnecesary variables.  Use bmake(1) slices to select the first item
  in a list rather than a temporary variable.

- Improve documentation.

Based on a patch I've had sitting in the joyent/pkgsrc tree for far too many
years.  No functional change other than the switch to lowercase package names
by default.  Tested in a bulk build with additional Percona packages.
2021-05-21 13:20:43 +00:00
jdolecek
21651ccf21 support MySQL 8.0
80 is accepted by default, but 57 remains the default to install if none available
2021-05-13 15:29:04 +00:00
nia
64b9c9e9e3 Remove mariadb55, EOL since April 2020. 2021-05-13 11:04:43 +00:00
jdolecek
4088bdb93b recognize MariaDB 10.4 as another accepted MySQL version 2021-05-08 19:53:28 +00:00
jdolecek
e076927e3a merge the version check for Darwin and !Darwin
mariadb55-client is now detected and used if available on macOS
2021-05-08 15:51:28 +00:00
otis
730ac283b1 Set MYSQL_VERSION from within mysql.buildlink3.mk simialrly
to what pgsql.buildlink3.mk does for PostgreSQL.

And while here, document PGSQL_VERSION as variable set by
pgsql.buildlink3.mk
2020-10-20 21:53:31 +00:00
adam
f616f8bf6d MySQL 5.5 and PostgreSQL 9.4 are no longer with us 2020-05-23 07:35:56 +00:00
rillig
035bd00993 mk/mysql.buildlink3.mk: fix fatal error when no MySQL version is found
This happened in a bulk build with PKGSRC_RUN_TEST=yes.
2020-03-15 17:50:28 +00:00
nia
af217bc787 *: Remove mysql51 - EOL since 2013, completely broken with OpenSSL 1.1 2020-03-13 10:05:41 +00:00
rillig
0ff5dc4a46 mk: use a single form for headings in the documentation comments 2019-09-02 02:23:02 +00:00
rillig
a8b249fd3c mk/mysql.buildlink3.mk: add missing BUILD_DEFS 2019-09-02 02:14:58 +00:00
wiz
14951f1d12 mk: bump mysql default to 57. 2018-02-20 13:21:45 +00:00
adam
04526fd31d Added support for mysql57 2016-09-21 14:27:51 +00:00
ryoon
af4ff71f1c Add mariadb55 support. 2015-04-16 20:24:15 +00:00
dholland
2a00e7b840 Use PKG_SKIP_REASON instead of PKG_FAIL_REASON for some cases where
the problem is either situational (e.g. the various RESTRICTED-like
cases) or unfixable in pkgsrc (no pthreads, ipv6, etc. on platform).

Conversely, if the wrong version of mysql is installed, that's a
PKG_FAIL_REASON.
2015-01-01 07:51:47 +00:00
obache
d0577acb64 drop support of removed MySQL 5.0. 2013-09-13 11:53:24 +00:00
abs
9c775c76b5 Support MYSQL_VERSION_DEFAULT=56 2013-04-15 22:31:22 +00:00
wiz
830a67a0fc Bump mysql default to 55. 2013-03-02 20:33:03 +00:00
adam
f18514b549 Correct mysql 5.5 library path; fix detection on Darwin 2011-05-05 11:50:56 +00:00
taca
3c797b38f8 Allow selecting MySQL 5.5.x, keeping default version (5.1.x) unchanged. 2011-04-27 04:22:00 +00:00
joerg
48d69e6bc8 Make MySQL 5.1 the default version. 2010-09-23 15:34:07 +00:00
taca
19a8435a0e Remove support for MySQL 4.1. 2010-09-23 14:27:11 +00:00
taca
3b8b419c89 Add trial check MySQL version between acceptable and current installed. 2010-03-18 14:38:13 +00:00
taca
6fc829d141 Enable to select mysql51 with 51 in MYSQL_VERSION_DEFAULT and
MYSQL_VERSIONS_ACCEPTED.
2010-03-05 13:47:06 +00:00
wiz
99933ce85b Re-add support for mysql-4.1 (but not 4.0). 2008-03-26 13:23:34 +00:00
wiz
2b36e90cfd Remove support for mysql-4.1 and mysql-4.0. Noted by seb@. 2008-03-26 06:22:49 +00:00
rillig
cd03ea87b2 Added documentation. 2007-09-10 07:18:32 +00:00
rillig
bf5fd7d07a "Forcing an error", like expressed in the comment, should be done via
PKG_FAIL_REASON, not via PKG_SKIP_REASON.
2006-11-18 08:29:13 +00:00
xtraeme
9816c7dd27 * Remove mysql-4.0.x now the packages were removed.
* Change default mysql pkg to 5.x.
2006-01-07 10:47:39 +00:00
xtraeme
bc772c28f4 Add mysql5 support. 2005-10-31 09:25:00 +00:00
wiz
524f19bb42 Remove support for 30, since mysql3 packages have been removed. Noted by kristerw. 2005-04-26 13:29:00 +00:00
tv
fe3c1321bf USE_BUILDLINK3 is no longer optional (and cannot be turned off). Per mail
to tech-pkg:

=====

* USE_BUILDLINK3=YES will be unconditional.  (In fact, USE_BUILDLINK3 will
  be ignored altogether by mk/; but see below.)

* NO_BUILDLINK and NO_WRAPPER will be ignored by mk/.  If a build happens,
  these phases will happen.

* The existing NO_BUILD will imply the previous NO_BUILDLINK and NO_WRAPPER.
  If no build happens, those phases are not needed.

* NO_TOOLS will be ignored by mk/.  The tools phase, which provides much
  more than just the C compiler, will always happen regardless of package.
  This will make metapackage builds only slightly slower, in trade for far
  less user error.
2005-03-24 17:46:00 +00:00
xtraeme
3c76f3a70b mysql.bl3.mk suggested by Jaromir Dolecek (jdolecek@):
Default mysql package if there isn't any installed is mysql-4.1.7
(databases/mysql4-client)

You can choose a mysql package via MYSQL_VERSION_DEFAULT, it will
accept the following values:

MYSQL_VERSION_DEFAULT=41 # <- mysql-4.1.7
MYSQL_VERSION_DEFAULT=40 # <- mysql-4.0.21
MYSQL_VERSION_DEFAULT=30 # <- mysql-3.5.x
2004-10-28 11:28:27 +00:00