]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
CONTRIBUTING: Include information on build dependencies
authorAndrea Bolognani <abologna@redhat.com>
Mon, 20 Apr 2020 10:49:09 +0000 (12:49 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 21 Apr 2020 17:25:38 +0000 (19:25 +0200)
libvirt depends on a ton of packages, so trying to install them
all by using the classic approach of repeatedly running configure
and reacting to each failure by installing the corresponding
missing package will inevitably lead to frustration.

Luckily there's an easy solution to get most dependencies
installed in one fell swoop, and we just need to document it.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
CONTRIBUTING.rst

index 68c7b547c66b037f0b07dd54d89d6912f80d5624..f476700fddc1e8c823a2d9245f2085da9dd9c3a8 100644 (file)
@@ -17,3 +17,22 @@ your git clone run:
   $ make
 
 You'll find the freshly-built document in ``docs/contribute.html``.
+
+If ``configure`` fails because of missing dependencies, you can set
+up your system by calling
+
+::
+
+  $ sudo dnf builddep libvirt
+
+if you're on a RHEL-based distribution or
+
+::
+
+  $ sudo apt-get build-dep libvirt
+
+if you're on a Debian-based one.
+
+You might still be missing some dependencies if your distribution is
+shipping an old libvirt version, but that will get you much closer to
+where you need to be to build successfully from source.