FreeBSD Port: databases/p5-DBD-mysql

Matthew Seaman matthew at FreeBSD.org
Mon May 15 13:53:55 UTC 2017


On 2017/05/15 13:33, Iasen Kostov wrote:
> Hello
>   is it possible for this port to be upgraded to depend on the latest
> MySQL client ?
> Because:
> 
> #:> pkg install mytop
> Updating FreeBSD repository catalogue...
> FreeBSD repository is up to date.
> All repositories are up to date.
> The following 5 package(s) will be affected (of 0 checked):
> 
> New packages to be INSTALLED:
>         mytop: 1.7
>         p5-Term-ReadKey: 2.37
>         p5-DBI: 1.636_1
>         p5-DBD-mysql: 4.042
>         mysql56-client: 5.6.35_3
> 
> When I have:
> #:> mysql -V
> mysql  Ver 14.14 Distrib 5.7.18, for FreeBSD10.3 (amd64) using EditLine
> wrapper
> 
> Is there a problem with the upgrade ?

Ah -- unfortunately not for the packages distributed from
pkg.freebsd.org.  The standard packages will depend on the current
default version of MySQL in the ports tree.  Unfortunately, that's a
hard dependency and compiled into the packages.

However, if you can manage to build your own packages, then you can
locally change which version of MySQL is used by setting something like
this in your make.conf file:

DEFAULT_VERSIONS+=	mysql=8.0

That will force a dependency on databases/mysql80-client to be compiled
into all pkgs that need mysql client support.  Various other versions of
mysql / mariadb / percona can be selected similarly.

	Cheers,

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 972 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-perl/attachments/20170515/1c3e20f3/attachment.sig>


More information about the freebsd-perl mailing list