]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Support build with Debian bullseye base image
authorTobias Brunner <tobias@strongswan.org>
Tue, 21 Sep 2021 09:15:43 +0000 (11:15 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 1 Oct 2021 13:05:44 +0000 (15:05 +0200)
testing/scripts/build-baseimage
testing/scripts/build-guestimages

index 10253a564a6a68734483480c4314a1bec08d1da0..657851a34c0318ba53b643681bfde928a5c7a5f8 100755 (executable)
@@ -20,8 +20,16 @@ INC=$INC,libboost-thread-dev,libboost-system-dev,git,iperf,htop,valgrind,strace
 INC=$INC,gnat,gprbuild,acpid,acpi-support-base,libldns-dev,libunbound-dev
 INC=$INC,dnsutils,libsoup2.4-dev,ca-certificates,unzip,libsystemd-dev
 INC=$INC,python3,python3-setuptools,python3-dev,python3-pip,apt-transport-https
-INC=$INC,libjson-c-dev,libxslt1-dev,libapache2-mod-wsgi-py3,iptables-dev
-INC=$INC,libxerces-c-dev,libgcrypt20-dev,traceroute
+INC=$INC,libjson-c-dev,libxslt1-dev,libapache2-mod-wsgi-py3
+INC=$INC,libxerces-c-dev,libgcrypt20-dev,traceroute,iptables
+case "$BASEIMGSUITE" in
+bullseye)
+       INC=$INC,libiptc-dev
+       ;;
+*)
+       INC=$INC,iptables-dev
+       ;;
+esac
 case "$BASEIMGSUITE" in
 jessie)
        INC=$INC,libahven4-dev,libxmlada5-dev,libgmpada5-dev
@@ -35,6 +43,13 @@ buster)
        INC=$INC,libahven7-dev,libxmlada-schema8-dev,libgmpada8-dev
        INC=$INC,libalog4-dev,dbus-user-session
        ;;
+bullseye)
+       INC=$INC,libahven9-dev,libxmlada-schema10-dev,libgmpada10-dev
+       INC=$INC,libalog6-dev,dbus-user-session
+       # workaround for dependency issue gdb -> libsource-highlight4v5 -> virtual
+       # package (libboost-regex1.74.0-icu67), which debootstrap can't resolve (#878961)
+       INC=$INC,libboost-regex1.74.0
+       ;;
 *)
        echo_warn "Package list for '$BASEIMGSUITE' might has to be updated"
        ;;
@@ -136,7 +151,7 @@ do
 done
 
 case "$BASEIMGSUITE" in
-buster)
+buster|bullseye)
        log_action "Switching from iptables-nft to iptables-legacy"
        execute_chroot "update-alternatives --set iptables /usr/sbin/iptables-legacy" 0
        execute_chroot "update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy" 0
index 4ef881836daa23f17cc226a0dc930a0ba501336b..bb638ec4463ae1d7ce9ae26025aa133281ed27e1 100755 (executable)
@@ -75,7 +75,10 @@ do
                execute_chroot "dnssec-signzone -K /etc/bind -o org. /etc/bind/db.org" 0
                execute_chroot "dnssec-signzone -K /etc/bind -o . /etc/bind/db.root" 0
 
-               for service in "apache2 slapd bind9"
+               # on bullseye, enabling via bind9 doesn't work, while disabling does, so
+               # use named there. on the other hand, older releases don't have named
+               # service files (systemctl returns 0 even if files are not found)
+               for service in apache2 slapd bind9 named
                do
                        execute_chroot "systemctl enable $service" 0
                done