forked from ports/contrib
firefox: 74.0.1 -> 75.0
This commit is contained in:
parent
3902b3b45b
commit
e0eadb4246
@ -37,6 +37,7 @@ drwxr-xr-x root/root usr/lib/firefox/gtk2/
|
||||
-rwxr-xr-x root/root usr/lib/firefox/libmozavutil.so
|
||||
-rwxr-xr-x root/root usr/lib/firefox/libmozgtk.so
|
||||
-rwxr-xr-x root/root usr/lib/firefox/libmozsandbox.so
|
||||
-rwxr-xr-x root/root usr/lib/firefox/libmozsqlite3.so
|
||||
-rwxr-xr-x root/root usr/lib/firefox/libxul.so
|
||||
-rw-r--r-- root/root usr/lib/firefox/omni.ja
|
||||
-rwxr-xr-x root/root usr/lib/firefox/pingsender
|
||||
|
@ -1,6 +1,7 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF327o86nT8hwV0SVl1pIaLhnbJV48D98shedJn3gya/Hng+pScG3W6RvRSfG9rFeYh4EkacBjJ6lAm/W9WltUtQo=
|
||||
SHA256 (Pkgfile) = 62858318a5d07ffaca7451d298ebca44c874b0deffe7da93af5aa861f70ac434
|
||||
SHA256 (.footprint) = 86f515e06c6ae8299130b0acc59c958069cbef8b1f492f2d28b172dc3822b836
|
||||
SHA256 (firefox-74.0.1.source.tar.xz) = 62e4297b682fad1ea50d8e32fc51c811169f8edec8d12d2aab0ea60b3197f011
|
||||
RWSagIOpLGJF376UBZwv6BYV6JuyRL8jnRNXfVaZFtqbKl/rRHhCKCS8h1iYDvR7cD27rFca1PNkNHKbn0Qn0CRPl/sh1sjg3gU=
|
||||
SHA256 (Pkgfile) = 373363dded4c117d099b6fc90818062a047111d34a5e8f98ac22b8d39330b775
|
||||
SHA256 (.footprint) = 9df33aad85e11ded757ac494b9d53f882cade01f805dacc3b52e1ed602436bbb
|
||||
SHA256 (firefox-75.0.source.tar.xz) = bbb1054d8f2717c634480556d3753a8483986af7360e023bb6232df80b746b0f
|
||||
SHA256 (firefox.desktop) = 8ba3439f3dfc5cab883641969c93d8d15f8f20d7188d9568346b2edad52d6f91
|
||||
SHA256 (fix-unicode-errors.patch) = 47fa576aa3e2dcb1f1d48fa504893bcbe31e7a5fef7c1f2e84570a2692c6794d
|
||||
|
@ -1,21 +1,31 @@
|
||||
# Description: The Mozilla Firefox browser with Alsa support
|
||||
# URL: https://www.mozilla.com/firefox/
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Depends on: alsa-lib autoconf-2.13 cbindgen clang dbus-glib gtk libidl libnotify libxkbcommon nodejs nss unzip xorg-libxt yasm zip
|
||||
# Depends on: alsa-lib autoconf-2.13 cbindgen clang dbus-glib gtk libidl libnotify libxkbcommon nodejs nss unzip xorg-libxt yasm zip python
|
||||
# Optional: sccache
|
||||
|
||||
name=firefox
|
||||
version=74.0.1
|
||||
version=75.0
|
||||
release=1
|
||||
source=(https://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.xz
|
||||
firefox.desktop)
|
||||
firefox.desktop
|
||||
fix-unicode-errors.patch)
|
||||
|
||||
build() {
|
||||
cd firefox-$version
|
||||
|
||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1532169
|
||||
patch -p1 -i $SRC/fix-unicode-errors.patch
|
||||
|
||||
if [ $(/usr/bin/python -c "import sys; print sys.stdout.encoding") = 'UTF-8' ]; then
|
||||
printf "\e[031mError: set an UTF-8 locale to compile this!\033[0m\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -e '/usr/bin/ccache' ]; then
|
||||
export OS_CCACHE_COMPILERCHECK="$(/usr/bin/clang -dumpversion | sed -z 's/\n/ /g'; crux | cut -d' ' -f3)"
|
||||
export CCACHE_COMPILERCHECK="string:$OS_CCACHE_COMPILERCHECK"
|
||||
PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')
|
||||
fi
|
||||
|
||||
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
||||
@ -37,7 +47,6 @@ cat <<- EOF > .mozconfig
|
||||
ac_add_options --enable-av1
|
||||
ac_add_options --enable-system-ffi
|
||||
ac_add_options --enable-system-pixman
|
||||
ac_add_options --enable-system-sqlite
|
||||
ac_add_options --enable-alsa
|
||||
ac_add_options --enable-optimize
|
||||
ac_add_options --disable-debug-symbols
|
||||
@ -53,9 +62,12 @@ cat <<- EOF > .mozconfig
|
||||
ac_add_options --disable-gconf
|
||||
EOF
|
||||
|
||||
[[ -e '/usr/bin/ccache' ]] && echo 'ac_add_options --enable-ccache' >> .mozconfig
|
||||
|
||||
export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib
|
||||
export MOZ_MAKE_FLAGS="-j ${JOBS-1}"
|
||||
export MOZBUILD_STATE_PATH="$PKGMK_SOURCE_DIR/.mozbuild"
|
||||
export MOZ_NOSPAM=1
|
||||
|
||||
./mach build
|
||||
#./mach build toolkit/library/rust
|
||||
|
12
firefox/fix-unicode-errors.patch
Normal file
12
firefox/fix-unicode-errors.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -pruN firefox-75.0.orig/python/mozbuild/mozbuild/controller/building.py firefox-75.0/python/mozbuild/mozbuild/controller/building.py
|
||||
--- firefox-75.0.orig/python/mozbuild/mozbuild/controller/building.py 2020-04-10 14:06:41.934514666 +1000
|
||||
+++ firefox-75.0/python/mozbuild/mozbuild/controller/building.py 2020-04-10 14:11:07.421260179 +1000
|
||||
@@ -586,7 +586,7 @@ class TerminalLoggingHandler(logging.Han
|
||||
if self.footer:
|
||||
self.footer.clear()
|
||||
|
||||
- self.fh.write(msg)
|
||||
+ self.fh.write(msg.encode("utf-8"))
|
||||
self.fh.write('\n')
|
||||
|
||||
if self.footer:
|
Loading…
x
Reference in New Issue
Block a user