[Buildroot] integrating MariaDB Galera Cluster into BR

Arnout Vandecappelle arnout at mind.be
Tue May 5 21:18:51 UTC 2015


On 05/05/15 12:31, Sylvain Raybaud wrote:
> On 24/04/2015 19:54, Yann E. MORIN wrote:
>> On 2015-04-24 16:49 +0200, Sylvain Raybaud spake thusly:
> 
>>> a) Create a meta-package, for example "mysql compatible DB", the 
>>> selection of which would let the user choose between MariaDB
>>> Galera Cluster or MySQL?
>>>
>>> b) Integrate MariaDB Galera Cluster into MySQL package and let
>>> the user choose which implementation he wants?
>>>
>>> c) Make these packages mutually exclusive using "depends on !"?
> 
>> I would say either b) or c). Which one depends on how MariaDB
>> Galera is seen with respect to MySQL:
> 
>> 1- is it a completely different implementation that is 100%
>> compatible?
> 
>> 2- is it a fork that is 100% compatible?
> 
>> 3- is it a fork that is not 100% compatible?
> 
>> For 1 or 2, I'd say go with b), otherwise go for c).
> 
> MariaDB is supposed to be a "drop-in replacement for MySQL" so I
> suppose I should go for b).
> https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-compatibility/
> lists some differences but it seems that everything you can do with
> MySQL you can do with MariaDB.
> 
> Does option b) allow dependencies specific to MariaDB?

 It's very easy to add something like this to mysql.mk:

ifeq ($(BR2_PACKAGE_MYSQL_MARIADB),y)
MYSQL_DEPENDENCIES += foo
else
MYSQL_DEPENDENCIES += bar
endif


 And so on for all other things that are different between the two builds. Even
if they were completely different, you could put a big ifeq around the entire
.mk file.

 You'll have more trouble with the patches. The only solution for those is to
move them to a version-specific directory, so 5.1/ for the mysql version and
10.0.17 for MariaDB.


 Regards,
 Arnout


[snip]


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150505/2d023c98/attachment-0002.asc>


More information about the buildroot mailing list