Skip to content

Commit b092e83

Browse files
committed
Add fedora 40
1 parent 5964c5d commit b092e83

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

configs/components/_base-ruby-selinux.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
if ruby_version =~ /^3/
8080
# swig 4.1 generated interface does not need patching
8181
if (!platform.is_debian? || platform.os_version.to_i < 12) &&
82+
(!platform.is_fedora? || platform.os_version.to_i < 40) &&
8283
(!platform.is_ubuntu? || platform.os_version.to_i < 24)
8384
steps << "#{platform.patch} --strip=0 --fuzz=0 --ignore-whitespace --no-backup-if-mismatch < ../selinuxswig_ruby_wrap.patch"
8485
end
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
platform 'fedora-40-x86_64' do |plat|
2+
plat.servicedir '/usr/lib/systemd/system'
3+
plat.defaultdir '/etc/sysconfig'
4+
plat.servicetype 'systemd'
5+
plat.dist 'fc40'
6+
7+
packages = %w[
8+
autoconf automake bzip2-devel gcc gcc-c++ libselinux-devel
9+
libsepol libsepol-devel make cmake pkgconfig readline-devel
10+
rpmdevtools rsync swig zlib-devel systemtap-sdt-devel
11+
perl-lib perl-FindBin
12+
]
13+
plat.provision_with("/usr/bin/dnf install -y --best --allowerasing #{packages.join(' ')}")
14+
15+
plat.install_build_dependencies_with '/usr/bin/dnf install -y --best --allowerasing'
16+
17+
plat.docker_image 'fedora:40'
18+
plat.docker_run_args ['--tty', '--entrypoint=/bin/sh']
19+
plat.use_docker_exec true
20+
end

0 commit comments

Comments
 (0)