Skip to content

Commit

Permalink
Add fedora 40
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcooper committed Apr 23, 2024
1 parent 5964c5d commit b092e83
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions configs/components/_base-ruby-selinux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
if ruby_version =~ /^3/
# swig 4.1 generated interface does not need patching
if (!platform.is_debian? || platform.os_version.to_i < 12) &&
(!platform.is_fedora? || platform.os_version.to_i < 40) &&
(!platform.is_ubuntu? || platform.os_version.to_i < 24)
steps << "#{platform.patch} --strip=0 --fuzz=0 --ignore-whitespace --no-backup-if-mismatch < ../selinuxswig_ruby_wrap.patch"
end
Expand Down
20 changes: 20 additions & 0 deletions configs/platforms/fedora-40-x86_64.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
platform 'fedora-40-x86_64' do |plat|
plat.servicedir '/usr/lib/systemd/system'
plat.defaultdir '/etc/sysconfig'
plat.servicetype 'systemd'
plat.dist 'fc40'

packages = %w[
autoconf automake bzip2-devel gcc gcc-c++ libselinux-devel
libsepol libsepol-devel make cmake pkgconfig readline-devel
rpmdevtools rsync swig zlib-devel systemtap-sdt-devel
perl-lib perl-FindBin
]
plat.provision_with("/usr/bin/dnf install -y --best --allowerasing #{packages.join(' ')}")

plat.install_build_dependencies_with '/usr/bin/dnf install -y --best --allowerasing'

plat.docker_image 'fedora:40'
plat.docker_run_args ['--tty', '--entrypoint=/bin/sh']
plat.use_docker_exec true
end

0 comments on commit b092e83

Please sign in to comment.