Skip to content

Commit

Permalink
Future proof ruby-selinux
Browse files Browse the repository at this point in the history
Change conditional so that the swig generated interface is only patched on older
Debian and Ubuntu.
  • Loading branch information
joshcooper committed Apr 23, 2024
1 parent 070a48b commit 5964c5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configs/components/_base-ruby-selinux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@

if ruby_version =~ /^3/
# swig 4.1 generated interface does not need patching
unless platform.name =~ /^(debian-12|ubuntu-24)/
if (!platform.is_debian? || platform.os_version.to_i < 12) &&
(!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
end
Expand Down

0 comments on commit 5964c5d

Please sign in to comment.