diff mbox series

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

Message ID 20240104160805.56856-6-philmd@linaro.org
State New
Headers show
Series scripts/ci: Consolidate Ansible playbook rules | expand

Commit Message

Philippe Mathieu-Daudé Jan. 4, 2024, 4:08 p.m. UTC
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 mbox series

Patch

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