[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
125/130: gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg.
From: |
guix-commits |
Subject: |
125/130: gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg. |
Date: |
Sat, 16 Oct 2021 02:36:49 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit da02974a56c0bb00f61baf8109037f65db4c5ace
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 2f5b1ac..5ae789b 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 406b8b9..67e31d4 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -721,35 +721,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
@@ -910,7 +881,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)))
@@ -1012,7 +983,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)
- 126/130: gnu: glib: Update to 2.70, specify a bindir prefix and hide package., (continued)
- 126/130: gnu: glib: Update to 2.70, specify a bindir prefix and hide package., guix-commits, 2021/10/16
- 128/130: gnu: libthai: Make datrie a normal native-input., guix-commits, 2021/10/16
- 130/130: gnu: gtk: Add the generate-gdk-pixbuf-loaders-cache-file phase., guix-commits, 2021/10/16
- 70/130: gnu: python-keras: Enable parallel tests., guix-commits, 2021/10/16
- 129/130: gnu: glib-networking: Update to 2.70.rc., guix-commits, 2021/10/16
- 86/130: gnu: gdb: Patch references to /bin/sh and add debug output., guix-commits, 2021/10/16
- 104/130: build: glib-or-gtk-build-system: Fix indentation., guix-commits, 2021/10/16
- 99/130: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/10/16
- 120/130: gnu: util-linux: Globally disable the lsns test., guix-commits, 2021/10/16
- 121/130: gnu: heimdal: Fix build., guix-commits, 2021/10/16
- 125/130: gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg.,
guix-commits <=
- 118/130: gnu: openssl: Absorb 1.1.1l graft., guix-commits, 2021/10/16
- 57/130: gnu: Add a missing copyright., guix-commits, 2021/10/16
- 63/130: gnu: gst-plugins-bad: Update to 1.18.5., guix-commits, 2021/10/16
- 66/130: gnu: gst-editing-services: Update to 1.18.5., guix-commits, 2021/10/16
- 65/130: gnu: gst-libav: Update to 1.18.5., guix-commits, 2021/10/16
- 77/130: gnu: tzdata: Update to 2021c., guix-commits, 2021/10/16
- 78/130: gnu: gtk+-2: Fix ‘builder’ test., guix-commits, 2021/10/16
- 74/130: gnu: python-keras: Skip a flaky test., guix-commits, 2021/10/16
- 75/130: gnu: glibc: Remove unneeded nscd patching., guix-commits, 2021/10/16
- 82/130: gnu: curl: Honor #:tests?., guix-commits, 2021/10/16