From nobody Thu Dec 18 13:44:10 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1506958475963646.8455883797369; Mon, 2 Oct 2017 08:34:35 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E7AD0C0587F2; Mon, 2 Oct 2017 15:34:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C2583841C6; Mon, 2 Oct 2017 15:34:34 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 83E151806103; Mon, 2 Oct 2017 15:34:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v92FBJOi019050 for ; Mon, 2 Oct 2017 11:11:19 -0400 Received: by smtp.corp.redhat.com (Postfix) id F3EA617977; Mon, 2 Oct 2017 15:11:18 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.40.205.98]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 554CD6F999 for ; Mon, 2 Oct 2017 15:11:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E7AD0C0587F2 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Date: Mon, 2 Oct 2017 17:10:41 +0200 Message-Id: <20171002151056.30841-4-abologna@redhat.com> In-Reply-To: <20171002151056.30841-1-abologna@redhat.com> References: <20171002151056.30841-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [libvirt-jenkins-ci PATCH 03/18] ansible: Add libosinfo project X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 02 Oct 2017 15:34:35 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Andrea Bolognani --- ansible/host_vars/libvirt-centos-7/main.yml | 1 + ansible/host_vars/libvirt-debian-8/main.yml | 1 + ansible/host_vars/libvirt-debian-9/main.yml | 1 + ansible/host_vars/libvirt-fedora-25/main.yml | 1 + ansible/host_vars/libvirt-fedora-26/main.yml | 1 + ansible/host_vars/libvirt-fedora-rawhide/main.yml | 1 + ansible/host_vars/libvirt-freebsd-11/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-14/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-16/main.yml | 1 + ansible/tasks/build.yml | 40 +++++++++++++++++++= ++++ ansible/vars/libosinfo/CentOS-7.yml | 19 +++++++++++ ansible/vars/libosinfo/Debian-8.yml | 19 +++++++++++ ansible/vars/libosinfo/Debian-9.yml | 19 +++++++++++ ansible/vars/libosinfo/Fedora-25.yml | 19 +++++++++++ ansible/vars/libosinfo/Fedora-26.yml | 19 +++++++++++ ansible/vars/libosinfo/Fedora-Rawhide.yml | 19 +++++++++++ ansible/vars/libosinfo/FreeBSD-11.yml | 19 +++++++++++ ansible/vars/libosinfo/Ubuntu-14.yml | 19 +++++++++++ ansible/vars/libosinfo/Ubuntu-16.yml | 19 +++++++++++ 19 files changed, 220 insertions(+) create mode 100644 ansible/vars/libosinfo/CentOS-7.yml create mode 100644 ansible/vars/libosinfo/Debian-8.yml create mode 100644 ansible/vars/libosinfo/Debian-9.yml create mode 100644 ansible/vars/libosinfo/Fedora-25.yml create mode 100644 ansible/vars/libosinfo/Fedora-26.yml create mode 100644 ansible/vars/libosinfo/Fedora-Rawhide.yml create mode 100644 ansible/vars/libosinfo/FreeBSD-11.yml create mode 100644 ansible/vars/libosinfo/Ubuntu-14.yml create mode 100644 ansible/vars/libosinfo/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_var= s/libvirt-centos-7/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_var= s/libvirt-debian-8/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_var= s/libvirt-debian-9/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_va= rs/libvirt-fedora-25/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_va= rs/libvirt-fedora-26/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/ho= st_vars/libvirt-fedora-rawhide/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_v= ars/libvirt-freebsd-11/main.yml index d405d58..81e362d 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -8,3 +8,4 @@ sudo: /usr/local/bin/sudo =20 projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml b/ansible/host_va= rs/libvirt-ubuntu-14/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-ubuntu-14/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_va= rs/libvirt-ubuntu-16/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index edb0064..2210261 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -12,3 +12,43 @@ command: git clean -xdf args: chdir: '{{ project }}' + +# C build + +- name: '{{ project }}: Prepare configure options' + set_fact: + configure_options: [] + +- name: '{{ project }}: Prepare configure options' + set_fact: + configure_options: '{{ configure_options }} + [ "{{ features[item] }}"= ]' + with_items: + '{{ features }}' + when: + - features is defined + +- name: '{{ project }}: Prepare configure options' + set_fact: + configure_options: '{{ configure_options | join(" ") }}' + +- name: '{{ project }}: Run autogen.sh' + command: './autogen.sh {{ configure_options }}' + args: + chdir: '{{ project }}' + environment: + when: + - project =3D=3D 'libosinfo' + +- name: '{{ project }}: Build project' + command: '{{ make }} -j{{ smp }}' + args: + chdir: '{{ project }}' + when: + - project =3D=3D 'libosinfo' + +- name: '{{ project }}: Run sanity checks' + command: '{{ make }} -j{{ smp }} syntax-check' + args: + chdir: '{{ project }}' + when: + - project =3D=3D 'libosinfo' diff --git a/ansible/vars/libosinfo/CentOS-7.yml b/ansible/vars/libosinfo/C= entOS-7.yml new file mode 100644 index 0000000..c833b54 --- /dev/null +++ b/ansible/vars/libosinfo/CentOS-7.yml @@ -0,0 +1,19 @@ +--- +packages: + - check-devel + - glib2-devel + - gnome-common + - gobject-introspection-devel + - gtk-doc + - hwdata + - intltool + - libsoup-devel + - libxml2 + - libxml2-devel + - libxslt-devel + - vala + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Debian-8.yml b/ansible/vars/libosinfo/D= ebian-8.yml new file mode 100644 index 0000000..f2d7ac1 --- /dev/null +++ b/ansible/vars/libosinfo/Debian-8.yml @@ -0,0 +1,19 @@ +--- +packages: + - check + - gnome-common + - gtk-doc-tools + - hwdata + - intltool + - libgirepository1.0-dev + - libglib2.0-dev + - libsoup2.4-dev + - libxml2-dev + - libxml2-utils + - libxslt1-dev + - valac + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Debian-9.yml b/ansible/vars/libosinfo/D= ebian-9.yml new file mode 100644 index 0000000..f2d7ac1 --- /dev/null +++ b/ansible/vars/libosinfo/Debian-9.yml @@ -0,0 +1,19 @@ +--- +packages: + - check + - gnome-common + - gtk-doc-tools + - hwdata + - intltool + - libgirepository1.0-dev + - libglib2.0-dev + - libsoup2.4-dev + - libxml2-dev + - libxml2-utils + - libxslt1-dev + - valac + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Fedora-25.yml b/ansible/vars/libosinfo/= Fedora-25.yml new file mode 100644 index 0000000..c833b54 --- /dev/null +++ b/ansible/vars/libosinfo/Fedora-25.yml @@ -0,0 +1,19 @@ +--- +packages: + - check-devel + - glib2-devel + - gnome-common + - gobject-introspection-devel + - gtk-doc + - hwdata + - intltool + - libsoup-devel + - libxml2 + - libxml2-devel + - libxslt-devel + - vala + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Fedora-26.yml b/ansible/vars/libosinfo/= Fedora-26.yml new file mode 100644 index 0000000..c833b54 --- /dev/null +++ b/ansible/vars/libosinfo/Fedora-26.yml @@ -0,0 +1,19 @@ +--- +packages: + - check-devel + - glib2-devel + - gnome-common + - gobject-introspection-devel + - gtk-doc + - hwdata + - intltool + - libsoup-devel + - libxml2 + - libxml2-devel + - libxslt-devel + - vala + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Fedora-Rawhide.yml b/ansible/vars/libos= info/Fedora-Rawhide.yml new file mode 100644 index 0000000..c833b54 --- /dev/null +++ b/ansible/vars/libosinfo/Fedora-Rawhide.yml @@ -0,0 +1,19 @@ +--- +packages: + - check-devel + - glib2-devel + - gnome-common + - gobject-introspection-devel + - gtk-doc + - hwdata + - intltool + - libsoup-devel + - libxml2 + - libxml2-devel + - libxslt-devel + - vala + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/FreeBSD-11.yml b/ansible/vars/libosinfo= /FreeBSD-11.yml new file mode 100644 index 0000000..27787cf --- /dev/null +++ b/ansible/vars/libosinfo/FreeBSD-11.yml @@ -0,0 +1,19 @@ +--- +packages: + - check + - glib + - gnome-common + - gobject-introspection + - gtk-doc + - intltool + - libsoup + - libxml2 + - libxslt + - pciids + - usbids + - vala + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Ubuntu-14.yml b/ansible/vars/libosinfo/= Ubuntu-14.yml new file mode 100644 index 0000000..f2d7ac1 --- /dev/null +++ b/ansible/vars/libosinfo/Ubuntu-14.yml @@ -0,0 +1,19 @@ +--- +packages: + - check + - gnome-common + - gtk-doc-tools + - hwdata + - intltool + - libgirepository1.0-dev + - libglib2.0-dev + - libsoup2.4-dev + - libxml2-dev + - libxml2-utils + - libxslt1-dev + - valac + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Ubuntu-16.yml b/ansible/vars/libosinfo/= Ubuntu-16.yml new file mode 100644 index 0000000..f2d7ac1 --- /dev/null +++ b/ansible/vars/libosinfo/Ubuntu-16.yml @@ -0,0 +1,19 @@ +--- +packages: + - check + - gnome-common + - gtk-doc-tools + - hwdata + - intltool + - libgirepository1.0-dev + - libglib2.0-dev + - libsoup2.4-dev + - libxml2-dev + - libxml2-utils + - libxslt1-dev + - valac + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala --=20 2.13.6 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list