Subject: [bug#54539] [PATCH v2 14/30] gnu: docbook: Autoload unless used by Guix.

From: Maxime Devos <[email-masked]>
Date: Sat, 3 Sep 2022 18:43:16 +0200

See first commit in the series for the procedure.
---
 gnu/packages/docbook.scm | 32 +++++++++++++++++++++-----------
 1 file changed, 21 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm
index ae0ea07dbf..3539a3140e 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -26,17 +26,27 @@
 
 (define-module (gnu packages docbook)
   #:use-module (gnu packages)
-  #:use-module (gnu packages bash)
-  #:use-module (gnu packages compression)
-  #:use-module (gnu packages imagemagick)
-  #:use-module (gnu packages inkscape)
-  #:use-module (gnu packages tex)
-  #:use-module (gnu packages texinfo)
-  #:use-module (gnu packages perl)
-  #:use-module (gnu packages python)
-  #:use-module (gnu packages base)
-  #:use-module (gnu packages web-browsers)
-  #:use-module (gnu packages xml)
+  #:autoload (gnu packages bash) (bash-minimal)
+  #:use-module (gnu packages compression) ; required by "guix build -d guix"
+  #:autoload (gnu packages imagemagick) (imagemagick imagemagick/stable)
+  #:autoload (gnu packages inkscape) (inkscape/stable)
+  #:autoload (gnu packages tex)
+  (texlive-amsfonts
+   texlive-fonts-rsfs texlive-generic-iftex texlive-hyperref texlive-jadetex
+   texlive-latex-anysize texlive-latex-appendix texlive-latex-bookmark
+   texlive-latex-changebar texlive-latex-colortbl texlive-latex-fancybox
+   texlive-latex-fancyhdr texlive-latex-fancyvrb texlive-latex-float
+   texlive-latex-footmisc texlive-latex-jknapltx texlive-latex-listings
+   texlive-latex-multirow texlive-latex-overpic texlive-latex-pdfpages
+   texlive-latex-refcount texlive-latex-subfigure texlive-latex-titlesec
+   texlive-stmaryrd texlive-updmap.cfg texlive-wasysym)
+  #:autoload (gnu packages texinfo) (texinfo)
+  #:autoload (gnu packages perl) (perl perl-sgmls)
+  #:use-module (gnu packages base) ; required by "guix build -d guix"
+  #:autoload (gnu packages web-browsers) (lynx)
+  #:autoload (gnu packages xml)
+  (libxslt openjade opensp perl-xml-namespacesupport perl-xml-parser
+           perl-xml-sax perl-xml-sax-base)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
-- 
2.37.2