Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911589 - app-antivirus/clamav-1.1.0: fail to find rust
Summary: app-antivirus/clamav-1.1.0: fail to find rust
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 907799
Blocks:
  Show dependency tree
 
Reported: 2023-08-02 08:35 UTC by LABBE Corentin
Modified: 2024-06-24 09:58 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,32.72 KB, text/x-log)
2023-08-02 08:36 UTC, LABBE Corentin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LABBE Corentin 2023-08-02 08:35:15 UTC
when merging clamav, configure say it cannot find rust
-- Rust tool `cargo` found: /usr/bin/cargo, 1.69.0
-- Rust tool `rustc` not found: Failed to determine version.
-- Rust tool `rustup` not found.
-- Rust tool `rust-gdb` not found: Failed to determine version.
-- Rust tool `rust-lldb` not found: Failed to determine version.
-- Rust tool `rustdoc` not found: Failed to determine version.
-- Rust tool `rustfmt` not found.
-- Rust tool `bindgen` not found.
CMake Error at cmake/FindRust.cmake:433 (string):
  string sub-command STRIP requires two arguments.
Call Stack (most recent call first):
  CMakeLists.txt:137 (find_package)


Reproducible: Always




Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1/no-multilib/hardened/selinux, gcc-12, glibc-2.37-r3, 5.15.75-gentoo x86_64)
=================================================================
System uname: Linux-5.15.75-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_N2800_@_1.86GHz-with-glibc2.37
KiB Mem:     4019308 total,   1020140 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 02 Aug 2023 01:30:01 +0000
Head commit of repository gentoo: d90c3cccf3e2cb6245a8b64f411ed85b6fc4d8c0
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.36.1-r3::gentoo
dev-lang/python:           3.10.12::gentoo, 3.11.4::gentoo
dev-lang/rust-bin:         1.69.0-r1::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sec-policy/selinux-base:   2.20221101-r4::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.38-r2::gentoo, 2.39-r5::gentoo, 2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             11.3.1_p20230120-r1::gentoo, 12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::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
sys-libs/libselinux:       3.5-r1::gentoo
Repositories:

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

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE freedist intel-ucode linux-firmware linux-fw-redistributable unRAR"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
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="-O2 -pipe -march=native"
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 multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2"
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="amd64 audit bzip2 caps cli crypt dri hardened iconv ipv6 libtirpc ncurses nptl pam pcre pie readline seccomp selinux split-usr ssl ssp test-rust unicode verify-sig xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="access_compat alias authn_core authz_core authz_host cgi deflate dir expires filter headers include log_config mime proxy proxy_http socache_shmcb status unixd version" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="apache cpu cpufreq df disk hddtemp interface iptables irq load memory network ntpd processes sensors syslog uptime users" CPU_FLAGS_X86="mmx sse mmxext sse2 sse3 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" 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-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_10 python3_11" RUBY_TARGETS="ruby31" UWSGI_PLUGINS="logfile http corerouter router_http" 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, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, 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 LABBE Corentin 2023-08-02 08:36:28 UTC
Created attachment 866837 [details]
build.log
Comment 2 Matt Jolly gentoo-dev 2023-08-10 01:08:05 UTC
Big thanks to genr8eofl for reproducing this issue and identifying the root cause.

Rust pre-1.70 has an executable stack which is disallowed by selinux:

https://github.com/rust-lang/rust/issues/105783

Try running with rust-bin >= 1.71 (which is already in-tree) and report back please!
Comment 3 LABBE Corentin 2023-08-14 13:32:34 UTC
with dev-lang/rust-bin-1.71.1 everything is working. thanks
Comment 4 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=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(-)