summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Volf <~@wolfsden.cz>2023-12-19 17:25:47 +0100
committerJonathan Brielmaier <jonathan.brielmaier@web.de>2023-12-21 12:37:27 +0100
commit75541ecc299ad884e1e9dc04e8d4a347bfe40cbf (patch)
tree05778fb8095f1f306e9f555042dfbe8128db60ce
parent5d308347ca094d045dcc932540262f5f60c63eed (diff)
nongnu: firefox: Update to 121.0 [security fixes].
Fixes CVE-2023-6135, CVE-2023-6856, CVE-2023-6857, CVE-2023-6858, CVE-2023-6859, CVE-2023-6860, CVE-2023-6861, CVE-2023-6863, CVE-2023-6864, CVE-2023-6865, CVE-2023-6866, CVE-2023-6867, CVE-2023-6868, CVE-2023-6869, CVE-2023-6870, CVE-2023-6871, CVE-2023-6872, CVE-2023-6873. Firefox 121.0 uses Wayland now by default when available on Linux: https://www.mozilla.org/en-US/firefox/121.0/releasenotes/ * nongnu/packages/mozilla.scm (firefox): Update to 121.0. (firefox/wayland): Remove variable and deprecate the package. Co-authored-by: Ada Stevenson <adanskana@gmail.com> Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
-rw-r--r--nongnu/packages/mozilla.scm44
1 files changed, 6 insertions, 38 deletions
diff --git a/nongnu/packages/mozilla.scm b/nongnu/packages/mozilla.scm
index 63d87e9..a207db2 100644
--- a/nongnu/packages/mozilla.scm
+++ b/nongnu/packages/mozilla.scm
@@ -532,20 +532,20 @@ MOZ_ENABLE_WAYLAND=1 exec ~a $@\n"
532 532
533;; Update this id with every firefox update to its release date. 533;; Update this id with every firefox update to its release date.
534;; It's used for cache validation and therefore can lead to strange bugs. 534;; It's used for cache validation and therefore can lead to strange bugs.
535(define %firefox-build-id "20231129224408") 535(define %firefox-build-id "20231218153158")
536 536
537(define-public firefox 537(define-public firefox
538 (package 538 (package
539 (inherit firefox-esr) 539 (inherit firefox-esr)
540 (name "firefox") 540 (name "firefox")
541 (version "120.0.1") 541 (version "121.0")
542 (source 542 (source
543 (origin 543 (origin
544 (method url-fetch) 544 (method url-fetch)
545 (uri (string-append "https://archive.mozilla.org/pub/firefox/releases/" 545 (uri (string-append "https://archive.mozilla.org/pub/firefox/releases/"
546 version "/source/firefox-" version ".source.tar.xz")) 546 version "/source/firefox-" version ".source.tar.xz"))
547 (sha256 547 (sha256
548 (base32 "1qlsjpiwgr17bd0dphshs6dj23889m7h3sfq8j21b0282hmbprvn")))) 548 (base32 "193al259awzfi5c3pf8257p8qr9i4biapx9bw8ijmzr3klasbizd"))))
549 (arguments 549 (arguments
550 (substitute-keyword-arguments (package-arguments firefox-esr) 550 (substitute-keyword-arguments (package-arguments firefox-esr)
551 ((#:phases phases) 551 ((#:phases phases)
@@ -562,38 +562,6 @@ MOZ_ENABLE_WAYLAND=1 exec ~a $@\n"
562 "Full-featured browser client built from Firefox source tree, without 562 "Full-featured browser client built from Firefox source tree, without
563the official icon and the name \"firefox\"."))) 563the official icon and the name \"firefox\".")))
564 564
565(define-public firefox/wayland 565;; As of Firefox 121.0, Firefox uses Wayland by default. This means we no longer need a seperate package
566 (package 566;; for Firefox on Wayland.
567 (inherit firefox) 567(deprecated-package "firefox-wayland" firefox)
568 (name "firefox-wayland")
569 (native-inputs '())
570 (inputs
571 `(("bash" ,bash-minimal)
572 ("firefox" ,firefox)))
573 (build-system trivial-build-system)
574 (arguments
575 '(#:modules ((guix build utils))
576 #:builder
577 (begin
578 (use-modules (guix build utils))
579 (let* ((bash (assoc-ref %build-inputs "bash"))
580 (firefox (assoc-ref %build-inputs "firefox"))
581 (out (assoc-ref %outputs "out"))
582 (exe (string-append out "/bin/firefox")))
583 (mkdir-p (dirname exe))
584
585 (call-with-output-file exe
586 (lambda (port)
587 (format port "#!~a
588MOZ_ENABLE_WAYLAND=1 exec ~a $@\n"
589 (string-append bash "/bin/bash")
590 (string-append firefox "/bin/firefox"))))
591 (chmod exe #o555)
592
593 ;; Provide the manual and .desktop file.
594 (copy-recursively (string-append firefox "/share")
595 (string-append out "/share"))
596 (substitute* (string-append
597 out "/share/applications/firefox.desktop")
598 ((firefox) out))
599 #t))))))