[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
140/140: gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg.
From: |
guix-commits |
Subject: |
140/140: gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg. |
Date: |
Sun, 17 Oct 2021 23:11:18 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 9a15588e7e2a2f0d6746f5dad3394fe95d01a8e2
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Oct 2 21:39:26 2021 -0400
gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg.
With the addition of a profile hook for computing the gdk-pixbuf loaders
cache
file, there is no longer a need for gdk-pixbuf+svg, and librsvg can
propagate
gdk-pixbuf without fear, so deprecate the former for the latter.
* gnu/packages/gtk.scm (gdk-pixbuf+svg): Delete package.
(gtk+-2)[propagated-inputs]: Replace gdk-pixbuf+svg with librsvg.
(gtk+)[propagated-inputs]: Likewise.
* gnu/packages/gnome.scm (gdk-pixbuf+svg): Add deprecated package.
---
gnu/packages/gnome.scm | 3 +++
gnu/packages/gtk.scm | 33 ++-------------------------------
2 files changed, 5 insertions(+), 31 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index e3bf895..8516e68 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -3566,6 +3566,9 @@ diagrams.")
(home-page "https://wiki.gnome.org/LibRsvg")
(license license:lgpl2.1+)))
+(define-public gdk-pixbuf+svg
+ (deprecated-package "gdk-pixbuf+svg" librsvg))
+
(define-public libidl
(package
(name "libidl")
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index a32ad89..c8739e3 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -714,35 +714,6 @@ scaled, composited, modified, saved, or rendered.")
(home-page "https://wiki.gnome.org/Projects/GdkPixbuf")
(license license:lgpl2.1+)))
-;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
-;; on gdk-pixbuf, so this new variable. Also, librsvg adds 90MiB to the
-;; closure size.
-(define-public gdk-pixbuf+svg
- (package/inherit gdk-pixbuf
- (name "gdk-pixbuf+svg")
- (inputs
- `(("librsvg" ,librsvg)
- ,@(package-inputs gdk-pixbuf)))
- (arguments
- (substitute-keyword-arguments (package-arguments gdk-pixbuf)
- ((#:phases phases)
- `(modify-phases ,phases
- (add-after 'install 'register-svg-loader
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (librsvg (assoc-ref inputs "librsvg"))
- (loaders
- (append
- (find-files out "^libpixbufloader-.*\\.so$")
- (find-files librsvg "^libpixbufloader-.*\\.so$")))
- (gdk-pixbuf-query-loaders
- (string-append out "/bin/gdk-pixbuf-query-loaders")))
- (apply invoke
- gdk-pixbuf-query-loaders
- "--update-cache"
- loaders))))))))
- (synopsis "Image loading library, with SVG support")))
-
;;; A minimal variant used to prevent a cycle with Inkscape.
(define-public at-spi2-core-minimal
(hidden-package
@@ -903,7 +874,7 @@ is part of the GNOME accessibility project.")
;; Rust is not supported well on every architecture yet.
("gdk-pixbuf" ,(if (string-prefix? "x86_64" (or (%current-target-system)
(%current-system)))
- gdk-pixbuf+svg
+ librsvg
gdk-pixbuf))
("glib" ,glib)
("pango" ,pango)))
@@ -1005,7 +976,7 @@ application suites.")
;; SVG support is optional and requires librsvg, which pulls in rust.
;; Rust is not supported well on every architecture yet.
("gdk-pixbuf" ,(if (target-x86-64?)
- gdk-pixbuf+svg
+ librsvg
gdk-pixbuf))
("glib" ,glib)
("libcloudproviders" ,libcloudproviders-minimal)
- 124/140: gnu: libthai: Make datrie a normal native-input., (continued)
- 124/140: gnu: libthai: Make datrie a normal native-input., guix-commits, 2021/10/17
- 123/140: gnu: pango: Update to 1.48.10., guix-commits, 2021/10/17
- 132/140: gnu: webkitgtk: Add a debug output., guix-commits, 2021/10/17
- 130/140: gnu: webkitgtk: Update to 2.34.0., guix-commits, 2021/10/17
- 134/140: gnu: llvm: Add make-lld-wrapper, lld-wrapper and lld-as-ld-wrapper., guix-commits, 2021/10/17
- 131/140: gnu: pulseaudio: Add doxygen to fix build., guix-commits, 2021/10/17
- 139/140: gnu: gdk-pixbuf: Add a search path for the loaders cache file., guix-commits, 2021/10/17
- 122/140: gnu: heimdal: Fix build., guix-commits, 2021/10/17
- 136/140: gnu: gtk: Add the generate-gdk-pixbuf-loaders-cache-file phase., guix-commits, 2021/10/17
- 138/140: profiles: Add a gdk-pixbuf-loaders-cache-file hook., guix-commits, 2021/10/17
- 140/140: gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg.,
guix-commits <=
- 125/140: gnu: glib: Update to 2.70, specify a bindir prefix and hide package., guix-commits, 2021/10/17
- 127/140: gnu: vala: Update to 0.54.2., guix-commits, 2021/10/17