[RFC PATCH 5/9] scripts/ci: Restrict libpmem-devel package to x86 hosts

Philippe Mathieu-Daudé posted 9 patches 10 months, 3 weeks ago
Maintainers: "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Thomas Huth <thuth@redhat.com>, Wainer dos Santos Moschetta <wainersm@redhat.com>, Beraldo Leal <bleal@redhat.com>
[RFC PATCH 5/9] scripts/ci: Restrict libpmem-devel package to x86 hosts
Posted by Philippe Mathieu-Daudé 10 months, 3 weeks ago
libpmem-devel is not available for all host archs.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 scripts/ci/setup/build-environment.yml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/scripts/ci/setup/build-environment.yml b/scripts/ci/setup/build-environment.yml
index 9518cc55a5..280e67593c 100644
--- a/scripts/ci/setup/build-environment.yml
+++ b/scripts/ci/setup/build-environment.yml
@@ -247,7 +247,6 @@
           - libiscsi-devel
           - libjpeg-devel
           - libnfs-devel
-          - libpmem-devel
           - libpng-devel
           - librbd-devel
           - libseccomp-devel
@@ -318,6 +317,14 @@
         - ansible_facts['distribution_file_variety'] in ['RedHat']
         - ansible_facts['distribution_version'] == '8'
 
+    - name: Install arch-specific packages (RH family)
+      dnf:
+        name:
+          - libpmem-devel
+      when:
+        - ansible_facts['os_family'] == 'RedHat'
+        - ansible_facts['architecture'] == 'x86_64'
+
     - name: Install Spice packages
       dnf:
         # Spice server not available in ppc64le
-- 
2.41.0