dev-lang/rust-1.23-r1[extended] now provides /usr/bin/cargo but firefox-58 pulls dev-util/cargo despite My workaround in /etc/portage/profile/package.provided: dev-util/cargo-0.24.0
Currently: mozconfig-v6.58.eclass: >=virtual/rust-1.19.0 dev-util/cargo www-client/firefox-58.0: >=virtual/rust-1.21.0 >=dev-util/cargo-0.22.0 Probably these dependencies should be unified in mozconfig-v6.58.eclass. virtual/rust has no "extended" USE flag. In the meantime, mozconfig-v6.58.eclass could contain: || ( ( >=dev-lang/rust-1.21.0 >=dev-util/cargo-0.22.0 ) >=dev-lang/rust-1.21.0[extended] ( >=dev-lang/rust-bin-1.21.0 >=dev-util/cargo-0.22.0 ) ) A better long-term solution for specifying such dependencies maybe will be implemented as solution for bug #645498.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e06f388a5c544c4a2ec148a57e4603ff926d9bff commit e06f388a5c544c4a2ec148a57e4603ff926d9bff Author: Ian Stakenvicius <axs@gentoo.org> AuthorDate: 2018-01-30 03:55:02 +0000 Commit: Ian Stakenvicius <axs@gentoo.org> CommitDate: 2018-01-30 03:57:23 +0000 www-client/firefox: bump to 58.0.1 for security bug 646080 Also surpressed notify-send to hopefully prevent OOM sandbox violations, enabled verbose build output, moved rust dependency atoms to mozconfig.eclass, and expanded the rust atoms to include rust[extended] per Arfrever's suggestions in bug 646078 Bug: http://bugs.gentoo.org/646080 Bug: http://bugs.gentoo.org/646078 Package-Manager: Portage-2.3.13, Repoman-2.3.3 eclass/mozconfig-v6.58.eclass | 13 +- www-client/firefox/Manifest | 184 ++++++++++----------- .../{firefox-58.0.ebuild => firefox-58.0.1.ebuild} | 12 +- 3 files changed, 104 insertions(+), 105 deletions(-)}
I'm going to mark this as RESO/FIXED for now but will revisit the solution depending on the results of bug 645498.
(In reply to Ian Stakenvicius from comment #3) > but will revisit the solution depending on the results of bug 645498. Trying to reopen: Now that virtual/cargo does exist, it would be nice if www-client/firefox would depend on it: With the current dependency of www-client/firefox-61.0-r1, portage blocks the upgrade to >=dev-lang/rust-1.27.1-r2, because the new rust ebuilds no longer have USE=extended (but instead separate USE-flags like USE=cargo).
With current firefox-60.2-r2
(In reply to Jan Henke from comment #5) > With current firefox-60.2-r2 Sorry that was incomplete. With current firefox-60.2.ebuild Firefox still pulls in dev-utils/cargo directly, making it impossible to switch to a different provider of that util. Please update the ebuilds to depend on the virtual instead.
*** Bug 665618 has been marked as a duplicate of this bug. ***
*** Bug 665620 has been marked as a duplicate of this bug. ***
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bdeaa7fceb519062fd2cc6517489c69c86d3016 commit 8bdeaa7fceb519062fd2cc6517489c69c86d3016 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2018-09-22 12:36:40 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2018-09-23 01:30:31 +0000 www-client/firefox: use virtual/{rust,cargo} Bug: https://bugs.gentoo.org/646078 Package-Manager: Portage-2.3.49, Repoman-2.3.10 www-client/firefox/firefox-62.0.2.ebuild | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
(In reply to Larry the Git Cow from comment #9) >>> Failed to emerge www-client/firefox-62.0.2 0:04.28 ERROR: Rust compiler not found. 0:04.28 To compile rust language sources, you must have 'rustc' in your path.
(In reply to Manfred Knick from comment #10) > >>> Failed to emerge www-client/firefox-62.0.2 > 0:04.28 ERROR: Rust compiler not found. > 0:04.28 To compile rust language sources, you must have 'rustc' in your > path. Please check your system, > # emerge -p www-client/firefox > > These are the packages that would be merged, in order: > > Calculating dependencies .... done! > [ebuild N ] sys-devel/llvm-common-7.0.0::gentoo 27.661 KiB > [ebuild N ] x11-misc/util-macros-1.19.2-r1::gentoo 83 KiB > [ebuild N ] dev-libs/libpthread-stubs-0.4-r1::gentoo ABI_X86="(64) -32 (-x32)" 57 KiB > [ebuild N ] net-libs/http-parser-2.8.1:0/2.8.0::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 50 KiB > [ebuild N ] app-arch/zip-3.0-r3::gentoo USE="bzip2 crypt unicode -natspec" 1.258 KiB > [ebuild N ] app-dicts/myspell-de-2015.12.28::gentoo 23.753 KiB > [ebuild N ] app-dicts/myspell-en-20170501::gentoo 5.826 KiB > [ebuild R ] media-libs/libpng-1.6.35-r1:0/16::gentoo USE="apng* (-neon) -static-libs" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse" 11 KiB > [ebuild N ] dev-libs/libbsd-0.9.1::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 379 KiB > [ebuild N ] x11-themes/hicolor-icon-theme-0.17::gentoo 52 KiB > [ebuild N ] app-eselect/eselect-opengl-1.3.1-r4::gentoo 3 KiB > [ebuild N ] app-eselect/eselect-rust-0.3_pre20150428::gentoo 64 KiB > [ebuild N ] x11-base/xorg-proto-2018.4::gentoo 483 KiB > [ebuild N ] dev-python/markupsafe-1.0::gentoo PYTHON_TARGETS="python2_7 python3_6 python3_7 -pypy -pypy3 -python3_4 -python3_5" 15 KiB > [ebuild N ] dev-python/mako-1.0.7::gentoo USE="-doc -test" PYTHON_TARGETS="python2_7 python3_6 python3_7 -pypy -pypy3 -python3_4 -python3_5" 552 KiB > [ebuild NS ] app-text/docbook-xml-dtd-4.4-r2:4.4::gentoo [4.1.2-r6:4.1.2::gentoo, 4.2-r2:4.2::gentoo, 4.5-r1:4.5::gentoo] 94 KiB > [ebuild NS ] app-text/docbook-xml-dtd-4.3-r1:4.3::gentoo [4.1.2-r6:4.1.2::gentoo, 4.2-r2:4.2::gentoo, 4.5-r1:4.5::gentoo] 82 KiB > [ebuild N ] app-text/xmlto-0.0.28-r1::gentoo USE="-latex -text" 125 KiB > [ebuild NS ] sys-devel/autoconf-2.13:2.1::gentoo [2.69-r4:2.69::gentoo] 434 KiB > [ebuild N ] dev-libs/nspr-4.20::gentoo USE="-debug" ABI_X86="(64) -32 (-x32)" 1.115 KiB > [ebuild N ] app-text/hunspell-1.6.2-r1:0/1.6::gentoo USE="ncurses nls readline -static-libs" L10N="de en -af -bg -ca -cs -cy -da -de-1901 -el -eo -es -et -fo -fr -ga -gl -he -hr -hu -ia -id -is -it -kk -km -ku -lt -lv -mi -mk -ms -nb -nl -nn -pl -pt -pt-BR -ro -ru -sk -sl -sq -sv -sw -tn -uk -zu" 705 KiB > [ebuild N ] media-libs/alsa-lib-1.1.6-r1::gentoo USE="thread-safety -alisp -debug -doc -python" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_4 -python3_5" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5" 967 KiB > [ebuild N ] virtual/ffmpeg-9-r2::gentoo USE="encode threads -X -gsm -jpeg2k -libav -mp3 -opus -sdl -speex -theora -truetype -vaapi -vdpau -x264" 0 KiB > [ebuild N ] dev-util/gdbus-codegen-2.56.2-r1::gentoo PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_4 -python3_5 -python3_7" PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_4 -python3_5" 0 KiB > [ebuild N ] x11-libs/xtrans-1.3.5::gentoo USE="-doc" 183 KiB > [ebuild N ] sys-apps/dbus-1.12.10::gentoo USE="-X -debug -doc -elogind (-selinux) -static-libs -systemd -test -user-session" ABI_X86="(64) -32 (-x32)" 2.025 KiB > [ebuild N ] dev-libs/nss-3.39::gentoo USE="nss-pem -cacert -utils" ABI_X86="(64) -32 (-x32)" 22.536 KiB > [ebuild N ] media-fonts/font-util-1.3.1::gentoo 150 KiB > [ebuild N ] x11-libs/libXau-1.0.8-r1::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 289 KiB > [ebuild N ] x11-libs/libXdmcp-1.1.2-r2::gentoo USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 324 KiB > [ebuild N ] x11-libs/libxshmfence-1.3-r1::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 302 KiB > [ebuild N ] x11-base/xcb-proto-1.13::gentoo ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5" 149 KiB > [ebuild N ] sys-devel/llvm-7.0.0:7::gentoo USE="libffi ncurses -debug -doc -exegesis -gold -libedit -test -xar -xml" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" 119 KiB > [ebuild N ] x11-libs/libICE-1.0.9-r2::gentoo USE="ipv6 -doc -static-libs" ABI_X86="(64) -32 (-x32)" 376 KiB > [ebuild N ] x11-libs/libxcb-1.13:0/1.12::gentoo USE="-doc (-selinux) -static-libs -test -xkb" ABI_X86="(64) -32 (-x32)" 499 KiB > [ebuild N ] sys-libs/libomp-7.0.0::gentoo USE="-cuda -hwloc -offload -ompt -test" ABI_X86="(64) -32 (-x32)" 890 KiB > [ebuild N ] x11-libs/libX11-1.6.6::gentoo USE="ipv6 -doc -static-libs -test" ABI_X86="(64) -32 (-x32)" 2.288 KiB > [ebuild N ] dev-libs/atk-2.28.1::gentoo USE="introspection nls -test" ABI_X86="(64) -32 (-x32)" 696 KiB > [ebuild N ] x11-libs/libSM-1.2.2-r2::gentoo USE="ipv6 uuid -doc -static-libs" ABI_X86="(64) -32 (-x32)" 341 KiB > [ebuild N ] app-accessibility/at-spi2-core-2.26.2:2::gentoo USE="introspection -X" ABI_X86="(64) -32 (-x32)" 483 KiB > [ebuild N ] gnome-base/gsettings-desktop-schemas-3.24.1::gentoo USE="introspection" 624 KiB > [ebuild N ] x11-libs/libXext-1.3.3-r1::gentoo USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 381 KiB > [ebuild N ] x11-libs/libXfixes-5.0.3-r1::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 288 KiB > [ebuild N ] x11-libs/libXrender-0.9.10-r1::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 302 KiB > [ebuild N ] dev-util/gtk-update-icon-cache-3.24.0::gentoo 364 KiB > [ebuild N ] x11-libs/libXt-1.1.5-r1::gentoo USE="-static-libs -test" ABI_X86="(64) -32 (-x32)" 754 KiB > [ebuild N ] app-accessibility/at-spi2-atk-2.26.2:2::gentoo USE="-test" ABI_X86="(64) -32 (-x32)" 316 KiB > [ebuild N ] x11-themes/gnome-themes-standard-3.22.3::gentoo 2.837 KiB > [ebuild N ] x11-libs/libXdamage-1.1.4-r2::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 273 KiB > [ebuild N ] x11-libs/libXcomposite-0.4.4-r2::gentoo USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 278 KiB > [ebuild N ] x11-libs/libXrandr-1.5.1-r1::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 309 KiB > [ebuild N ] x11-libs/libXi-1.7.9-r1::gentoo USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 475 KiB > [ebuild N ] x11-libs/libXcursor-1.1.15::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 324 KiB > [ebuild N ] x11-libs/libXxf86vm-1.1.4-r1::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 289 KiB > [ebuild R ] x11-libs/cairo-1.14.12::gentoo USE="X* glib svg (-aqua) -debug (-gles2) -opengl -static-libs -valgrind -xcb" ABI_X86="(64) -32 (-x32)" 0 KiB > [ebuild N ] sys-devel/clang-7.0.0:7::gentoo USE="static-analyzer -debug -default-compiler-rt -default-libcxx -doc -test -xml (-z3)" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" PYTHON_TARGETS="python2_7" 13.130 KiB > [ebuild N ] sys-devel/clang-common-7.0.0::gentoo 0 KiB > [ebuild N ] sys-libs/compiler-rt-7.0.0:7.0.0::gentoo USE="clang -test" 1.773 KiB > [ebuild N ] sys-libs/compiler-rt-sanitizers-7.0.0:7.0.0::gentoo USE="clang -test" 0 KiB > [ebuild N ] sys-devel/clang-runtime-7.0.0:7.0.0::gentoo USE="compiler-rt openmp sanitize -crt -libcxx" ABI_X86="(64) -32 (-x32)" 0 KiB > [ebuild N ] dev-lang/rust-1.28.0-r1:stable/1.28::gentoo USE="jemalloc -cargo -debug -doc -libressl -rls -rustfmt -wasm" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore" 195.370 KiB > [ebuild N ] virtual/rust-1.28.0::gentoo 0 KiB > [ebuild N ] dev-util/cargo-0.29.0::gentoo USE="-debug -doc -libressl" 23.344 KiB > [ebuild N ] virtual/cargo-1.28.0::gentoo 0 KiB > [ebuild N ] x11-libs/libdrm-2.4.94::gentoo USE="-libkms -valgrind" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="intel -amdgpu (-exynos) (-freedreno) -nouveau (-omap) -radeon (-tegra) (-vc4) (-vivante) -vmware" 810 KiB > [ebuild N ] media-libs/mesa-18.2.0-r1::gentoo USE="classic dri3 egl gallium gbm llvm -d3d9 -debug -gles1 -gles2 -lm_sensors -opencl -osmesa -pax_kernel -pic (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan -wayland -xa -xvmc" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="intel (-freedreno) -i915 -i965 (-imx) -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -virgl (-vivante) -vmware" 11.066 KiB > [ebuild N ] media-libs/libepoxy-1.5.2::gentoo USE="X -test" ABI_X86="(64) -32 (-x32)" 318 KiB > [ebuild N ] virtual/opengl-7.0-r2::gentoo ABI_X86="(64) -32 (-x32)" 0 KiB > [ebuild N ] x11-libs/gtk+-3.24.1:3::gentoo USE="X introspection (-aqua) -broadway -cloudprint -colord -cups -examples -test -vim-syntax -wayland -xinerama" ABI_X86="(64) -32 (-x32)" 18.856 KiB > [ebuild N ] x11-themes/adwaita-icon-theme-3.26.1::gentoo USE="-branding" 20.244 KiB > [ebuild N ] virtual/freedesktop-icon-theme-0-r3::gentoo 0 KiB > [ebuild N ] x11-libs/gtk+-2.24.32-r1:2::gentoo USE="introspection (-aqua) -cups -examples -test -vim-syntax -xinerama" ABI_X86="(64) -32 (-x32)" 12.339 KiB > [ebuild N ] x11-themes/gtk-engines-adwaita-3.22.3::gentoo ABI_X86="(64) -32 (-x32)" 0 KiB > [ebuild N ] www-client/firefox-62.0.2::gentoo USE="gmp-autoupdate screenshot -bindist -clang -custom-cflags -custom-optimization -dbus -debug -eme-free -geckodriver -hardened -hwaccel -jack -lto (-neon) -pulseaudio (-selinux) -startup-notification -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite -test -wifi" L10N="de -ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW" 253.240 KiB > > Total: 74 packages (69 new, 3 in new slots, 2 reinstalls), Size of downloads: 653.690 KiB As you can see, www-client/firefox-62.0.2 will still pull in rust. In other words: Changes due to this bug report shouldn't cause your problem.
(In reply to Thomas Deutschmann from comment #11) Only applying usual updates, both =www-client/firefox-62.0-r1:0 =www-client/firefox-62.0.2:0 fail to emerge with identical error mentioned above. $ equery list "*rust*" "*firefox*" [IP-] [ ] app-eselect/eselect-rust-0.3_pre20150428:0 [IP-] [ ] dev-lang/rust-1.28.0-r1:stable/1.28 <----- [IP-] [ ] virtual/rust-1.28.0:0 [IP-] [ ] www-client/firefox-62.0-r1:0 Manually enforcing installation of =dev-lang/rust-bin-1.28.0-r1:stable , <----- ! both versions succeed to emerge / install /run. After # emerge -aC rust-bin , both versions fail again.
(In reply to Larry the Git Cow from comment #9) > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=8bdeaa7fceb519062fd2cc6517489c69c86d3016 Rust and Cargo are quite certainly needed by Firefox with each libc. So I suggest: - elibc_glibc? ( - virtual/cargo - virtual/rust - ) - elibc_musl? ( - virtual/cargo - virtual/rust - ) + virtual/cargo + virtual/rust
(ADDENDUM to comments #10 and #12) WORKSFORME: emerge -aC virtual/rust virtual/cargo rust cargo eselect-rust emerge -auDN ... system world emerge -a -1 ... firefox Guess: Hickup around preceding https://bugs.gentoo.org/664484#c6 ff. ? Aftermath difficult to investigate, now :-(
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3f854675f4ec758e7cc6ce7d00e215575e5b5eb commit e3f854675f4ec758e7cc6ce7d00e215575e5b5eb Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2018-09-27 16:13:20 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2018-09-27 16:19:18 +0000 virtual/cargo: amd64 & x86 stable Bug: https://bugs.gentoo.org/646078 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> Package-Manager: Portage-2.3.50, Repoman-2.3.11 virtual/cargo/cargo-1.25.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31e553e6286724c6486fcbabe1902d551e1682cc commit 31e553e6286724c6486fcbabe1902d551e1682cc Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2018-09-27 16:12:44 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2018-09-27 16:19:16 +0000 virtual/cargo: adding virtual for stable cargo-0.26.0 Bug: https://bugs.gentoo.org/646078 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> Package-Manager: Portage-2.3.50, Repoman-2.3.11 virtual/cargo/cargo-1.25.0.ebuild | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d7d67562dfc8734534b7df669d06a0caabc4078 commit 0d7d67562dfc8734534b7df669d06a0caabc4078 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2018-09-27 14:44:40 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2018-09-27 16:19:07 +0000 mozconfig-v6.60.eclass: backport rust and cargo dep fix Based on commit 8bdeaa7fceb519062fd2cc6517489c69c86d3016. Bug: https://bugs.gentoo.org/646078 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> eclass/mozconfig-v6.60.eclass | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
All done.
Updating to firefox-63.0.3 on my system, configuration fails: 0:04.68 checking for rustc... /usr/bin/rustc 0:04.69 checking for cargo... not found 0:04.87 checking rustc version... 1.30.1 0:04.87 ERROR: Cargo package manager not found. 0:04.87 To compile Rust language sources, you must have 'cargo' in your path. 0:04.87 See https://www.rust-lang.org/ for more information. 0:04.87 0:04.87 You can install cargo by running './mach bootstrap' 0:04.87 or by directly running the installer from https://rustup.rs/ 0:04.87 0:04.90 *** Fix above errors and then restart with\ 0:04.90 "/usr/bin/gmake -f client.mk build" 0:04.90 gmake: *** [client.mk:127: configure] Error 1 * ERROR: www-client/firefox-63.0.3::gentoo failed (configure phase): * (no error message)
That's probably just another instance of bug 671182. Run `sudo eselect rust set rust-1.30.1` and everything should work.
After updating @world, the problem was solved. Sorry for the noise.
*** Bug 663370 has been marked as a duplicate of this bug. ***