From 8c0c8cac8e8432df20f4eb42959953d2c47a823e Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Wed, 29 Nov 2023 07:05:47 -0600 Subject: [PATCH] (maint) Add Debian 12 bookworm platforms --- configs/components/_base-ruby-selinux.rb | 4 +++- configs/platforms/debian-12-aarch64.rb | 21 +++++++++++++++++ configs/platforms/debian-12-amd64.rb | 23 ++++++++++++++++++ configs/platforms/debian-12-armhf.rb | 30 ++++++++++++++++++++++++ 4 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 configs/platforms/debian-12-aarch64.rb create mode 100644 configs/platforms/debian-12-amd64.rb create mode 100644 configs/platforms/debian-12-armhf.rb diff --git a/configs/components/_base-ruby-selinux.rb b/configs/components/_base-ruby-selinux.rb index a87d686ed..e4d8a948b 100644 --- a/configs/components/_base-ruby-selinux.rb +++ b/configs/components/_base-ruby-selinux.rb @@ -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 diff --git a/configs/platforms/debian-12-aarch64.rb b/configs/platforms/debian-12-aarch64.rb new file mode 100644 index 000000000..e2f766c41 --- /dev/null +++ b/configs/platforms/debian-12-aarch64.rb @@ -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 \ No newline at end of file diff --git a/configs/platforms/debian-12-amd64.rb b/configs/platforms/debian-12-amd64.rb new file mode 100644 index 000000000..51810dab6 --- /dev/null +++ b/configs/platforms/debian-12-amd64.rb @@ -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 diff --git a/configs/platforms/debian-12-armhf.rb b/configs/platforms/debian-12-armhf.rb new file mode 100644 index 000000000..09944d262 --- /dev/null +++ b/configs/platforms/debian-12-armhf.rb @@ -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