summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Langlois <pierre.langlois@gmx.com>2021-10-18 19:45:20 +0100
committerJonathan Brielmaier <jonathan.brielmaier@web.de>2021-10-18 20:32:21 +0000
commitfcab975d18c42be847d3b8cd907e20bfda7f551e (patch)
treee39490d4b63d9e3030b4bb4ba4ce3bb855745448
parent904e05f1365cc8ebf7be2b59263f430d373df0ef (diff)
nongnu: firefox: Update to 93.0.
* nongnu/packages/mozilla.scm (firefox): Update to 93.0. [arguments]: Add 'remove-cargo-frozen-flag phase. Unset PYTHON variable in 'configure phase. Set MOZBUILD_STATE_PATH variable in 'configure phase. [native-inputs]: Remove python-2. (%firefox-build-id): Increment. Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
-rw-r--r--nongnu/packages/mozilla.scm21
1 files changed, 14 insertions, 7 deletions
diff --git a/nongnu/packages/mozilla.scm b/nongnu/packages/mozilla.scm
index 0d0f402..6d090f1 100644
--- a/nongnu/packages/mozilla.scm
+++ b/nongnu/packages/mozilla.scm
@@ -83,19 +83,19 @@
83 83
84;; Update this id with every firefox update to it's release date. 84;; Update this id with every firefox update to it's release date.
85;; It's used for cache validation and therefor can lead to strange bugs. 85;; It's used for cache validation and therefor can lead to strange bugs.
86(define %firefox-build-id "20210923000000") 86(define %firefox-build-id "20211017000000")
87 87
88(define-public firefox 88(define-public firefox
89 (package 89 (package
90 (name "firefox") 90 (name "firefox")
91 (version "92.0.1") 91 (version "93.0")
92 (source 92 (source
93 (origin 93 (origin
94 (method url-fetch) 94 (method url-fetch)
95 (uri (string-append "https://archive.mozilla.org/pub/firefox/releases/" 95 (uri (string-append "https://archive.mozilla.org/pub/firefox/releases/"
96 version "/source/firefox-" version ".source.tar.xz")) 96 version "/source/firefox-" version ".source.tar.xz"))
97 (sha256 97 (sha256
98 (base32 "1c9yc3mfihzj00q9xf52xd65j6m74wv8zvsy1l49klic2qpb55lh")))) 98 (base32 "00kiz6hnwmz659cqndpalxhyj4jajd03b7r9hi5jig29b07hi3x7"))))
99 (build-system gnu-build-system) 99 (build-system gnu-build-system)
100 (arguments 100 (arguments
101 `(#:configure-flags 101 `(#:configure-flags
@@ -204,7 +204,15 @@
204 "third_party/rust" 204 "third_party/rust"
205 "toolkit" 205 "toolkit"
206 "xpcom/rust" 206 "xpcom/rust"
207 "services"))) 207 "services"))
208 #t)))
209 (add-after 'patch-cargo-checksums 'remove-cargo-frozen-flag
210 (lambda _
211 ;; Remove --frozen flag from cargo invokation, otherwise it'll
212 ;; complain that it's not able to change Cargo.lock.
213 ;; https://bugzilla.mozilla.org/show_bug.cgi?id=1726373
214 (substitute* "build/RunCbindgen.py"
215 (("\"--frozen\",") ""))
208 #t)) 216 #t))
209 (delete 'bootstrap) 217 (delete 'bootstrap)
210 (replace 'configure 218 (replace 'configure
@@ -213,8 +221,6 @@
213 "/bin/autoconf")) 221 "/bin/autoconf"))
214 (setenv "SHELL" (which "bash")) 222 (setenv "SHELL" (which "bash"))
215 (setenv "CONFIG_SHELL" (which "bash")) 223 (setenv "CONFIG_SHELL" (which "bash"))
216 (setenv "PYTHON" (string-append (assoc-ref inputs "python2")
217 "/bin/python"))
218 (setenv "MACH_USE_SYSTEM_PYTHON" "1") 224 (setenv "MACH_USE_SYSTEM_PYTHON" "1")
219 225
220 ;; Use Clang, Clang is 2x faster than GCC 226 ;; Use Clang, Clang is 2x faster than GCC
@@ -228,6 +234,8 @@
228 ;; reproducibility, so change it to a fixed date. 234 ;; reproducibility, so change it to a fixed date.
229 (setenv "MOZ_BUILD_DATE" ,%firefox-build-id) 235 (setenv "MOZ_BUILD_DATE" ,%firefox-build-id)
230 236
237 (setenv "MOZBUILD_STATE_PATH" (getcwd))
238
231 (let* ((mozconfig (string-append (getcwd) "/mozconfig")) 239 (let* ((mozconfig (string-append (getcwd) "/mozconfig"))
232 (out (assoc-ref outputs "out")) 240 (out (assoc-ref outputs "out"))
233 (flags (cons (string-append "--prefix=" out) 241 (flags (cons (string-append "--prefix=" out)
@@ -392,7 +400,6 @@
392 ("perl" ,perl) 400 ("perl" ,perl)
393 ("pkg-config" ,pkg-config) 401 ("pkg-config" ,pkg-config)
394 ("python" ,python) 402 ("python" ,python)
395 ("python2" ,python-2.7)
396 ("rust" ,rust-1.51) 403 ("rust" ,rust-1.51)
397 ("rust-cbindgen" ,rust-cbindgen-0.19) 404 ("rust-cbindgen" ,rust-cbindgen-0.19)
398 ("which" ,which) 405 ("which" ,which)