Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830624 - mail-filter/rspamd-3.1 fails to compile with dev-cpp/doctest-2.4.7 (doctest.h:1320:9: error: no match for 'operator==')
Summary: mail-filter/rspamd-3.1 fails to compile with dev-cpp/doctest-2.4.7 (doctest.h...
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: PullRequest
: 829250 830891 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-05 06:48 UTC by Thomas Stein
Modified: 2022-06-12 07:33 UTC (History)
8 users (show)

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


Attachments
build.log.xz (build.log.xz,23.95 KB, application/x-xz)
2022-01-05 07:04 UTC, Tomáš Mózes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2022-01-05 06:48:11 UTC
Hello Devs.

Compiling rspamd 3.1 fails with:

ninja: build stopped: subcommand failed.
 * ERROR: mail-filter/rspamd-3.1::gentoo failed (compile phase):
 *   ninja -v -j4 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2681:  Called cmake_src_compile
 *   environment, line 1126:  Called cmake_build
 *   environment, line 1095:  Called eninja
 *   environment, line 1582:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"

Reproducible: Always




emerge --info

Portage 3.0.28 (python 3.9.8-final-0, default/linux/amd64/17.1, gcc-11.2.0, glibc-2.33-r7, 5.10.49 x86_64)
=================================================================
System uname: Linux-5.10.49-x86_64-Intel-R-_Xeon-R-_Gold_6230_CPU_@_2.10GHz-with-glibc2.33
KiB Mem:    16399712 total,   1580120 free
KiB Swap:    2097148 total,   2073688 free
Timestamp of repository gentoo: Tue, 04 Jan 2022 17:30:01 +0000
Head commit of repository gentoo: 49adcfd492edfb489290cc1e31a7013ae7e0e871
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-misc/pax-utils:        1.3.1::gentoo
app-shells/bash:           5.1_p8::gentoo
dev-lang/perl:             5.30.3::gentoo
dev-lang/python:           3.6.15::gentoo, 3.7.12_p1::gentoo, 3.8.12_p1::gentoo, 3.9.8::gentoo
dev-util/cmake:            3.20.5::gentoo
dev-util/meson:            0.59.4::gentoo
sys-apps/baselayout:       2.7::gentoo
sys-apps/openrc:           0.42.1::gentoo
sys-apps/sandbox:          2.20::gentoo
sys-devel/autoconf:        2.69-r5::gentoo
sys-devel/automake:        1.16.2-r1::gentoo
sys-devel/binutils:        2.35.2::gentoo, 2.37_p1::gentoo
sys-devel/binutils-config: 5.3.2::gentoo
sys-devel/gcc:             11.2.0::gentoo
sys-devel/gcc-config:      2.3.2-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.10::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/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"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="proxy_wstunnel proxy_html http2 cache_disk remoteip proxy_fcgi socache_shmcb unixd authn_core authz_core actions alias auth_form authn_dbd auth_digest auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi asis cern_meta charset_lite dbd dumpio ident imagemap log_forensic reqtimeout substitute version slotmem_shm xml2enc" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2" 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="pc" INPUT_DEVICES="libinput" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, 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, LANG, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Thomas Stein 2022-01-05 06:55:43 UTC
build.log obviousely to large. So here a link to paste.bin.

https://nopaste.fluffycloud.de/?5092731cab6042a5#MyTaSzbBNResDPGMsAQbvEw8kBV8AJdTxJkWNvSudce
Comment 2 Tomáš Mózes 2022-01-05 07:02:36 UTC
(In reply to Thomas Stein from comment #1)
> build.log obviousely to large. So here a link to paste.bin.
> 
> https://nopaste.fluffycloud.de/
> ?5092731cab6042a5#MyTaSzbBNResDPGMsAQbvEw8kBV8AJdTxJkWNvSudce

"This document will expire in 6 days." ;)
Comment 3 Tomáš Mózes 2022-01-05 07:04:09 UTC
Created attachment 761335 [details]
build.log.xz
Comment 4 Ionen Wolkens gentoo-dev 2022-01-06 23:03:57 UTC
Try to downgrade to stable doctest for now

emerge -1 ~dev-cpp/doctest-2.4.6
Comment 5 Ionen Wolkens gentoo-dev 2022-01-06 23:06:43 UTC
*** Bug 829250 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Stein 2022-01-07 06:26:09 UTC
Downgrading to dev-cpp/doctest-2.4.6 works. Thanks!
Comment 7 Ionen Wolkens gentoo-dev 2022-01-10 17:29:01 UTC
*** Bug 830891 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2022-01-10 17:42:19 UTC
The bug has been referenced in the following commit(s):

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

commit 6dbfcb026c30a8cadde714830a967310ecdfeac8
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-01-10 17:35:48 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-01-10 17:41:08 +0000

    mail-filter/rspamd: require <doctest-2.4.7 for now
    
    At least until the rspamd/doctest maintainers have a look at this.
    
    Also move to DEPEND as this is just a single .h file and doubt
    this is used as runtime (revbump is to update this).
    
    Bug: https://bugs.gentoo.org/830624
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 mail-filter/rspamd/{rspamd-3.1.ebuild => rspamd-3.1-r1.ebuild} | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Comment 9 Petr Vaněk gentoo-dev 2022-02-13 17:04:19 UTC
I git bisect both and problem have started to appear with these two commits:

doctest: 02af672f0d30 ("Fixes Issues #476 and #495")
rspamd:  d7fde715073a ("[Project] Add helper library to handle mime strings in a more safe matter")

I am not sure if this is rspamd bug, it looks more like doctest bug [1].

[1] https://github.com/doctest/doctest/issues/571
Comment 10 Larry the Git Cow gentoo-dev 2022-06-12 07:33:48 UTC
The bug has been closed via the following commit(s):

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

commit 53d6b83e6ea9e7d7bcf761400fd966a70078bb95
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-05-26 20:05:02 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-06-12 07:18:43 +0000

    mail-filter/rspamd: remove dev-cpp/doctest version restriction
    
    This was a bug in dev-cpp/doctest which was fixed in 2.4.8-r1 revbump in
    previous commit.
    
    Closes: https://bugs.gentoo.org/830624
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Closes: https://github.com/gentoo/gentoo/pull/25657
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 mail-filter/rspamd/rspamd-3.1-r2.ebuild | 2 +-
 mail-filter/rspamd/rspamd-3.2.ebuild    | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit 70fc26d37bf73f9a8d1730c1637009b20efc13ad
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-05-25 15:39:58 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-06-12 07:18:43 +0000

    dev-cpp/doctest: fix tests with move-only types
    
    This is a fix of a bug which affects mail-filter/rspamd-3.{1,2}. The
    patch is derived from upstream commit ce13bc44b99c ("Fix move-only types
    failing to decompose correctly (#634)").
    
    Upstream-PR: https://github.com/doctest/doctest/pull/634
    Bug: https://bugs.gentoo.org/830624
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 ...octest-2.4.8.ebuild => doctest-2.4.8-r1.ebuild} |  4 ++
 .../files/doctest-2.4.8-move-only-types-fix.patch  | 56 ++++++++++++++++++++++
 2 files changed, 60 insertions(+)