Skip to content

Commit ceaea46

Browse files
[AUTOPATCHER-CORE] Upgrade mariadb to 10.11.10 none (microsoft#10934)
1 parent 29f4ae9 commit ceaea46

6 files changed

+53
-30
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
From ad9ba5aa82d2b1e232c71203de165fa61ce02d4c Mon Sep 17 00:00:00 2001
2+
From: Victor Zverovich <[email protected]>
3+
Date: Fri, 9 Feb 2024 15:58:56 -0800
4+
Subject: [PATCH] Fix handling of static separator
5+
6+
---
7+
include/fmt/format-inl.h | 7 +++++--
8+
1 file changed, 5 insertions(+), 2 deletions(-)
9+
10+
diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h
11+
index efac5d1f..78c52ce8 100644
12+
--- a/include/fmt/format-inl.h
13+
+++ b/include/fmt/format-inl.h
14+
@@ -114,7 +114,11 @@ template <typename Char> FMT_FUNC Char decimal_point_impl(locale_ref) {
15+
16+
FMT_FUNC auto write_loc(appender out, loc_value value,
17+
const format_specs<>& specs, locale_ref loc) -> bool {
18+
-#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
19+
+#ifdef FMT_STATIC_THOUSANDS_SEPARATOR
20+
+ value.visit(loc_writer<>{
21+
+ out, specs, std::string(1, FMT_STATIC_THOUSANDS_SEPARATOR), "\3", "."});
22+
+ return true;
23+
+#else
24+
auto locale = loc.get<std::locale>();
25+
// We cannot use the num_put<char> facet because it may produce output in
26+
// a wrong encoding.
27+
@@ -123,7 +127,6 @@ FMT_FUNC auto write_loc(appender out, loc_value value,
28+
return std::use_facet<facet>(locale).put(out, value, specs);
29+
return facet(locale).put(out, value, specs);
30+
#endif
31+
- return false;
32+
}
33+
} // namespace detail
34+
35+
--
36+
2.44.0

SPECS/fmt/fmt.spec

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
Summary: Small, safe and fast formatting library for C++
22
Name: fmt
33
Version: 10.2.1
4-
Release: 1%{?dist}
4+
Release: 2%{?dist}
55
License: BSD
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
88
URL: https://github.com/fmtlib/%{name}
99
Source0: https://github.com/fmtlib/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
10+
Patch0: address-libfmt-issue-with-mariadb.patch
1011

1112
BuildRequires: gcc
1213
BuildRequires: gcc-c++
@@ -80,6 +81,9 @@ sed -i "s/'--clean-css',//" doc/build.py
8081
%{_libdir}/pkgconfig/%{name}.pc
8182

8283
%changelog
84+
* Tue Nov 05 2024 Nicolas Guibourge <[email protected]> - 10.2.1-2
85+
- Add patch needed to build mariadb
86+
8387
* Fri Jan 05 2024 Muhammad Falak <[email protected]> - 10.2.1-1
8488
- Bump version to 10.2.1
8589

SPECS/mariadb/CVE-2024-0901.patch

-20
This file was deleted.

SPECS/mariadb/mariadb.signatures.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Signatures": {
3-
"mariadb-10.11.6.tar.gz": "9938de4f4ad4f75ca15ff67b32421b611a0538faf5f71a084586c61384736b4a"
4-
}
2+
"Signatures": {
3+
"mariadb-10.11.10.tar.gz": "82905406675c7fa909ac9afda4c0a78a98523d44a0257afe00d19130119ca422"
4+
}
55
}

SPECS/mariadb/mariadb.spec

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Database servers made by the original developers of MySQL.
22
Name: mariadb
3-
Version: 10.11.6
4-
Release: 3%{?dist}
3+
Version: 10.11.10
4+
Release: 1%{?dist}
55
License: GPLv2 WITH exceptions AND LGPLv2 AND BSD
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
@@ -11,7 +11,6 @@ Group: Applications/Databases
1111
# To generate run CBL-Mariner/SPECS/mariadb/generate_source_tarball.sh script
1212
URL: https://mariadb.org/
1313
Source0: https://github.com/MariaDB/server/archive/mariadb-%{version}.tar.gz
14-
Patch0: CVE-2024-0901.patch
1514
BuildRequires: cmake
1615
BuildRequires: curl-devel
1716
BuildRequires: e2fsprogs-devel
@@ -127,7 +126,7 @@ rm %{buildroot}%{_libdir}/mysql/plugin/{auth_gssapi_client.so,caching_sha2_passw
127126
rm %{buildroot}%{_libdir}/pkgconfig/libmariadb.pc
128127
rm %{buildroot}%{_includedir}/mysql/{errmsg.h,ma_list.h,ma_pvio.h,ma_tls.h,mysql_version.h,mysqld_error.h,mariadb_com.h,mariadb_ctype.h,mariadb_dyncol.h,mariadb_rpl.h,mariadb_stmt.h,mariadb_version.h,mysql.h}
129128
rm %{buildroot}%{_includedir}/mysql/mariadb/ma_io.h
130-
rm %{buildroot}%{_includedir}/mysql/mysql/{client_plugin.h,plugin_auth.h,plugin_auth_common.h}
129+
rm %{buildroot}%{_includedir}/mysql/mysql/{client_plugin.h,plugin_auth.h}
131130

132131
mv %{buildroot}%{_datadir}/systemd/mariadb.service %{buildroot}/%{_libdir}/systemd/system/mariadb.service
133132
mv %{buildroot}%{_datadir}/systemd/[email protected] %{buildroot}/%{_libdir}/systemd/system/[email protected]
@@ -363,6 +362,7 @@ fi
363362
%{_mandir}/man1/wsrep_sst_common.1.gz
364363
%{_mandir}/man1/wsrep_sst_mysqldump.1.gz
365364
%{_mandir}/man1/wsrep_sst_rsync.1.gz
365+
%{_mandir}/man1/wsrep_sst_backup.1.gz
366366
%{_mandir}/man1/mariabackup.1.gz
367367
%{_mandir}/man1/mbstream.1.gz
368368
%{_mandir}/man1/mysql_embedded.1.gz
@@ -469,6 +469,9 @@ fi
469469
%{_datadir}/mysql/hindi/errmsg.sys
470470

471471
%changelog
472+
* Tue Nov 05 2024 CBL-Mariner Servicing Account <[email protected]> - 10.11.10-1
473+
- Auto-upgrade to 10.11.10 - to address CVE-2024-21096
474+
472475
* Fri Jun 21 2024 Neha Agarwal <[email protected]> - 10.11.6-3
473476
- Patch CVE-2024-0901
474477

cgmanifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12721,8 +12721,8 @@
1272112721
"type": "other",
1272212722
"other": {
1272312723
"name": "mariadb",
12724-
"version": "10.11.6",
12725-
"downloadUrl": "https://github.com/MariaDB/server/archive/mariadb-10.11.6.tar.gz"
12724+
"version": "10.11.10",
12725+
"downloadUrl": "https://github.com/MariaDB/server/archive/mariadb-10.11.10.tar.gz"
1272612726
}
1272712727
}
1272812728
},

0 commit comments

Comments
 (0)