Skip to contentSkip to conversation

host-mariadb: add host-openssl dependency

PATCH New Adam Duskett 3 participants 5 messages Jul 27, 2017 – Jul 28, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 host-mariadb: add host-openssl dependency

On Fedora26, openssl 1.1.x is included by default. This causes build errors when building the host variant of mariadb. Adding host-openssl as a dependency fixes this issue.

---
 package/mariadb/mariadb.mk | 3 +++
 1 file changed, 3 insertions(+)
package/mariadb/mariadb.mk +3 -0
index 1d6c2bcc4..8004709c7 100644
@@ -22,6 +22,9 @@ MARIADB_DEPENDENCIES = \
 	libxml2 \
 	readline
 
+HOST_MARIADB_DEPENDENCIES = \
+	host-openssl
+
 # We won't need unit tests
 MARIADB_CONF_OPTS += -DWITH_UNIT_TESTS=0
 
Signature · 1 line
2.13.3
#1 lore raw

PATCH 1/1 host-mariadb: add host-openssl dependency

Adam,

Quoted 14 lines · Adam Duskett

On Fedora26, openssl 1.1.x is included by default. This causes build errors when building the host variant of mariadb. Adding host-openssl as a dependency fixes this issue.

---
  package/mariadb/mariadb.mk | 3 +++
  1 file changed, 3 insertions(+)
package/mariadb/mariadb.mk +0 -0
index 1d6c2bcc4..8004709c7 100644

package/mariadb/mariadb.mk MARIADB_DEPENDENCIES = \ · line 30

Quoted 9 lines
package/mariadb/mariadb.mk +3 -0
@@ -22,6 +22,9 @@ MARIADB_DEPENDENCIES = \
  	libxml2 \
  	readline
 
+HOST_MARIADB_DEPENDENCIES = \
+	host-openssl
+
  # We won't need unit tests
  MARIADB_CONF_OPTS += -DWITH_UNIT_TESTS=0
 
#2 lore raw

PATCH 1/1 host-mariadb: add host-openssl dependency

In reply to Adam Duskett

Hello,

Quoted 5 lines · Adam Duskett

On Fedora26, openssl 1.1.x is included by default. This causes build errors when building the host variant of mariadb. Adding host-openssl as a dependency fixes this issue.

I don't think this is the correct fix. Indeed, host-mariadb builds just fine on a system where the OpenSSL headers/development files are *NOT* installed.

This means that host-mariadb does not require host-openssl, but uses OpenSSL if available. So the proper solution is to pass some option at configure time to tell host-mariadb to not attempt to use OpenSSL. Indeed, we are not really interested in having OpenSSL support in host-mariadb.

It apparently needs an SSL implementation, but has a small bundled one based on yassl. Can you try:

HOST_MARIADB_CONF_OPTS += -DWITH_SSL=bundled

and see if it fixes the problem for you ?

You can try to compare the build time of host-mariadb + host-openssl vs. host-maria-db + bundled SSL.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#3 lore raw

PATCH 1/1 host-mariadb: add host-openssl dependency

Hello;

Quoted 13 lines · Thomas Petazzoni

Hello,

Quoted 5 lines · Adam Duskett

On Fedora26, openssl 1.1.x is included by default. This causes build errors when building the host variant of mariadb. Adding host-openssl as a dependency fixes this issue.

I don't think this is the correct fix. Indeed, host-mariadb builds just fine on a system where the OpenSSL headers/development files are *NOT* installed.

Quoted 6 lines

This means that host-mariadb does not require host-openssl, but uses OpenSSL if available. So the proper solution is to pass some option at configure time to tell host-mariadb to not attempt to use OpenSSL. Indeed, we are not really interested in having OpenSSL support in host-mariadb.

True; what about if host-openssl is already selected?

Quoted 6 lines

It apparently needs an SSL implementation, but has a small bundled one based on yassl. Can you try:

HOST_MARIADB_CONF_OPTS += -DWITH_SSL=bundled

and see if it fixes the problem for you ?

This works and properly builds mariadb. That being said; should is there a way to check if host-openssl is already selected? Or does it not matter?

Quoted 11 lines

You can try to compare the build time of host-mariadb + host-openssl vs. host-maria-db + bundled SSL.

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

#4 lore raw

PATCH 1/1 host-mariadb: add host-openssl dependency

Hello,

Quoted 8 lines · Adam Duskett
Quoted 6 lines

This means that host-mariadb does not require host-openssl, but uses OpenSSL if available. So the proper solution is to pass some option at configure time to tell host-mariadb to not attempt to use OpenSSL. Indeed, we are not really interested in having OpenSSL support in host-mariadb.

True; what about if host-openssl is already selected?

Quoted 8 lines
Quoted 6 lines

It apparently needs an SSL implementation, but has a small bundled one based on yassl. Can you try:

HOST_MARIADB_CONF_OPTS += -DWITH_SSL=bundled

and see if it fixes the problem for you ?

This works and properly builds mariadb. That being said; should is there a way to check if host-openssl is already selected? Or does it not matter?

We currently have no way to know if a host package is selected, because we don't have Config.in options for most host packages.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com