Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnixPB: Add Fedora 40 Support #3761

Merged
merged 9 commits into from
Oct 4, 2024
Merged
4 changes: 3 additions & 1 deletion ansible/pbTestScripts/vmDestroy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ checkOS() {
osToDestroy="D8" ;;
"Debian10" | "debian10" | "D10" | "d10" )
osToDestroy="D10" ;;
"Fedora40" | "fedora40" | "F40" | "f40" )
osToDestroy="F40" ;;
"FreeBSD12" | "freebsd12" | "F12" | "f12" )
osToDestroy="FBSD12" ;;
"Solaris10" | "solaris10" | "Sol10" | "sol10" )
Expand All @@ -70,7 +72,7 @@ checkOS() {
"Windows2022" | "Win2022" | "W22" | "w22" )
osToDestroy="W2022";;
"all" )
osToDestroy="U16 U18 U20 U21 U22 C6 C7 C8 D8 D10 FBSD12 Sol10 W2012 W2022" ;;
osToDestroy="U16 U18 U20 U21 U22 C6 C7 C8 D8 D10 F40 FBSD12 Sol10 W2012 W2022" ;;
"")
echo "No OS detected. Did you miss the '-o' option?" ; usage; exit 1;;
*) echo "$OS is not a currently supported OS" ; listOS; exit 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@
- (ansible_distribution_major_version == "8")
tags: build_tools

- name: Install additional build tools for FEDORA 35
- name: Install additional build tools for FEDORA 35+
package: "name={{ item }} state=latest"
with_items: "{{ Additional_Build_Tools_FEDORA35 }}"
with_items: "{{ Additional_Build_Tools_FEDORA35PLUS }}"
when:
- (ansible_distribution_major_version == "35" and ansible_distribution == "Fedora")
- (ansible_distribution_major_version >= "35" and ansible_distribution == "Fedora")
tags: build_tools

#################
Expand All @@ -123,7 +123,7 @@
when:
- not (ansible_distribution_major_version == "6" and ansible_architecture == "ppc64")
- not (ansible_distribution_major_version == "8")
- not (ansible_distribution_major_version == "35" and ansible_distribution == "Fedora")
- not (ansible_distribution_major_version >= "35" and ansible_distribution == "Fedora")

- name: Install Java when RedHat 6 on ppc64
package: "name={{ item }} state=latest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Build_Tool_Packages:
- gnutls-utils
- libcurl-devel
- libffi-devel
- libnss3.so
- libpng-devel
- libXext-devel
- libXi-devel # JDK12+ compilation
Expand Down Expand Up @@ -59,7 +58,7 @@ Additional_Build_Tools_NOT_RHEL8:
- libmpc-devel # now in CodeReady Linux Builder (CRB) repo
- ntp

Additional_Build_Tools_FEDORA35:
Additional_Build_Tools_FEDORA35PLUS:
- glibc.i686 # a dependency required for executing a 32-bit C binary
- glibc-devel.i686 # a dependency required for executing a 32-bit C binary
- libstdc++.i686 # a dependency required for executing a 32-bit C binary
Expand Down Expand Up @@ -137,7 +136,6 @@ Test_Tool_Packages:
- mercurial
- gnutls
- gnutls-utils
- libnss3.so
- shared-mime-info
- nss-devel
- nss-tools
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,15 @@
- (nasm_installed.rc is defined) and ((nasm_installed.rc != 0 ) or (nasm_installed.rc == 0 and nasm.stdout is version_compare('2.13.03', operator='ne')) )
tags: nasm

- name: Running ./configure & make for nasm ( Not Ubuntu 22+ )
- name: Running ./configure & make for nasm ( Not Ubuntu 22+ and not Fedora 35+ )
shell: cd /tmp/nasm-{{ nasm_version }} && CC={{ CC }} && ./configure -prefix=/usr/local && make install
environment:
CC: "{{ CC }}"
when:
- (ansible_distribution != "Ubuntu" or ansible_distribution == "Ubuntu" and ansible_distribution_major_version < "22") and (nasm_installed.rc is defined) and ((nasm_installed.rc != 0 ) or (nasm_installed.rc == 0 and nasm.stdout is version_compare('2.13.03', operator='ne')) )
- (ansible_distribution != "Ubuntu" or (ansible_distribution == "Ubuntu" and ansible_distribution_major_version < "22"))
- (ansible_distribution != "Fedora" or (ansible_distribution == "Fedora" and ansible_distribution_major_version < "35"))
- (nasm_installed.rc is defined)
- (nasm_installed.rc != 0 or (nasm_installed.rc == 0 and nasm.stdout is version_compare('2.13.03', operator='ne')))
tags: nasm

- name: Running ./configure & make for nasm ( Ubuntu 22 x64 )
Expand All @@ -106,12 +109,16 @@
- (ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "22" and ansible_architecture == "x86_64") and (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')) )
tags: nasm

- name: Running ./configure & make for nasm ( Ubuntu 24+ x64 )
- name: Running ./configure & make for nasm ( Ubuntu 24+ x64 / Fedora 35+)
shell: cd /tmp/nasm-{{ nasm_version }} && ./configure -prefix=/usr/local && make install
environment:
LIBRARY_PATH: /usr/lib/x86_64-linux-gnu
when:
- (ansible_distribution == "Ubuntu" and ansible_distribution_major_version >= "24" and ansible_architecture == "x86_64") and (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')) )
- ansible_architecture == "x86_64"
- nasm_installed.rc is defined
- (nasm_installed.rc != 0) or (nasm_installed.rc == 0 and nasm.stdout is version_compare(nasm_version, operator='ne'))
- (ansible_distribution == "Ubuntu" and ansible_distribution_major_version | int >= 24)
or (ansible_distribution == "Fedora" and ansible_distribution_major_version | int >= 35)
tags: nasm

- name: Remove downloaded packages for nasm
Expand Down
26 changes: 26 additions & 0 deletions ansible/vagrant/Vagrantfile.Fedora40
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

$script = <<SCRIPT
# Put the host machine's IP into the authorised_keys file on the VM
if [ -r /vagrant/id_rsa.pub ]; then
mkdir -p $HOME/.ssh && cat /vagrant/id_rsa.pub >> $HOME/.ssh/authorized_keys
fi
SCRIPT

# 2 = version of configuration file for Vagrant 1.1+ leading up to 2.0.x
Vagrant.configure("2") do |config|

config.vm.define :adoptopenjdkF40 do |adoptopenjdkF40|
adoptopenjdkF40.vm.box = "bento/fedora-40"
adoptopenjdkF40.vm.synced_folder ".", "/vagrant"
adoptopenjdkF40.vm.hostname = "adoptopenjdkF40"
adoptopenjdkF40.vm.network :private_network, type: "dhcp"
adoptopenjdkF40.vm.provision "shell", inline: $script, privileged: false
end
config.vm.provider "virtualbox" do |v|
v.gui = false
v.memory = 4196
v.customize ["modifyvm", :id, "--cpuexecutioncap", "50"]
end
end
Loading