mail-client/thunderbird-68.1.1 fails to compile with dev-lang/rust-1.38.0. The error message shows a problem in third-party rust package cssparser: error[E0506]: cannot assign to `self.input.cached_token` because it is borrowed --> /var/tmp/portage.notmpfs/portage/mail-client/thunderbird-68.1.1/work/thunderbird-68.1.1/third_party/rust/cssparser/src/parser.rs:584:17 | 559 | pub fn next_including_whitespace_and_comments(&mut self) -> Result<&Token<'i>, BasicParseError<'i>> { | - let's call the lifetime of this reference `'1` ... 572 | Some(ref cached_token) | ---------------- borrow of `self.input.cached_token` occurs here ... 584 | self.input.cached_token = Some(CachedToken { | ^^^^^^^^^^^^^^^^^^^^^^^ assignment to borrowed `self.input.cached_token` occurs here ... 596 | Ok(token) | --------- returning this value requires that `self.input.cached_token.0` is borrowed for `'1` error: aborting due to previous error For more information about this error, try `rustc --explain E0506`. error: Could not compile `cssparser`. Reproducible: Always Steps to Reproduce: 1. Install dev-lang/rust-1.38.0 2. Install mail-client/thunderbird-68.1.1 Actual Results: Package fails to compile with error. Expected Results: Package should compile without error. # emerge --info '=mail-client/thunderbird-68.1.1::gentoo' Portage 2.3.69 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-8.3.0, glibc-2.29-r2, 5.3.1-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.3.1-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.6 KiB Mem: 24615936 total, 6144184 free KiB Swap: 35651564 total, 35533036 free Timestamp of repository gentoo: Sat, 28 Sep 2019 01:45:01 +0000 Head commit of repository gentoo: 26239ce942e73192e8e8c1716b058ba71461d92c sh bash 4.4_p23-r1 ld GNU ld (Gentoo 2.32 p2) 2.32.0 distcc 3.3.3 x86_64-pc-linux-gnu [enabled] ccache version 3.7.2 [disabled] app-shells/bash: 4.4_p23-r1::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.28.2-r1::gentoo dev-lang/python: 2.7.15::gentoo, 3.5.7::gentoo, 3.6.9::gentoo dev-util/ccache: 3.7.2::gentoo dev-util/cmake: 3.15.3::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.14.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 8.3.0-r1::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nehalem -mtune=nehalem -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mpopcnt -msse4.1 -msse4.2 -mfxsr -fstack-protector-strong -O3 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=nehalem -mtune=nehalem -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mpopcnt -msse4.1 -msse4.2 -mfxsr -fstack-protector-strong -O3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=y --jobs=8 --load-average=8" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 clean-logs config-protect-if-modified distcc distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.inode.at/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://mirror.netcologne.de/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/" LANG="de_DE.utf8" LC_ALL="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de" MAKEOPTS="-j89 -l8" 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" USE="X a52 aac acl acpi activities aio alsa amd64 avahi berkdb branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg flac fortran gallium gdbm gif glamor gphoto2 gpm gstreamer http2 iconv icu id3tag idn ipv6 jpeg kdbus kde kipi kwallet lastfm lcms ldap libnotify libtirpc lm-sensors lzma mad matroska mng mp3 mp4 mpeg mtp multilib musicbrainz ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pcsc-lite pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline samba sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis vpx vulkan webp widgets wxwidgets x264 x265 xattr xcb xcomposite xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= mail-client/thunderbird-68.1.1::gentoo was built with the following: USE="dbus gmp-autoupdate lightning pulseaudio startup-notification system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite system-webp -bindist -clang -custom-cflags -custom-optimization -debug -eme-free -hardened -jack -lto (-neon) (-pgo) (-selinux) -test -wayland -wifi" ABI_X86="(64)" CPU_FLAGS_X86="-avx2" L10N="de en-GB -ar -ast -be -bg -br -ca -cs -cy -da -el -es-AR -es-ES -et -eu -fi -fr -fy -ga -gd -gl -he -hr -hsb -hu -hy -id -is -it -ja -ko -lt -nb -nl -nn -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -sq -sr -sv -tr -uk -vi -zh-CN -zh-TW" CFLAGS="-march=nehalem -mtune=nehalem -fstack-protector-strong -pipe" CXXFLAGS="-march=nehalem -mtune=nehalem -fstack-protector-strong -pipe -flifetime-dse=1" FEATURES="binpkg-logs unmerge-orphans parallel-fetch config-protect-if-modified sfperms userpriv preserve-libs usersandbox multilib-strict fixlafiles ebuild-locks xattr unmerge-logs protect-owned strict binpkg-dostrip distlocks merge-sync news clean-logs usersync distcc assume-digests pid-sandbox sandbox network-sandbox userfetch ipc-sandbox unknown-features-warn binpkg-docompress" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-rpath=/usr/lib64/thunderbird,--enable-new-dtags -Wl,--compress-debug-sections=zlib"
Created attachment 591202 [details, diff] thunderbird-68.1.1-rust-1.38-compat.patch Patch that fixes the issue by applying upstream commit from cssparser <https://github.com/servo/rust-cssparser/commit/3c98d22c5de3b696bf1fde2b6c90069812312aa6> and correcting package checksum.
*** Bug 695792 has been marked as a duplicate of this bug. ***
Seeing this also with Thunderbird 60.8.0 Broken with Rust 1.38, downgrading to Rust 1.37 makes Thunderbird compile.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4260ed2376a20919ae2c77c7d3901e8bbcbc46f commit b4260ed2376a20919ae2c77c7d3901e8bbcbc46f Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2019-09-28 14:09:50 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-09-28 14:09:50 +0000 mail-client/thunderbird: fix build with >=rust-1.38.0 Bug: https://bugs.gentoo.org/695794 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> mail-client/thunderbird/Manifest | 2 +- mail-client/thunderbird/thunderbird-68.1.1.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfa9b2f33f710255716cdd302d0fde14bc03802c commit bfa9b2f33f710255716cdd302d0fde14bc03802c Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2019-09-28 14:29:27 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-09-28 14:29:27 +0000 www-client/firefox: fix build with >=rust-1.38.0 Closes: https://bugs.gentoo.org/695794 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> www-client/firefox/Manifest | 2 +- www-client/firefox/firefox-68.1.0.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
*** Bug 695894 has been marked as a duplicate of this bug. ***
*** Bug 695994 has been marked as a duplicate of this bug. ***
Building 60.9.0 with rust 1.38 fails still with same error as 60.8.0 did. The patch was not applied to 60.9.0, but only to 68.1.x?
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0da619fe8361a7b3e5a249fe28bec18f92203ec commit c0da619fe8361a7b3e5a249fe28bec18f92203ec Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2019-10-06 16:02:01 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-10-06 16:09:09 +0000 mail-client/thunderbird: fix build with >=rust-1.38.0 Bug: https://bugs.gentoo.org/695794 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> .../thunderbird-60.9.0-rust-1.38-compat.patch | 58 ++++++++++++++++++++++ mail-client/thunderbird/thunderbird-60.9.0.ebuild | 1 + 2 files changed, 59 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea36c2c249bbbe03b49eec6263c6fc63219efc9c commit ea36c2c249bbbe03b49eec6263c6fc63219efc9c Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2019-10-06 16:20:28 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-10-06 16:20:34 +0000 www-client/firefox: fix build with >=rust-1.38.0 Bug: https://bugs.gentoo.org/695794 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> .../files/firefox-60.9.0-rust-1.38-compat.patch | 58 ++++++++++++++++++++++ www-client/firefox/firefox-60.9.0.ebuild | 1 + 2 files changed, 59 insertions(+)
confirming patch worksforme now for 60.9.0 - thank you for the fast response!