guix_mirror_bot pushed a commit to branch mesa-updates
in repository guix.
commit 0ec48ddf08d9e5268fe63120862b0aab50c45979
Author: John Kehayias <[email protected]>
AuthorDate: Sat Sep 20 17:38:53 2025 -0400
gnu: librsvg-2.40: Fix build.
* gnu/packages/gnome.scm (librsvg-2.40)[inputs]: Replace libxml2 with
libxml2-2.11.
* gnu/packages/xml.scm (libxml2-2.11): New variable.
(libxml2): Remove outdated comment.
Change-Id: I7080f39aab81ca104836b64dd1f7c10d14157e81
---
gnu/packages/gnome.scm | 2 +-
gnu/packages/xml.scm | 19 ++++++++++++++++++-
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index bca1a8d22a..31ff6dcb0d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -3802,7 +3802,7 @@ diagrams.")
`(,glib "bin") ; glib-mkenums, etc.
gobject-introspection)) ; g-ir-compiler, etc.
(inputs
- (list pango libcroco libxml2))
+ (list pango libcroco libxml2-2.11))
(propagated-inputs
;; librsvg-2.0.pc refers to all of that.
(list cairo gdk-pixbuf glib))
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index e0415ece47..2b38ed9d03 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -189,7 +189,6 @@ binary extension of XML for the purpose of storing and
manipulating data in a
hierarchical form with variable field lengths.")
(license license:lgpl2.1)))
-;; Note: Remember to check python-libxml2 when updating this package.
(define-public libxml2
(package
(name "libxml2")
@@ -263,6 +262,24 @@ hierarchical form with variable field lengths.")
project (but it is usable outside of the Gnome platform).")
(license license:x11)))
+;; This is an old version (the most recent that works) of libxml2 solely for
+;; building librsvg-2.40.
+;; XXX: Remove once Rust (and thus newer librsvg) is supported on all
+;; platforms.
+(define-public libxml2-2.11
+ (hidden-package
+ (package
+ (inherit libxml2)
+ (version "2.11.9")
+ (source (origin
+ (inherit (package-source libxml2))
+ (uri (string-append "mirror://gnome/sources/libxml2/"
+ (version-major+minor version)"/libxml2-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "17w0a622466k2hi5nln276la6rzfr9xaip3lqj71hmyvxyhmf0bq")))))))
+
(define-public libxml2-xpath0
(package/inherit libxml2
(name "libxml2-xpath0")