Changes between Initial Version and Version 1 of BuildPackages


Ignore:
Timestamp:
Dec 2, 2019, 10:36:49 PM (5 years ago)
Author:
quentin
Comment:

Document basic sbuild/schroot setup

Legend:

Unmodified
Added
Removed
Modified
  • BuildPackages

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