Skip to contentSkip to conversation

mysql: don't allow selection when dependencies are missing

PATCH New Baruch Siach 2 participants 2 messages Dec 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mysql: don't allow selection when dependencies are missing

Commit 3d707d2b4f (mysql: rename package to oracle-mysql, make a virtual package) removed all dependencies of BR2_PACKAGE_MYSQL. Now BR2_PACKAGE_MYSQL is selectable when no actual implementation is selectable. This confuses packages like open2300 that expect mysql.h when BR2_PACKAGE_MYSQL is enabled. Make BR2_PACKAGE_MYSQL inherit the dependencies of BR2_PACKAGE_ORACLE_MYSQL, since oracle mysql is the default mysql implementation.

Fixes:
http://autobuild.buildroot.net/results/c4d/c4d86cad20251a690a1d99af3740f44435f6de13/
http://autobuild.buildroot.net/results/919/919ab62cedc25fc7c60864d99c208628edfbe472/
http://autobuild.buildroot.net/results/bb7/bb73189b9d0850c9c4ef89c7efab2c1a261700a7/

---
 package/mysql/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)
package/mysql/Config.in +7 -0
index e485d6b99fbe..899fcfb0d304 100644
@@ -1,5 +1,12 @@
+comment "mysql support needs a toolchain w/ C++, threads"
+	depends on BR2_USE_MMU
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+
 config BR2_PACKAGE_MYSQL
 	bool "mysql support"
+	depends on BR2_INSTALL_LIBSTDCPP # oracle mysql
+	depends on BR2_USE_MMU # oracle mysql
+	depends on BR2_TOOLCHAIN_HAS_THREADS # oracle mysql
 	help
 	  Select the desired mysql provider.
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 mysql: don't allow selection when dependencies are missing

Quoted 7 lines · Baruch Siach

Commit 3d707d2b4f (mysql: rename package to oracle-mysql, make a virtual package) removed all dependencies of BR2_PACKAGE_MYSQL. Now BR2_PACKAGE_MYSQL is selectable when no actual implementation is selectable. This confuses packages like open2300 that expect mysql.h when BR2_PACKAGE_MYSQL is enabled. Make BR2_PACKAGE_MYSQL inherit the dependencies of BR2_PACKAGE_ORACLE_MYSQL, since oracle mysql is the default mysql implementation.

Quoted 7 lines

Fixes:
http://autobuild.buildroot.net/results/c4d/c4d86cad20251a690a1d99af3740f44435f6de13/
http://autobuild.buildroot.net/results/919/919ab62cedc25fc7c60864d99c208628edfbe472/
http://autobuild.buildroot.net/results/bb7/bb73189b9d0850c9c4ef89c7efab2c1a261700a7/

Quoted 21 lines
---
  package/mysql/Config.in | 7 +++++++
  1 file changed, 7 insertions(+)
package/mysql/Config.in +7 -0
index e485d6b99fbe..899fcfb0d304 100644
@@ -1,5 +1,12 @@
+comment "mysql support needs a toolchain w/ C++, threads"
+	depends on BR2_USE_MMU
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+
  config BR2_PACKAGE_MYSQL
  	bool "mysql support"
+	depends on BR2_INSTALL_LIBSTDCPP # oracle mysql
+	depends on BR2_USE_MMU # oracle mysql
+	depends on BR2_TOOLCHAIN_HAS_THREADS # oracle mysql
  	help
  	  Select the desired mysql provider.