Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mariadb-connector-c for 
openSUSE:Factory checked in at 2026-03-24 18:47:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mariadb-connector-c (Old)
 and      /work/SRC/openSUSE:Factory/.mariadb-connector-c.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mariadb-connector-c"

Tue Mar 24 18:47:59 2026 rev:53 rq:1342049 version:3.4.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/mariadb-connector-c/mariadb-connector-c.changes  
2025-04-25 22:18:13.684810037 +0200
+++ 
/work/SRC/openSUSE:Factory/.mariadb-connector-c.new.8177/mariadb-connector-c.changes
        2026-03-24 18:48:15.248948614 +0100
@@ -1,0 +2,8 @@
+Thu Mar 19 09:16:31 UTC 2026 - Richard Biener <[email protected]>
+
+- Pick mariadb-connector-c-3.4.5-const-correctness.patch from upstream,
+  add mariadb-connector-c-3.4.5-const-correctness-2.patch to fix
+  and work around const correctness issues exposed by new glibc and
+  breaking build.
+
+-------------------------------------------------------------------

New:
----
  mariadb-connector-c-3.4.5-const-correctness-2.patch
  mariadb-connector-c-3.4.5-const-correctness.patch

----------(New B)----------
  New:- Pick mariadb-connector-c-3.4.5-const-correctness.patch from upstream,
  add mariadb-connector-c-3.4.5-const-correctness-2.patch to fix
  and work around const correctness issues exposed by new glibc and
  New:
- Pick mariadb-connector-c-3.4.5-const-correctness.patch from upstream,
  add mariadb-connector-c-3.4.5-const-correctness-2.patch to fix
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mariadb-connector-c.spec ++++++
--- /var/tmp/diff_new_pack.36Qp7c/_old  2026-03-24 18:48:16.517000019 +0100
+++ /var/tmp/diff_new_pack.36Qp7c/_new  2026-03-24 18:48:16.533000668 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package mariadb-connector-c
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -40,6 +40,8 @@
 Patch4:         private_library.patch
 Patch5:         mariadb-connector-c-3.4.5-gcc15.patch
 Patch6:         mariadb-connector-c-3.4.5-gcc15-part2.patch
+Patch7:         mariadb-connector-c-3.4.5-const-correctness.patch
+Patch8:         mariadb-connector-c-3.4.5-const-correctness-2.patch
 BuildRequires:  cmake
 BuildRequires:  curl-devel
 BuildRequires:  pkgconfig

++++++ mariadb-connector-c-3.4.5-const-correctness-2.patch ++++++
--- mariadb-connector-c-3.4.5-src/libmariadb/mariadb_lib.c.orig 2026-03-19 
10:11:57.015610445 +0100
+++ mariadb-connector-c-3.4.5-src/libmariadb/mariadb_lib.c      2026-03-19 
10:14:52.905392302 +0100
@@ -812,7 +812,7 @@
     char *c;
     
     /* CONC-395: replace underscore "_" by dash "-" */
-    while ((c= strchr(config_option, '_')))
+    while ((c= (char *)strchr(config_option, '_')))
       *c= '-';
 
     for (i=0; mariadb_defaults[i].conf_key; i++)

++++++ mariadb-connector-c-3.4.5-const-correctness.patch ++++++
>From f5143d84cb463c5897b4ab6a83400350c641a35e Mon Sep 17 00:00:00 2001
From: Rudi Heitbaum <[email protected]>
Date: Sun, 1 Feb 2026 11:13:18 +1100
Subject: [PATCH] [CONC-805] fix assignment discards 'const' qualifier

For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, 
wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their 
input arrays now have definitions as macros that return a pointer to a 
const-qualified type when the input argument is a pointer to a const-qualified 
type.

Fixes:
../libmariadb/mariadb_lib.c: In function 'mysql_real_connect':
../libmariadb/mariadb_lib.c:1543:20: error: assignment discards 'const' 
qualifier from pointer target type [-Werror=discarded-qualifiers]
 1543 |       (host && (end= strstr(host, "://"))))
      |                    ^
---
 libmariadb/mariadb_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmariadb/mariadb_lib.c b/libmariadb/mariadb_lib.c
index 471ed96f..22900acd 100644
--- a/libmariadb/mariadb_lib.c
+++ b/libmariadb/mariadb_lib.c
@@ -1507,7 +1507,7 @@ mysql_real_connect(MYSQL *mysql, const char *host, const 
char *user,
                   const char *passwd, const char *db,
                   uint port, const char *unix_socket,unsigned long client_flag)
 {
-  char *end= NULL;
+  const char *end= NULL;
   char *connection_handler= (mysql->options.extension) ?
                             mysql->options.extension->connection_handler : 0;
 
-- 
2.51.0

Reply via email to