www-client/firefox: don't use rustfmt
authorThomas Deutschmann <whissi@gentoo.org>
Thu, 25 Oct 2018 17:27:25 +0000 (19:27 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Thu, 25 Oct 2018 17:28:00 +0000 (19:28 +0200)
In addition, move eapply_user to the beginning of src_prepare to increase
the chance to apply upstream patches without the need for changes.

Closes: https://bugs.gentoo.org/669548
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
www-client/firefox/firefox-63.0.ebuild

index 78eee6a7e4e0d8a77dfd166def4a519e26bca001..3b7c9d2ecfdf930e6138ce0a12539567c6817d15 100644 (file)
@@ -180,6 +180,9 @@ src_unpack() {
 src_prepare() {
        eapply "${WORKDIR}/firefox"
 
+       # Allow user to apply any additional patches without modifing ebuild
+       eapply_user
+
        # Enable gnomebreakpad
        if use debug ; then
                sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \
@@ -221,8 +224,10 @@ src_prepare() {
        sed '/^MOZ_DEV_EDITION=1/d' \
                -i "${S}"/browser/branding/aurora/configure.sh || die
 
-       # Allow user to apply any additional patches without modifing ebuild
-       eapply_user
+       # rustfmt, a tool to format Rust code, is optional and not required to build Firefox.
+       # However, when available, an unsupported version can cause problems, bug #669548
+       sed -i -e "s@check_prog('RUSTFMT', add_rustup_path('rustfmt')@check_prog('RUSTFMT', add_rustup_path('rustfmt_do_not_use')@" \
+               "${S}"/build/moz.configure/rust.configure || die
 
        # Autotools configure is now called old-configure.in
        # This works because there is still a configure.in that happens to be for the