Skip to contentSkip to conversation

mariadb: File conflicts for multilib

PATCH In review [email protected] 2 participants 3 messages Aug 22, 2024 – Aug 29, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mariadb: File conflicts for multilib

From: Guocai He <[email protected]>

File conflicts between attempted installs of mariadb and lib32-mariadb

---
 meta-oe/recipes-dbs/mysql/mariadb.inc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta-oe/recipes-dbs/mysql/mariadb.inc +5 -2
index 51dd4e8d4..32a6022ba 100644
@@ -33,10 +33,12 @@ UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/tags"
 
 BINCONFIG_GLOB = "mysql_config"
 
-inherit cmake gettext binconfig update-rc.d systemd multilib_script pkgconfig
+inherit cmake gettext binconfig update-rc.d systemd multilib_script multilib_header pkgconfig
 
 MULTILIB_SCRIPTS = "${PN}-server:${bindir}/mariadbd-safe \
-                    ${PN}-setupdb:${bindir}/mariadb-install-db"
+                    ${PN}-setupdb:${bindir}/mariadb-install-db \
+                    libmysqlclient-dev:${bindir}/mysql_config \
+                    "
 
 INITSCRIPT_PACKAGES = "${PN}-server ${PN}-setupdb"
 INITSCRIPT_NAME:${PN}-server = "mysqld"
@@ -160,6 +162,7 @@ mariadb_sysroot_preprocess () {
 
 do_install() {
     oe_runmake 'DESTDIR=${D}' install
+    oe_multilib_header mysql/mariadb_version.h mysql/server/my_config.h mysql/server/private/config.h
 
     install -d ${D}/${sysconfdir}/init.d
     install -m 0644 ${UNPACKDIR}/my.cnf ${D}/${sysconfdir}/
Signature · 1 line
2.34.1
#1 lore raw
Quoted 3 lines · guocai he via lists.openembedded.org

From: Guocai He <[email protected]>

File conflicts between attempted installs of mariadb and lib32-mariadb

do these changes need to go into Master first?

- armin

Quoted 42 lines
---
  meta-oe/recipes-dbs/mysql/mariadb.inc | 7 +++++--
  1 file changed, 5 insertions(+), 2 deletions(-)
meta-oe/recipes-dbs/mysql/mariadb.inc +5 -3
index 51dd4e8d4..32a6022ba 100644
@@ -33,10 +33,12 @@ UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/tags"
 
  BINCONFIG_GLOB = "mysql_config"
 
-inherit cmake gettext binconfig update-rc.d systemd multilib_script pkgconfig
+inherit cmake gettext binconfig update-rc.d systemd multilib_script multilib_header pkgconfig
 
  MULTILIB_SCRIPTS = "${PN}-server:${bindir}/mariadbd-safe \
-                    ${PN}-setupdb:${bindir}/mariadb-install-db"
+                    ${PN}-setupdb:${bindir}/mariadb-install-db \
+                    libmysqlclient-dev:${bindir}/mysql_config \
+                    "
 
  INITSCRIPT_PACKAGES = "${PN}-server ${PN}-setupdb"
  INITSCRIPT_NAME:${PN}-server = "mysqld"
@@ -160,6 +162,7 @@ mariadb_sysroot_preprocess () {
 
  do_install() {
      oe_runmake 'DESTDIR=${D}' install
+    oe_multilib_header mysql/mariadb_version.h mysql/server/my_config.h mysql/server/private/config.h
 
      install -d ${D}/${sysconfdir}/init.d
      install -m 0644 ${UNPACKDIR}/my.cnf ${D}/${sysconfdir}/
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#111898): https://lists.openembedded.org/g/openembedded-devel/message/111898
Mute This Topic: https://lists.openembedded.org/mt/108031502/3616698
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw

Yes,this changes need to check into master and scarthgap.

It have been checked into master at Aug 22.

Khem:

it also need to check into scarthgap.

Thanks very much.

-guocai

Quoted 58 lines · On 8/26/24 03:24, akuster808 wrote:

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 3 lines · guocai he via lists.openembedded.org

From: Guocai He <[email protected]>

File conflicts between attempted installs of mariadb and lib32-mariadb

do these changes need to go into Master first?

- armin

Quoted 46 lines

---
  meta-oe/recipes-dbs/mysql/mariadb.inc | 7 +++++--

  1 file changed, 5 insertions(+), 2 deletions(-)
meta-oe/recipes-dbs/mysql/mariadb.inc +0 -0
index 51dd4e8d4..32a6022ba 100644
@@ -33,10 +33,12 @@ UPSTREAM_CHECK_URI = 

"https://github.com/MariaDB/server/tags"

  BINCONFIG_GLOB = "mysql_config"

-inherit cmake gettext binconfig update-rc.d systemd multilib_script pkgconfig
+inherit cmake gettext binconfig update-rc.d systemd multilib_script multilib_header pkgconfig

  MULTILIB_SCRIPTS = "${PN}-server:${bindir}/mariadbd-safe \
-                    ${PN}-setupdb:${bindir}/mariadb-install-db" +                    ${PN}-setupdb:${bindir}/mariadb-install-db \
+                    libmysqlclient-dev:${bindir}/mysql_config \
+                    "

  INITSCRIPT_PACKAGES = "${PN}-server ${PN}-setupdb" INITSCRIPT_NAME:${PN}-server = "mysqld"

meta-oe/recipes-dbs/mysql/mariadb.inc +0 -0
@@ -160,6 +162,7 @@ mariadb_sysroot_preprocess () {
 
   do_install() {

      oe_runmake 'DESTDIR=${D}' install
+    oe_multilib_header mysql/mariadb_version.h mysql/server/my_config.h mysql/server/private/config.h

      install -d ${D}/${sysconfdir}/init.d
      install -m 0644 ${UNPACKDIR}/my.cnf ${D}/${sysconfdir}/

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#111898): https://lists.openembedded.org/g/openembedded-devel/message/111898
Mute This Topic: https://lists.openembedded.org/mt/108031502/3616698
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-