aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Victal <mirai@makinata.eu>2023-10-09 21:06:27 +0100
committerLudovic Courtès <ludo@gnu.org>2024-08-31 10:42:11 +0200
commitabad61d6f5c2ef4d24feb83ad500b2858f9dff8a (patch)
tree4859704174373835591f72b5c3ab37bcf71a63a7
parent01daea59c5c695bbfa45a307371f22f0c090d535 (diff)
downloadguix-abad61d6f5c2ef4d24feb83ad500b2858f9dff8a.tar.gz
guix-abad61d6f5c2ef4d24feb83ad500b2858f9dff8a.zip
gnu: libxkbcommon: Faux propagate libxml2.
xkbregistry.pc lists libxml2 as a requirement. Use a symlink for the libxml-2.0.pc to avoid setting libxml2 as a propagated-input. * gnu/packages/xdisorg.scm (libxkbcommon)[arguments]<#:phases>: Add symlink-pc. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
-rw-r--r--gnu/packages/xdisorg.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 57a15602d3..8d9b592bb3 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -588,7 +588,15 @@ avoiding password prompts when X11 forwarding has already been setup.")
(let ((old (string-append #$output "/share/doc"))
(new (string-append #$output:doc "/share/doc")))
(mkdir-p (dirname new))
- (rename-file old new)))))))
+ (rename-file old new))))
+ (add-after 'install 'symlink-pc
+ ;; in Requires.private of xkbregistry.pc
+ ;; XXX: Symlink libxml-2.0.pc in order to avoid putting
+ ;; libxml2 as a propagated input.
+ (lambda _
+ (let ((stem "/lib/pkgconfig/libxml-2.0.pc"))
+ (symlink (string-append #$(this-package-input "libxml2") stem)
+ (string-append #$output stem))))))))
(home-page "https://xkbcommon.org/")
(synopsis "Library to handle keyboard descriptions")
(description "Xkbcommon is a library to handle keyboard descriptions,