[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
140/142: gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg.
From: |
guix-commits |
Subject: |
140/142: gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg. |
Date: |
Wed, 20 Oct 2021 14:57:04 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit af09ea20b6a506d4b703e8867a8de8880e94abac
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 cbdf1d9..6590485 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -3574,6 +3574,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 dc960a4..68850b0 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)
- 98/142: gnu: Add python-tomli., (continued)
- 98/142: gnu: Add python-tomli., guix-commits, 2021/10/20
- 86/142: gnu: gdb: Patch references to /bin/sh and add debug output., guix-commits, 2021/10/20
- 93/142: gnu: Build all Rust packages using the latest rustc., guix-commits, 2021/10/20
- 133/142: gnu: python-flit: Update to 3.3.0., guix-commits, 2021/10/20
- 134/142: gnu: llvm: Add make-lld-wrapper, lld-wrapper and lld-as-ld-wrapper., guix-commits, 2021/10/20
- 120/142: gnu: mit-krb5: Absorb 1.19.2 graft., guix-commits, 2021/10/20
- 123/142: gnu: pango: Update to 1.48.10., guix-commits, 2021/10/20
- 122/142: gnu: heimdal: Fix build., guix-commits, 2021/10/20
- 125/142: gnu: glib: Update to 2.70, specify a bindir prefix and hide package., guix-commits, 2021/10/20
- 131/142: gnu: pulseaudio: Add doxygen to fix build., guix-commits, 2021/10/20
- 140/142: gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg.,
guix-commits <=
- 142/142: gnu: elogind: Update to 246.10., guix-commits, 2021/10/20
- 138/142: profiles: Add a gdk-pixbuf-loaders-cache-file hook., guix-commits, 2021/10/20
- 20/142: gnu: gst-plugins-base: Update to 1.18.4., guix-commits, 2021/10/20