[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65479] [PATCH core-updates v3 04/63] gnu: libxslt: Set search-paths
From: |
Bruno Victal |
Subject: |
[bug#65479] [PATCH core-updates v3 04/63] gnu: libxslt: Set search-paths for XML and SGML catalogs. |
Date: |
Mon, 9 Oct 2023 21:05:52 +0100 |
According to xsltproc manpage it supports both XML_CATALOG_FILES and
SGML_CATALOG_FILES for catalog lookup.
Since the native-search-paths field is not thunked,
doing (package-native-search-paths libxslt) can lead to module import cycles
so we define a %libxslt-search-paths variable to avoid this kind of trouble.
* guix/search-paths.scm (%libxslt-search-paths): New variable.
* gnu/packages/xml.scm (libxslt)[native-search-paths]: Set to
%libxslt-search-paths.
* gnu/packages/perl.scm
(perl-app-xml-docbook-builder)[native-search-paths]: Ditto.
---
gnu/packages/perl.scm | 4 +---
gnu/packages/xml.scm | 1 +
guix/search-paths.scm | 4 ++++
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 267a35e560..f0b91e6b65 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -599,9 +599,7 @@ (define-public perl-app-xml-docbook-builder
(list libxslt))
(propagated-inputs
(list perl-class-xsaccessor perl-test-trap))
- (native-search-paths
- ;; xsltproc's search paths, to avoid propagating libxslt.
- (list $XML_CATALOG_FILES))
+ (native-search-paths %libxslt-search-paths)
(home-page "https://www.shlomifish.org/open-source/projects/docmake/")
(synopsis "Translate DocBook/XML documentation into other file formats")
(description
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 16aabffca8..0b31bb5928 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -365,6 +365,7 @@ (define-public libxslt
xz))
(native-inputs
(list pkg-config))
+ (native-search-paths %libxslt-search-paths)
(description
"Libxslt is an XSLT C library developed for the GNOME project. It is
based on libxml for XML parsing, tree manipulation and XPath support.")
diff --git a/guix/search-paths.scm b/guix/search-paths.scm
index d325e57989..a935684952 100644
--- a/guix/search-paths.scm
+++ b/guix/search-paths.scm
@@ -46,6 +46,7 @@ (define-module (guix search-paths)
$XML_CATALOG_FILES
%gcc-search-paths
+ %libxslt-search-paths
search-path-specification->sexp
sexp->search-path-specification
@@ -179,6 +180,9 @@ (define $XML_CATALOG_FILES
(file-pattern "^catalog\\.xml$")
(file-type 'regular)))
+(define %libxslt-search-paths
+ (list $SGML_CATALOG_FILES $XML_CATALOG_FILES))
+
(define (search-path-specification->sexp spec)
"Return an sexp representing SPEC, a <search-path-specification>. The sexp
corresponds to the arguments expected by `set-path-environment-variable'."
--
2.41.0
- [bug#65479] [PATCH core-updates v3 02/63] search-paths: Add $XML_CATALOG_FILES and $SGML_CATALOG_FILES., (continued)
- [bug#65479] [PATCH core-updates v3 36/63] gnu: metapixel: Drop docbook workaround., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 12/63] gnu: docbook2x: Import patches from debian., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 30/63] gnu: udisks: Drop docbook workaround., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 39/63] gnu: libxkbcommon: Faux propagate libxml2., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 19/63] gnu: dblatex: Split documentation., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 22/63] gnu: lilypond: Use dblatex/stable., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 10/63] gnu: docbook: Remove leftovers., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 13/63] gnu: docbook2x: Fix sgml2xml-isoent and add test dependencies., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 11/63] gnu: docbook-utils: Import patches from debian., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 04/63] gnu: libxslt: Set search-paths for XML and SGML catalogs.,
Bruno Victal <=
- [bug#65479] [PATCH core-updates v3 34/63] gnu: git-crypt: Remove docbook workarounds., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 32/63] gnu: criu: Drop xmlto workaround., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 42/63] gnu: tdb: Build manpages., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 45/63] gnu: iputils: Use docbook-xml-5.0.1., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 16/63] gnu: docbook2x: Use search-path-as-list for wrapping., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 29/63] gnu: udisks: Rewrite using G-Expressions., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 21/63] gnu: dblatex: Fix missing texlive binaries and fig2dev., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 18/63] gnu: dblatex: Add libxslt native-search-paths to its own., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 23/63] gnu: xmlto: Rewrite with G-Expressions., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 14/63] gnu: docbook2x: Split documentation., Bruno Victal, 2023/10/09