Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2013 21:26:20 +0000
From:      Chris Rees <utisoft@gmail.com>
To:        "Sergey V. Dyatko" <tiger@agava.com>
Cc:        Helmut Schneider <jumper99@gmx.de>, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: USE_MYSQL
Message-ID:  <CADLo839VCt_SoSvL0GFEDHrXAGAc0r31pGbMebmv9hzvWbSSaw@mail.gmail.com>
In-Reply-To: <20130104235717.7be81634@laptop>
References:  <xn0icong54pw48000@news.gmane.org> <CADLo838hBeJPz3bA_c%2BBBApiRDPzUFSToDYhT06Ha2yGCCnhog@mail.gmail.com> <CADLo838ucDmF00UbLuocoZKkPoULu0VSwtB-3pSMv-pckViaDQ@mail.gmail.com> <20130104230442.10f2b57f@laptop> <xn0icopbj7fazos003@news.gmane.org> <20130104235029.1d54791f@laptop> <20130104235717.7be81634@laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4 Jan 2013 21:03, "Sergey V. Dyatko" <tiger@agava.com> wrote:
>
> On Fri, 4 Jan 2013 23:50:29 +0300
> "Sergey V. Dyatko" <sergey.dyatko@gmail.com> wrote:
>
> > On Fri, 4 Jan 2013 20:17:29 +0000 (UTC)
> > "Helmut Schneider" <jumper99@gmx.de> wrote:
> >
> > > Sergey V. Dyatko wrote:
> > >
> > > > On Fri, 4 Jan 2013 19:38:05 +0000
> > > > Chris Rees <utisoft@gmail.com> wrote:
> > > >
> > > > > On 4 Jan 2013 19:06, "Helmut Schneider" <jumper99@gmx.de> wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > what does USE_MYSQL=yes do, require mysql-server, or
> > > > > > mysql-client? If mysql-client, how can I depend on the server
> > > > > > (or v.v.)?
> > > > >
> > > > > Client.  Using WANT_MYSQL_VER or IGNORE_MYSQL_VER will allow you
> > > > > to choose versions; see Mk/bsd.database.mk.
> > > > >
> > > > > Currently you can't depend on mysql-server; is there a reason
> > > > > you would want to?
> > > > >
> > > > >
> > > > metaport, for example.
> > > >
> > > > In that case RUN_DEPENDS his friend, I think :)
> > >
> > > Not sure. I maintain an application where you may or may not install
> > > mysql-server locally. I'd like to add an option (default off) to
> > > install mysql-server locally.
> > >
> > possible something like...
> >
> >
>
> > RUN_DEPENDS+=
> > ${LOCALBASE}/bin/mysql:${PORTSDIR}/databases/mysql55-server
> > .endif
> >
> >
> hm... error ^^^^^..  s/bin/libexec/ and should be something like this:
>
> .if ${PORT_OPTIONS:MWITH_MYSQL_SERVER}
> USE_MYSQL= server
> .endif

No.  The first example installs only one version which could be wrong, and
the second version only works with USE_PGSQL.

This is a pointless exercise, please don't make complex dependencies.

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo839VCt_SoSvL0GFEDHrXAGAc0r31pGbMebmv9hzvWbSSaw>