ansible: Exclude cross compiler packages not available in Debian/i386
authorKienan Stewart <kstewart@efficios.com>
Fri, 10 Nov 2023 15:25:25 +0000 (10:25 -0500)
committerKienan Stewart <kstewart@efficios.com>
Fri, 19 Jan 2024 20:00:06 +0000 (15:00 -0500)
Change-Id: I05ee89ccf407b42ee026d3c5eb70549a05037016

automation/ansible/roles/cross-compilers/tasks/setup-Debian.yml
automation/ansible/roles/cross-compilers/vars/Debian-11.yml
automation/ansible/roles/cross-compilers/vars/Debian-sid.yml
automation/ansible/roles/cross-compilers/vars/Debian-trixie.yml
automation/ansible/roles/cross-compilers/vars/Debian.yml

index bb7152e5f5341b373cc99e63badaf45a8c40500f..4eb8363354508b17425a620b1e55b6e19b7cfdc6 100644 (file)
@@ -16,7 +16,8 @@
         update_cache: true
 
 - name: Ensure cross-compilers packages are installed.
-  apt: "name={{ cross_compilers_packages }} state=present"
+  ansible.builtin.apt:
+    name: "{{ cross_compilers_packages | difference(lookup('vars', 'cross_compilers_packages_exclude_{{ansible_userspace_architecture}}', default=[]))}}"
 
 - name: Install legacy cross compilers
   when: ansible_distribution == 'Debian' and ansible_architecture == 'x86_64' and compilers_legacy_install
index cff0cdefbb761d0066c50fe2d073d90b9bc1dbe5..dfe232163abee975422b306a54241d88131fa15c 100644 (file)
@@ -23,3 +23,8 @@ cross_compilers_packages:
   - gcc-9-powerpc-linux-gnu
   - gcc-9-riscv64-linux-gnu
   - gcc-9-s390x-linux-gnu
+
+cross_compilers_packages_exclude_i386:
+  - gcc-i686-linux-gnu
+  - gcc-10-i686-linux-gnu
+  - gcc-9-i686-linux-gnu
index 1a14b327b04bace48b3c0b581cbe1e02656c5739..12311b93d30b6c5bde14c916eca777f30124e8d8 100644 (file)
@@ -31,3 +31,9 @@ cross_compilers_packages:
   - gcc-11-powerpc-linux-gnu
   - gcc-11-riscv64-linux-gnu
   - gcc-11-s390x-linux-gnu
+
+cross_compilers_packages_exclude_i386:
+  - gcc-i686-linux-gnu
+  - gcc-13-i686-linux-gnu
+  - gcc-12-i686-linux-gnu
+  - gcc-11-i686-linux-gnu
index 1a14b327b04bace48b3c0b581cbe1e02656c5739..12311b93d30b6c5bde14c916eca777f30124e8d8 100644 (file)
@@ -31,3 +31,9 @@ cross_compilers_packages:
   - gcc-11-powerpc-linux-gnu
   - gcc-11-riscv64-linux-gnu
   - gcc-11-s390x-linux-gnu
+
+cross_compilers_packages_exclude_i386:
+  - gcc-i686-linux-gnu
+  - gcc-13-i686-linux-gnu
+  - gcc-12-i686-linux-gnu
+  - gcc-11-i686-linux-gnu
index 32a8a3504f8522b68b9896f6d172ee32e21059b5..45e8723d028fd349d97daf3f73345990f21aad9a 100644 (file)
@@ -7,6 +7,7 @@ cross_compilers_packages:
   - gcc-powerpc-linux-gnu
   - gcc-riscv64-linux-gnu
   - gcc-s390x-linux-gnu
+
   - gcc-12-aarch64-linux-gnu
   - gcc-12-arm-linux-gnueabihf
   - gcc-12-i686-linux-gnu
@@ -14,6 +15,7 @@ cross_compilers_packages:
   - gcc-12-powerpc-linux-gnu
   - gcc-12-riscv64-linux-gnu
   - gcc-12-s390x-linux-gnu
+
   - gcc-11-aarch64-linux-gnu
   - gcc-11-arm-linux-gnueabihf
   - gcc-11-i686-linux-gnu
@@ -23,4 +25,11 @@ cross_compilers_packages:
   # be fetched from a snapshot source instead
   - gcc-11-powerpc-linux-gnu
   - gcc-11-riscv64-linux-gnu
+
+# Packages not available on i386
+cross_compilers_packages_exclude_i386:
+  - gcc-i686-linux-gnu
+  - gcc-12-i686-linux-gnu
+  - gcc-11-i686-linux-gnu
+
 cross_compilers_debian_bookworm_snapshot: true
This page took 0.027411 seconds and 4 git commands to generate.