Skip to content

Instantly share code, notes, and snippets.

@selabie68
Forked from laanwj/gitian.md
Created February 12, 2019 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save selabie68/3b5b9e137d72f1cfc5953ae6d28e934e to your computer and use it in GitHub Desktop.
Save selabie68/3b5b9e137d72f1cfc5953ae6d28e934e to your computer and use it in GitHub Desktop.
gitian buildling on debian 9.5

Some changes are needed to build on debian because of the switch of the guest OS to bionic.

lxc that comes with debian is not high enough version to support bionic (the minimum is 2.1.1), so need to build from scratch.

debootstrap that comes with debian will give the following error:

    $ bin/make-base-vm --lxc --suite bionic --arch amd64                                                                                              
    E: No such script: /usr/share/debootstrap/scripts/bionic

dependencies for gitian buildling on debian 9.5:

    apt-get install autoconf automake pkg-config libcap-dev

    # get lxc 3.0.1
    git clone https://github.com/lxc/lxc.git
    cd lxc
    git checkout lxc-3.0.1
    ./autogen.sh
    ./configure
    sudo make install

    # get debootstrap
    wget http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.95.tar.gz
    tar -zxvf debootstrap_1.0.95.tar.gz
    cd debootstrap-1.0.95 
    sudo make install
  • if you forget to install libcap-dev before building lxc, lxc-execute is going to fail because an essential program init.lxc.static is not built
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment