tce-load -i compiletc autoconf2.13 cbindgen dbus-glib-dev gtk3-dev gtk2-dev libnotify-dev node-dev nss-dev alsa-dev startup-notification-dev zip unzip icu70-dev libevent-dev libwebp1-dev clang llvm-dev libXt-dev curl-dev yasm nasm libvpx18-dev wget https://archive.mozilla.org/pub/firefox/releases/91.5.1esr/source/firefox-91.5.1esr.source.tar.xz wget https://www.linuxfromscratch.org/patches/blfs/svn/firefox-91.5.1esr-buildfix-1.patch wget https://www.linuxfromscratch.org/patches/blfs/svn/firefox-91.5.1esr-disable_rust_test-1.patch cd firefox-91.5.1 cp mozconfig ./ patch -Np1 -i ../firefox-91.5.1esr-disable_rust_test-1.patch patch -Np1 -i ../firefox-91.5.1esr-buildfix-1.patch sudo ln -s /tmp/tcloop/nss-dev/usr/local/include/nss/* /usr/local/include export CC="gcc" CXX="g++" export MACH_USE_SYSTEM_PYTHON=1 export MOZBUILD_STATE_PATH=${PWD}/mozbuild ./mach build [2h 17m 35s] sudo MACH_USE_SYSTEM_PYTHON=1 ./mach install sudo mkdir -pv /usr/local/share/applications sudo mkdir -pv /usr/local/share/pixmaps MIMETYPE="text/xml;text/mml;application/xhtml+xml" MIMETYPE="$MIMETYPE;application/xhtml+xml;application/vnd.mozilla.xul+xml" MIMETYPE="$MIMETYPE;x-scheme-handler/http;x-scheme-handler/https" sudo cat > /usr/local/share/applications/firefox.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=Firefox Web Browser Comment=Browse the World Wide Web GenericName=Web Browser Exec=firefox %u Terminal=false Type=Application Icon=firefox Categories=GNOME;GTK;Network;WebBrowser; MimeType=$MIMETYPE StartupNotify=true EOF unset MIMETYPE