Skip to content

Commit 661e40f

Browse files
authored
unixPB: Updates for Centos Stream 10 (#4060)
* unixPB: Additional changes to allow use on CS10 Signed-off-by: Stewart X Addison <[email protected]> --------- Signed-off-by: Stewart X Addison <[email protected]>
1 parent f8eed01 commit 661e40f

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/CentOS.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@
7979

8080
- name: Install additional build tools when NOT CentOS8+
8181
package: "name={{ item }} state=latest"
82-
with_items: "{{ Additional_Build_Tools_NOT_CentOS8_CentOS9Stream }}"
82+
with_items: "{{ Additional_Build_Tools_NOT_CentOS8plus }}"
8383
when:
84-
- ansible_distribution_major_version|int < 8
84+
- ansible_distribution_major_version | int < 8
8585
tags: build_tools
8686

8787
- name: Install additional test tools for CentOS 10+ e.g. weston
@@ -157,8 +157,7 @@
157157
package: "name=centos-release-scl state=latest"
158158
when:
159159
- ansible_architecture == "x86_64"
160-
- ansible_distribution_major_version != "8"
161-
- ansible_distribution_major_version != "9"
160+
- ansible_distribution_major_version | int < 8
162161
tags: build_tools
163162

164163
- name: Sed change the baseurl for CentOS SCL (CentOS6)
@@ -208,11 +207,12 @@
208207
- ansible_architecture == "x86_64" and ansible_distribution_major_version == "7"
209208
tags: build_tools
210209

211-
- name: Install additional build tools for CentOS on x86
210+
- name: Install additional build tools for CentOS on x86 for EL<10 (Not 32-bit support)
212211
package: "name={{ item }} state=latest"
213212
with_items: "{{ Additional_Build_Tools_CentOS_x86 }}"
214213
when:
215214
- ansible_architecture == "x86_64"
215+
- ansible_distribution_major_version | int < 10
216216
tags: build_tools
217217

218218
- name: Create symlink for /opt/rh/devtoolset-2/root/usr/bin/gcc to gcc

ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/vars/CentOS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Additional_Build_Tools_CentOS8_Plus:
8282
- ccache
8383
- procps-ng
8484

85-
Additional_Build_Tools_NOT_CentOS8_CentOS9Stream:
85+
Additional_Build_Tools_NOT_CentOS8plus:
8686
- lbzip2
8787
- java-1.7.0-openjdk-devel
8888
- java-1.8.0-openjdk-devel

ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/nasm/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,15 @@
9090
- (nasm_installed.rc is defined) and ((nasm_installed.rc != 0 ) or (nasm_installed.rc == 0 and nasm.stdout is version_compare(nasm_version, operator='ne')))
9191
tags: nasm
9292

93-
- name: Running ./configure & make for nasm ( Not Ubuntu 22+ and not Fedora 35+ )
93+
- name: Running ./configure & make for nasm ( Not Ubuntu 22+ and not Fedora 35+ based distros )
9494
shell: cd /tmp/nasm-{{ nasm_version }} && CC={{ CC }} && ./configure -prefix=/usr/local && make install
9595
environment:
9696
CC: "{{ CC }}"
9797
when:
9898
- (ansible_distribution != "Ubuntu") or (ansible_distribution == "Ubuntu" and ansible_distribution_major_version | int < 22)
9999
- (ansible_distribution != "Fedora") or (ansible_distribution == "Fedora" and ansible_distribution_major_version | int < 35)
100100
- (ansible_distribution != "RedHat") or (ansible_distribution == "RedHat" and ansible_distribution_major_version | int < 10)
101+
- (ansible_distribution != "CentOS") or (ansible_distribution == "CentOS" and ansible_distribution_major_version | int < 10)
101102
- nasm_installed.rc is defined
102103
- (nasm_installed.rc != 0 or (nasm_installed.rc == 0 and nasm.stdout is version_compare(nasm_version, operator='ne')))
103104
tags: nasm

0 commit comments

Comments
 (0)