Skip to content

Commit e187f5b

Browse files
committed
Ignore what seems right and go with what works for sbuild
1 parent bfc5e05 commit e187f5b

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

debian/scripts/bootstrap.sh

-8
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,3 @@ echo "GSSAPIAuthentication no" >> /etc/ssh/sshd_config
3030
sed -i 's/GRUB_TIMEOUT=[0-9]\{,2\}/GRUB_TIMEOUT=0/' /etc/default/grub
3131

3232
update-grub
33-
34-
# set up sbuild for i386 package
35-
mkdir /root/.gnupg #Work around #792100 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792100
36-
rngd -r /dev/urandom #Fake entropy for the keygen; REMOVE if key security is important
37-
su - -c 'sbuild-update --keygen' #Requirement for sbuild
38-
sbuild-adduser vagrant
39-
mkdir /home/vagrant/chroot
40-
sbuild-createchroot --arch=i386 stable /home/vagrant/chroot/stable-i386 http://httpredir.debian.org/debian

debian/scripts/build-otter-deb.sh

+11
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,17 @@ debuild -us -uc
166166
# signed build
167167
#debuild -S
168168

169+
# check if chroot exists and create it if it does not
170+
if [ ! -f "${HOME}/chroot/stable-i386.tar" ]; then
171+
sudo mkdir /root/.gnupg # To work around #792100
172+
sudo rngd -r /dev/urandom #Fake entropy for the keygen; REMOVE if key security is important
173+
sudo sbuild-update --keygen #Requirement for sbuild
174+
sudo sbuild-adduser $LOGNAME
175+
newgrp sbuild
176+
mkdir $HOME/chroot
177+
sudo sbuild-createchroot --arch=i386 --make-sbuild-tarball=$HOME/chroot/stable-i386.tar stable `mktemp -d` http://httpredir.debian.org/debian
178+
fi
179+
169180
# build i386 package
170181
sudo sbuild-update -udcar stable-i386
171182
sbuild -d stable --arch=i386

0 commit comments

Comments
 (0)