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