diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-10 09:55:21 +0200 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-09-11 13:24:30 +0900 |
| commit | 5053a59a0b6284ef8269f90457c560ee294ae9ad (patch) | |
| tree | d0b44a0fb24f1bbb5aba89892574174592cbf8c3 /gnu/packages/xml.scm | |
| parent | cc0f3ff18b38bfb3c49a8d2c7fb9634e2e62610b (diff) | |
gnu: Add and use libxml2-next/fixed.
Fixes guix/guix#2599.
* gnu/packages/xml.scm (libxml2-next/fixed): New variable.
(libxml2-next-from-grafting): Change replacement to libxml2-next/fixed.
Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
Diffstat (limited to 'gnu/packages/xml.scm')
| -rw-r--r-- | gnu/packages/xml.scm | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index dbb2f00fde3..0d2be62d0c5 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm | |||
| @@ -271,10 +271,39 @@ project (but it is usable outside of the Gnome platform).") | |||
| 271 | (append pkg-config | 271 | (append pkg-config |
| 272 | python-minimal))))) | 272 | python-minimal))))) |
| 273 | 273 | ||
| 274 | (define-public libxml2-next/fixed | ||
| 275 | (package | ||
| 276 | (inherit libxml2) | ||
| 277 | (properties '((hidden? . #t))) | ||
| 278 | (name "libxml2") | ||
| 279 | (version "2.14.5") | ||
| 280 | (source (origin | ||
| 281 | (method url-fetch) | ||
| 282 | (uri (string-append "mirror://gnome/sources/libxml2/" | ||
| 283 | (version-major+minor version)"/libxml2-" | ||
| 284 | version ".tar.xz")) | ||
| 285 | (sha256 | ||
| 286 | (base32 | ||
| 287 | "0jylv2kkyzih710blg24al7b43iaqg6xsfn52qy865knagrhdl03")))) | ||
| 288 | (arguments | ||
| 289 | (substitute-keyword-arguments (package-arguments libxml2-next) | ||
| 290 | ((#:phases phases #~%standard-phases) | ||
| 291 | #~(modify-phases #$phases | ||
| 292 | (add-after 'install 'symlink-hardcoded-lib-for-grafts | ||
| 293 | (lambda _ | ||
| 294 | (let ((lib (string-append #$output "/lib/libxml2.so"))) | ||
| 295 | ;; XXX: When grafting, we need to reproduce the file paths to | ||
| 296 | ;; the libraries too. | ||
| 297 | (symlink (string-append lib ".16") | ||
| 298 | (string-append lib ".2"))))))))) | ||
| 299 | (native-inputs (modify-inputs (package-native-inputs libxml2) | ||
| 300 | (append pkg-config | ||
| 301 | python-minimal))))) | ||
| 302 | |||
| 274 | (define-public libxml2-next-for-grafting | 303 | (define-public libxml2-next-for-grafting |
| 275 | (package | 304 | (package |
| 276 | (inherit libxml2) | 305 | (inherit libxml2) |
| 277 | (replacement libxml2-next) | 306 | (replacement libxml2-next/fixed) |
| 278 | (properties '((hidden? . #t))))) | 307 | (properties '((hidden? . #t))))) |
| 279 | 308 | ||
| 280 | (define-public libxml2-xpath0 | 309 | (define-public libxml2-xpath0 |
