From: Ian Eure <ian@retrospec.tv>
To: Hilton Chain <hako@ultrarare.space>
Cc: 74790@debbugs.gnu.org, "André Batista" <nandre@riseup.net>,
"Jonathan Brielmaier" <jonathan.brielmaier@web.de>,
"Clément Lassieur" <clement@lassieur.org>,
"Mark H Weaver" <mhw@netris.org>
Subject: [bug#74790] [PATCH] gnu: librewolf: Support Guix icecat browser extensions.
Date: Fri, 13 Dec 2024 09:38:54 -0800 [thread overview]
Message-ID: <87bjxf8oup.fsf@retrospec.tv> (raw)
In-Reply-To: <fbe13c2e0bd1f1bd9c2f49398ade9d45480774ba.1733929563.git.hako@ultrarare.space> (Hilton Chain's message of "Wed, 11 Dec 2024 23:07:28 +0800")
Hi Hilton,
The patches look good to me, thank you for taking this on! How to
handle browser extensions is a subject that’s been on my mind
intermittently, so it’s great to see effort in that direction.
I think it might be non-obvious that IceCat packages affect
non-IceCat browsers. I’d really like to have a solid facility for
managing extensions across the different Firefox forks, either
with generic "browser-extension-ublock-origin" packages; or
something similar to the Common Lisp setup, where
implementation-specific package variants can be derived from a
canonical one. I lean somewhat towards the latter approach, since
I think it provides a cleaner way of handling differences across
browsers. Given the different release cadences, I think it makes
sense to abstract over the differences in the build tooling rather
than patching the browsers to get consistent behavior.
To be clear here, these patches don’t have to wait for that; I’m
+1 on pushing as-is. But I think we should have a more explicit
system for handling browser extension packages.
Thanks,
-- Ian
Hilton Chain <hako@ultrarare.space> writes:
> * gnu/packages/patches/librewolf-use-system-wide-dir.patch: New
> file.
> * gnu/local.mk (dist_patch_DATA): Regisiter it.
> * gnu/packages/librewolf.scm (make-librewolf-source)[patches]:
> Add it along with
> torbrowser-compare-paths.patch.
> (librewolf)[native-search-paths]: Add ICECAT_SYSTEM_DIR.
>
> Change-Id: I8609d25a7e2725ad94ab257d720326639eb06778
> ---
>
> Reused torbrowser-compare-paths.patch, mind it for future
> updates. :)
>
> gnu/local.mk | 1 +
> gnu/packages/librewolf.scm | 11 +++++-
> .../librewolf-use-system-wide-dir.patch | 37
> +++++++++++++++++++
> 3 files changed, 48 insertions(+), 1 deletion(-)
> create mode 100644
> gnu/packages/patches/librewolf-use-system-wide-dir.patch
>
> diff --git a/gnu/local.mk b/gnu/local.mk
> index 2d85c485f6..0faa3a70a9 100644
> --- a/gnu/local.mk
> +++ b/gnu/local.mk
> @@ -1635,6 +1635,7 @@ dist_patch_DATA = \
> %D%/packages/patches/libgpg-error-hurd64.patch \
> %D%/packages/patches/libguestfs-syms.patch \
> %D%/packages/patches/libobjc2-unbundle-robin-map.patch \
> + %D%/packages/patches/librewolf-use-system-wide-dir.patch \
> %D%/packages/patches/libvirt-add-install-prefix.patch \
> %D%/packages/patches/libziparchive-add-includes.patch \
> %D%/packages/patches/lightdm-arguments-ordering.patch \
> diff --git a/gnu/packages/librewolf.scm
> b/gnu/packages/librewolf.scm
> index 5d432cfad8..7ea14c9182 100644
> --- a/gnu/packages/librewolf.scm
> +++ b/gnu/packages/librewolf.scm
> @@ -188,7 +188,11 @@ (define* (make-librewolf-source #:key
> version firefox-hash librewolf-hash)
> (invoke "make" "all")
> (copy-file (string-append "librewolf-" #$version
> ".source.tar.gz")
> - #$output))))))))
> + #$output)))))
> + (patches
> + (search-patches
> + "torbrowser-compare-paths.patch"
> + "librewolf-use-system-wide-dir.patch")))))
>
> ;; Define the versions of rust needed to build librewolf,
> trying to match
> ;; upstream. See the file taskcluster/ci/toolchain/rust.yml at
> @@ -705,6 +709,11 @@ (define-public librewolf
> rust-cbindgen-0.26
> which
> yasm))
> + (native-search-paths
> + (list (search-path-specification
> + (variable "ICECAT_SYSTEM_DIR")
> + (separator #f) ;single entry
> + (files '("lib/icecat")))))
> (home-page "https://librewolf.net/")
> (synopsis
> "Custom version of Firefox, focused on privacy, security
> and freedom")
> diff --git
> a/gnu/packages/patches/librewolf-use-system-wide-dir.patch
> b/gnu/packages/patches/librewolf-use-system-wide-dir.patch
> new file mode 100644
> index 0000000000..c8a4d8cb12
>
next prev parent reply other threads:[~2024-12-13 18:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-11 15:07 [bug#74790] [PATCH] gnu: librewolf: Support Guix icecat browser extensions Hilton Chain
2024-12-11 20:28 ` Clément Lassieur
2024-12-13 17:38 ` Ian Eure [this message]
2024-12-13 18:15 ` Clément Lassieur
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bjxf8oup.fsf@retrospec.tv \
--to=ian@retrospec.tv \
--cc=74790@debbugs.gnu.org \
--cc=clement@lassieur.org \
--cc=hako@ultrarare.space \
--cc=jonathan.brielmaier@web.de \
--cc=mhw@netris.org \
--cc=nandre@riseup.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).