1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-14 14:36:39 +00:00

firefox: fix SIGBUS on Arm

This commit is contained in:
Jia Yuan Lo 2023-04-08 18:39:11 +08:00
parent a9cc865cee
commit ebf0ac3cc7
2 changed files with 18 additions and 0 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Mozilla Firefox web browser"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=111.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://ftp.mozilla.org/pub/firefox/releases/${TERMUX_PKG_VERSION}/source/firefox-${TERMUX_PKG_VERSION}.source.tar.xz
TERMUX_PKG_SHA256=e1006c0872aa7eb30fb5a689413957f1e5fc8d2048b1637bf6f6fafdbd4ea55f
# ffmpeg and pulseaudio are dependencies through dlopen(3):

View File

@ -0,0 +1,17 @@
Fix SIGBUS Firefox error on Arm. Also apply to other arches just in case.
https://github.com/termux/termux-packages/issues/15901
https://github.com/mozilla/gecko-dev/commit/d7ba2cef0e9b74addedda4bc7f57daf10599a5dc
https://github.com/google/cityhash/blob/master/src/city.cc
--- a/other-licenses/nsis/Contrib/CityHash/cityhash/city.cpp
+++ b/other-licenses/nsis/Contrib/CityHash/cityhash/city.cpp
@@ -33,7 +33,7 @@
using namespace std;
-#if __sparc__
+#if __sparc__ || __TERMUX__
#include <string.h>
static inline uint64 UNALIGNED_LOAD64(const char *p) {
uint64 val;