- name: Update apt cache.
apt: update_cache=yes cache_valid_time=86400
+- name: Add snapshot soures for gcc-11-powerpc/riscv64
+ when: ansible_distribution == 'Debian'
+ block:
+ - ansible.builtin.copy:
+ dest: /etc/apt/preferences.d/snapshot.pref
+ content: "Package: *\nPin: origin \"snapshot.debian.org\"\nPin-Priority: 400\n"
+ - ansible.builtin.apt_repository:
+ repo: 'deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/20230109T091852Z/ bookworm main'
+ - ansible.builtin.apt:
+ update_cache: true
+
- name: Ensure cross-compilers packages are installed.
apt: "name={{ cross_compilers_packages }} state=present"
- 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
+ - gcc-12-powerpc64le-linux-gnu
+ - 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
+ - gcc-11-powerpc64le-linux-gnu
+ - gcc-11-s390x-linux-gnu
+ # Not in Debian bookworm, but in testing/unstable, so they will
+ # be fetched from a snapshot source instead
+ - gcc-11-powerpc-linux-gnu
+ - gcc-11-riscv64-linux-gnu