Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955440 - mail-filter/rspamd-3.11.1: error: no match for ‘operator==’
Summary: mail-filter/rspamd-3.11.1: error: no match for ‘operator==’
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Petr Vaněk
URL:
Whiteboard:
Keywords:
: 955520 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-05-05 06:30 UTC by Daniel Kenzelmann
Modified: 2025-05-08 07:34 UTC (History)
4 users (show)

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


Attachments
build log (build.log.xz,26.69 KB, application/x-xz)
2025-05-05 06:38 UTC, Daniel Kenzelmann
Details
mime_string-const-comparison.patch (file_955440.txt,1.05 KB, patch)
2025-05-06 02:10 UTC, Alexandra Parker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kenzelmann 2025-05-05 06:30:22 UTC
Following error upon emerging rspamd:

In file included from /var/tmp/portage/mail-filter/rspamd-3.11.1/work/rspamd-3.11.1/src/libmime/mime_string.cxx:18:
/var/tmp/portage/mail-filter/rspamd-3.11.1/work/rspamd-3.11.1/src/libmime/mime_string.cxx: In function ‘void DOCTEST_ANON_SUITE_10::DOCTEST_ANON_FUNC_11()’:
/var/tmp/portage/mail-filter/rspamd-3.11.1/work/rspamd-3.11.1/src/libmime/mime_string.cxx:31:34: error: no match for ‘operator==’ (operand types are ‘doctest::detail::Expression_lhs<const rspamd::mime::basic_mime_string<char>&>’ and ‘const char [1]’)


Reproducible: Always

Steps to Reproduce:
Update world, rspamd rebuild



# emerge --info
Portage 3.0.68 (python 3.13.3-final-0, default/linux/amd64/23.0/no-multilib/hardened, gcc-15, glibc-2.41-r1, 6.14.5-gentoo x86_64)
=================================================================
System uname: Linux-6.14.5-gentoo-x86_64-AMD_Ryzen_7_7840U_w-_Radeon_780M_Graphics-with-glibc2.41
KiB Mem:    30498800 total,   4529836 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 05 May 2025 05:45:00 +0000
Head commit of repository gentoo: 654aebdf2d7db23ce11a4ce2e23d79409f6b6fdd
Timestamp of repository guru: Sun, 04 May 2025 14:39:22 +0000
Head commit of repository guru: ea6df2f0cbf1716d6ba2b23f6f72ca2d9309bcf3

Head commit of repository inode64-overlay: 6a4a7fe9e0ff1692f74a87ccc836ce9f938b176e

sh bash 5.2_p37-r2
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37-r2::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.17-r2::gentoo
dev-build/cmake:           3.31.7::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.8.0::gentoo
dev-lang/perl:             5.40.2::gentoo
dev-lang/python:           3.13.3::gentoo
dev-lang/rust-bin:         1.86.0-r1::gentoo
llvm-core/llvm:            19.1.7::gentoo, 20.1.4::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.62.2::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             15.1.0::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.14::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

inode64-overlay
    location: /var/db/repos/inode64-overlay
    sync-type: git
    sync-uri: https://github.com/inode64/inode64-overlay.git
    masters: gentoo
    volatile: False

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

Binary Repositories:

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="no-source-code @FREE SSPL-1 all-rights-reserved"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver4 -O3 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.3/ext-active/ /etc/php/apache2-php8.4/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cgi-php8.4/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/cli-php8.4/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/fpm-php8.4/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/php/phpdbg-php8.4/ext-active/ /etc/sandbox.d"
CXXFLAGS="-march=znver4 -O3 -fomit-frame-pointer -pipe"
DISTDIR="/var/cache/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="-march=znver4 -O3 -fomit-frame-pointer -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks export-pms-vars 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver4 -O3 -fomit-frame-pointer -pipe"
GENTOO_MIRRORS="https://eu.mirror.ionos.com/linux/distributions/gentoo/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="de de_DE en en_GB en_US"
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="acl aes amd64 avx avx2 bzip2 caps cet crypt dvb f16c fma3 gdbm hardened iconv idn iproute2 ipv6 libtirpc lzma maildir mmx mmxext ncurses nftables nls openmp pam pclmul pcre pic pie png popcnt postgres rdrand readline seccomp sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 syslog test-rust udev unicode usb vaapi vhosts xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gcc_14" AMDGPU_TARGETS="gfx1102 gfx1103" 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 avx avx2 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" 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="libinput" KERNEL="linux" L10N="de de-DE en en-GB en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4 lua5-3" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3 php8-4" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu radeonsi" 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, MAKEOPTS, 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
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-05 06:35:34 UTC
Please always include the full build.log.
Comment 2 Daniel Kenzelmann 2025-05-05 06:38:24 UTC
Created attachment 927689 [details]
build log
Comment 3 Alexandra Parker 2025-05-06 02:10:50 UTC
Created attachment 927786 [details, diff]
mime_string-const-comparison.patch

IDK why but these operators fail candidate selection because "this" is const. There's no reason for the operators to not be const, so make them const. How did upstream not notice? Are we using a different version of doctest or something that makes the LHS const?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-06 02:13:24 UTC
(In reply to Alexandra Parker from comment #3)

New doctest broke it.
Comment 5 Petr Vaněk gentoo-dev 2025-05-07 18:35:21 UTC
Yes, it is because of this change https://github.com/doctest/doctest/commit/d7a5eeb820b61cc3af8a61b3117f76a403b7742a introduced in doctest-2.4.12.

Alexandra, the patch works. Could you send it upstream and link the PR here?
Comment 6 Alexandra Parker 2025-05-07 20:28:02 UTC
> Alexandra, the patch works. Could you send it upstream and link the PR here?

sweet thanks for finding the root cause. here's the pull request

https://github.com/rspamd/rspamd/pull/5458
Comment 7 Petr Vaněk gentoo-dev 2025-05-08 06:43:29 UTC
*** Bug 955520 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2025-05-08 07:34:31 UTC
The bug has been closed via the following commit(s):

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

commit e1469bfbcb388eb9f6d036befb2f1baa974e2bc1
Author:     Petr Vaněk <arkamar@gentoo.org>
AuthorDate: 2025-05-08 06:59:23 +0000
Commit:     Petr Vaněk <arkamar@gentoo.org>
CommitDate: 2025-05-08 07:30:59 +0000

    mail-filter/rspamd: Fix doctest 2.4.12 compatibility
    
    Upstream-PR: https://github.com/rspamd/rspamd/pull/5458
    Closes: https://bugs.gentoo.org/955440
    Signed-off-by: Petr Vaněk <arkamar@gentoo.org>

 .../rspamd-3.11.1-doctest-compatibility.patch      | 45 ++++++++++++++++++++++
 ...spamd-3.11.1.ebuild => rspamd-3.11.1-r1.ebuild} |  3 ++
 2 files changed, 48 insertions(+)