gnu: gtk: Replace gdk-pixbuf+svg by 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 replace the former for the latter. The replacement was automated with the following command: $ git grep -l ',gdk-pixbuf+svg)' \ | xargs sed 's/(".*" ,gdk-pixbuf+svg)/("librsvg" ,librsvg)/' -i * 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.master
parent
831c08d8f2
commit
feab09f72a
|
@ -67,7 +67,7 @@
|
||||||
("which" ,which)))
|
("which" ,which)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("dbus" ,dbus)
|
`(("dbus" ,dbus)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg) ; for svg support
|
("librsvg" ,librsvg) ; for svg support
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("cairo" ,cairo)
|
("cairo" ,cairo)
|
||||||
("pango" ,pango)
|
("pango" ,pango)
|
||||||
|
|
|
@ -279,7 +279,7 @@ topology functions.")
|
||||||
("libsoup" ,libsoup)
|
("libsoup" ,libsoup)
|
||||||
("libgweather" ,libgweather)
|
("libgweather" ,libgweather)
|
||||||
("libxml2" ,libxml2)
|
("libxml2" ,libxml2)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("glib-networking" ,glib-networking)
|
("glib-networking" ,glib-networking)
|
||||||
("geoclue" ,geoclue)
|
("geoclue" ,geoclue)
|
||||||
("geocode-glib" ,geocode-glib)
|
("geocode-glib" ,geocode-glib)
|
||||||
|
|
|
@ -602,7 +602,7 @@ in JavaScript.")
|
||||||
("vala" ,vala)))
|
("vala" ,vala)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("avahi" ,avahi)
|
`(("avahi" ,avahi)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("gee" ,libgee)
|
("gee" ,libgee)
|
||||||
("gst-plugins-base" ,gst-plugins-base)
|
("gst-plugins-base" ,gst-plugins-base)
|
||||||
("gtk+" ,gtk+)))
|
("gtk+" ,gtk+)))
|
||||||
|
@ -921,7 +921,7 @@ tomorrow, the rest of the week and for special occasions.")
|
||||||
(inputs
|
(inputs
|
||||||
`(("babl" ,babl)
|
`(("babl" ,babl)
|
||||||
("cairo" ,cairo)
|
("cairo" ,cairo)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("gegl" ,gegl)
|
("gegl" ,gegl)
|
||||||
("geocode-glib" ,geocode-glib)
|
("geocode-glib" ,geocode-glib)
|
||||||
("gexiv2" ,gexiv2)
|
("gexiv2" ,gexiv2)
|
||||||
|
@ -2821,7 +2821,7 @@ and how they are displayed (View).")
|
||||||
("gtk+:bin" ,gtk+ "bin")
|
("gtk+:bin" ,gtk+ "bin")
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("gdk-pixbuf" ,gdk-pixbuf+svg)
|
`(("librsvg" ,librsvg)
|
||||||
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("pango" ,pango)
|
("pango" ,pango)
|
||||||
|
@ -4258,7 +4258,7 @@ engineering.")
|
||||||
("gtk+:bin" ,gtk+ "bin")
|
("gtk+:bin" ,gtk+ "bin")
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("gdk-pixbuf" ,gdk-pixbuf+svg)
|
`(("librsvg" ,librsvg)
|
||||||
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("pango" ,pango)
|
("pango" ,pango)
|
||||||
|
@ -6832,7 +6832,7 @@ a secret password store, an adblocker, and a modern UI.")
|
||||||
(inputs
|
(inputs
|
||||||
`(("avahi" ,avahi)
|
`(("avahi" ,avahi)
|
||||||
("gcr" ,gcr)
|
("gcr" ,gcr)
|
||||||
("gdk-pixbuf+svg" ,gdk-pixbuf+svg) ; for loading SVG files
|
("librsvg" ,librsvg) ; for loading SVG files
|
||||||
("glib-networking" ,glib-networking)
|
("glib-networking" ,glib-networking)
|
||||||
("gnome-desktop" ,gnome-desktop)
|
("gnome-desktop" ,gnome-desktop)
|
||||||
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
||||||
|
@ -8712,7 +8712,7 @@ properties, screen resolution, and other GNOME parameters.")
|
||||||
("evolution-data-server" ,evolution-data-server)
|
("evolution-data-server" ,evolution-data-server)
|
||||||
("gcr" ,gcr)
|
("gcr" ,gcr)
|
||||||
("gdm" ,gdm)
|
("gdm" ,gdm)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("gjs" ,gjs)
|
("gjs" ,gjs)
|
||||||
("gtk" ,gtk)
|
("gtk" ,gtk)
|
||||||
("gnome-autoar" ,gnome-autoar)
|
("gnome-autoar" ,gnome-autoar)
|
||||||
|
@ -8776,7 +8776,7 @@ like switching to windows and launching applications.")
|
||||||
("vala" ,vala)))
|
("vala" ,vala)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("cairo" ,cairo)
|
`(("cairo" ,cairo)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("gnutls" ,gnutls)
|
("gnutls" ,gnutls)
|
||||||
("libgcrypt" ,libgcrypt)
|
("libgcrypt" ,libgcrypt)
|
||||||
|
|
|
@ -357,7 +357,7 @@ Graphviz and LaTeX.")
|
||||||
(,(dirname (search-input-file inputs "bin/dot"))))))))))
|
(,(dirname (search-input-file inputs "bin/dot"))))))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("atk" ,atk)
|
`(("atk" ,atk)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("graphviz" ,graphviz)
|
("graphviz" ,graphviz)
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("python-pycairo" ,python-pycairo)
|
("python-pycairo" ,python-pycairo)
|
||||||
|
|
|
@ -311,7 +311,7 @@ applications that want audio visualisation and audio visualisation plugins.")
|
||||||
(inputs
|
(inputs
|
||||||
`(("alsa-lib" ,alsa-lib)
|
`(("alsa-lib" ,alsa-lib)
|
||||||
("esound" ,esound)
|
("esound" ,esound)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("gtk+" ,gtk+-2)
|
("gtk+" ,gtk+-2)
|
||||||
("jack" ,jack-2)
|
("jack" ,jack-2)
|
||||||
("libx11" ,libx11)
|
("libx11" ,libx11)
|
||||||
|
@ -668,7 +668,7 @@ for the GStreamer multimedia library.")
|
||||||
("bzip2" ,bzip2)
|
("bzip2" ,bzip2)
|
||||||
("cairo" ,cairo)
|
("cairo" ,cairo)
|
||||||
("flac" ,flac)
|
("flac" ,flac)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("glib-networking" ,glib-networking)
|
("glib-networking" ,glib-networking)
|
||||||
("glu" ,glu)
|
("glu" ,glu)
|
||||||
|
|
|
@ -712,35 +712,6 @@ scaled, composited, modified, saved, or rendered.")
|
||||||
(home-page "https://wiki.gnome.org/Projects/GdkPixbuf")
|
(home-page "https://wiki.gnome.org/Projects/GdkPixbuf")
|
||||||
(license license:lgpl2.1+)))
|
(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.
|
;;; A minimal variant used to prevent a cycle with Inkscape.
|
||||||
(define-public at-spi2-core-minimal
|
(define-public at-spi2-core-minimal
|
||||||
(hidden-package
|
(hidden-package
|
||||||
|
@ -901,7 +872,7 @@ is part of the GNOME accessibility project.")
|
||||||
;; Rust is not supported well on every architecture yet.
|
;; Rust is not supported well on every architecture yet.
|
||||||
("gdk-pixbuf" ,(if (string-prefix? "x86_64" (or (%current-target-system)
|
("gdk-pixbuf" ,(if (string-prefix? "x86_64" (or (%current-target-system)
|
||||||
(%current-system)))
|
(%current-system)))
|
||||||
gdk-pixbuf+svg
|
librsvg
|
||||||
gdk-pixbuf))
|
gdk-pixbuf))
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("pango" ,pango)))
|
("pango" ,pango)))
|
||||||
|
@ -1003,7 +974,7 @@ application suites.")
|
||||||
;; SVG support is optional and requires librsvg, which pulls in rust.
|
;; SVG support is optional and requires librsvg, which pulls in rust.
|
||||||
;; Rust is not supported well on every architecture yet.
|
;; Rust is not supported well on every architecture yet.
|
||||||
("gdk-pixbuf" ,(if (target-x86-64?)
|
("gdk-pixbuf" ,(if (target-x86-64?)
|
||||||
gdk-pixbuf+svg
|
librsvg
|
||||||
gdk-pixbuf))
|
gdk-pixbuf))
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("libcloudproviders" ,libcloudproviders-minimal)
|
("libcloudproviders" ,libcloudproviders-minimal)
|
||||||
|
@ -1263,7 +1234,7 @@ application suites.")
|
||||||
;; Following dependencies are referenced in .pc files.
|
;; Following dependencies are referenced in .pc files.
|
||||||
`(("cairo" ,cairo)
|
`(("cairo" ,cairo)
|
||||||
("fontconfig" ,fontconfig)
|
("fontconfig" ,fontconfig)
|
||||||
("gdk-pixbuf+svg" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("graphene" ,graphene)
|
("graphene" ,graphene)
|
||||||
("libepoxy" ,libepoxy)
|
("libepoxy" ,libepoxy)
|
||||||
|
|
|
@ -2352,7 +2352,7 @@ GIF, TIFF, WEBP, BMP, PNG, XPM formats.")
|
||||||
("gettext" ,gettext-minimal)))
|
("gettext" ,gettext-minimal)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("gtk+" ,gtk+)
|
`(("gtk+" ,gtk+)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("hicolor-icon-theme" ,hicolor-icon-theme)
|
("hicolor-icon-theme" ,hicolor-icon-theme)
|
||||||
("libmypaint" ,libmypaint)
|
("libmypaint" ,libmypaint)
|
||||||
("mypaint-brushes" ,mypaint-brushes)
|
("mypaint-brushes" ,mypaint-brushes)
|
||||||
|
|
|
@ -1686,7 +1686,7 @@ compresses it.")
|
||||||
("enchant" ,enchant)
|
("enchant" ,enchant)
|
||||||
("expat" ,expat)
|
("expat" ,expat)
|
||||||
("fontconfig" ,fontconfig)
|
("fontconfig" ,fontconfig)
|
||||||
("gdk-pixbuf+svg" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("ghostscript" ,ghostscript)
|
("ghostscript" ,ghostscript)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("gnupg" ,gnupg)
|
("gnupg" ,gnupg)
|
||||||
|
|
|
@ -473,7 +473,7 @@ sound systems.")
|
||||||
("gobject-introspection" ,gobject-introspection)))
|
("gobject-introspection" ,gobject-introspection)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("cairo" ,cairo)
|
`(("cairo" ,cairo)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("libx11" ,libx11)
|
("libx11" ,libx11)
|
||||||
|
@ -983,7 +983,7 @@ icons on the MATE desktop. It works on local and remote file systems.")
|
||||||
("polkit" ,polkit)
|
("polkit" ,polkit)
|
||||||
("startup-notification" ,startup-notification)))
|
("startup-notification" ,startup-notification)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("gdk-pixbuf" ,gdk-pixbuf+svg) ; mate-slab.pc
|
`(("librsvg" ,librsvg) ; mate-slab.pc
|
||||||
("librsvg" ,librsvg))) ; mate-slab.pc
|
("librsvg" ,librsvg))) ; mate-slab.pc
|
||||||
(home-page "https://mate-desktop.org/")
|
(home-page "https://mate-desktop.org/")
|
||||||
(synopsis "MATE Desktop configuration tool")
|
(synopsis "MATE Desktop configuration tool")
|
||||||
|
@ -1219,7 +1219,7 @@ Re-decorates windows on un-maximise.
|
||||||
("dbus-glib" ,dbus-glib)
|
("dbus-glib" ,dbus-glib)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("libcanberra" ,libcanberra)
|
("libcanberra" ,libcanberra)
|
||||||
("libglade" ,libglade)
|
("libglade" ,libglade)
|
||||||
("libmatekbd" ,libmatekbd)
|
("libmatekbd" ,libmatekbd)
|
||||||
|
@ -1271,7 +1271,7 @@ can be used as backgrounds in the MATE Desktop environment.")
|
||||||
("cairo" ,cairo)
|
("cairo" ,cairo)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("libcanberra" ,libcanberra)
|
("libcanberra" ,libcanberra)
|
||||||
("libgtop" ,libgtop)
|
("libgtop" ,libgtop)
|
||||||
("libx11" ,libx11)
|
("libx11" ,libx11)
|
||||||
|
@ -1324,7 +1324,7 @@ can be used as backgrounds in the MATE Desktop environment.")
|
||||||
("exempi" ,exempi)
|
("exempi" ,exempi)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("libcanberra" ,libcanberra)
|
("libcanberra" ,libcanberra)
|
||||||
("libx11" ,libx11)
|
("libx11" ,libx11)
|
||||||
("libxext" ,libxext)
|
("libxext" ,libxext)
|
||||||
|
@ -1384,7 +1384,7 @@ can be used as backgrounds in the MATE Desktop environment.")
|
||||||
("file" ,file)
|
("file" ,file)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("json-glib" ,json-glib)
|
("json-glib" ,json-glib)
|
||||||
("libcanberra" ,libcanberra)
|
("libcanberra" ,libcanberra)
|
||||||
("libx11" ,libx11)
|
("libx11" ,libx11)
|
||||||
|
|
|
@ -1295,7 +1295,7 @@ Encryption to Gajim.")
|
||||||
;; NOTE: Commented-out lines are to be enabled in v0.3.0.
|
;; NOTE: Commented-out lines are to be enabled in v0.3.0.
|
||||||
`(("atk" ,atk)
|
`(("atk" ,atk)
|
||||||
("cairo" ,cairo)
|
("cairo" ,cairo)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("glib-networking" ,glib-networking)
|
("glib-networking" ,glib-networking)
|
||||||
("gpgme" ,gpgme)
|
("gpgme" ,gpgme)
|
||||||
|
|
|
@ -745,7 +745,7 @@ systems with no further dependencies.")
|
||||||
(inputs
|
(inputs
|
||||||
`(("bluez" ,bluez)
|
`(("bluez" ,bluez)
|
||||||
("dbus" ,dbus)
|
("dbus" ,dbus)
|
||||||
("gdkpixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("iproute2" ,iproute)
|
("iproute2" ,iproute)
|
||||||
|
|
|
@ -113,7 +113,7 @@ and security.")
|
||||||
`(("glib-compile-schemas" ,glib "bin")
|
`(("glib-compile-schemas" ,glib "bin")
|
||||||
("gobject-introspection" ,gobject-introspection)))
|
("gobject-introspection" ,gobject-introspection)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("gdk-pixbuf" ,gdk-pixbuf+svg)
|
`(("librsvg" ,librsvg)
|
||||||
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("python-dateutil" ,python-dateutil)
|
("python-dateutil" ,python-dateutil)
|
||||||
|
|
|
@ -4349,7 +4349,7 @@ tools for styling them, including a built-in real-time video preview.")
|
||||||
("gst-libav" ,gst-libav)
|
("gst-libav" ,gst-libav)
|
||||||
("gsound" ,gsound)
|
("gsound" ,gsound)
|
||||||
("gtk+" ,gtk+)
|
("gtk+" ,gtk+)
|
||||||
("gdk-pixbuf+svg" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("libpeas" ,libpeas)
|
("libpeas" ,libpeas)
|
||||||
("libnotify" ,libnotify)
|
("libnotify" ,libnotify)
|
||||||
("pango" ,pango)
|
("pango" ,pango)
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
("ffmpeg" ,ffmpeg)
|
("ffmpeg" ,ffmpeg)
|
||||||
("freerdp" ,freerdp) ; for rdp plugin
|
("freerdp" ,freerdp) ; for rdp plugin
|
||||||
("gcrypt" ,libgcrypt)
|
("gcrypt" ,libgcrypt)
|
||||||
("gdk-pixbuf" ,gdk-pixbuf+svg)
|
("librsvg" ,librsvg)
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("gnome-keyring" ,gnome-keyring)
|
("gnome-keyring" ,gnome-keyring)
|
||||||
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
||||||
|
|
Reference in New Issue