Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/mysql: change default implementation to mariadb
@ 2024-02-26 20:35 Julien Olivain
  2024-03-01  8:24 ` Peter Korsgaard
  0 siblings, 1 reply; 6+ messages in thread
From: Julien Olivain @ 2024-02-26 20:35 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain

The mysql package is a virtual package with two implementations:
oracle-mysql (the initial project), and mariadb (the fork of mysql).
This virtual package was introduced in commit [1] (2016).

The last version bump of oracle-mysql was in commit [2] (2014). This
mysql version 5.1.73 dates from 2013 [3].

Package statistics at [4] reports 177 CVEs on this oracle-mysql
version (as of Buildroot tag 2024.02-rc1).

Finally, oracle-mysql has 12 package patches accumulated over the time
and there is nobody registered in the DEVELOPER file for it.

On the other hand, the Buildroot mariadb package seems to be in a
better shape: the package version is more recent, and received
frequent updates, since its introduction.

There is several packages selecting BR2_PACKAGE_MYSQL, which will use
the old oracle-mysql without the user knowing it (other than
generating the CVE list with "make pkg-stats").

In the meantime oracle-mysql receive a major update, this commits
changes the default implementation of the mysql virtual package from
oracle-mysql to mariadb.

[1] https://gitlab.com/buildroot.org/buildroot/-/commit/3d707d2b4fa6362cb37754f6c5fbb06240f5faf5
[2] https://gitlab.com/buildroot.org/buildroot/-/commit/42c56751fc554503a03d4a914ce2e814eeaf5a41
[3] https://github.com/mysql/mysql-server/releases/tag/mysql-5.1.73
[4] http://autobuild.buildroot.org/stats/master.html

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Patch tested on branch master at commit 7a9ba7a with commands:

    make check-package
    ...
    0 warnings generated

    # Build packages using mysql
    cat > .config <<EOF
    BR2_aarch64=y
    BR2_TOOLCHAIN_EXTERNAL=y
    BR2_PER_PACKAGE_DIRECTORIES=y
    BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
    BR2_PACKAGE_MOTION=y
    BR2_PACKAGE_PERL=y
    BR2_PACKAGE_PERL_DBD_MYSQL=y
    BR2_PACKAGE_TCL=y
    BR2_PACKAGE_CPPDB=y
    BR2_PACKAGE_LIBDBI_DRIVERS=y
    BR2_PACKAGE_MARIADB_SERVER=y
    BR2_PACKAGE_APR_UTIL=y
    BR2_PACKAGE_POCO=y
    BR2_PACKAGE_POCO_DATA_MYSQL=y
    BR2_PACKAGE_DOVECOT=y
    BR2_PACKAGE_DOVECOT_MYSQL=y
    BR2_PACKAGE_COLLECTD=y
    BR2_PACKAGE_COLLECTD_MYSQL=y
    BR2_PACKAGE_FREERADIUS_SERVER=y
    BR2_PACKAGE_GERBERA=y
    BR2_PACKAGE_PURE_FTPD=y
    BR2_PACKAGE_ZABBIX=y
    BR2_PACKAGE_ZABBIX_SERVER=y
    BR2_PACKAGE_RSYSLOG=y
    BR2_TARGET_ROOTFS_EXT2=y
    BR2_TARGET_ROOTFS_EXT2_4=y
    BR2_TARGET_ROOTFS_EXT2_SIZE="500M"
    # BR2_TARGET_ROOTFS_TAR is not set
    EOF
    make olddefconfig
    make -j$(nproc)
---
 package/mysql/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/mysql/Config.in b/package/mysql/Config.in
index 8942e55a455..dc9a899329f 100644
--- a/package/mysql/Config.in
+++ b/package/mysql/Config.in
@@ -10,7 +10,7 @@ if BR2_PACKAGE_MYSQL
 
 choice
 	prompt "mysql variant"
-	default BR2_PACKAGE_ORACLE_MYSQL
+	default BR2_PACKAGE_MARIADB
 	help
 	  Select either the oracle mysql server or the mariadb server
 
-- 
2.43.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-03 17:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-26 20:35 [Buildroot] [PATCH 1/1] package/mysql: change default implementation to mariadb Julien Olivain
2024-03-01  8:24 ` Peter Korsgaard
2024-03-01 21:45   ` Julien Olivain
2024-03-02 14:37     ` Yann E. MORIN
2024-03-03 16:01       ` Arnout Vandecappelle via buildroot
2024-03-03 17:55         ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox