Skip to contentSkip to conversation

mariadb: Upgrade to 10.11.7

PATCH Superseded [email protected] 2 participants 3 messages Feb 22, 2024 – Feb 26, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mariadb: Upgrade to 10.11.7

From: Mingli Yu <[email protected]>

As the change [1] introduced in 10.11.7, there comes below configure failure:

 | -- Performing Test HAVE_SYSTEM_LIBFMT
 | CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
 |    HAVE_SYSTEM_LIBFMT_EXITCODE (advanced)
 | For details see /build/tmp-glibc/work/core2-64-wrs-linux/mariadb/10.11.7/build/TryRunResults.cmake
 | -- Performing Test HAVE_SYSTEM_LIBFMT - Failed

[snip]

Considering [1] is mainly used to test fmt 10.0.0 failure and we use libfmt 10.2.1 now, so define "-DHAVE_SYSTEM_LIBFMT_EXITCODE=0" as workaround [2] to fix the above configure error.

[1] https://github.com/MariaDB/server/commit/b5c367cd88e37091ab5f8dab0396c01c97d037e2
[2] https://jira.mariadb.org/browse/MDEV-30694

---
 .../{mariadb-native_10.11.6.bb => mariadb-native_10.11.7.bb}   | 0
 meta-oe/recipes-dbs/mysql/mariadb.inc                          | 3 ++-
 .../mysql/{mariadb_10.11.6.bb => mariadb_10.11.7.bb}           | 0
 3 files changed, 2 insertions(+), 1 deletion(-)
 rename meta-oe/recipes-dbs/mysql/{mariadb-native_10.11.6.bb => mariadb-native_10.11.7.bb} (100%)
 rename meta-oe/recipes-dbs/mysql/{mariadb_10.11.6.bb => mariadb_10.11.7.bb} (100%)
meta-oe/recipes-dbs/mysql/mariadb-native_10.11.7.bb renamed from meta-oe/recipes-dbs/mysql/mariadb-native_10.11.6.bb +0 -0
similarity index 100%
rename from meta-oe/recipes-dbs/mysql/mariadb-native_10.11.6.bb
rename to meta-oe/recipes-dbs/mysql/mariadb-native_10.11.7.bb
meta-oe/recipes-dbs/mysql/mariadb.inc +2 -1
index 25dc15b46..9be8ef3eb 100644
@@ -25,7 +25,7 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \
            file://0001-Add-missing-includes-cstdint-and-cstdio.patch \
           "
 SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch"
-SRC_URI[sha256sum] = "1c0163463e98d71f4780741611a40981eee2bc44d392601ca49bbf948d04dd67"
+SRC_URI[sha256sum] = "5239a245ed90517e96396605cd01ccd8f73cd7442d1b3076b6ffe258110e5157"
 
 UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases"
 
@@ -96,6 +96,7 @@ EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \
                  -DMYSQL_DATADIR:PATH=/var/mysql \
                  -DCAT_EXECUTABLE=`which cat` \
                  -DSTACK_DIRECTION=1 \
+                 -DHAVE_SYSTEM_LIBFMT_EXITCODE=0 \
                  -DCMAKE_AR:FILEPATH=${AR}"
 
 
meta-oe/recipes-dbs/mysql/mariadb_10.11.7.bb renamed from meta-oe/recipes-dbs/mysql/mariadb_10.11.6.bb +0 -0
similarity index 100%
rename from meta-oe/recipes-dbs/mysql/mariadb_10.11.6.bb
rename to meta-oe/recipes-dbs/mysql/mariadb_10.11.7.bb
Signature · 1 line
2.25.1
#1 lore raw

fails build on arm
https://errors.yoctoproject.org/Errors/Details/754269/

Quoted 68 lines · Mingli

From: Mingli Yu <[email protected]>

As the change [1] introduced in 10.11.7, there comes below configure failure:

 | -- Performing Test HAVE_SYSTEM_LIBFMT
 | CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
 |    HAVE_SYSTEM_LIBFMT_EXITCODE (advanced)
 | For details see /build/tmp-glibc/work/core2-64-wrs-linux/mariadb/10.11.7/build/TryRunResults.cmake
 | -- Performing Test HAVE_SYSTEM_LIBFMT - Failed

[snip]

Considering [1] is mainly used to test fmt 10.0.0 failure and we use libfmt 10.2.1 now, so define "-DHAVE_SYSTEM_LIBFMT_EXITCODE=0" as workaround [2] to fix the above configure error.

[1] https://github.com/MariaDB/server/commit/b5c367cd88e37091ab5f8dab0396c01c97d037e2
[2] https://jira.mariadb.org/browse/MDEV-30694

---
 .../{mariadb-native_10.11.6.bb => mariadb-native_10.11.7.bb}   | 0
 meta-oe/recipes-dbs/mysql/mariadb.inc                          | 3 ++-
 .../mysql/{mariadb_10.11.6.bb => mariadb_10.11.7.bb}           | 0
 3 files changed, 2 insertions(+), 1 deletion(-)
 rename meta-oe/recipes-dbs/mysql/{mariadb-native_10.11.6.bb => mariadb-native_10.11.7.bb} (100%)
 rename meta-oe/recipes-dbs/mysql/{mariadb_10.11.6.bb => mariadb_10.11.7.bb} (100%)
meta-oe/recipes-dbs/mysql/mariadb-native_10.11.7.bb renamed from meta-oe/recipes-dbs/mysql/mariadb-native_10.11.6.bb +0 -0
similarity index 100%
rename from meta-oe/recipes-dbs/mysql/mariadb-native_10.11.6.bb
rename to meta-oe/recipes-dbs/mysql/mariadb-native_10.11.7.bb
meta-oe/recipes-dbs/mysql/mariadb.inc +2 -1
index 25dc15b46..9be8ef3eb 100644
@@ -25,7 +25,7 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \
            file://0001-Add-missing-includes-cstdint-and-cstdio.patch \
           "
 SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch"
-SRC_URI[sha256sum] = "1c0163463e98d71f4780741611a40981eee2bc44d392601ca49bbf948d04dd67"
+SRC_URI[sha256sum] = "5239a245ed90517e96396605cd01ccd8f73cd7442d1b3076b6ffe258110e5157"
 
 UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases"
 
@@ -96,6 +96,7 @@ EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \
                  -DMYSQL_DATADIR:PATH=/var/mysql \
                  -DCAT_EXECUTABLE=`which cat` \
                  -DSTACK_DIRECTION=1 \
+                 -DHAVE_SYSTEM_LIBFMT_EXITCODE=0 \
                  -DCMAKE_AR:FILEPATH=${AR}"
 
 
meta-oe/recipes-dbs/mysql/mariadb_10.11.7.bb renamed from meta-oe/recipes-dbs/mysql/mariadb_10.11.6.bb +0 -1
similarity index 100%
rename from meta-oe/recipes-dbs/mysql/mariadb_10.11.6.bb
rename to meta-oe/recipes-dbs/mysql/mariadb_10.11.7.bb
--

2.25.1

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

author
#2 lore raw
Quoted 5 lines · Khem Raj

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.

fails build on arm
https://errors.yoctoproject.org/Errors/Details/754269/

V2 is incoming.

Thanks,

Quoted 70 lines · Mingli
Quoted 68 lines

From: Mingli Yu <[email protected]>

As the change [1] introduced in 10.11.7, there comes below configure failure:

  | -- Performing Test HAVE_SYSTEM_LIBFMT
  | CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
  |    HAVE_SYSTEM_LIBFMT_EXITCODE (advanced)
  | For details see /build/tmp-glibc/work/core2-64-wrs-linux/mariadb/10.11.7/build/TryRunResults.cmake
  | -- Performing Test HAVE_SYSTEM_LIBFMT - Failed

[snip]

Considering [1] is mainly used to test fmt 10.0.0 failure and we use libfmt 10.2.1 now, so define "-DHAVE_SYSTEM_LIBFMT_EXITCODE=0" as workaround [2] to fix the above configure error.

[1] https://github.com/MariaDB/server/commit/b5c367cd88e37091ab5f8dab0396c01c97d037e2
[2] https://jira.mariadb.org/browse/MDEV-30694

---
  .../{mariadb-native_10.11.6.bb => mariadb-native_10.11.7.bb}   | 0
  meta-oe/recipes-dbs/mysql/mariadb.inc                          | 3 ++-
  .../mysql/{mariadb_10.11.6.bb => mariadb_10.11.7.bb}           | 0
  3 files changed, 2 insertions(+), 1 deletion(-)

rename meta-oe/recipes-dbs/mysql/{mariadb-native_10.11.6.bb => mariadb-native_10.11.7.bb} (100%) rename meta-oe/recipes-dbs/mysql/{mariadb_10.11.6.bb => mariadb_10.11.7.bb} (100%)

meta-oe/recipes-dbs/mysql/mariadb-native_10.11.7.bb renamed from meta-oe/recipes-dbs/mysql/mariadb-native_10.11.6.bb +0 -0
similarity index 100%
rename from meta-oe/recipes-dbs/mysql/mariadb-native_10.11.6.bb
rename to meta-oe/recipes-dbs/mysql/mariadb-native_10.11.7.bb
meta-oe/recipes-dbs/mysql/mariadb.inc +2 -1
index 25dc15b46..9be8ef3eb 100644
@@ -25,7 +25,7 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \
             file://0001-Add-missing-includes-cstdint-and-cstdio.patch \
            "
  SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch"
-SRC_URI[sha256sum] = "1c0163463e98d71f4780741611a40981eee2bc44d392601ca49bbf948d04dd67"
+SRC_URI[sha256sum] = "5239a245ed90517e96396605cd01ccd8f73cd7442d1b3076b6ffe258110e5157"
 
  UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases"
 
@@ -96,6 +96,7 @@ EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \
                   -DMYSQL_DATADIR:PATH=/var/mysql \
                   -DCAT_EXECUTABLE=`which cat` \
                   -DSTACK_DIRECTION=1 \
+                 -DHAVE_SYSTEM_LIBFMT_EXITCODE=0 \
                   -DCMAKE_AR:FILEPATH=${AR}"
 
 
meta-oe/recipes-dbs/mysql/mariadb_10.11.7.bb renamed from meta-oe/recipes-dbs/mysql/mariadb_10.11.6.bb +0 -1
similarity index 100%
rename from meta-oe/recipes-dbs/mysql/mariadb_10.11.6.bb
rename to meta-oe/recipes-dbs/mysql/mariadb_10.11.7.bb
--

2.25.1

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