You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I compiled directly from the source code, in its latest version, however, I can't change the interface locale to PT-BR.
When I download the pre-compiled version, I can change it normally.
There must be something I'm missing during compilation.
Any clues?
I use Arch Linux, and the PKGBUILD I used is this:
Reproducible?
I have checked that this issue cannot be reproduced on Mozilla Firefox.
Version
Other
What platform are you seeing the problem on?
Linux
Relevant log output
# Three-stage profile-guided optimization:${_build_pgo:=false}# Profile with xvfb-run, if possible:${_build_pgo_xvfb:=false}
_pkgver=6.5.1
_pkgrel=1
pkgname=waterfox-2024
_pkgname=Waterfox
pkgver=${_pkgver%-*}
pkgrel=1
epoch=1
pkgdesc='Fork of Mozilla Firefox featuring some privacy, usability, and speed enhancements.'
arch=(x86_64)
license=('MPL-2.0')
url='https://www.waterfox.net/'
depends=(
gtk3
libxt
mime-types
dbus-glib
nss
ttf-font
)
makedepends=(
cbindgen
clang17
diffutils
dump_syms
imake
jack
lld
llvm17
mercurial
mesa
nasm
nodejs
python
unzip
wasi-compiler-rt
wasi-libc
wasi-libc++
wasi-libc++abi
xorg-server-xvfb
yasm
zip
)
optdepends=(
'libnotify: Notification integration''networkmanager: Location detection via available WiFi networks''pulseaudio: Audio support''speech-dispatcher: Text-to-Speech''xdg-desktop-portal: Screensharing with Wayland'
)
options=(!debug
!emptydirs
!lto
!makeflags
!strip)
backup=("usr/lib/waterfox-2024/waterfox.cfg""usr/lib/waterfox-2024/distribution/policies.json")
source=(
# "waterfox-$pkgver.tar.gz::https://github.com/WaterfoxCo/Waterfox/archive/refs/tags/$pkgver.tar.gz""Waterfox-current.zip::https://github.com/BrowserWorks/Waterfox/archive/refs/heads/current.zip""waterfox.desktop""rustup.sh""patch.patch"
)
sha256sums=('SKIP''SKIP''SKIP''SKIP')
# Select the method of profilingif [[ "${_build_pgo::1}"=="t" ]];thenif [[ "${_build_pgo_xvfb::1}"=="t" ]];then
makedepends+=(xorg-server-xvfb)
else
makedepends+=(weston xwayland-run)
fifiprepare() {
rm -rf "${srcdir}/mozbuild"
mkdir "${srcdir}/mozbuild"# Install rust 1.82 in $srcdir and preprend to pathexport RUSTUP_HOME="${srcdir}/rustup"export CARGO_HOME="${srcdir}/cargo"export RUSTUP_INIT_SKIP_PATH_CHECK=yes
sh "${srcdir}/rustup.sh" -q -y --no-modify-path --default-toolchain 1.82
export PATH="${srcdir}/cargo/bin:$PATH"cd Waterfox-current ||exit#tar xvf "$srcdir/locales.tar.gz" && cp -Rav "$srcdir/locales" "$srcdir/Waterfox-current/waterfox/browser/locales"#rm -Rfv "$srcdir/Waterfox-current/waterfox/browser/moz.build" && cp -v "$srcdir/moz.build" "$srcdir/Waterfox-current/waterfox/browser/moz.build"export PATH="/usr/lib/llvm17/bin:$PATH"export LD_LIBRARY_PATH=/usr/lib/llvm17/lib
export LDFLAGS="-Wl,-z,norelro,-O3,--sort-common,--as-needed,--relax,-z,combreloc,-z,global,--no-omagic -fno-exceptions"# patch -Np1 -i ../patch.patch
cat > ../mozconfig <<END#export LDFLAGS="-Wl,-z,norelro,-O3,--sort-common,--as-needed,--relax,-z,combreloc,-z,global,--no-omagic -fno-exceptions"# Build optionsac_add_options --disable-bootstrapac_add_options --disable-elf-hackac_add_options --enable-default-toolkit=cairo-gtk3ac_add_options --enable-hardening#ac_add_options --enable-linker=mold#ac_add_options --enable-linker=lddac_add_options --enable-releaseac_add_options --disable-rust-simdac_add_options --disable-wasm-simdac_add_options --prefix=/usr#ac_add_options --with-wasi-sysroot=/usr/share/wasi-sysroot# FIXME: Build/use wasi sysroot instead of disabling wasm libs sandboxac_add_options --without-wasm-sandboxed-libraries#ac_add_options --with-wasi-sysroot=/usr/share/wasi-sysrootexport MOZ_INCLUDE_SOURCE_INFO=1#export LDFLAGS="-Wl,-z,norelro,-O3,--sort-common,--as-needed,--relax,-z,combreloc,-z,global,--no-omagic -fno-exceptions"# Brandingac_add_options --allow-addon-sideloadac_add_options --enable-unverified-updatesac_add_options --with-app-name=waterfoxac_add_options --with-app-basename=Waterfoxac_add_options --with-branding=waterfox/browser/brandingac_add_options --enable-optimize="-O3 -msse2 -mfpmath=sse -march=native -mtune=native -fcolor-diagnostics -w -fno-exceptions"ac_add_options --with-distribution-id=org.archlinuxac_add_options --with-unsigned-addon-scopes=app,systemac_add_options --allow-addon-sideloadac_add_options --enable-application=browsermk_add_options MOZ_OBJDIR=${PWD@Q}/objexport MOZILLA_OFFICIAL=1export MOZ_APP_REMOTINGNAME=waterfoxexport MOZ_CRASHREPORTER=export MOZ_DATA_REPORTING=export MOZ_REQUIRE_SIGNING=export MOZ_SERVICES_HEALTHREPORT=export MOZ_TELEMETRY_REPORTING=# System librariesac_add_options --with-system-jpegac_add_options --with-system-libeventac_add_options --with-system-libvpxac_add_options --without-system-nsprac_add_options --without-system-nssac_add_options --with-system-webpac_add_options --with-system-zlibac_add_options --without-system-icu# Featuresac_add_options --disable-crashreporter # (Minimize telemetry)ac_add_options --disable-debugac_add_options --disable-debug-js-modulesac_add_options --disable-debug-symbolsac_add_options --disable-default-browser-agentac_add_options --disable-gpsdac_add_options --disable-necko-wifiac_add_options --disable-parental-controls # (Disable local/OS MTIM)ac_add_options --disable-rust-testsac_add_options --disable-synth-speechdac_add_options --disable-testsac_add_options --disable-updaterac_add_options --disable-warnings-as-errorsac_add_options --disable-webspeechac_add_options --disable-webspeechtestbackendac_add_options --enable-alsaac_add_options --enable-av1ac_add_options --enable-eme=widevineac_add_options --enable-jackac_add_options --enable-jxlac_add_options --enable-proxy-bypass-protectionac_add_options --enable-pulseaudioac_add_options --enable-rawac_add_options --disable-sandboxac_add_options --enable-stripac_add_options --disable-accessibilityac_add_options --disable-profilingac_add_options --disable-geckodriver# Optimizationac_add_options --enable-optimize=-O3ac_add_options --disable-lto#ac_add_options --enable-rust-debug# Other#export AR=llvm-ar-17#export CC=clang-17#export CXX=clang++-17#export NM=llvm-nm-17#export RANLIB=llvm-ranlib-17END
}
build() {
cd Waterfox-current
export MOZBUILD_STATE_PATH="$srcdir/mozbuild"export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=pip
export MOZ_ENABLE_FULL_SYMBOLS=0
export MOZ_NOSPAM=1
export MOZ_PROFILER_STARTUP=1 # Starts the profiler is started as early as possible during startup.# export LDFLAGS="-Wl,-z,norelro,-O3,--sort-common,--as-needed,--relax,-z,combreloc,-z,global,--no-omagic -fno-exceptions"# Fix DRI/zink issues during compilationexport LIBGL_ALWAYS_SOFTWARE=true
# Malloc_usable_size is used in various parts of the codebase
CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"# prevents references to $srcdir being included in error messages# some references still remain in libxul.so and omni.ja
CFLAGS+=" -ffile-prefix-map=$srcdir=."
CXXFLAGS+=" -ffile-prefix-map=$srcdir=."# suppress warnings
CFLAGS+=" -w -fno-exceptions"
CXXFLAGS+=" -w -fno-exceptions"# LTO needs more open files# ulimit -n 4096# Do 3-tier PGOif [[ "${_build_pgo::1}"=="t" ]];thenlocal _old_profdata="${SRCDEST:-$startdir}/merged.profdata"local _old_jarlog="${SRCDEST:-$startdir}/jarlog"# Restore old profileif [[ "${_build_pgo_reuse::1}"=="t" ]];thenif [[ -s"$_old_profdata" ]];thenecho"Restoring old profile data."
cp --reflink=auto -f "$_old_profdata" merged.profdata
fiif [[ -s"$_old_jarlog" ]];thenecho"Restoring old jar log."
cp --reflink=auto -f "$_old_jarlog" jarlog
fifi# Make new profileif [[ "${_build_pgo_reuse::1}"!="t" ]] || [[ !-s merged.profdata ]];thenecho"Building instrumented browser..."
cat > .mozconfig ../mozconfig
echo>> .mozconfig "ac_add_options --disable-profile-generate"
./mach build
echo"Profiling instrumented browser..."
./mach package
if [[ "${_build_pgo_xvfb::1}"=="t" ]];thenlocal _headless_run=(
xvfb-run
-s "-screen 0 1920x1080x24 -nolisten local"
)
elselocal _headless_run=(
wlheadless-run
-c weston --width=1920 --height=1080
)
fi
LLVM_PROFDATA=llvm-profdata JARLOG_FILE=${PWD@Q}/jarlog \
"${_headless_run[@]}" -- ./mach python build/pgo/profileserver.py
echo"Removing instrumented browser..."
./mach clobber
fiecho"Building optimized browser..."
cat > .mozconfig ../mozconfig
if [[ -s merged.profdata ]];then
stat -c "Profile data found (%s bytes)" merged.profdata
echo>> .mozconfig "ac_add_options --disable-profile-use"echo>> .mozconfig "ac_add_options --with-pgo-profile-path='${PWD@Q}/merged.profdata'"# save profdata for reuse
cp --reflink=auto -f merged.profdata "$_old_profdata"elseecho"Profile data not found."fiif [[ -s jarlog ]];then
stat -c "Jar log found (%s bytes)" jarlog
echo>> .mozconfig "ac_add_options --with-pgo-jarlog='${PWD@Q}/jarlog'"# save jarlog for reuse
cp --reflink=auto -f jarlog "$_old_jarlog"elseecho"Jar log not found."fi
./mach build
elseecho"Building browser..."
cat > .mozconfig ../mozconfig
./mach build
fiecho"Building symbol archive..."
./mach buildsymbols
}
package() {
cd Waterfox-current||exit
DESTDIR="$pkgdir" ./mach install
local vendorjs="${pkgdir}/usr/lib/waterfox/browser/defaults/preferences/vendor.js"
install -Dvm644 /dev/stdin "${vendorjs}"<<END// Use LANG environment variable to choose localepref("intl.locale.requested", "");// Use system-provided dictionariespref("spellchecker.dictionary_path", "/usr/share/hunspell");// Disable default browser checking.pref("browser.shell.checkDefaultBrowser", false);// Don't disable extensions in the application directorypref("extensions.autoDisableScopes", 11);// Enable GNOME Shell search providerpref("browser.gnome-search-provider.enabled", true);EOT local distini="$pkgdir/usr/lib/waterfox/distribution/distribution.ini" install -Dvm644 /dev/stdin "$distini" <<EOT[Global]id=archlinuxversion=1.0about=Waterfox for Arch Linux[Preferences]app.distributor=archlinuxapp.distributor.channel=waterfoxEOT local i theme=waterfox for i in 16 22 24 32 48 64 128 256; do install -Dvm644 browser/branding/$theme/default$i.png \ "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/waterfox.png" done install -Dvm644 browser/branding/$theme/content/about-logo.png \ "$pkgdir/usr/share/icons/hicolor/192x192/apps/waterfox.png" install -Dvm644 browser/branding/$theme/content/[email protected]\ "$pkgdir/usr/share/icons/hicolor/384x384/apps/waterfox.png" install -Dvm644 browser/branding/$theme/content/identity-icons-brand.svg \ "$pkgdir/usr/share/icons/hicolor/symbolic/apps/waterfox-symbolic.svg" install -Dvm644 ../waterfox.desktop \ "$pkgdir/usr/share/applications/waterfox.desktop" # Install a wrapper to avoid confusion about binary path install -Dvm755 /dev/stdin "$pkgdir/usr/bin/waterfox" <<EOT#!/usr/bin/env shexec /usr/lib/waterfox/waterfox "\$@"END# Replace duplicate binary with wrapper# https://bugzilla.mozilla.org/show_bug.cgi?id=658850
ln -srfv "$pkgdir/usr/bin/waterfox""$pkgdir/usr/lib/waterfox/waterfox-bin"# Use system certificateslocal nssckbi="$pkgdir/usr/lib/waterfox/libnssckbi.so"if [[ -e$nssckbi ]];then
ln -srfv "$pkgdir/usr/lib/libnssckbi.so""$nssckbi"fi
}
The text was updated successfully, but these errors were encountered:
What happened?
I compiled directly from the source code, in its latest version, however, I can't change the interface locale to PT-BR.
When I download the pre-compiled version, I can change it normally.
There must be something I'm missing during compilation.
Any clues?
I use Arch Linux, and the PKGBUILD I used is this:
Reproducible?
Version
Other
What platform are you seeing the problem on?
Linux
Relevant log output
The text was updated successfully, but these errors were encountered: