2020-04-06 09:56:58 +00:00
|
|
|
=======================
|
|
|
|
Contributing to libvirt
|
|
|
|
=======================
|
|
|
|
|
|
|
|
Full, up to date information on how to contribute to libvirt can be
|
|
|
|
found on the libvirt website:
|
|
|
|
|
|
|
|
https://libvirt.org/contribute.html
|
|
|
|
|
|
|
|
To build the same document locally, from the top level directory of
|
|
|
|
your git clone run:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2020-07-17 19:09:25 +00:00
|
|
|
$ meson build
|
|
|
|
$ ninja -C build
|
2020-04-06 09:56:58 +00:00
|
|
|
|
|
|
|
You'll find the freshly-built document in ``docs/contribute.html``.
|
2020-04-20 10:49:09 +00:00
|
|
|
|
2020-07-17 19:09:25 +00:00
|
|
|
If ``meson setup`` fails because of missing dependencies, you can set
|
2020-04-20 10:49:09 +00:00
|
|
|
up your system by calling
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2020-04-27 10:49:06 +00:00
|
|
|
$ sudo dnf builddep libvirt
|
2020-04-20 10:49:09 +00:00
|
|
|
|
|
|
|
if you're on a RHEL-based distribution or
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2020-04-27 10:49:06 +00:00
|
|
|
$ sudo apt-get build-dep libvirt
|
2020-04-20 10:49:09 +00:00
|
|
|
|
|
|
|
if you're on a Debian-based one.
|
|
|
|
|
2020-04-27 10:48:51 +00:00
|
|
|
Note that, for the RHEL-based case, if you're on a machine where you
|
|
|
|
haven't done any C development before, you will probably also need
|
|
|
|
to run
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2020-07-17 19:09:25 +00:00
|
|
|
$ sudo dnf install gcc make ninja-build rpm-build
|
2020-04-27 10:48:51 +00:00
|
|
|
|
2020-04-20 10:49:09 +00:00
|
|
|
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.
|