gnu: librewolf: Fix broken context menu.

This patch fixes a reported bug where context (right-click) menus contain many
duplicate and incorrect entries.

* gnu/packages/librewolf.scm (librewolf)
[phases] <neuter-genai>: Reinstate the genai browser component.

Change-Id: I288545ce80b9a7e854edfc26a7ffe43433303458
This commit is contained in:
Ian Eure 2024-10-05 09:19:10 -07:00 committed by Maxim Cournoyer
parent a950a89d2f
commit daaba6ac16
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -212,7 +212,7 @@ (define rust-librewolf rust) ; 1.75 is the default in Guix, 1.65 is the minimum.
;; Update this id with every update to its release date. ;; Update this id with every update to its release date.
;; It's used for cache validation and therefore can lead to strange bugs. ;; It's used for cache validation and therefore can lead to strange bugs.
;; ex: date '+%Y%m%d%H%M%S' ;; ex: date '+%Y%m%d%H%M%S'
(define %librewolf-build-id "20240922110507") (define %librewolf-build-id "20241003201141")
(define-public librewolf (define-public librewolf
(package (package
@ -324,9 +324,6 @@ (define (write-setting key value)
libavcodec))))) libavcodec)))))
(add-after 'unpack 'neuter-genai (add-after 'unpack 'neuter-genai
(lambda* _ (lambda* _
;; Don't compile the code in.
(substitute* "browser/components/moz.build"
(("\"genai\",") ""))
;; Lock the preferences so they can't be enabled. ;; Lock the preferences so they can't be enabled.
(substitute* "lw/librewolf.cfg" (substitute* "lw/librewolf.cfg"
(("defaultPref\\(\"browser\\.ml\\.") (("defaultPref\\(\"browser\\.ml\\.")