Skip to contentSkip to conversation

package/mariadb: add option to disable build of embedded server

PATCH New Bernd Kuhls 3 participants 4 messages Oct 18, 2018 – Oct 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mariadb: add option to disable build of embedded server

Size of output/target/usr:

with embedded: 1,7G
without embedded: 648M

This config option saves space on the target if the embedded server is not used by any other package:

https://mariadb.com/kb/en/library/embedded-mariadb-interface/

---
 package/mariadb/mariadb.mk | 4 ++++
 package/mysql/Config.in    | 5 +++++
 2 files changed, 9 insertions(+)
package/mariadb/mariadb.mk +4 -0
index 2523aaf062..06d6365fab 100644
@@ -56,8 +56,12 @@ MARIADB_CONF_OPTS += -DCMAKE_CROSSCOMPILING=1
 MARIADB_CONF_OPTS += -DENABLE_DTRACE=0
 
 ifeq ($(BR2_PACKAGE_MARIADB_SERVER),y)
+ifeq ($(BR2_PACKAGE_MARIADB_SERVER_EMBEDDED),y)
 MARIADB_CONF_OPTS += -DWITH_EMBEDDED_SERVER=ON
 else
+MARIADB_CONF_OPTS += -DWITH_EMBEDDED_SERVER=OFF
+endif
+else
 MARIADB_CONF_OPTS += -DWITHOUT_SERVER=ON
 endif
 
package/mysql/Config.in +5 -0
index 6409c8b806..257a2901a4 100644
@@ -54,6 +54,11 @@ config BR2_PACKAGE_MARIADB_SERVER
 	help
 	  Install the mariadb server on the target.
 
+config BR2_PACKAGE_MARIADB_SERVER_EMBEDDED
+	bool "mariadb embedded server"
+	help
+	  Install the mariadb embedded server on the target.
+
 endif
 
 if BR2_PACKAGE_ORACLE_MYSQL
Signature · 1 line
2.19.1
#1 lore raw

PATCH 1/1 package/mariadb: add option to disable build of embedded server

Bernd, All,

Quoted 38 lines · Bernd Kuhls

Size of output/target/usr:

with embedded: 1,7G
without embedded: 648M

This config option saves space on the target if the embedded server is not used by any other package:

https://mariadb.com/kb/en/library/embedded-mariadb-interface/

---
  package/mariadb/mariadb.mk | 4 ++++
  package/mysql/Config.in    | 5 +++++
  2 files changed, 9 insertions(+)
package/mariadb/mariadb.mk +4 -0
index 2523aaf062..06d6365fab 100644
@@ -56,8 +56,12 @@ MARIADB_CONF_OPTS += -DCMAKE_CROSSCOMPILING=1
  MARIADB_CONF_OPTS += -DENABLE_DTRACE=0
 
  ifeq ($(BR2_PACKAGE_MARIADB_SERVER),y)
+ifeq ($(BR2_PACKAGE_MARIADB_SERVER_EMBEDDED),y)
  MARIADB_CONF_OPTS += -DWITH_EMBEDDED_SERVER=ON
  else
+MARIADB_CONF_OPTS += -DWITH_EMBEDDED_SERVER=OFF
+endif
+else
  MARIADB_CONF_OPTS += -DWITHOUT_SERVER=ON
  endif
 
package/mysql/Config.in +0 -0
index 6409c8b806..257a2901a4 100644
@@ -54,6 +54,11 @@ config BR2_PACKAGE_MARIADB_SERVER
  	help

package/mysql/Config.in config BR2_PACKAGE_MARIADB_SERVER · line 64

Quoted 10 lines
package/mysql/Config.in +5 -0
  	  Install the mariadb server on the target.
 
+config BR2_PACKAGE_MARIADB_SERVER_EMBEDDED
+	bool "mariadb embedded server"
+	help
+	  Install the mariadb embedded server on the target.
+
  endif
 
  if BR2_PACKAGE_ORACLE_MYSQL
#2 lore raw

PATCH 1/1 package/mariadb: add option to disable build of embedded server

In reply to Bernd Kuhls
Quoted 38 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Size of output/target/usr:
with embedded: 1,7G
without embedded: 648M

This config option saves space on the target if the embedded server is not used by any other package:

https://mariadb.com/kb/en/library/embedded-mariadb-interface/

---
 package/mariadb/mariadb.mk | 4 ++++
 package/mysql/Config.in    | 5 +++++
 2 files changed, 9 insertions(+)
package/mariadb/mariadb.mk +4 -0
index 2523aaf062..06d6365fab 100644
@@ -56,8 +56,12 @@ MARIADB_CONF_OPTS += -DCMAKE_CROSSCOMPILING=1
 MARIADB_CONF_OPTS += -DENABLE_DTRACE=0
 
 ifeq ($(BR2_PACKAGE_MARIADB_SERVER),y)
+ifeq ($(BR2_PACKAGE_MARIADB_SERVER_EMBEDDED),y)
 MARIADB_CONF_OPTS += -DWITH_EMBEDDED_SERVER=ON
 else
+MARIADB_CONF_OPTS += -DWITH_EMBEDDED_SERVER=OFF
+endif
+else
 MARIADB_CONF_OPTS += -DWITHOUT_SERVER=ON
 endif
 
package/mysql/Config.in +0 -0
index 6409c8b806..257a2901a4 100644

package/mysql/Config.in config BR2_PACKAGE_MARIADB_SERVER · line 58

Quoted 5 lines
package/mysql/Config.in +2 -0
@@ -54,6 +54,11 @@ config BR2_PACKAGE_MARIADB_SERVER
 	help
 	  Install the mariadb server on the target.
 
+config BR2_PACKAGE_MARIADB_SERVER_EMBEDDED
+	bool "mariadb embedded server"

If the embedded server can only be enabled if MARIADB_SERVER is enabled, then this Config.in option should also depend on it.

Committed with that fixed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/1 package/mariadb: add option to disable build of embedded server

In reply to Bernd Kuhls
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Size of output/target/usr:
with embedded: 1,7G
without embedded: 648M

This config option saves space on the target if the embedded server is not used by any other package:

https://mariadb.com/kb/en/library/embedded-mariadb-interface/

Committed to 2018.02.x and 2018.08.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard