Skip to content

Commit af6e26e

Browse files
committed
testing: Support build with Debian stretch base image
Remove support for wheezy.
1 parent cbe9e57 commit af6e26e

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

testing/scripts/build-baseimage

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@ INC=$INC,libboost-thread-dev,libboost-system-dev,git-core,iperf,htop,screen
2020
INC=$INC,gnat,gprbuild,acpid,acpi-support-base,libldns-dev,libunbound-dev
2121
INC=$INC,dnsutils,libsoup2.4-dev,ca-certificates,unzip,libsystemd-dev
2222
INC=$INC,python,python-setuptools,python-dev,python-pip,apt-transport-https
23-
INC=$INC,libjson0-dev,libxslt1-dev,libapache2-mod-wsgi,iptables-dev
23+
INC=$INC,libjson-c-dev,libxslt1-dev,libapache2-mod-wsgi,iptables-dev
24+
INC=$INC,libxerces-c-dev,libgcrypt20-dev
2425
case "$BASEIMGSUITE" in
25-
wheezy)
26-
INC=$INC,libxerces-c2-dev,libahven3-dev,libxmlada4.1-dev,libgmpada3-dev
27-
INC=$INC,libalog0.4.1-base-dev
28-
;;
2926
jessie)
30-
INC=$INC,libxerces-c-dev,libahven4-dev,libxmlada5-dev,libgmpada5-dev
31-
INC=$INC,libalog1-dev,libgcrypt20-dev
27+
INC=$INC,libahven4-dev,libxmlada5-dev,libgmpada5-dev
28+
INC=$INC,libalog1-dev
29+
;;
30+
stretch)
31+
INC=$INC,libahven5-dev,libxmlada-schema6-dev,libgmpada6-dev
32+
INC=$INC,libalog2-dev
3233
;;
3334
*)
3435
echo_warn "Package list for '$BASEIMGSUITE' might has to be updated"
@@ -113,12 +114,7 @@ execute_chroot "apt-get -y upgrade"
113114
for service in $SERVICES
114115
do
115116
log_action "Disabling service $service"
116-
if [ "$BASEIMGSUITE" == "wheezy" ]
117-
then
118-
execute_chroot "update-rc.d -f $service remove"
119-
else
120-
execute_chroot "systemctl disable $service"
121-
fi
117+
execute_chroot "systemctl disable $service"
122118
done
123119

124120
log_action "Disabling root password"

testing/scripts/build-guestimages

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ do
7676

7777
for service in "apache2 slapd bind9"
7878
do
79-
if [ "$BASEIMGSUITE" == "wheezy" ]
80-
then
81-
execute_chroot "update-rc.d $service defaults" 0
82-
else
83-
execute_chroot "systemctl enable $service" 0
84-
fi
79+
execute_chroot "systemctl enable $service" 0
8580
done
8681
fi
8782
sync

0 commit comments

Comments
 (0)