From 9636ad97896bf8845cbaa88c020b9d87409e2142 Mon Sep 17 00:00:00 2001 From: Ian Eure Date: Fri, 15 Aug 2025 17:32:15 -0700 Subject: [PATCH] gnu: make-librewolf-source: Delete unbundled libraries. * gnu/packages/librewolf.scm (make-librewolf-source): Delete unbundled libraries. Change-Id: I533fa95c33cfed3fa048566d6c436fe1d234bf49 --- gnu/packages/librewolf.scm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/gnu/packages/librewolf.scm b/gnu/packages/librewolf.scm index fd9c25f7328632f60390b6e6cfe11715170b2696..1903cf7fd9a4e1b4c3c38190ac727123c6a59e83 100644 --- a/gnu/packages/librewolf.scm +++ b/gnu/packages/librewolf.scm @@ -193,10 +193,20 @@ "librewolf-compare-paths.patch" "librewolf-use-system-wide-dir.patch" "librewolf-add-store-to-rdd-allowlist.patch")) - ;; XXX: 75 Mo (800+ Mo uncompressed) of unused tests. - ;; Removing it makes it possible to compile on some systems. + ;; Slim down the tarball by removing unbundled libraries and 75 Mo (800+ + ;; Mo uncompressed) of unused tests. + ;; TODO: Unbundle security/nss and media/libpng. (modules '((guix build utils))) - (snippet #~(delete-file-recursively "testing/web-platform"))))) + (snippet + #~(for-each delete-file-recursively + '("testing/web-platform" + "gfx/cairo/libpixman" + "js/src/ctypes/libffi" + "ipc/chromium/src/third_party/libevent" + "media/libvpx" + "docs/nspr" + "media/libwebp" + "modules/zlib")))))) ;;; Define the versions of rust needed to build firefox, trying to match ;;; upstream. See table at [0], `Uses' column for the specific version.