Skip to content

Commit

Permalink
(maint) Add Debian 12 bookworm platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 committed Nov 29, 2023
1 parent 2e05d29 commit aa749ac
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configs/components/_base-ruby-selinux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
]

if ruby_version =~ /^3/
steps << "#{platform.patch} --strip=0 --fuzz=0 --ignore-whitespace --no-backup-if-mismatch < ../selinuxswig_ruby_wrap.patch"
unless platform.name =~ /debian-12/
steps << "#{platform.patch} --strip=0 --fuzz=0 --ignore-whitespace --no-backup-if-mismatch < ../selinuxswig_ruby_wrap.patch"
end
end

# libselinux 3.3 is the minimum version we want to build on RHEL 9, but the
Expand Down
21 changes: 21 additions & 0 deletions configs/platforms/debian-12-aarch64.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
platform "debian-12-aarch64" do |plat|
plat.inherit_from_default
packages = [
'build-essential',
'cmake',
'debhelper',
'devscripts',
'fakeroot',
'libbz2-dev',
'libreadline-dev',
'libselinux1-dev',
'make',
'pkg-config',
'quilt',
'rsync',
'swig',
'systemtap-sdt-dev',
'zlib1g-dev'
]
plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
end
23 changes: 23 additions & 0 deletions configs/platforms/debian-12-amd64.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
platform "debian-12-amd64" do |plat|
plat.inherit_from_default

packages = [
'build-essential',
'cmake',
'debhelper',
'devscripts',
'fakeroot',
'libbz2-dev',
'libreadline-dev',
'libselinux1-dev',
'make',
'pkg-config',
'quilt',
'rsync',
'swig',
'systemtap-sdt-dev',
'zlib1g-dev'
]

plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
end
30 changes: 30 additions & 0 deletions configs/platforms/debian-12-armhf.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
platform "debian-12-armhf" do |plat|
plat.servicedir "/lib/systemd/system"
plat.defaultdir "/etc/default"
plat.servicetype "systemd"
plat.codename "bookworm"

plat.install_build_dependencies_with "DEBIAN_FRONTEND=noninteractive; apt-get install -qy --no-install-recommends "

packages = [
"build-essential",
"make",
"quilt",
"pkg-config",
"debhelper",
"rsync",
"fakeroot",
"libbz2-dev",
"libreadline-dev",
"libselinux1-dev",
"make",
"pkg-config",
"cmake",
"gcc",
"swig",
"systemtap-sdt-dev",
"zlib1g-dev"
]

plat.provision_with "export DEBIAN_FRONTEND=noninteractive && apt-get update -qq && apt-get install -qy --no-install-recommends #{packages.join(' ')}"
end

0 comments on commit aa749ac

Please sign in to comment.