-
Notifications
You must be signed in to change notification settings - Fork 2
/
INSTALL-NODE
46 lines (35 loc) · 1.12 KB
/
INSTALL-NODE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Create a new node
Install the buildd as specified:
http://wiki.debian.org/SetupBuildServiceForWanna-build#Setup_Buildd_and_Sbuild
Apply sbuild.patch
echo "buildd hold"|dpkg --set-selections
cd /srv/chroot/
git clone https://github.com/sylvestre/debian-clang.git
cp sbuildrc ~buildd/.sbuildrc
cp builddrc ~buildd/.builddrc
cp debian-clang/dpkg-patched/*deb /srv/chroot/sid-amd64-sbuild/root
# Setup the mail install
in /etc/aliases add
buildd: [email protected]
newaliases
cd /usr/share/perl5/
patch -p2 < /srv/chroot/debian-clang/sbuild.patch
# Install in the chroot the patched version of dpkg
chroot /srv/chroot/sid-amd64-sbuild/
cd /root/
dpkg -i *deb
apt-get -f install
echo "dpkg hold"|dpkg --set-selections
echo "dpkg-dev hold"|dpkg --set-selections
echo "libdpkg-perl hold"|dpkg --set-selections
exit
# Setup the hooks
cd /srv/chroot/sid-amd64-sbuild/root/
ln ../../debian-clang/clang-setup.sh
ln ../../debian-clang/purge-gcc-setup-clang.sh
ln ../../debian-clang/gcc-replacement.sh
su - buildd
buildd
To Debug:
tail -f /var/log/buildd.log /var/lib/buildd/daemon.log
Also look at the build log in build/*.build