Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911402 - >=app-antivirus/clamav-1.1.0: x86 builds with USE=system-mspack fail tests and may result in false negatives when unpacking chm/cab files
Summary: >=app-antivirus/clamav-1.1.0: x86 builds with USE=system-mspack fail tests an...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matt Jolly
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 911108
  Show dependency tree
 
Reported: 2023-07-29 05:31 UTC by Joonas Niilola
Modified: 2024-03-04 23:16 UTC (History)
6 users (show)

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


Attachments
clamav-1.1.0:20230729-052443.log (clamav-1.1.0:20230729-052443.log,555.57 KB, text/plain)
2023-07-29 05:32 UTC, Joonas Niilola
Details
LastTest.log (LastTest.log,108.32 KB, text/plain)
2023-07-29 05:32 UTC, Joonas Niilola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Niilola gentoo-dev 2023-07-29 05:31:49 UTC
Portage 3.0.49 (python 3.11.4-final-0, default/linux/x86/17.0, gcc-12, glibc-2.37-r3, 6.1.41-gentoo i686)
=================================================================
System uname: Linux-6.1.41-gentoo-i686-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.37
KiB Mem:   131792480 total, 129756464 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 29 Jul 2023 04:46:38 +0000
Head commit of repository gentoo: 1a1e7660c99c9fcae28588c47f42f42ae3272413

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/python:           3.11.4::gentoo
dev-lang/rust-bin:         1.69.0-r1::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

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

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-continue --autounmask-use=y --autounmask-write --binpkg-changed-deps=y --buildpkg-exclude virtual/* --buildpkg-exclude acct-* --buildpkg-exclude sys-kernel/* --complete-graph --nospinner --jobs=12 --usepkg"
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=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install 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="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="https://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS=" en en_US en-US fi sv "
MAKEOPTS="-j32"
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"
USE="acl bzip2 cli crypt dbus dri elogind fortran gdbm iconv ipv6 libtirpc ncurses nptl openmp openrc pam pcre readline seccomp split-usr ssl test-rust udev unicode x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias 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" 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" 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" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en_US en-US fi sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu 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, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Joonas Niilola gentoo-dev 2023-07-29 05:32:06 UTC
Created attachment 866532 [details]
clamav-1.1.0:20230729-052443.log
Comment 2 Joonas Niilola gentoo-dev 2023-07-29 05:32:26 UTC
Created attachment 866533 [details]
LastTest.log
Comment 3 Matt Jolly gentoo-dev 2023-07-31 07:05:58 UTC
Repro'd in a chroot; clamav on x86 is failing to detect clamav test files. Raised bug upstream.
Comment 4 Matt Jolly gentoo-dev 2023-08-16 09:45:26 UTC
I've added a system-mspack USE and masked that on `x86` for now until I have time to dig into what's happening.

I don't know why it doesn't seem broken anywhere else. My suspicion is that it has something to do with the vendored version using a clamav-provided cmake config and the system version... not?

I still don't know enough about why this failure occurs and won't have time to dig into it for a while, so this will have to do.

For the adventurous, you should be able to repro this by toggling `system-mspack` in an x86 chroot.
Comment 5 Thomas Raschbacher gentoo-dev 2023-08-17 06:23:10 UTC
gonna check 1.0.2 later hopefully
Comment 6 Larry the Git Cow gentoo-dev 2023-08-24 23:25:38 UTC
The bug has been referenced in the following commit(s):

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

commit 30cb49e18236b008e3b92af3a6294e05d1048f04
Author:     Matt Jolly <Matt.Jolly@footclan.ninja>
AuthorDate: 2023-08-18 10:55:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-24 23:24:53 +0000

    app-antivirus/clamav: add 1.0.2-r1
    
    - update rust dependency
    - add USE=`system-mspack`
    - add py3.12; drop py3.9
    
    Bug: https://bugs.gentoo.org/911402
    Bug: https://bugs.gentoo.org/911589
    Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-antivirus/clamav/clamav-1.0.2-r1.ebuild | 381 ++++++++++++++++++++++++++++
 1 file changed, 381 insertions(+)

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

commit 5f71a5c41dd8ddf91e93931edd89a314b28ce515
Author:     Matt Jolly <Matt.Jolly@footclan.ninja>
AuthorDate: 2023-08-16 09:04:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-24 23:24:52 +0000

    profiles/arch/x86: mask USE=system-mspack for clamav
    
    Bug: https://bugs.gentoo.org/911402
    Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja>
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/x86/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)

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

commit 9bf0d743d96a432b16331ad9474a1d296166ada1
Author:     Matt Jolly <Matt.Jolly@footclan.ninja>
AuthorDate: 2023-08-16 08:58:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-24 23:24:52 +0000

    app-antivirus/clamav: package maintenance
    
    - fix failing build
    - add USE=system-mspack
    - Bump minimum rust version
    
    Closes: https://bugs.gentoo.org/912178
    Bug: https://bugs.gentoo.org/911402
    Bug: https://bugs.gentoo.org/911589
    Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-antivirus/clamav/clamav-1.2.0_rc.ebuild | 15 +++++++--------
 app-antivirus/clamav/metadata.xml           |  6 +++---
 2 files changed, 10 insertions(+), 11 deletions(-)
Comment 7 matoro archtester 2024-01-14 23:04:24 UTC
This reproduces on ppc and arm also, so likely affects all 32-bit platforms.
Comment 8 Matt Jolly gentoo-dev 2024-03-02 09:05:34 UTC
Thanks Matoro, I'll get it masked until we have a chance to work out the root cause.
Comment 9 Larry the Git Cow gentoo-dev 2024-03-02 10:15:49 UTC
The bug has been referenced in the following commit(s):

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

commit 54a5a2bd26cce897108b27562f4545046315ffea
Author:     Matt Jolly <kangie@gentoo.org>
AuthorDate: 2024-03-02 10:12:46 +0000
Commit:     Matt Jolly <kangie@gentoo.org>
CommitDate: 2024-03-02 10:15:22 +0000

    profiles/arch/arm: mask app-antivirus/clamav[system-mspack]
    
    Bug: https://bugs.gentoo.org/911402
    Signed-off-by: Matt Jolly <kangie@gentoo.org>

 profiles/arch/arm/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)

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

commit 056ec6c89f9a974079a7b5a3051e3c22174aa627
Author:     Matt Jolly <kangie@gentoo.org>
AuthorDate: 2024-03-02 10:10:56 +0000
Commit:     Matt Jolly <kangie@gentoo.org>
CommitDate: 2024-03-02 10:15:21 +0000

    profiles/arch/powerpc/ppc32: mask app-antivirus/clamav[system-mspack]
    
    Bug: https://bugs.gentoo.org/911402
    Signed-off-by: Matt Jolly <kangie@gentoo.org>

 profiles/arch/powerpc/ppc32/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)