FreeBSD Port: databases/p5-DBD-MariaDB

parv/freebsd parv.0zero9+freebsd at gmail.com
Mon Apr 5 03:56:39 UTC 2021


On Sun, Apr 4, 2021 at 4:44 PM Iasen Kostov wrote:

Hi Iasen,

On 4.4.2021 г. 21:12, parv/freebsd wrote:
>
> On Sun, Apr 4, 2021 at 5:23 AM Iasen Kostov wrote:
>
> ...

> So I had to install p5-DBD-mysql from ports with mariadb client installed
>> beforehand. But then when I do 'pkg upgrade' of course a mess ensues. I
>> had to remove the packcage from the database by hand which is ugly solution
>> to say the least :)
>>
>
> What does actually happen when "mess" happens?
>
> pkg tries to uninstall mariadb(server/client) and then install mysqlclient
> (and other packages) which will basically destroy the system setup.
>

Ok. In that case you could lock a package & various pkg commands would not
touch it...

  % pkg lock <MariaDB package names>

... note that that will also affect the dependent packages. To upgrade or
delete later, you can run ...

  % pkg unlock <MariaDB package names>

... and upgrade or delete as you usually do.

So my actual question is how to make 'mytop' (and other similar things)
>> from MariaDB work ?
>> One way is to just have "p5-DBD-mysql-mysql" and "p5-DBD-mysql-mariadb" -
>> but that looks a 'bit' ugly too.
>>
> I have no idea what are you referring to with "p5-DBD-mysql-mysql"
> & "p5-DBD-mysql-mariadb".
>
> The names of new packages which can be complied with dependency to mysql
> and mariadb so the people wont have to resort to ports.
>

Thank you for the explanation.

  - parv

...
>
> and only the ports is not feasible with small systems like RaspberyPI or
>> older  / low power systems and will lead to "but in Linux ..." so it is not
>> a solution either.
>>
>> What would be the best and least ugliest way to make it work ?
>>
> On 3.4.2021 г. 12:19, parv/freebsd wrote:
>>
>> On Fri, Apr 2, 2021 at 9:58 PM Iasen Kostov wrote:
>>
>>>    I wonder why does the package depends on mysqlclient and not on
>>> mariadb ?
>>
>>
>> Yes, should have switched to depend on MariaDB.
>>
>> That package seems to be useless because it is the same as
>>> databases/p5-DBD-mysql. Am I missing something ?
>>>
>>
>> How much do you care for Unicode support & security bug fixes?
>>
>> ...

>   https://github.com/gooddata/DBD-MariaDB#readme
>>
>>


More information about the freebsd-perl mailing list