commit f752175ef9deb47e1b44b349c32fbd75b8434e92
Author: Jan Palus <[email protected]>
Date:   Tue Oct 18 20:47:45 2022 +0200

    fix build on aarch64
    
    for whatever reason new config_unix_aarch64.h config implies
    <sys/sysctl.h> is present even though it's long gone.

 aarch64-sysctl.patch | 11 +++++++++++
 firefox.spec         |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/firefox.spec b/firefox.spec
index e397826..742bb24 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -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
diff --git a/aarch64-sysctl.patch b/aarch64-sysctl.patch
new file mode 100644
index 0000000..b3545f1
--- /dev/null
+++ b/aarch64-sysctl.patch
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/firefox.git/commitdiff/f752175ef9deb47e1b44b349c32fbd75b8434e92

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to