From e180c8429734a31502863f64d61cf79d3ed55550 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Wed, 2 Aug 2023 17:30:37 -0400 Subject: [PATCH] ansible: Install gcc-4.8 on Debian compiler nodes gcc-4.8 is used for compiling legacy kernels Change-Id: Iaea9e12e91af68bdf1b7caa39bb5afb71e161da0 --- automation/ansible/roles/compilers/tasks/setup-Debian.yml | 5 +++++ automation/ansible/roles/compilers/vars/Debian-12.yml | 3 +++ 2 files changed, 8 insertions(+) diff --git a/automation/ansible/roles/compilers/tasks/setup-Debian.yml b/automation/ansible/roles/compilers/tasks/setup-Debian.yml index ce01aac..ba847c5 100644 --- a/automation/ansible/roles/compilers/tasks/setup-Debian.yml +++ b/automation/ansible/roles/compilers/tasks/setup-Debian.yml @@ -1,4 +1,9 @@ --- +- name: Add sources for gcc 4.8 + when: ansible_distribution == 'Debian' + ansible.builtin.apt_repository: + repo: 'deb [trusted=yes] http://archive.debian.org/debian jessie main' + - name: Update apt cache. apt: update_cache=yes cache_valid_time=86400 diff --git a/automation/ansible/roles/compilers/vars/Debian-12.yml b/automation/ansible/roles/compilers/vars/Debian-12.yml index 4c6c41f..f34dbc6 100644 --- a/automation/ansible/roles/compilers/vars/Debian-12.yml +++ b/automation/ansible/roles/compilers/vars/Debian-12.yml @@ -23,3 +23,6 @@ compilers_packages: - clang-tidy-14 - clang-tidy-15 - bear + # Requires snapshot source + - gcc-4.8 + - g++-4.8 -- 2.34.1