| | 1 | Normally, |
| | 2 | |
| | 3 | {{{ |
| | 4 | remctl xvm-dev build precise-dev invirt-base $branch |
| | 5 | }}} |
| | 6 | |
| | 7 | If you need to set up schroot/sbuild and build manually, |
| | 8 | |
| | 9 | {{{ |
| | 10 | sbuild-createchroot --arch amd64 --components=main,universe,multiverse --verbose bionic /srv/chroot/bionic-amd64-sbuild http://mirrors.mit.edu/ubuntu |
| | 11 | echo "/tmp /tmp none rw,bind 0 0" >> /etc/schroot/sbuild/fstab |
| | 12 | schroot -c source:bionic-amd64-sbuild -- apt install debhelper python3-all-dev python3-setuptools python3-debian python3-apt python-minimal |
| | 13 | }}} |
| | 14 | |
| | 15 | Then to build a single package, |
| | 16 | |
| | 17 | {{{ |
| | 18 | git clone --recursive git://xvm.mit.edu/invirt/packages.git |
| | 19 | cd $(mktemp -d) |
| | 20 | git --git-dir=/root/packages/invirt-base/.git archive --prefix=invirt-base/ $branch | tar -x |
| | 21 | (cd invirt-base && schroot -c bionic-amd64-sbuild -- dpkg-buildpackage -us -uc -S) |
| | 22 | sbuild -v -d bionic --arch amd64 invirt-base_*.dsc |
| | 23 | }}} |