Re: Omg upgrade wants to install MySQL

2019-11-02 Thread Miroslav Lachman

@lbutlr wrote on 11/02/2019 14:48:

I have mariadb101 (client and server) installed, but when looking at what pkg 
update will do, one of the things it will do is install MySQL. Is there 
something I need to do to tell it to use MariaDB instead?

Since I am here, it also wants to install a bunch of X11 packages, but I 
neither want nor have any desktop environment installed, so similar question, 
how can I tell pkg to run in “don’t enable GUIs” mode?


Build your own packages wit poudriere and change default options to use 
MariaDB instead of MySQL for all ports, do not use X11 / GUI / DOC / NLS 
and whatever options you like / don't like.


Miroslav Lachman
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Omg upgrade wants to install MySQL

2019-11-03 Thread Eugene Grosbein
02.11.2019 20:48, @lbutlr wrote:

> I have mariadb101 (client and server) installed, but when looking at what pkg 
> update will do, one of the things it will do is install MySQL. Is there 
> something I need to do to tell it to use MariaDB instead?
> 
> Since I am here, it also wants to install a bunch of X11 packages, but I 
> neither want nor have any desktop environment installed, so similar question, 
> how can I tell pkg to run in “don’t enable GUIs” mode?

Your choices are:

- you may use default package repository and then you must use default package 
builting options and flavours,
e.g. MySQL and not MariaDB, packages built with X11 options enabled etc.;
- or you may use non-default packages (f.e. MariaDB instead of MySQL) and then 
you either build and
use your own package repository containing packages built with your preferences;
- or you just build some packages using ports while using default package 
repository for distinct
packages and don't use "pkg upgdate".

I prefer third option. Sometimes it is handy to "pkg lock" packages you 
installed from ports buiklt with non-default options, too.


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Omg upgrade wants to install MySQL

2019-11-03 Thread Eugene Grosbein
03.11.2019 9:20, @lbutlr wrote:

> On 02 Nov 2019, at 19:35, Eugene Grosbein  wrote:
>> I prefer third option. Sometimes it is handy to "pkg lock" packages you 
>> installed from ports buiklt with non-default options, too.
> 
> If I could tell which pkg install is going to install MySQL and libX stuff I 
> would lock those, but I Dion’t see anyway to check that.

You need to lock MariaDB.

> And it does seem odd that pkg is still assuming MySQL and desktop FreeBSD.
> I know of many 120 FreeBSD servers and not one has a GUI desktop.
> I mean, I am sure they exist, but they must be a pretty tiny sliver.

First, it is NOT pkg assuming anything. Package repository has packages built 
from ports with their *default* options
and pkg merely uses them.

Second, support of X headers/formats/libraries does not assume "desktop" FreeBSD
and does not install any graphical environment but generally only some small 
headers or libs,
not even libX11 not to mention heavy window managers or desktop environment.




___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Omg upgrade wants to install MySQL

2019-11-03 Thread Kevin Oberman
Packages are built using default options and some package you installed
defaults to MySQL. Many ports are installed with GUIs by default, so
packages are as well. Some ports have nox11 versions but many do not. This
is a limitation to most (all?) packaging systems, not just the one FreeBSD
uses.

The only way I know around this is to build your own packages for those
using non-default options. The preferred way is to build them with
port-mgmt/poudrerie though you can also build them manually or with
portmaster but, for most cases, poudriere is easier. This is all described
in the Handbook. Only ports with modified options need be built locally and
the standard packages should be used for all standard ports.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkober...@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683


On Sat, Nov 2, 2019 at 12:37 PM @lbutlr  wrote:

> I have mariadb101 (client and server) installed, but when looking at what
> pkg update will do, one of the things it will do is install MySQL. Is there
> something I need to do to tell it to use MariaDB instead?
>
> Since I am here, it also wants to install a bunch of X11 packages, but I
> neither want nor have any desktop environment installed, so similar
> question, how can I tell pkg to run in “don’t enable GUIs” mode?
>
>
>
> --
> 'That's blasphemy,' said the vampire. He gasped as Vimes shot him a
> glance like sunlight. 'That's what people say when the voiceless speak.’
>
> ___
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
>
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Omg upgrade wants to install MySQL

2019-11-03 Thread @lbutlr
On 02 Nov 2019, at 20:29, Eugene Grosbein  wrote:
> 03.11.2019 9:20, @lbutlr wrote:
> 
>> On 02 Nov 2019, at 19:35, Eugene Grosbein  wrote:
>>> I prefer third option. Sometimes it is handy to "pkg lock" packages you 
>>> installed from ports buiklt with non-default options, too.
>> 
>> If I could tell which pkg install is going to install MySQL and libX stuff I 
>> would lock those, but I Dion’t see anyway to check that.
> 
> You need to lock MariaDB.

MariaDB *is* locked. Both client and server. Pkg update was still going to 
install MySQL.

>> And it does seem odd that pkg is still assuming MySQL and desktop FreeBSD.
>> I know of many 120 FreeBSD servers and not one has a GUI desktop.
>> I mean, I am sure they exist, but they must be a pretty tiny sliver.
> 
> First, it is NOT pkg assuming anything. Package repository has packages built 
> from ports with their *default* options
> and pkg merely uses them.

Fine. Ports assuming MySQL.

> Second, support of X headers/formats/libraries does not assume "desktop" 
> FreeBSD
> and does not install any graphical environment but generally only some small 
> headers or libs,
> not even libX11 not to mention heavy window managers or desktop environment.

A whole lot of X11 cruft gets installed if you do not go through and disable 
X11. A LOT. So there is some assumption in the defaults that there will be a 
desktop environment, yes.

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Omg upgrade wants to install MySQL

2019-11-12 Thread Eugene Grosbein
On 03.11.2019 21:03, @lbutlr wrote:

>>> On 02 Nov 2019, at 19:35, Eugene Grosbein  wrote:
 I prefer third option. Sometimes it is handy to "pkg lock" packages you 
 installed from ports buiklt with non-default options, too.
>>>
>>> If I could tell which pkg install is going to install MySQL and libX stuff 
>>> I would lock those, but I Dion’t see anyway to check that.
>>
>> You need to lock MariaDB.
> 
> MariaDB *is* locked. Both client and server. Pkg update was still going to 
> install MySQL.

pkg has no choice, as official package repo contains packages built with MySQL 
dependency only.

>>> And it does seem odd that pkg is still assuming MySQL and desktop FreeBSD.
>>> I know of many 120 FreeBSD servers and not one has a GUI desktop.
>>> I mean, I am sure they exist, but they must be a pretty tiny sliver.
>>
>> First, it is NOT pkg assuming anything. Package repository has packages 
>> built from ports with their *default* options
>> and pkg merely uses them.
> 
> Fine. Ports assuming MySQL.

Yes. You still may change defaults and rebuild those ports yourself.
Same with X11 support.

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"