mariadb: drop anonymous function
PATCH 1/1 mariadb: drop anonymous function
The anonymous function redefined bindir to bindir_noprefix (and others), which broke the sstate between build dirs. After checked the vars in CMakeCache.txt, we can drop it safely, and the builds are OK.
--- meta-oe/recipes-support/mysql/mariadb_5.5.39.inc | 28 +++++++--------------- 1 file changed, 8 insertions(+), 20 deletions(-)
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +8 -20
@@ -35,18 +35,6 @@ SYSTEMD_AUTO_ENABLE_mariadb-server = "disable" EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR_NATIVE}/gen_lex_hash'" -python __anonymous() { - # This is a pain but it's the only way to pass these in since - # MariaDB's cmake scripts insist on prepending the prefix to the - # specified values for INSTALL_* - localdata = d.createCopy() - localdata.setVar('prefix', '') - localdata.setVar('exec_prefix', '') - d.setVar('bindir_noprefix', localdata.getVar('bindir', True).lstrip('/')) - d.setVar('sbindir_noprefix', localdata.getVar('sbindir', True).lstrip('/')) - d.setVar('datadir_noprefix', localdata.getVar('datadir', True).lstrip('/')) - d.setVar('libdir_noprefix', localdata.getVar('libdir', True).lstrip('/')) -} PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" PACKAGECONFIG_class-native = ""
@@ -64,15 +52,15 @@ EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \ -DNROFF=FALSE \ -DENABLE_DTRACE=FALSE \ -DWITH_PIC=ON \ - -DINSTALL_DOCDIR:PATH=${datadir_noprefix}/doc/${BPN} \ - -DINSTALL_BINDIR:PATH=${bindir_noprefix} \ - -DINSTALL_SBINDIR:PATH=${sbindir_noprefix} \ - -DINSTALL_SCRIPTDIR:PATH=${bindir_noprefix} \ - -DINSTALL_LIBDIR:PATH=${libdir_noprefix} \ - -DINSTALL_PLUGINDIR:PATH=${libdir_noprefix}/plugin \ + -DINSTALL_DOCDIR:PATH=${datadir}/doc/${BPN} \ + -DINSTALL_BINDIR:PATH=${bindir} \ + -DINSTALL_SBINDIR:PATH=${sbindir} \ + -DINSTALL_SCRIPTDIR:PATH=${bindir} \ + -DINSTALL_LIBDIR:PATH=${libdir} \ + -DINSTALL_PLUGINDIR:PATH=${libdir}/plugin \ -DINSTALL_SYSCONFDIR:PATH=${sysconfdir} \ - -DINSTALL_MYSQLSHAREDIR:PATH=${datadir_noprefix}/mysql \ - -DINSTALL_SUPPORTFILESDIR:PATH=${datadir_noprefix}/mysql-support-files \ + -DINSTALL_MYSQLSHAREDIR:PATH=${datadir}/mysql \ + -DINSTALL_SUPPORTFILESDIR:PATH=${datadir}/mysql-support-files \ -DMYSQL_DATADIR:PATH=/var/mysql \ -DCAT_EXECUTABLE=`which cat` \ -DCMAKE_AR:FILEPATH=${AR}"
Signature · 1 line
1.7.9.5
Hi Robert,
Quoted 50 lines · On Tuesday 16 September 2014 06:54:40 Robert Yang wrote:
The anonymous function redefined bindir to
bindir_noprefix(and others), which broke the sstate between build dirs. After checked the vars in CMakeCache.txt, we can drop it safely, and the builds are OK.Signed-off-by Robert Yang <[email protected]>--- meta-oe/recipes-support/mysql/mariadb_5.5.39.inc | 28+++++++--------------- 1 file changed, 8 insertions(+), 20 deletions(-)
(quoted diff) +0
-0b/meta-oe/recipes-support/mysql/mariadb_5.5.39.inc index 9cc2cc9..f5c0a1f 100644
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +0
-8@@ -35,18 +35,6 @@ SYSTEMD_AUTO_ENABLE_mariadb-server = "disable" EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR_NATIVE}/gen_lex_hash'" -python __anonymous() { - # This is a pain but it's the only way to pass these in since - # MariaDB's cmake scripts insist on prepending the prefix to the - # specified values for INSTALL_* - localdata = d.createCopy() - localdata.setVar('prefix', '') - localdata.setVar('exec_prefix', '') - d.setVar('bindir_noprefix', localdata.getVar('bindir', True).lstrip('/')) - d.setVar('sbindir_noprefix',
localdata.getVar('sbindir', True).lstrip('/')) -d.setVar('datadir_noprefix', localdata.getVar('datadir', True).lstrip('/'))
- d.setVar('libdir_noprefix', localdata.getVar('libdir',
True).lstrip('/')) -}PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam',
'', d)}" PACKAGECONFIG_class-native = ""meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +6
-6@@ -64,15 +52,15 @@ EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \ -DNROFF=FALSE \ -DENABLE_DTRACE=FALSE \ -DWITH_PIC=ON \ - -DINSTALL_DOCDIR:PATH=${datadir_noprefix}/doc/${BPN} \ - -DINSTALL_BINDIR:PATH=${bindir_noprefix} \ - -DINSTALL_SBINDIR:PATH=${sbindir_noprefix} \ - -DINSTALL_SCRIPTDIR:PATH=${bindir_noprefix} \ - -DINSTALL_LIBDIR:PATH=${libdir_noprefix} \ - -DINSTALL_PLUGINDIR:PATH=${libdir_noprefix}/plugin \ + -DINSTALL_DOCDIR:PATH=${datadir}/doc/${BPN} \ + -DINSTALL_BINDIR:PATH=${bindir} \ + -DINSTALL_SBINDIR:PATH=${sbindir} \ + -DINSTALL_SCRIPTDIR:PATH=${bindir} \ + -DINSTALL_LIBDIR:PATH=${libdir} \ + -DINSTALL_PLUGINDIR:PATH=${libdir}/plugin \
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \ · line 66
Quoted 10 lines
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +1
-5-DINSTALL_SYSCONFDIR:PATH=${sysconfdir} \ - -DINSTALL_MYSQLSHAREDIR:PATH=${datadir_noprefix}/mysql \ - -DINSTALL_SUPPORTFILESDIR:PATH=${datadir_noprefix}/mysql-support-files \ + -DINSTALL_MYSQLSHAREDIR:PATH=${datadir}/mysql \ + -DINSTALL_SUPPORTFILESDIR:PATH=${datadir}/mysql-support-files \ -DMYSQL_DATADIR:PATH=/var/mysql \ -DCAT_EXECUTABLE=`which cat` \ -DCMAKE_AR:FILEPATH=${AR}"
I'm pretty sure I tested this beforehand; the problem I found is that some of the scripts end up with the prefix twice in substituted paths because it is expected that the paths supplied at configuration time do not include the prefix, but our paths normally include them.
Did you do runtime tests with this change?
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 69 lines · Paul Eggleton
Hi Robert,
Quoted 50 lines · On Tuesday 16 September 2014 06:54:40 Robert Yang wrote:
The anonymous function redefined bindir to
bindir_noprefix(and others), which broke the sstate between build dirs. After checked the vars in CMakeCache.txt, we can drop it safely, and the builds are OK.Signed-off-by Robert Yang <[email protected]>--- meta-oe/recipes-support/mysql/mariadb_5.5.39.inc | 28+++++++--------------- 1 file changed, 8 insertions(+), 20 deletions(-)
(quoted diff) +0
-0b/meta-oe/recipes-support/mysql/mariadb_5.5.39.inc index 9cc2cc9..f5c0a1f 100644
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +0
-8@@ -35,18 +35,6 @@ SYSTEMD_AUTO_ENABLE_mariadb-server = "disable" EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR_NATIVE}/gen_lex_hash'" -python __anonymous() { - # This is a pain but it's the only way to pass these in since - # MariaDB's cmake scripts insist on prepending the prefix to the - # specified values for INSTALL_* - localdata = d.createCopy() - localdata.setVar('prefix', '') - localdata.setVar('exec_prefix', '') - d.setVar('bindir_noprefix', localdata.getVar('bindir', True).lstrip('/')) - d.setVar('sbindir_noprefix',
localdata.getVar('sbindir', True).lstrip('/')) -d.setVar('datadir_noprefix', localdata.getVar('datadir', True).lstrip('/'))
- d.setVar('libdir_noprefix', localdata.getVar('libdir',
True).lstrip('/')) -}PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam',
'', d)}" PACKAGECONFIG_class-native = ""meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +6
-6@@ -64,15 +52,15 @@ EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \ -DNROFF=FALSE \ -DENABLE_DTRACE=FALSE \ -DWITH_PIC=ON \ - -DINSTALL_DOCDIR:PATH=${datadir_noprefix}/doc/${BPN} \ - -DINSTALL_BINDIR:PATH=${bindir_noprefix} \ - -DINSTALL_SBINDIR:PATH=${sbindir_noprefix} \ - -DINSTALL_SCRIPTDIR:PATH=${bindir_noprefix} \ - -DINSTALL_LIBDIR:PATH=${libdir_noprefix} \ - -DINSTALL_PLUGINDIR:PATH=${libdir_noprefix}/plugin \ + -DINSTALL_DOCDIR:PATH=${datadir}/doc/${BPN} \ + -DINSTALL_BINDIR:PATH=${bindir} \ + -DINSTALL_SBINDIR:PATH=${sbindir} \ + -DINSTALL_SCRIPTDIR:PATH=${bindir} \ + -DINSTALL_LIBDIR:PATH=${libdir} \ + -DINSTALL_PLUGINDIR:PATH=${libdir}/plugin \meta-oe/recipes-support/mysql/mariadb_5.5.39.inc EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \ · line 66
Quoted 10 lines
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +1
-5-DINSTALL_SYSCONFDIR:PATH=${sysconfdir} \ - -DINSTALL_MYSQLSHAREDIR:PATH=${datadir_noprefix}/mysql \ - -DINSTALL_SUPPORTFILESDIR:PATH=${datadir_noprefix}/mysql-support-files \ + -DINSTALL_MYSQLSHAREDIR:PATH=${datadir}/mysql \ + -DINSTALL_SUPPORTFILESDIR:PATH=${datadir}/mysql-support-files \ -DMYSQL_DATADIR:PATH=/var/mysql \ -DCAT_EXECUTABLE=`which cat` \ -DCMAKE_AR:FILEPATH=${AR}"I'm pretty sure I tested this beforehand; the problem I found is that some of the scripts end up with the prefix twice in substituted paths because it is expected that the paths supplied at configuration time do not include the prefix, but our paths normally include them.
Quoted 1 line
Did you do runtime tests with this change?
Thanks, not yet, I will do and reply later.
// Robert
Quoted 4 lines
Cheers,
Paul
Quoted 72 lines · Robert Yang
Quoted 69 lines · Paul Eggleton
Hi Robert,
Quoted 50 lines · On Tuesday 16 September 2014 06:54:40 Robert Yang wrote:
The anonymous function redefined bindir to
bindir_noprefix(and others), which broke the sstate between build dirs. After checked the vars in CMakeCache.txt, we can drop it safely, and the builds are OK.Signed-off-by Robert Yang <[email protected]>--- meta-oe/recipes-support/mysql/mariadb_5.5.39.inc | 28+++++++--------------- 1 file changed, 8 insertions(+), 20 deletions(-)
(quoted diff) +0
-0b/meta-oe/recipes-support/mysql/mariadb_5.5.39.inc index 9cc2cc9..f5c0a1f 100644
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +0
-8@@ -35,18 +35,6 @@ SYSTEMD_AUTO_ENABLE_mariadb-server = "disable" EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR_NATIVE}/gen_lex_hash'" -python __anonymous() { - # This is a pain but it's the only way to pass these in since - # MariaDB's cmake scripts insist on prepending the prefix to the - # specified values for INSTALL_* - localdata = d.createCopy() - localdata.setVar('prefix', '') - localdata.setVar('exec_prefix', '') - d.setVar('bindir_noprefix', localdata.getVar('bindir', True).lstrip('/')) - d.setVar('sbindir_noprefix',
localdata.getVar('sbindir', True).lstrip('/')) -d.setVar('datadir_noprefix', localdata.getVar('datadir', True).lstrip('/'))
- d.setVar('libdir_noprefix', localdata.getVar('libdir',
True).lstrip('/')) -}PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam',
'', d)}" PACKAGECONFIG_class-native = ""meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +6
-6@@ -64,15 +52,15 @@ EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \ -DNROFF=FALSE \ -DENABLE_DTRACE=FALSE \ -DWITH_PIC=ON \ - -DINSTALL_DOCDIR:PATH=${datadir_noprefix}/doc/${BPN} \ - -DINSTALL_BINDIR:PATH=${bindir_noprefix} \ - -DINSTALL_SBINDIR:PATH=${sbindir_noprefix} \ - -DINSTALL_SCRIPTDIR:PATH=${bindir_noprefix} \ - -DINSTALL_LIBDIR:PATH=${libdir_noprefix} \ - -DINSTALL_PLUGINDIR:PATH=${libdir_noprefix}/plugin \ + -DINSTALL_DOCDIR:PATH=${datadir}/doc/${BPN} \ + -DINSTALL_BINDIR:PATH=${bindir} \ + -DINSTALL_SBINDIR:PATH=${sbindir} \ + -DINSTALL_SCRIPTDIR:PATH=${bindir} \ + -DINSTALL_LIBDIR:PATH=${libdir} \ + -DINSTALL_PLUGINDIR:PATH=${libdir}/plugin \meta-oe/recipes-support/mysql/mariadb_5.5.39.inc EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \ · line 66
Quoted 10 lines
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +1
-5-DINSTALL_SYSCONFDIR:PATH=${sysconfdir} \ - -DINSTALL_MYSQLSHAREDIR:PATH=${datadir_noprefix}/mysql \ - -DINSTALL_SUPPORTFILESDIR:PATH=${datadir_noprefix}/mysql-support-files \ + -DINSTALL_MYSQLSHAREDIR:PATH=${datadir}/mysql \ + -DINSTALL_SUPPORTFILESDIR:PATH=${datadir}/mysql-support-files \ -DMYSQL_DATADIR:PATH=/var/mysql \ -DCAT_EXECUTABLE=`which cat` \ -DCMAKE_AR:FILEPATH=${AR}"I'm pretty sure I tested this beforehand; the problem I found is that some of the scripts end up with the prefix twice in substituted paths because it is expected that the paths supplied at configuration time do not include the prefix, but our paths normally include them.
Quoted 3 lines
Quoted 1 line
Did you do runtime tests with this change?
Thanks, not yet, I will do and reply later.
Hi Paul,
You are right, there are problems when runtime testing. I will try to fix it in another way, we need fix it is because it breaks the sstate which depends on mariadb. (and several ones)
// Robert
Quoted 7 lines
// Robert
Quoted 4 lines
Cheers,
Paul
Quoted 88 lines · On Friday 19 September 2014 10:02:29 Robert Yang wrote:
Quoted 87 lines · Robert Yang
Quoted 85 lines · Paul Eggleton
Hi Robert,
Quoted 65 lines · On Tuesday 16 September 2014 06:54:40 Robert Yang wrote:
The anonymous function redefined bindir to
bindir_noprefix(and others), which broke the sstate between build dirs. After checked the vars in CMakeCache.txt, we can drop it safely, and the builds are OK.Signed-off-by Robert Yang <[email protected]>---
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc | 28+++++++--------------- 1 file changed, 8 insertions(+), 20 deletions(-)
(quoted diff) +0
-0b/meta-oe/recipes-support/mysql/mariadb_5.5.39.inc index 9cc2cc9..f5c0a1f
100644meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +0
-8@@ -35,18 +35,6 @@ SYSTEMD_AUTO_ENABLE_mariadb-server = "disable" EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR_NATIVE}/gen_lex_hash'" -python __anonymous() { - # This is a pain but it's the only way to pass these in since - # MariaDB's cmake scripts insist on prepending the prefix to the - # specified values for INSTALL_* - localdata = d.createCopy() - localdata.setVar('prefix', '') - localdata.setVar('exec_prefix', '') - d.setVar('bindir_noprefix', localdata.getVar('bindir', True).lstrip('/')) - d.setVar('sbindir_noprefix',
localdata.getVar('sbindir', True).lstrip('/')) -d.setVar('datadir_noprefix', localdata.getVar('datadir', True).lstrip('/'))
- d.setVar('libdir_noprefix', localdata.getVar('libdir',
True).lstrip('/')) -}PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam','', d)}" PACKAGECONFIG_class-native = ""
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +6
-7@@ -64,15 +52,15 @@ EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \ -DNROFF=FALSE \ -DENABLE_DTRACE=FALSE \ -DWITH_PIC=ON \ - -DINSTALL_DOCDIR:PATH=${datadir_noprefix}/doc/${BPN} \ - -DINSTALL_BINDIR:PATH=${bindir_noprefix} \ - -DINSTALL_SBINDIR:PATH=${sbindir_noprefix} \ - -DINSTALL_SCRIPTDIR:PATH=${bindir_noprefix} \ - -DINSTALL_LIBDIR:PATH=${libdir_noprefix} \ - -DINSTALL_PLUGINDIR:PATH=${libdir_noprefix}/plugin \ + -DINSTALL_DOCDIR:PATH=${datadir}/doc/${BPN} \ + -DINSTALL_BINDIR:PATH=${bindir} \ + -DINSTALL_SBINDIR:PATH=${sbindir} \ + -DINSTALL_SCRIPTDIR:PATH=${bindir} \ + -DINSTALL_LIBDIR:PATH=${libdir} \ + -DINSTALL_PLUGINDIR:PATH=${libdir}/plugin \ -DINSTALL_SYSCONFDIR:PATH=${sysconfdir} \ - -DINSTALL_MYSQLSHAREDIR:PATH=${datadir_noprefix}/mysql\
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +0
-2- -DINSTALL_SUPPORTFILESDIR:PATH=${datadir_noprefix}/mysql-support-files \meta-oe/recipes-support/mysql/mariadb_5.5.39.inc
Quoted 10 lines
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +2
-2+ -DINSTALL_MYSQLSHAREDIR:PATH=${datadir}/mysql \ + -DINSTALL_SUPPORTFILESDIR:PATH=${datadir}/mysql-support-files \ -DMYSQL_DATADIR:PATH=/var/mysql \ -DCAT_EXECUTABLE=`which cat` \ -DCMAKE_AR:FILEPATH=${AR}"I'm pretty sure I tested this beforehand; the problem I found is that some of the scripts end up with the prefix twice in substituted paths because it is expected that the paths supplied at configuration time do not include the prefix, but our paths normally include them.
Did you do runtime tests with this change?
Quoted 7 lines
Quoted 1 line
Thanks, not yet, I will do and reply later.
Hi Paul,
You are right, there are problems when runtime testing. I will try to fix it in another way, we need fix it is because it breaks the sstate which depends on mariadb. (and several ones)
When you say it breaks sstate is that because the system is unable to see the dependencies between e.g. bindir_noprefix and bindir? If that's the issue then perhaps the answer is just to explicitly add those dependencies.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 93 lines · Paul Eggleton
Quoted 92 lines · On Friday 19 September 2014 10:02:29 Robert Yang wrote:
Quoted 85 lines · Robert Yang
Quoted 84 lines · Paul Eggleton
Hi Robert,
Quoted 65 lines · On Tuesday 16 September 2014 06:54:40 Robert Yang wrote:
The anonymous function redefined bindir to
bindir_noprefix(and others), which broke the sstate between build dirs. After checked the vars in CMakeCache.txt, we can drop it safely, and the builds are OK.Signed-off-by Robert Yang <[email protected]>---
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc | 28+++++++--------------- 1 file changed, 8 insertions(+), 20 deletions(-)
(quoted diff) +0
-0b/meta-oe/recipes-support/mysql/mariadb_5.5.39.inc index 9cc2cc9..f5c0a1f
100644meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +0
-8@@ -35,18 +35,6 @@ SYSTEMD_AUTO_ENABLE_mariadb-server = "disable" EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR_NATIVE}/gen_lex_hash'" -python __anonymous() { - # This is a pain but it's the only way to pass these in since - # MariaDB's cmake scripts insist on prepending the prefix to the - # specified values for INSTALL_* - localdata = d.createCopy() - localdata.setVar('prefix', '') - localdata.setVar('exec_prefix', '') - d.setVar('bindir_noprefix', localdata.getVar('bindir', True).lstrip('/')) - d.setVar('sbindir_noprefix',
localdata.getVar('sbindir', True).lstrip('/')) -d.setVar('datadir_noprefix', localdata.getVar('datadir', True).lstrip('/'))
- d.setVar('libdir_noprefix', localdata.getVar('libdir',
True).lstrip('/')) -}PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam','', d)}" PACKAGECONFIG_class-native = ""
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +6
-7@@ -64,15 +52,15 @@ EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \ -DNROFF=FALSE \ -DENABLE_DTRACE=FALSE \ -DWITH_PIC=ON \ - -DINSTALL_DOCDIR:PATH=${datadir_noprefix}/doc/${BPN} \ - -DINSTALL_BINDIR:PATH=${bindir_noprefix} \ - -DINSTALL_SBINDIR:PATH=${sbindir_noprefix} \ - -DINSTALL_SCRIPTDIR:PATH=${bindir_noprefix} \ - -DINSTALL_LIBDIR:PATH=${libdir_noprefix} \ - -DINSTALL_PLUGINDIR:PATH=${libdir_noprefix}/plugin \ + -DINSTALL_DOCDIR:PATH=${datadir}/doc/${BPN} \ + -DINSTALL_BINDIR:PATH=${bindir} \ + -DINSTALL_SBINDIR:PATH=${sbindir} \ + -DINSTALL_SCRIPTDIR:PATH=${bindir} \ + -DINSTALL_LIBDIR:PATH=${libdir} \ + -DINSTALL_PLUGINDIR:PATH=${libdir}/plugin \ -DINSTALL_SYSCONFDIR:PATH=${sysconfdir} \ - -DINSTALL_MYSQLSHAREDIR:PATH=${datadir_noprefix}/mysql\
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +0
-2- -DINSTALL_SUPPORTFILESDIR:PATH=${datadir_noprefix}/mysql-support-files \meta-oe/recipes-support/mysql/mariadb_5.5.39.inc
Quoted 10 lines
meta-oe/recipes-support/mysql/mariadb_5.5.39.inc +2
-2+ -DINSTALL_MYSQLSHAREDIR:PATH=${datadir}/mysql \ + -DINSTALL_SUPPORTFILESDIR:PATH=${datadir}/mysql-support-files \ -DMYSQL_DATADIR:PATH=/var/mysql \ -DCAT_EXECUTABLE=`which cat` \ -DCMAKE_AR:FILEPATH=${AR}"I'm pretty sure I tested this beforehand; the problem I found is that some of the scripts end up with the prefix twice in substituted paths because it is expected that the paths supplied at configuration time do not include the prefix, but our paths normally include them.
Quoted 3 lines
Quoted 1 line
Did you do runtime tests with this change?
Thanks, not yet, I will do and reply later.
Hi Paul,
Quoted 7 lines
Quoted 3 lines
You are right, there are problems when runtime testing. I will try to fix it in another way, we need fix it is because it breaks the sstate which depends on mariadb. (and several ones)
When you say it breaks sstate is that because the system is unable to see the dependencies between e.g.
bindir_noprefixand bindir? If that's the issue then perhaps the answer is just to explicitly add those dependencies.
Sorry, I didn't say clearly, it breaks the sstate between different builds, for example "bitbake mariadb-native" in build1, then create another build2, but let them use the same SSTATE_DIR, and run "bitbake mariadb-native", we will see that mariadb-native is built again (but it should be installed from sstate). I think it is because bindir_noprefix can be replaced with FIXMESTAGINGDIR the by sstate.bcclass. All the recipes' sstate which depends on mariadb/-native can not be reused.
// Robert
Quoted 4 lines
Cheers,
Paul