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

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

See first commit in the series for the procedure.
---
 gnu/packages/linux.scm | 167 +++++++++++++++++++++--------------------
 1 file changed, 87 insertions(+), 80 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index d8f1f6912e..d387d699a9 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -82,86 +82,93 @@
 
 (define-module (gnu packages linux)
   #:use-module (gnu packages)
-  #:use-module (gnu packages acl)
-  #:use-module (gnu packages admin)
-  #:use-module (gnu packages algebra)
-  #:use-module (gnu packages audio)
-  #:use-module (gnu packages autotools)
-  #:use-module (gnu packages avahi)
-  #:use-module (gnu packages backup)
-  #:use-module (gnu packages base)
-  #:use-module (gnu packages bash)
-  #:use-module (gnu packages bison)
-  #:use-module (gnu packages boost)
-  #:use-module (gnu packages calendar)
-  #:use-module (gnu packages check)
-  #:use-module (gnu packages cpio)
-  #:use-module (gnu packages crypto)
-  #:use-module (gnu packages cryptsetup)
-  #:use-module (gnu packages compression)
-  #:use-module (gnu packages databases)
-  #:use-module (gnu packages datastructures)
-  #:use-module (gnu packages dbm)
-  #:use-module (gnu packages docbook)
-  #:use-module (gnu packages documentation)
-  #:use-module (gnu packages elf)
-  #:use-module (gnu packages flex)
-  #:use-module (gnu packages file)
-  #:use-module (gnu packages freedesktop)
-  #:use-module (gnu packages gawk)
-  #:use-module (gnu packages gcc)
-  #:use-module (gnu packages gettext)
-  #:use-module (gnu packages glib)
-  #:use-module (gnu packages gnome)
-  #:use-module (gnu packages gnupg)
-  #:use-module (gnu packages golang)
-  #:use-module (gnu packages gperf)
-  #:use-module (gnu packages gstreamer)
-  #:use-module (gnu packages gtk)
-  #:use-module (gnu packages haskell-apps)
-  #:use-module (gnu packages haskell-xyz)
-  #:use-module (gnu packages libunwind)
-  #:use-module (gnu packages libusb)
-  #:use-module (gnu packages llvm)
-  #:use-module (gnu packages lua)
-  #:use-module (gnu packages man)
-  #:use-module (gnu packages maths)
-  #:use-module (gnu packages multiprecision)
-  #:use-module (gnu packages ncurses)
-  #:use-module (gnu packages netpbm)
-  #:use-module (gnu packages networking)
-  #:use-module (gnu packages ninja)
-  #:use-module (gnu packages nss)
-  #:use-module (gnu packages onc-rpc)
-  #:use-module (gnu packages perl)
-  #:use-module (gnu packages pciutils)
-  #:use-module (gnu packages pkg-config)
-  #:use-module (gnu packages popt)
-  #:use-module (gnu packages pulseaudio)
-  #:use-module (gnu packages python)
-  #:use-module (gnu packages python-xyz)
-  #:use-module (gnu packages readline)
-  #:use-module (gnu packages rrdtool)
-  #:use-module (gnu packages samba)
-  #:use-module (gnu packages sdl)
-  #:use-module (gnu packages serialization)
-  #:use-module (gnu packages slang)
-  #:use-module (gnu packages sqlite)
-  #:use-module (gnu packages texinfo)
-  #:use-module (gnu packages textutils)
-  #:use-module (gnu packages tls)
-  #:use-module (gnu packages valgrind)
-  #:use-module (gnu packages video)
-  #:use-module (gnu packages vulkan)
-  #:use-module (gnu packages web)
-  #:use-module (gnu packages xiph)
-  #:use-module (gnu packages xml)
-  #:use-module (gnu packages xdisorg)
-  #:use-module (gnu packages xorg)
-  #:use-module (gnu packages groff)
-  #:use-module (gnu packages selinux)
-  #:use-module (gnu packages sphinx)
-  #:use-module (gnu packages swig)
+  #:autoload (gnu packages acl) (acl)
+  #:use-module (gnu packages admin) ; required by "guix build -d guix"
+  #:autoload (gnu packages algebra) (bc)
+  #:autoload (gnu packages audio) (jack-1 jack-2 ldacbt)
+  #:autoload (gnu packages autotools)
+  (autoconf autoconf-2.71 autoconf-archive automake config libtool)
+  #:autoload (gnu packages avahi) (avahi)
+  #:autoload (gnu packages backup) (libarchive)
+  #:autoload (gnu packages base)
+  (binutils canonical-package coreutils diffutils findutils grep
+            make-ld-wrapper patch sed tar which)
+  #:autoload (gnu packages bash) (bash bash-minimal)
+  #:use-module (gnu packages bison) ; required by "guix build -d guix"
+  #:use-module (gnu packages boost) ; required by "guix build -d guix"
+  #:autoload (gnu packages calendar) (libical)
+  #:autoload (gnu packages check)
+  (check cmocka cppcheck python-discover python-pytest)
+  #:autoload (gnu packages cpio) (cpio)
+  #:autoload (gnu packages crypto) (keyutils)
+  #:autoload (gnu packages cryptsetup) (cryptsetup)
+  #:use-module (gnu packages compression) ; required by "guix build -d guix"
+  #:autoload (gnu packages databases) (mysql postgresql)
+  #:autoload (gnu packages datastructures) (liburcu)
+  #:use-module (gnu packages dbm) ; required by "guix build -d guix"
+  #:autoload (gnu packages docbook) (docbook2x docbook-xml-4.2 docbook-xsl)
+  #:autoload (gnu packages documentation) (asciidoc)
+  #:autoload (gnu packages elf) (elfutils)
+  #:use-module (gnu packages flex) ; required by "guix build -d guix"
+  #:use-module (gnu packages file) ; required by "guix build -d guix"
+  #:autoload (gnu packages freedesktop) (elogind libatasmart libinput)
+  #:autoload (gnu packages gawk) (gawk)
+  #:autoload (gnu packages gcc) (libiberty)
+  #:use-module (gnu packages gettext) ; required by "guix build -d guix"
+  #:autoload (gnu packages glib)
+  (dbus python-pygobject glib gobject-introspection intltool)
+  #:autoload (gnu packages gnome) (libgudev)
+  #:autoload (gnu packages gnupg) (gnupg)
+  #:autoload (gnu packages golang) (go go-golang-org-x-sys)
+  #:autoload (gnu packages gperf) (gperf)
+  #:autoload (gnu packages gstreamer) (gstreamer gst-plugins-base)
+  #:autoload (gnu packages gtk) (cairo gtk+ gtk+-2)
+  #:autoload (gnu packages haskell-apps) (shellcheck)
+  #:autoload (gnu packages haskell-xyz) (pandoc)
+  #:autoload (gnu packages libunwind) (libunwind)
+  #:autoload (gnu packages libusb) (libmtp libusb)
+  #:autoload (gnu packages llvm) (clang-toolchain-9)
+  #:autoload (gnu packages lua) (lua luajit)
+  #:autoload (gnu packages man) (mandoc)
+  #:autoload (gnu packages maths) (gnuplot)
+  #:autoload (gnu packages multiprecision) (gmp mpc mpfr)
+  #:use-module (gnu packages ncurses) ; required by "guix build -d guix"
+  #:autoload (gnu packages netpbm) (netpbm)
+  #:autoload (gnu packages networking) (ethtool go-netns)
+  #:autoload (gnu packages ninja) (ninja)
+  #:autoload (gnu packages nss) (nss)
+  #:autoload (gnu packages onc-rpc) (libtirpc)
+  #:use-module (gnu packages perl) ; required by "guix build -d guix"
+  #:autoload (gnu packages pciutils) (pciutils)
+  #:use-module (gnu packages pkg-config) ; required by "guix build -d guix"
+  #:autoload (gnu packages popt) (popt)
+  #:autoload (gnu packages pulseaudio) (libsamplerate libsndfile pulseaudio)
+  #:autoload (gnu packages python) (python python-2 python-3 python-wrapper)
+  #:autoload (gnu packages python-xyz) (python-docutils)
+  #:autoload (gnu packages readline) (readline)
+  #:autoload (gnu packages rrdtool) (rrdtool)
+  #:autoload (gnu packages samba) (talloc talloc/static)
+  #:autoload (gnu packages sdl) (sdl2)
+  #:autoload (gnu packages serialization) (cereal yaml-cpp)
+  #:autoload (gnu packages slang) (slang)
+  #:autoload (gnu packages sqlite) (sqlite)
+  #:autoload (gnu packages texinfo) (texinfo)
+  #:autoload (gnu packages textutils) (libconfuse)
+  #:autoload (gnu packages tls) (openssl)
+  #:autoload (gnu packages valgrind) (valgrind)
+  #:autoload (gnu packages video) (ffmpeg libva)
+  #:autoload (gnu packages vulkan) (vulkan-headers vulkan-loader)
+  #:autoload (gnu packages web) (jansson json-c)
+  #:autoload (gnu packages xiph) (speex)
+  #:autoload (gnu packages xml)
+  (expat libxml2 libxslt pugixml xmlto)
+  #:autoload (gnu packages xdisorg) (libdrm)
+  #:autoload (gnu packages xorg)
+  (libevdev libpciaccess libxcb libxrandr libxtst)
+  #:autoload (gnu packages groff) (groff)
+  #:autoload (gnu packages selinux) (libselinux)
+  #:autoload (gnu packages sphinx) (python-sphinx)
+  #:autoload (gnu packages swig) (swig)
   #:use-module (guix platform)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system copy)
-- 
2.37.2