Your message dated Sun, 06 Sep 2026 06:48:52 +0000
with message-id <[email protected]>
and subject line Bug#1146585: fixed in mariadb 1:11.8.9+ds-2
has caused the Debian Bug report #1146585,
regarding libmariadb-dev: mariadb_config shim dropped --cc_version, breaking 
Connector/Python builds
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1146585: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1146585
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libmariadb-dev
Version: 1:11.8.9+ds-1
Severity: important
Tags: patch

Dear Maintainer,

Since 1:11.8.9+ds-1, /usr/bin/mariadb_config no longer implements the
--cc_version option:

  $ mariadb_config --cc_version
  /usr/bin/mariadb_config: unrecognized option '--cc_version'

The predecessor, 1:11.8.8-1, shipped upstream MariaDB Connector/C's compiled
mariadb_config, which does implement it (extracted from the cached .deb):

  $ ./usr/bin/mariadb_config --help
  Copyright 2011-2020 MariaDB Corporation AB
  Get compiler flags for using the MariaDB Connector/C.
  [...]
    --version       [11.8.8]
    --cc_version    [3.4.9]

In 1:11.8.9+ds-1 that binary was replaced by an architecture-independent shell
script, as part of making libmariadb-dev Multi-Arch: same co-installable
(#1140296). The replacement implements ten of upstream's options but not
--cc_version, which looks like an oversight rather than an intended removal.
/usr/bin/mariadb-config is a symlink to the same script, so there is no
unaffected alternative on the system.

Impact: MariaDB Connector/Python (the "mariadb" distribution on PyPI, MariaDB's
officially supported Python driver, not packaged in Debian) calls exactly this
option during its build to verify Connector/C >= 3.3.1. It now dies on the
empty answer:

  File ".../mariadb_posix.py", line 63, in get_config
    if version.Version(cc_version[0]) < version.Version(required_version):
  IndexError: list index out of range

So `pip install mariadb` fails on a sid system with libmariadb-dev installed,
where it succeeded under 1:11.8.8-1. Any other consumer that asks for the
Connector/C version through this documented interface is affected the same way.

Nothing is actually missing from the package. The value the option should
report is already in the shipped headers, and it is the very macro upstream's
binary compiles its own answer from:

  $ grep MARIADB_PACKAGE_VERSION /usr/include/mariadb/mariadb_version.h
  #define MARIADB_PACKAGE_VERSION "3.4.10"
  #define MARIADB_PACKAGE_VERSION_ID 30410

The script already reads that same header for --version, so restoring the
option is a two-line change:

--- a/usr/bin/mariadb_config
+++ b/usr/bin/mariadb_config
@@
 version=$(sed -n 's/.*MARIADB_CLIENT_VERSION_STR[^"]*"\([^"]*\)".*/\1/p' 
"$vhdr" 2>/dev/null)
 [ -n "$version" ] || version=unknown
+cc_version=$(sed -n 's/.*MARIADB_PACKAGE_VERSION[^"]*"\([^"]*\)".*/\1/p' 
"$vhdr" 2>/dev/null)
+[ -n "$cc_version" ] || cc_version=unknown
@@ usage()
-  --version       --variable=VAR (pkglibdir|plugindir)
+  --version       --cc_version   --variable=VAR (pkglibdir|plugindir)
@@ case "$arg" in
     --version)            printf '%s\n' "$version" ;;
+    --cc_version)         printf '%s\n' "$cc_version" ;;

I verified locally that supplying --cc_version from that macro, and delegating
every other option to /usr/bin/mariadb_config unchanged, lets mariadb 1.1.14
build and import against the installed Connector/C 3.4.10.

Thanks for maintaining this package.

manul


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.18.15+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libmariadb-dev depends on:
ii  libmariadb3  1:11.8.9+ds-1
ii  libssl-dev   3.6.4-1
ii  zlib1g-dev   1:1.3.dfsg+really1.3.2-3

libmariadb-dev recommends no packages.

libmariadb-dev suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: mariadb
Source-Version: 1:11.8.9+ds-2
Done: Otto Kekäläinen <[email protected]>

We believe that the bug you reported is fixed in the latest version of
mariadb, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Otto Kekäläinen <[email protected]> (supplier of updated mariadb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 04 Sep 2026 19:19:19 +0000
Source: mariadb
Architecture: source
Version: 1:11.8.9+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Debian MySQL Maintainers <[email protected]>
Changed-By: Otto Kekäläinen <[email protected]>
Closes: 1139473 1141671 1144671 1146585
Changes:
 mariadb (1:11.8.9+ds-2) unstable; urgency=medium
 .
   * Add missing --version_cc to the custom `mariadb_config` (Closes: #1146585) 
*
   * Backport upstream patch to fix upstream CONC-821 about
     mysql_stmt_bind_result zeroes *length for temporal result columns which
     broke among others Perl, Python, MythTV and more
     (Closes: #1139473, #1141671, #1144671)
   * Extend test skip lists after witnessing frequent sporadic failures on armhf
Checksums-Sha1:
 8f8382cfc19a3c8732d15740a4c6b7f2a2ac4e87 5396 mariadb_11.8.9+ds-2.dsc
 47eac511ec1d2083ccc7f971e9eeea9248095fe3 304768 
mariadb_11.8.9+ds-2.debian.tar.xz
 976b725d92535059aa16ea7f7b535031703cfb18 13742 
mariadb_11.8.9+ds-2_source.buildinfo
Checksums-Sha256:
 fa3c4609a709d6f1012b48940a6567bc534f3335512f2daa8b9a7f4a4072ab9e 5396 
mariadb_11.8.9+ds-2.dsc
 baf5361d53d926f85e3da10ad79172d9130d911daefdd1f86ef868c86d7a1970 304768 
mariadb_11.8.9+ds-2.debian.tar.xz
 4689efb57aac0fa35e01570f5a20c64ded3a350cdf541d2a7647bd2b5bf9628d 13742 
mariadb_11.8.9+ds-2_source.buildinfo
Files:
 aa87da2e4c5c70f21928354d5d7a6b2a 5396 database optional mariadb_11.8.9+ds-2.dsc
 0df9285bad0fb8c88668bb84a748b155 304768 database optional 
mariadb_11.8.9+ds-2.debian.tar.xz
 b93bfc4afb436fe7c7513776125a8f15 13742 database optional 
mariadb_11.8.9+ds-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEmbRSsR88dMO0U+RvvthEn87o2ogFAmqdCOUACgkQvthEn87o
2oiH8w/8Dy/DtCfxeOdugnDBLSTIYdwlnYWxlW7t/goxYqzkC52eXCoOqoP+gFWW
mnMb4DMjMZXiu7kgVJmrtWqJABTmZLXv04dPqbP2CzUOol7hxxPEy0ylJ+RiiLzH
xzYtFO0+qLwv/4gE4LcyYt+XaB7nN6G8EQtKYg77/uz94/YI6uHIoo36cAiNRN2E
43iyTBAC4qhHwd+EAgBEZaWadCI9M8nb9uQfWNnzoIJ1GZ70LdIHQmwjlBgPljqu
u5R29wKZ5sHKai2nSfp25AWlfwy2lC8O1d4DRN/MzDo/VlkTejx+pzhTFo+kk7jU
WC3AV9E+qcLYNZCKmp0HGMQLr/eomgl+g06MCNfucjrFnjA/1/cRvm/oV9/z8q20
p8TeLo1xYUV0LMfP5YDKsaJdQQWaLhQhxFTo8LhdGLZspYbb0u2wAEpieew3XtSk
bMWcXV+5vn20Dl9wFSo80vSCgkTAKviQd72wFfuSRm23AI2my44HmH9ZRtAC2qKg
XIJSn1sSPYuZpHO3HqtFPEtu2o7JqLXT6DXg8Em9hgEUlUG1PGjHLQsI5E7Yv7FU
beJIH5UHOwAmhv+USXhyKOvBLfI/XGEu5AXC7kmGaGOqOtNC1gvDwpq0IYe788ws
Sol8OomcIy1ewP/Ab3L81adj4cSP1ugN+KdTp/9Qld4IgkkAPLQ=
=ioS6
-----END PGP SIGNATURE-----

Attachment: pgpYhpOqY1Fnn.pgp
Description: PGP signature


--- End Message ---

Reply via email to