Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946924 - dev-db/mariadb-10.11.10 fails to config after dev-libs/libfmt-11.1.0 bump
Summary: dev-db/mariadb-10.11.10 fails to config after dev-libs/libfmt-11.1.0 bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
: 946960 (view as bug list)
Depends on:
Blocks: 906077
  Show dependency tree
 
Reported: 2024-12-26 04:02 UTC by Harris Landgarten
Modified: 2025-01-02 10:42 UTC (History)
17 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,29.02 KB, text/x-log)
2024-12-26 12:23 UTC, Harris Landgarten
Details
build log (mariadb_build.log,29.17 KB, text/x-log)
2024-12-26 16:05 UTC, Chris Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2024-12-26 04:02:34 UTC
-- Looking for pcre2_match_8 in pcre2-8
-- Looking for pcre2_match_8 in pcre2-8 - found
-- Looking for PCRE2regcomp in pcre2-posix
-- Looking for PCRE2regcomp in pcre2-posix - not found
-- Performing Test HAVE_SYSTEM_LIBFMT
-- Performing Test HAVE_SYSTEM_LIBFMT - Failed
CMake Error at cmake/libfmt.cmake:45 (MESSAGE):
  system libfmt library is not found or unusable
Call Stack (most recent call first):
  CMakeLists.txt:424 (CHECK_LIBFMT)
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-26 04:08:15 UTC
Please always include the full build.log and emerge --info.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-26 04:10:20 UTC
https://github.com/MariaDB/server/pull/3527 may be related.
Comment 3 Harris Landgarten 2024-12-26 12:23:50 UTC
Created attachment 914892 [details]
build log

Build log
Comment 4 Harris Landgarten 2024-12-26 12:25:18 UTC
sudo emerge --info '=dev-db/mariadb-10.11.10::gentoo'
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/desktop/gnome/systemd, gcc-14, glibc-2.40-r7, 6.12.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.12.6-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_970_@_3.20GHz-with-glibc2.40
KiB Mem:    24607136 total,   5621824 free
KiB Swap:   62403572 total,  58919220 free
Timestamp of repository gentoo: Thu, 26 Dec 2024 11:20:52 +0000
Head commit of repository gentoo: a84ec7b433c73fd192973d95460d878e0140612d

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.3::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.10.16_p1::gentoo, 3.11.11_p1::gentoo, 3.12.8::gentoo, 3.13.1::gentoo
dev-lang/rust-bin:         1.81.0-r101::gentoo, 1.83.0::gentoo
llvm-core/clang:           17.0.6::gentoo, 18.1.8-r6::gentoo, 19.1.6::gentoo
llvm-core/llvm:            17.0.6-r3::gentoo, 18.1.8-r6::gentoo, 19.1.6::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.42::gentoo
sys-apps/systemd:          257.1::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20241220::gentoo, 14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

Binary Repositories:

binhost
    priority: 9999
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en en_US en_US"
MAKEOPTS="-j10"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet colord crypt cuda cups dbus dri drm dts dvd dvdr eds egl encode esd evo exif flac gbm gdbm gdk-pixbuf gif gles1 gles2 gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gtk3 gui iconv icu introspection ipv6 jpeg keyring kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opencl opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qml qt5 qt6 readline screencast sdl seccomp sound spell ssl startup-notification svg sysprof systemd test-rust tiff tracker truetype udev udisks unicode upower usb vdpau vdpaui vorbis vulkan wayland webp wxwidgets x264 xattr xcb xft xinerama xml xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes pclmul popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev libinput wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32 ruby31" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

dev-db/mariadb-10.11.10::gentoo was built with the following:
USE="backup pam perl server systemd xml -bindist -columnstore -cracklib -debug -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -kerberos -latin1 -mroonga -numa -odbc -oqgraph -profiling -rocksdb -s3 (-selinux) -sphinx -sst-mariabackup -sst-rsync -static -systemtap -tcmalloc -test -yassl" ABI_X86="(64)"
CFLAGS="-march=native -O2 -pipe -fno-strict-aliasing"
CXXFLAGS="-march=native -O2 -pipe -felide-constructors -fno-strict-aliasing"
Comment 5 Spoiler 2024-12-26 14:23:11 UTC
I fully confirm
Comment 6 Chris Smith 2024-12-26 16:05:14 UTC
Created attachment 914895 [details]
build log

additional buiuld log
Comment 7 Dario Sarango 2024-12-26 17:45:10 UTC
looks like a duplicate of https://bugs.gentoo.org/946074
Comment 8 Petr Vaněk gentoo-dev 2024-12-26 21:24:29 UTC
(In reply to Dario Sarango from comment #7)
> looks like a duplicate of https://bugs.gentoo.org/946074

It looks, but bug 946074 was related to libfmt-10. libfmt-11.0 worked fine. But this one is related to recent libfmt-11.1.0 version bump.
Comment 9 Petr Vaněk gentoo-dev 2024-12-26 22:06:58 UTC
The issue is triggered since commit https://github.com/fmtlib/fmt/commit/b3ccc2d2100052b3a3079941febf2494caa07402
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-27 07:37:23 UTC
I'll pin it for now.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-27 07:38:19 UTC
(In reply to Sam James from comment #10)
> I'll pin it for now.

err, no, I won't, it's too awkward with the || ( ... ).
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-27 07:46:37 UTC
The test compiles but exits with 7:
```
$ cat b.cxx
#define FMT_STATIC_THOUSANDS_SEPARATOR ','
#define FMT_HEADER_ONLY 1
#include <fmt/args.h>
int main() {
  using ArgStore = fmt::dynamic_format_arg_store<fmt::format_context>;
  ArgStore arg_store;
  int answer = 4321;
  arg_store.push_back(answer);
  return fmt::vformat("{:L}", arg_store).compare("4,321");
}
$ g++ b.cxx -O2 -o b && ./b ; echo $?
7
```
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-27 07:48:43 UTC
Prepending `#define FMT_USE_LOCALE 1` doesn't make a difference.
Comment 14 Petr Vaněk gentoo-dev 2024-12-27 07:50:41 UTC
(In reply to Sam James from comment #11)
> (In reply to Sam James from comment #10)
> > I'll pin it for now.
> 
> err, no, I won't, it's too awkward with the || ( ... ).


just to make it clear for me, changing >=dev-libs/libfmt-11 to =dev-libs/libfmt-11.0* in || ( ... ) block is awkward? Because this is what I thought it would be appropriate change.
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-27 07:51:19 UTC
(In reply to Petr Vaněk from comment #14)
> just to make it clear for me, changing >=dev-libs/libfmt-11 to
> =dev-libs/libfmt-11.0* in || ( ... ) block is awkward? Because this is what
> I thought it would be appropriate change.

No, I wasn't thinking -- your suggestion would work, and I think we should do it, because the issue isn't obvious to us yet.
Comment 16 Petr Vaněk gentoo-dev 2024-12-27 07:57:24 UTC
Yes, I think we should pin it as I suggested. The issue is related to FMT_STATIC_THOUSANDS_SEPARATOR, which mariadb uses, but is part of fmt private api.
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-27 12:38:10 UTC
*** Bug 946960 has been marked as a duplicate of this bug. ***
Comment 18 Larry the Git Cow gentoo-dev 2024-12-27 17:13:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6de7065a2031f5444bf9b6227293cfcd9ffca2cc

commit 6de7065a2031f5444bf9b6227293cfcd9ffca2cc
Author:     Petr Vaněk <arkamar@gentoo.org>
AuthorDate: 2024-12-27 17:03:15 +0000
Commit:     Petr Vaněk <arkamar@gentoo.org>
CommitDate: 2024-12-27 17:11:52 +0000

    dev-db/mariadb: restrict libfmt-11
    
    libfmt-11.1.0 changed behaviour of FMT_STATIC_THOUSANDS_SEPARATOR, which
    is used in mariadb, therefore it is necessary to restrict libfmt-11 to
    older version, =libfmt-11.0*.
    
    Closes: https://bugs.gentoo.org/946924
    Signed-off-by: Petr Vaněk <arkamar@gentoo.org>

 dev-db/mariadb/mariadb-10.11.10.ebuild | 4 +++-
 dev-db/mariadb/mariadb-11.4.4.ebuild   | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
Comment 19 Petr Vaněk gentoo-dev 2025-01-02 10:30:25 UTC
For the record, related item from libfmt-11.1.0 release:

> Removed the ability to control locale usage via an undocumented FMT_STATIC_THOUSANDS_SEPARATOR in favor of FMT_USE_LOCALE.