Not built on Debian 8, as the version of OCaml is not new enough.
Signed-off-by: Pino Toscano <ptoscano(a)redhat.com>
---
guests/host_vars/libvirt-centos-7/main.yml | 1 +
guests/host_vars/libvirt-debian-9/main.yml | 1 +
guests/host_vars/libvirt-debian-sid/main.yml | 1 +
guests/host_vars/libvirt-fedora-27/main.yml | 1 +
guests/host_vars/libvirt-fedora-28/main.yml | 1 +
.../host_vars/libvirt-fedora-rawhide/main.yml | 1 +
guests/host_vars/libvirt-freebsd-10/main.yml | 1 +
guests/host_vars/libvirt-freebsd-11/main.yml | 1 +
.../libvirt-freebsd-current/main.yml | 1 +
guests/host_vars/libvirt-ubuntu-16/main.yml | 1 +
guests/host_vars/libvirt-ubuntu-18/main.yml | 1 +
guests/playbooks/build/jobs/defaults.yml | 2 ++
.../build/projects/libvirt-ocaml.yml | 27 +++++++++++++++++++
guests/vars/projects/libvirt-ocaml.yml | 5 ++++
14 files changed, 45 insertions(+)
create mode 100644 guests/playbooks/build/projects/libvirt-ocaml.yml
create mode 100644 guests/vars/projects/libvirt-ocaml.yml
diff --git a/guests/host_vars/libvirt-centos-7/main.yml
b/guests/host_vars/libvirt-centos-7/main.yml
index e220849..8be54b6 100644
--- a/guests/host_vars/libvirt-centos-7/main.yml
+++ b/guests/host_vars/libvirt-centos-7/main.yml
@@ -7,6 +7,7 @@ projects:
- libvirt-glib
- libvirt-go
- libvirt-go-xml
+ - libvirt-ocaml
- libvirt-perl
- libvirt-python
- osinfo-db
diff --git a/guests/host_vars/libvirt-debian-9/main.yml
b/guests/host_vars/libvirt-debian-9/main.yml
index cdc5a57..33476ad 100644
--- a/guests/host_vars/libvirt-debian-9/main.yml
+++ b/guests/host_vars/libvirt-debian-9/main.yml
@@ -6,6 +6,7 @@ projects:
- libvirt-glib
- libvirt-go
- libvirt-go-xml
+ - libvirt-ocaml
- libvirt-perl
- libvirt-python
- libvirt-sandbox
diff --git a/guests/host_vars/libvirt-debian-sid/main.yml
b/guests/host_vars/libvirt-debian-sid/main.yml
index 5dd887b..f2594e7 100644
--- a/guests/host_vars/libvirt-debian-sid/main.yml
+++ b/guests/host_vars/libvirt-debian-sid/main.yml
@@ -6,6 +6,7 @@ projects:
- libvirt-glib
- libvirt-go
- libvirt-go-xml
+ - libvirt-ocaml
- libvirt-perl
- libvirt-python
- libvirt-sandbox
diff --git a/guests/host_vars/libvirt-fedora-27/main.yml
b/guests/host_vars/libvirt-fedora-27/main.yml
index f131953..0b4ec2b 100644
--- a/guests/host_vars/libvirt-fedora-27/main.yml
+++ b/guests/host_vars/libvirt-fedora-27/main.yml
@@ -7,6 +7,7 @@ projects:
- libvirt-glib
- libvirt-go
- libvirt-go-xml
+ - libvirt-ocaml
- libvirt-perl
- libvirt-python
- libvirt-sandbox
diff --git a/guests/host_vars/libvirt-fedora-28/main.yml
b/guests/host_vars/libvirt-fedora-28/main.yml
index f115598..13555af 100644
--- a/guests/host_vars/libvirt-fedora-28/main.yml
+++ b/guests/host_vars/libvirt-fedora-28/main.yml
@@ -7,6 +7,7 @@ projects:
- libvirt-glib
- libvirt-go
- libvirt-go-xml
+ - libvirt-ocaml
- libvirt-perl
- libvirt-python
- libvirt-sandbox
diff --git a/guests/host_vars/libvirt-fedora-rawhide/main.yml
b/guests/host_vars/libvirt-fedora-rawhide/main.yml
index 4318653..604f57f 100644
--- a/guests/host_vars/libvirt-fedora-rawhide/main.yml
+++ b/guests/host_vars/libvirt-fedora-rawhide/main.yml
@@ -13,6 +13,7 @@ projects:
- libvirt-glib+mingw64
- libvirt-go
- libvirt-go-xml
+ - libvirt-ocaml
- libvirt-perl
- libvirt-python
- libvirt-sandbox
diff --git a/guests/host_vars/libvirt-freebsd-10/main.yml
b/guests/host_vars/libvirt-freebsd-10/main.yml
index 005acb4..6547ab4 100644
--- a/guests/host_vars/libvirt-freebsd-10/main.yml
+++ b/guests/host_vars/libvirt-freebsd-10/main.yml
@@ -8,6 +8,7 @@ projects:
- libvirt-glib
- libvirt-go
- libvirt-go-xml
+ - libvirt-ocaml
- libvirt-perl
- libvirt-python
- libvirt-tck
diff --git a/guests/host_vars/libvirt-freebsd-11/main.yml
b/guests/host_vars/libvirt-freebsd-11/main.yml
index dd06fc5..887c9e6 100644
--- a/guests/host_vars/libvirt-freebsd-11/main.yml
+++ b/guests/host_vars/libvirt-freebsd-11/main.yml
@@ -8,6 +8,7 @@ projects:
- libvirt-glib
- libvirt-go
- libvirt-go-xml
+ - libvirt-ocaml
- libvirt-perl
- libvirt-python
- libvirt-tck
diff --git a/guests/host_vars/libvirt-freebsd-current/main.yml
b/guests/host_vars/libvirt-freebsd-current/main.yml
index 07f3f25..1f3e911 100644
--- a/guests/host_vars/libvirt-freebsd-current/main.yml
+++ b/guests/host_vars/libvirt-freebsd-current/main.yml
@@ -8,6 +8,7 @@ projects:
- libvirt-glib
- libvirt-go
- libvirt-go-xml
+ - libvirt-ocaml
- libvirt-perl
- libvirt-python
- libvirt-tck
diff --git a/guests/host_vars/libvirt-ubuntu-16/main.yml
b/guests/host_vars/libvirt-ubuntu-16/main.yml
index 4d9914a..6ec1df8 100644
--- a/guests/host_vars/libvirt-ubuntu-16/main.yml
+++ b/guests/host_vars/libvirt-ubuntu-16/main.yml
@@ -6,6 +6,7 @@ projects:
- libvirt-glib
- libvirt-go
- libvirt-go-xml
+ - libvirt-ocaml
- libvirt-perl
- libvirt-python
- libvirt-sandbox
diff --git a/guests/host_vars/libvirt-ubuntu-18/main.yml
b/guests/host_vars/libvirt-ubuntu-18/main.yml
index 8a45854..61c7384 100644
--- a/guests/host_vars/libvirt-ubuntu-18/main.yml
+++ b/guests/host_vars/libvirt-ubuntu-18/main.yml
@@ -6,6 +6,7 @@ projects:
- libvirt-glib
- libvirt-go
- libvirt-go-xml
+ - libvirt-ocaml
- libvirt-perl
- libvirt-python
- libvirt-sandbox
diff --git a/guests/playbooks/build/jobs/defaults.yml
b/guests/playbooks/build/jobs/defaults.yml
index 522dd83..81c5fab 100644
--- a/guests/playbooks/build/jobs/defaults.yml
+++ b/guests/playbooks/build/jobs/defaults.yml
@@ -52,6 +52,8 @@ git_urls:
default:
https://github.com/libvirt/libvirt-go-xml.git
libvirt-go:
default:
https://github.com/libvirt/libvirt-go.git
+ libvirt-ocaml:
+ default:
https://github.com/libvirt/libvirt-ocaml.git
libvirt-perl:
default:
https://github.com/libvirt/libvirt-perl.git
libvirt-python:
diff --git a/guests/playbooks/build/projects/libvirt-ocaml.yml
b/guests/playbooks/build/projects/libvirt-ocaml.yml
new file mode 100644
index 0000000..7cead1b
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-ocaml.yml
@@ -0,0 +1,27 @@
+---
+- set_fact:
+ name: libvirt-ocaml
+ # Debian 8 doesn't have a recent enough OCaml
+ machines:
+ - libvirt-centos-7
+ - libvirt-debian-9
+ - libvirt-debian-sid
+ - libvirt-fedora-27
+ - libvirt-fedora-28
+ - libvirt-fedora-rawhide
+ - libvirt-freebsd-10
+ - libvirt-freebsd-11
+ - libvirt-freebsd-current
+ - libvirt-ubuntu-16
+ - libvirt-ubuntu-18
+ archive_format: xz
+ git_url: '{{ git_urls["libvirt-ocaml"][git_remote] }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/generic-build-job.yml'
+ vars:
+ command: |
+ autoreconf -vfi
+ ./configure --prefix=$VIRT_PREFIX --with-libvirt=$VIRT_PREFIX
+ $MAKE
+ $MAKE opt
diff --git a/guests/vars/projects/libvirt-ocaml.yml
b/guests/vars/projects/libvirt-ocaml.yml
new file mode 100644
index 0000000..27885c1
--- /dev/null
+++ b/guests/vars/projects/libvirt-ocaml.yml
@@ -0,0 +1,5 @@
+---
+packages:
+ - ocaml
+ - ocaml-findlib
+ - perl
--
2.17.2