From: Kienan Stewart Date: Wed, 2 Aug 2023 21:30:37 +0000 (-0400) Subject: ansible: Install gcc-4.8 on Debian compiler nodes X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e180c8429734a31502863f64d61cf79d3ed55550;p=lttng-ci.git ansible: Install gcc-4.8 on Debian compiler nodes gcc-4.8 is used for compiling legacy kernels Change-Id: Iaea9e12e91af68bdf1b7caa39bb5afb71e161da0 --- 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