Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906068 - mail-filter/rspamd-3.5: fails to compile against dev-libs/libfmt-10.0.0
Summary: mail-filter/rspamd-3.5: fails to compile against dev-libs/libfmt-10.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Petr Vaněk
URL: https://github.com/rspamd/rspamd/issu...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 906077 905345
  Show dependency tree
 
Reported: 2023-05-10 14:58 UTC by Craig Andrews
Modified: 2023-08-07 05:43 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,419.19 KB, text/x-log)
2023-05-10 14:58 UTC, Craig Andrews
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2023-05-10 14:58:02 UTC
mail-filter/rspamd-3.5 building against dev-libs/libfmt-10.0.0 fails:
---
In file included from /var/tmp/portage/mail-filter/rspamd-3.5/work/rspamd-3.5/src/libserver/symcache/symcache_item.cxx:20:
/usr/include/fmt/core.h: In instantiation of ‘constexpr decltype (ctx.begin()) fmt::v10::detail::parse_format_specs(ParseContext&) [with T = rspamd_symbol_type; ParseContext = compile_parse_context<char>; decltype (ctx.begin()) = const char*]’:
/usr/include/fmt/core.h:2620:22:   required from ‘constexpr fmt::v10::detail::format_string_checker<Char, Args>::format_string_checker(fmt::v10::basic_string_view<Char>) [with Char = char; Args = {rspamd_symbol_type}]’
/var/tmp/portage/mail-filter/rspamd-3.5/work/rspamd-3.5/src/libserver/symcache/symcache_item.cxx:602:41:   required from here
/usr/include/fmt/core.h:2561:10: error: use of deleted function ‘fmt::v10::formatter<T, Char, Enable>::formatter() [with T = rspamd_symbol_type; Char = char; Enable = void]’
 2561 |   return formatter<mapped_type, char_type>().parse(ctx);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/fmt/core.h:792:3: note: declared here
  792 |   formatter() = delete;
      |   ^~~~~~~~~
/usr/include/fmt/core.h: In instantiation of ‘constexpr fmt::v10::detail::value<Context> fmt::v10::detail::make_value(T&&) [with Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; T = rspamd_symbol_type&]’:
/usr/include/fmt/core.h:1711:29:   required from ‘constexpr fmt::v10::detail::value<Context> fmt::v10::detail::make_arg(T&&) [with bool IS_PACKED = true; Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; type <anonymous> = fmt::v10::detail::type::custom_type; T = rspamd_symbol_type&; typename std::enable_if<IS_PACKED, int>::type <anonymous> = 0]’
/usr/include/fmt/core.h:1827:77:   required from ‘constexpr fmt::v10::format_arg_store<Context, Args>::format_arg_store(T&& ...) [with T = {rspamd_symbol_type&}; Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; Args = {rspamd_symbol_type}]’
/usr/include/fmt/core.h:1844:31:   required from ‘constexpr fmt::v10::format_arg_store<Context, typename std::remove_cv<typename std::remove_reference<T>::type>::type ...> fmt::v10::make_format_args(T&& ...) [with Context = basic_format_context<appender, char>; T = {rspamd_symbol_type&}]’
/usr/include/fmt/core.h:2817:44:   required from ‘std::string fmt::v10::format(format_string<T ...>, T&& ...) [with T = {rspamd_symbol_type&}; std::string = std::__cxx11::basic_string<char>; format_string<T ...> = basic_format_string<char, rspamd_symbol_type&>]’
/var/tmp/portage/mail-filter/rspamd-3.5/work/rspamd-3.5/src/libserver/symcache/symcache_item.cxx:602:41:   required from here
/usr/include/fmt/core.h:1691:7: error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
 1691 |       formattable,
      |       ^~~~~~~~~~~
/usr/include/fmt/core.h:1691:7: note: ‘formattable’ evaluates to false
---



Reproducible: Always




# emerge --info
Portage 3.0.47 (python 3.11.3-final-0, default/linux/amd64/17.1/systemd/merged-usr, gcc-13, glibc-2.37-r2, 6.3.0-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.3.0-gentoo-x86_64-x86_64-AMD_Ryzen_7_5700X_8-Core_Processor-with-glibc2.37
KiB Mem:    16277004 total,    277476 free
KiB Swap:    8137724 total,     77292 free
Timestamp of repository gentoo: Wed, 10 May 2023 14:30:01 +0000
Head commit of repository gentoo: f5ec3ce8c2be4f737de087f9973f677a110bfd77
sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p5) 2.40.0
ccache version 4.8 [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.1-r1::gentoo
dev-lang/python:           3.11.3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/ccache:           4.8::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.4::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo, 16.0.3::gentoo
sys-devel/gcc:             13.1.0-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7::gentoo, 16.0.3::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r2::gentoo
Repositories:

gentoo
    location: /var/cache/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Intel-SDP Oracle-BCLA-JavaSE Oracle-EADLA AMD-GPU-PRO-EULA"
AR="/usr/bin/gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fuse-linker-plugin -flto -Wl,-flto -ftree-vectorize -falign-functions=32 -fgraphite-identity -floop-nest-optimize -fno-common"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -march=native -pipe -fuse-linker-plugin -flto -Wl,-flto -ftree-vectorize -falign-functions=32 -fgraphite-identity -floop-nest-optimize -fno-common"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4.5"
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 candy ccache cgroup clean-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -flto -Wl,--hash-style=gnu"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j3 -l15"
NM="/usr/bin/gcc-nm"
PKGDIR="/var/cache/portage/packages"
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"
RANLIB="/usr/bin/gcc-ranlib"
SHELL="/bin/bash"
USE="X a52 aac aacs acl acpi aiglx alac alsa amd64 amr amrnb amrwb animation apache2 apng argon2 artworkextra asf aspnet2 asyncns authdaemond avahi avi avif bash-completion bcmath bitmap-fonts bluetooth bluray bmp bonjour brotli btrfs bzip2 cairo caps cdda cddb cdparanoia cdr celt chm clang cli crypt cryptsetup css curl daap dav1d dbus device-mapper dga dhclient dirac divx4linux dlloader dns dnssec dovecot-sasl dpms dri dri3 dts dv dvb dvd dvdr dvdread egl enca encode exif ext4 faac fame fat fbcondecor fbsplash ffmpeg fftw firefox flac flatpak fontconfig foomaticdb fortran freetype ftp fuse gaim gd gdbm geoip gif gimpprint glamor gles gles1 gles2 glib glibc-omitfp glitz glut gnome gost gphoto2 graphite grub gsm gstreamer gstreamer10 gtk gudev hardenedphp hbci howl howl-compat hsts http2 https hwdb iconv icu idn imagemagick imap imlib innodb ipv6 jbig jce joystick jpeg jpeg2k junit kdbus kdehiddenvisibility kvm lapack lcms libfame libglvnd libkms libnotify librtmp libtirpc libusb live llvm lm_sensors lto lvm lz4 lzma lzo mad maildir mdadm mdnsresponder-compat metalink mjpeg mmap mms mng motif mozilla mozsvg mp3 mpeg mpeg2 mplayer mpx multilib musepack mysql mythtv natspec ncurses nemesi network networkmanager nls nptl nptlonly ntfs nvme ocl-icd offensive ofx ogg oggvorbis openal opencl openexr opengl openmp openvg opus pam pango pcre pcre16 pcre32 pcsc-lite pdf pdflib perl pgo phonon pic pie pipewire png pnp policykit ppd ppds pulseaudio python quvi rar readline rtc rtmp schroedinger screencast screensaver sctp sdl seccomp session sftp sharedmem shout smp sna sni sox speex spell sqlite srt ssh ssl steamruntime suspend2 svg systemd test-rust theora threads tiff tls tpm transcode truetype truetype-fonts type-fonts udev udisks unicode unzip upnp ups usb user-session uxa v4l2 vaapi vcd videos virgl vorbis vpx vulkan wayland webdav webp webservices wifi win32codecs wmf wv x264 x265 xanim xattr xcb xcomposite xdg xinerama xml xml2 xpm xprint xrandr xv xvfb xvid xvmc zeroconf zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="actions alias auth_basic authn_core authz_core authn_socache cache_disk authn_alias authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex brotli cache dav dav_fs dav_lock dconf deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation remoteip rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest proxy proxy_ajp proxy_connect proxy_http proxy_fcgi proxy_wstunnel reqtimeout cgi cgid unixd socache_shmcb proxy_html xml2enc" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex brotli browser charset empty_gif fastcgi geo grpc gunzip gzip limit_conn limit_req map memcached mirror proxy referer rewrite scgi split_clients ssi upstream_hash upstream_ip_hash upstream_keepalive upstream_least_conn upstream_zone userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby31" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Craig Andrews gentoo-dev 2023-05-10 14:58:22 UTC
Created attachment 861431 [details]
build.log
Comment 2 Craig Andrews gentoo-dev 2023-05-10 14:59:14 UTC
Reported upstream at https://github.com/rspamd/rspamd/issues/4482
Comment 3 Larry the Git Cow gentoo-dev 2023-05-10 16:10:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a7f6e70a391191a79c64e0eb95b5c806d7dbb26

commit 5a7f6e70a391191a79c64e0eb95b5c806d7dbb26
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-10 16:08:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-10 16:08:49 +0000

    profiles: mask =dev-libs/libfmt-10.0.0
    
    Bug: https://bugs.gentoo.org/906077
    Bug: https://bugs.gentoo.org/906068
    Bug: https://bugs.gentoo.org/906071
    Bug: https://bugs.gentoo.org/906074
    Bug: https://bugs.gentoo.org/906075
    Bug: https://bugs.gentoo.org/906076
    Bug: https://bugs.gentoo.org/906069
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2023-05-26 10:59:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45db47d0b8b97d082d8ba4566817737dab5795c6

commit 45db47d0b8b97d082d8ba4566817737dab5795c6
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2023-05-17 10:48:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-26 10:58:38 +0000

    mail-filter/rspamd: limit deps to <dev-libs/libfmt-10
    
    Upstream-issue: https://github.com/rspamd/rspamd/issues/4482
    Closes: https://bugs.gentoo.org/906068
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Sam James <sam@gentoo.org>

 mail-filter/rspamd/{rspamd-3.4-r2.ebuild => rspamd-3.4-r3.ebuild} | 3 ++-
 mail-filter/rspamd/{rspamd-3.5.ebuild => rspamd-3.5-r1.ebuild}    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2023-08-07 05:43:06 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f736635e014f88ede09af2be9f4c06601fe5b75

commit 0f736635e014f88ede09af2be9f4c06601fe5b75
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2023-08-03 15:36:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-07 05:35:45 +0000

    mail-filter/rspamd: add 3.6
    
    - It was necessary to rebase all patches because upstream changed coding
      style
    - New patch was taken from upstream in order to fix tests [1] broken by
      linter
    - This version seems to work with libfmt-10 [2], see bug #906068
    - Restoring lua5-{3..4} support, see bug #903577
    
    [1] https://github.com/rspamd/rspamd/pull/4560
    [2] https://github.com/rspamd/rspamd/issues/4482
    
    Bug: https://bugs.gentoo.org/903577
    Bug: https://bugs.gentoo.org/906068
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Sam James <sam@gentoo.org>

 mail-filter/rspamd/Manifest                        |   1 +
 .../files/rspamd-3.6-cmake-lua-version.patch       |  64 +++++++++
 .../rspamd/files/rspamd-3.6-fix-tests.patch        |  23 ++++
 .../rspamd/files/rspamd-3.6-unbundle-lua.patch     |  61 +++++++++
 .../files/rspamd-3.6-unbundle-snowball.patch       |  20 +++
 mail-filter/rspamd/rspamd-3.6.ebuild               | 150 +++++++++++++++++++++
 6 files changed, 319 insertions(+)