Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934385 - dependency resolution oddities involving www-client/firefox-127.0, dev-lang/rust-1.78.0
Summary: dependency resolution oddities involving www-client/firefox-127.0, dev-lang/r...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 934917 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-06-16 02:44 UTC by Greg Kubaryk
Modified: 2024-07-01 14:26 UTC (History)
13 users (show)

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


Attachments
firefox-115.12.0 with rust-bin disabled (firefox-error.txt.gz,105.42 KB, application/gzip)
2024-06-30 04:52 UTC, Daiajo Tibdixious
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Kubaryk 2024-06-16 02:44:33 UTC
details to follow in next comment

Portage 3.0.65-4+g19e750b68 (python 3.12.4-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-14, glibc-2.39-r9, 6.9.3 x86_64)
=================================================================
System uname: Linux-6.9.3-x86_64-AMD_Ryzen_7_4700U_with_Radeon_Graphics-with-glibc2.39
KiB Mem:    15737152 total,    287524 free
KiB Swap:   33554428 total,  32489212 free
Timestamp of repository gentoo: Sat, 15 Jun 2024 05:30:00 +0000
Head commit of repository gentoo: 1d03c3c3f2a135377fcfcae80c85231bd77b291d
Timestamp of repository trolltoo: Fri, 14 Jun 2024 12:36:11 +0000
Head commit of repository trolltoo: 6d4f50d2990b2679b40d2fc4e16e923bbfd2352f

sh bash 5.2_p26-r4
ld GNU ld (Gentoo 2.42 p3) 2.42.0
ccache version 4.10 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r4::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.4_p1::gentoo, 3.13.0_beta2_p1::gentoo
dev-lang/rust-bin:         1.78.0::gentoo
dev-util/ccache:           4.10-r1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.7::gentoo
sys-devel/gcc:             14.1.1_p20240518::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.7::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r9::gentoo
Repositories:

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

meow
    location: /var/db/repos/meow
    masters: gentoo
    volatile: True

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

Binary Repositories:

purr
    sync-uri: http://192.168.5.55:8080

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--verbose-slot-rebuilds=n"
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 binpkg-request-signature binpkg-signing buildpkg buildpkg-live config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted 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 -march=native"
GENTOO_MIRRORS="https://kurly.net/gentoo-dist/ http://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j8"
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="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dist-kernel dri dts dvd dvdr elogind encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls offensive ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp sixel sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" 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="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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu radeonsi radeon" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, 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 Greg Kubaryk 2024-06-16 02:45:25 UTC
kurly@meow ~ $ emerge -pvuDU @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 25.67 s (backtrack: 2/20).


Total: 0 packages, Size of downloads: 0 KiB

!!! The following update(s) have been skipped due to unsatisfied dependencies
!!! triggered by backtracking:

www-client/firefox:rapid



kurly@meow ~ $ emerge -puv www-client/firefox:rapid

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 4.13 s (backtrack: 0/20).

[ebuild  N     ] dev-lang/rust-1.77.1:stable/1.77::gentoo  USE="(-big-endian) -clippy -debug -dist -doc (-llvm-libunwind) -lto (-miri) -nightly (-parallel-compiler) -profiler -rust-analyzer -rust-src -rustfmt -system-bootstrap -system-llvm -test -verify-sig -wasm" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARC -ARM -AVR -BPF -CSKY -DirectX -Hexagon -Lanai -LoongArch -M68k -MSP430 -Mips -NVPTX -PowerPC -RISCV -SPIRV -Sparc -SystemZ -VE -WebAssembly -XCore -Xtensa" 314,631 KiB
[ebuild     UD ] virtual/rust-1.77.1:0/llvm-17::gentoo [1.78.0:0/llvm-18::gentoo] USE="-profiler -rustfmt" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild     U  ] www-client/firefox-127.0:rapid::gentoo [126.0.1:rapid::gentoo] USE="X clang dbus gmp-autoupdate jumbo-build pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp telemetry wayland -debug -eme-free -geckodriver -hardened -hwaccel -jack -libproxy -lto -openh264 -pgo (-selinux) -sndio -system-png (-valgrind) -wifi" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fur -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" LLVM_SLOT="17 -18%" 545,758 KiB

Total: 3 packages (1 upgrade, 1 downgrade, 1 new), Size of downloads: 860,388 KiB



kurly@meow ~ $ emerge -pv dev-lang/rust

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.57 s (backtrack: 0/20).

[ebuild  N     ] dev-lang/rust-1.78.0:stable/1.78::gentoo  USE="(-big-endian) -clippy -debug -dist -doc (-llvm-libunwind) -lto (-miri) -nightly (-parallel-compiler) -profiler -rust-analyzer -rust-src -rustfmt -system-bootstrap -system-llvm -test -verify-sig -wasm" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARC -ARM -AVR -BPF -CSKY -DirectX -Hexagon -Lanai -LoongArch -M68k -MSP430 -Mips -NVPTX -PowerPC -RISCV -SPIRV -Sparc -SystemZ -VE -WebAssembly -XCore -Xtensa" 310,091 KiB

Total: 1 package (1 new), Size of downloads: 310,091 KiB



kurly@meow ~ $ emerge -pv dev-lang/rust-bin

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.48 s (backtrack: 0/20).

[ebuild   R    ] dev-lang/rust-bin-1.78.0:stable::gentoo  USE="(-big-endian) -clippy -doc (-prefix) -profiler -rust-analyzer -rust-src -rustfmt -verify-sig" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" 160,118 KiB

Total: 1 package (1 reinstall), Size of downloads: 160,118 KiB



kurly@meow ~ $ emerge -pv virtual/rust

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.45 s (backtrack: 0/20).

[ebuild   R    ] virtual/rust-1.78.0:0/llvm-18::gentoo  USE="-profiler -rustfmt" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB



$ emerge -p -uvDU @world --backtrack=0

These are the packages that would be merged, in order:

Calculating dependencies  .. ... done!
Dependency resolution took 8.63 s (backtrack: 0/0).

[ebuild  N     ] dev-lang/rust-1.77.1:stable/1.77::gentoo  USE="(-big-endian) -clippy -debug -dist -doc (-llvm-libunwind) -lto (-miri) -nightly (-parallel-compiler) -profiler -rust-analyzer -rust-src -rustfmt -system-bootstrap -system-llvm -test -verify-sig -wasm" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARC -ARM -AVR -BPF -CSKY -DirectX -Hexagon -Lanai -LoongArch -M68k -MSP430 -Mips -NVPTX -PowerPC -RISCV -SPIRV -Sparc -SystemZ -VE -WebAssembly -XCore -Xtensa" 314,631 KiB
[ebuild     UD ] virtual/rust-1.77.1:0/llvm-17::gentoo [1.78.0:0/llvm-18::gentoo] USE="-profiler -rustfmt" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild     U  ] www-client/firefox-127.0:rapid::gentoo [126.0.1:rapid::gentoo] USE="X clang dbus gmp-autoupdate jumbo-build pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp telemetry wayland -debug -eme-free -geckodriver -hardened -hwaccel -jack -libproxy -lto -openh264 -pgo (-selinux) -sndio -system-png (-valgrind) -wifi" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fur -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" LLVM_SLOT="17 -18%" 545,758 KiB

Total: 3 packages (1 upgrade, 1 downgrade, 1 new), Size of downloads: 860,388 KiB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

virtual/rust:0

  (virtual/rust-1.78.0-1:0/llvm-18::gentoo, installed) USE="-profiler -rustfmt" ABI_X86="(64) -32 (-x32)" pulled in by
    =virtual/rust-1.78.0 required by (sys-apps/ripgrep-all-0.10.6-1:0/0::gentoo, installed) USE="-debug" ABI_X86="(64)"
    ^             ^^^^^^                                                                                                
    >=virtual/rust-1.77.2 required by (sys-apps/fd-10.1.0-1:0/0::gentoo, installed) USE="-debug" ABI_X86="(64)"
    ^^             ^^^^^^                                                                                       
    (and 11 more with the same problems)

  (virtual/rust-1.77.1:0/llvm-17::gentoo, ebuild scheduled for merge) USE="-profiler -rustfmt" ABI_X86="(64) -32 (-x32)" pulled in by
    virtual/rust:0/llvm-17 required by (www-client/firefox-127.0:rapid/rapid::gentoo, ebuild scheduled for merge) USE="X clang dbus gmp-autoupdate jumbo-build pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp telemetry wayland -debug -eme-free -geckodriver -hardened -hwaccel -jack -libproxy -lto -openh264 -pgo (-selinux) -sndio -system-png (-valgrind) -wifi" ABI_X86="(64)" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fur -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" LLVM_SLOT="17 -18"
                ^^^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    =virtual/rust-1.77.1 required by (www-client/firefox-127.0:rapid/rapid::gentoo, ebuild scheduled for merge) USE="X clang dbus gmp-autoupdate jumbo-build pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp telemetry wayland -debug -eme-free -geckodriver -hardened -hwaccel -jack -libproxy -lto -openh264 -pgo (-selinux) -sndio -system-png (-valgrind) -wifi" ABI_X86="(64)" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fur -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" LLVM_SLOT="17 -18"
    ^             ^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

NOTE: Use the '--verbose-conflicts' option to display parents omitted above

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-16 02:51:08 UTC
Seeing this too. It started when Rust 1.78 was added to ::gentoo...
Comment 3 cyrillic 2024-06-16 13:11:09 UTC
You need LLVM_SLOT="18" in order to work with rust-1.78
Comment 4 Joonas Niilola gentoo-dev 2024-06-16 13:25:04 UTC
I think the problem is that if you have rust-bin installed, portage offers to install rust(-source) instead of downgrading that -bin. And then the build fails because your previously installed rust doesn't match what Firefox's build system requires, even though it's installed.

In theory what portage does is correct, but it makes an awful user experience.
Comment 5 cyrillic 2024-06-16 13:44:36 UTC
I have mentioned this before, but please make rust and rust-bin block each other.

This will make for a vastly improved user experience.
Comment 6 Zac Medico gentoo-dev 2024-06-16 18:52:22 UTC
(In reply to cyrillic from comment #5)
> I have mentioned this before, but please make rust and rust-bin block each
> other.
> 
> This will make for a vastly improved user experience.

I agree it's not an optimal default configuration, but users can mask dev-lang/rust in /etc/portage/package.mask if it causes issues like this. I've masked it myself recently. The mask beneficial in the sense that it reduces the search space for dependency calculations so that there is less need for backtracking.

There's a related package.prefer idea that was proposed but never implemented for GLEP 37:

https://www.gentoo.org/glep/glep-0037.html#overrides
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-16 21:52:49 UTC
(In reply to cyrillic from comment #5)
> I have mentioned this before, but please make rust and rust-bin block each
> other.
> 
> This will make for a vastly improved user experience.

No, it won't, as Portage doesn't backtrack around blockers, and it's not the real fix anyway. The real fix is to properly slot dev-lang/rust (and dev-lang/rust-bin, I don't remember if it is) so that multiple versions of virtual/rust and dev-lang/rust can be installed, and ebuilds can then pick which they need.

i.e. the real issue is that virtual/rust being satisfied isn't actually sufficient at all, so ebuilds have to try do hacks around it.
Comment 8 cyrillic 2024-06-20 13:26:02 UTC
(In reply to Sam James from comment #7)

> i.e. the real issue is that virtual/rust being satisfied isn't actually
> sufficient at all, so ebuilds have to try do hacks around it.

When 2 different versions of rustc are installed, only one of them can match the version of virtual/rust. The other one is simply dead weight, and should be removed to avoid problems.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-20 13:29:32 UTC
I'm not disagreeing on the problem (I'm one of the big advocates of fixing this properly), I'm saying a blocker wouldn't actually help.
Comment 10 Mike Gilbert gentoo-dev 2024-06-26 14:40:30 UTC
*** Bug 934917 has been marked as a duplicate of this bug. ***
Comment 11 Neil 2024-06-29 08:17:16 UTC
I've encountered this problem too and did some fiddling.

I noticed...

dev-lang/rust-bin:stable

  (dev-lang/rust-bin-1.79.0:stable/stable::gentoo, installed) USE="(-big-endian) -clippy -doc (-prefix) -profiler -rust-analyzer -rust-src -rustfmt -verify-sig" CPU_FLAGS_X86="sse2" pulled in by
    ~dev-lang/rust-bin-1.79.0[profiler?,rustfmt?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (virtual/rust-1.79.0:0/llvm-18::gentoo, installed) USE="-profiler -rustfmt"
    ^                  ^^^^^^                                                                                                                                                                                                                                                                                                                                          

  (dev-lang/rust-bin-1.77.1:stable/stable::gentoo, ebuild scheduled for merge) USE="(-big-endian) -clippy -doc (-prefix) -profiler -rust-analyzer -rust-src -rustfmt -verify-sig" CPU_FLAGS_X86="sse2" pulled in by
    ~dev-lang/rust-bin-1.77.1[profiler?,rustfmt?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (virtual/rust-1.77.1:0/llvm-17::gentoo, ebuild scheduled for merge) USE="-profiler -rustfmt"


...and so gave the following a whirl...

LLVM_SLOT=18 emerge -uDUav @world 


...and it resolved the blocks.

Obviously its not the same as resolving rust v rust-bin but wondered if this was a sensible thing to do?
Comment 12 cyrillic 2024-06-29 17:44:39 UTC
(In reply to Sam James from comment #7)

> ... so that multiple versions of
> virtual/rust and dev-lang/rust can be installed, and ebuilds can then pick
> which they need.

I support what you are trying to do here, but it sounds like a whole lotta work to coordinate all the variables when ebuilds start to look like this :

LLVM_COMPAT=( {16..18} )
RUST_COMPAT=( rust-1.71/llvm-16 rust-1.{73..77}/llvm-17 rust-1.{78,79}/llvm-18 )
Comment 13 Daiajo Tibdixious 2024-06-30 04:52:59 UTC
Created attachment 896638 [details]
firefox-115.12.0 with rust-bin disabled

I'm not sure this is useful.
I put firefox-115.12.0.ebuild in my own repo, removed rust-bin and this was sufficient to get past the portage blockage. However it fails mysteriosly in the compile phase:
 1:24.89 gmake[4]: *** [/var/tmp/portage/www-client/firefox-115.12.0/work/firefox-115.12.0/config/makefiles/rust.mk:443: force-cargo-library-build] Error 101
 1:24.89 gmake[3]: *** [/var/tmp/portage/www-client/firefox-115.12.0/work/firefox-115.12.0/config/recurse.mk:72: toolkit/library/rust/target] Error 2
 1:35.21 gmake[2]: *** [/var/tmp/portage/www-client/firefox-115.12.0/work/firefox-115.12.0/config/recurse.mk:34: compile] Error 2
 1:35.22 gmake[1]: *** [/var/tmp/portage/www-client/firefox-115.12.0/work/firefox-115.12.0/config/rules.mk:361: default] Error 2
 1:35.22 gmake: *** [client.mk:60: build] Error 2
Looking at the log I did not see any actual compile errors.