svn commit: r450384 - head/Mk/Uses

Philip M. Gollucci pgollucci at p6m7g8.com
Tue Dec 12 16:06:45 UTC 2017


is probably better written ad ${GREP} -c foo

On Fri, Sep 22, 2017 at 8:28 AM, Mahdi Mokhtari <mmokhi at freebsd.org> wrote:

> Author: mmokhi
> Date: Fri Sep 22 15:28:09 2017
> New Revision: 450384
> URL: https://svnweb.freebsd.org/changeset/ports/450384
>
> Log:
>   Mk/Uses/mysql.mk: Change the way of extracting version info from MySQL
> flavors
>   Use `mysql_config --version` instead of `mysql --version` because
>       in MySQL 8.0 the format of output is changed and it'd be [more
> reliable] and
>       easier to use just mysql_config because it only returns the numbers
> we want.
>
>   Reviewed by:  brnrd, mat (mentor, portmgr)
>   Approved by:  brnrd, mat (mentor, portmgr)
>   Sponsored by: EuroBSDCon Paris Devsummit
>   Differential Revision:        https://reviews.freebsd.org/D12458
>
> Modified:
>   head/Mk/Uses/mysql.mk
>
> Modified: head/Mk/Uses/mysql.mk
> ============================================================
> ==================
> --- head/Mk/Uses/mysql.mk       Fri Sep 22 15:22:56 2017        (r450383)
> +++ head/Mk/Uses/mysql.mk       Fri Sep 22 15:28:09 2017        (r450384)
> @@ -75,7 +75,7 @@ MYSQL102m_LIBVER=     3
>
>  # Setting/finding MySQL version we want.
>  .if exists(${LOCALBASE}/bin/mysql)
> -_MYSQL!=       ${LOCALBASE}/bin/mysql --version | ${SED} -e 's/.*Distrib
> \([0-9]\{1,2\}\)\.\([0-9]*\).*/\1\2/'
> +_MYSQL!=       ${LOCALBASE}/bin/mysql_config --version | ${SED} -e
> 's/\([0-9]\{1,2\}\)\.\([0-9]*\).*/\1\2/'
>  _PERCONA!=     ${LOCALBASE}/bin/mysql --version | ${GREP} Percona | wc -l
>  _MARIADB!=     ${LOCALBASE}/bin/mysql --version | ${GREP} MariaDB | wc -l
>
> _______________________________________________
> svn-ports-all at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-ports-all
> To unsubscribe, send any mail to "svn-ports-all-unsubscribe at freebsd.org"
>



-- 
---------------------------------------------------------------------------------
4096R/D21D2752
<http://pgp.mit.edu/pks/lookup?op=get&search=0xF699A450D21D2752> ECDF B597
B54B 7F92 753E  E0EA F699 A450 D21D 2752
Philip M. Gollucci (pgollucci at p6m7g8.com) c: 703.336.9354
Member,                           Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Director Cloud Technology,        Capital One

What doesn't kill us can only make us stronger;
Except it almost kills you.


More information about the svn-ports-head mailing list