]> git.pld-linux.org Git - packages/firefox.git/commitdiff
fix build on aarch64
authorJan Palus <atler@pld-linux.org>
Tue, 18 Oct 2022 18:47:45 +0000 (20:47 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 18 Oct 2022 18:47:45 +0000 (20:47 +0200)
for whatever reason new config_unix_aarch64.h config implies
<sys/sysctl.h> is present even though it's long gone.

aarch64-sysctl.patch [new file with mode: 0644]
firefox.spec

diff --git a/aarch64-sysctl.patch b/aarch64-sysctl.patch
new file mode 100644 (file)
index 0000000..b3545f1
--- /dev/null
@@ -0,0 +1,11 @@
+--- firefox-106.0/media/ffvpx/config_unix_aarch64.h.orig       2022-10-10 18:05:25.000000000 +0200
++++ firefox-106.0/media/ffvpx/config_unix_aarch64.h    2022-10-18 20:18:40.655546208 +0200
+@@ -329,7 +329,7 @@
+ #define HAVE_SLEEP 0
+ #define HAVE_STRERROR_R 1
+ #define HAVE_SYSCONF 1
+-#define HAVE_SYSCTL 1
++#define HAVE_SYSCTL 0
+ #define HAVE_USLEEP 1
+ #define HAVE_UTGETOSTYPEFROMSTRING 0
+ #define HAVE_VIRTUALALLOC 0
index e397826b884d9c37efd18bf0c4691760119e05b2..742bb2406e32265ed576c178daf562981f361d06 100644 (file)
@@ -257,6 +257,7 @@ Source196:  https://releases.mozilla.org/pub/firefox/releases/%{version}/linux-i6
 Source197:     https://releases.mozilla.org/pub/firefox/releases/%{version}/linux-i686/xpi/zh-TW.xpi
 # Source197-md5:       de11ece098f9cbca048bbec6b3654c6f
 Patch0:                x86-flags.patch
+Patch1:                aarch64-sysctl.patch
 Patch4:                %{name}-prefs.patch
 Patch5:                %{name}-pld-bookmarks.patch
 Patch6:                %{name}-no-subshell.patch
@@ -2120,6 +2121,7 @@ unpack() {
 %setup -q %(seq -f '-a %g' 100 197 | xargs)
 
 %patch0 -p1
+%patch1 -p1
 %patch4 -p1
 %patch5 -p1
 %patch6 -p2
This page took 0.061726 seconds and 4 git commands to generate.