[pkg-go] gbp buildpackage

2018-06-16 Thread Tong Sun
Hi, I'm following https://people.debian.org/~stapelberg/2015/07/27/dh-make-golang.html and tried to do build with gbp buildpackage --git-pbuilder which in turns depends on cowbuilder to do the building: gbp:info: Building with (cowbuilder) for debian_sid gbp:info: Performing the build Building

Re: [pkg-go] gbp buildpackage

2018-06-16 Thread Anthony Fok
Hi Tong, On Sat, Jun 16, 2018 at 7:19 AM, Tong Sun wrote: > However, I'm having problem with `cowbuilder --create` -- > > - If I run it with `fakeroot`, then it'll break at the end with: > > chroot: cannot change root directory to '/var/cache/pbuilder/base.cow': > Operation not permitted > chroot

Re: [pkg-go] gbp buildpackage

2018-06-16 Thread Anthony Fok
Hi again, On Sat, Jun 16, 2018 at 8:35 AM, Anthony Fok wrote: > Hi Tong, > > On Sat, Jun 16, 2018 at 7:19 AM, Tong Sun wrote: >> However, I'm having problem with `cowbuilder --create` -- >> >> - If I run it with `fakeroot`, then it'll break at the end with: >> >> chroot: cannot change root direc

Re: [pkg-go] gbp buildpackage

2018-06-16 Thread Michael Stapelberg
I’m using sbuild (as the buildds run sbuild, too), which you can set up using https://people.debian.org/~stapelberg//2018/03/19/sbuild-debian-developer-setup.html In my ~/.gbp.conf, I specify: [buildpackage] builder = sbuild --source-only-changes -s -v -A --no-clean-source On Sat, Jun 16, 2018 a

Re: [pkg-go] gbp buildpackage

2018-06-17 Thread Tong Sun
On Sat, Jun 16, 2018 at 5:38 PM Michael Stapelberg wrote: > I’m using sbuild (as the buildds run sbuild, too), which you can set up using > https://people.debian.org/~stapelberg//2018/03/19/sbuild-debian-developer-setup.html > > In my ~/.gbp.conf, I specify: > [buildpackage] > builder = sbuild --

Re: [pkg-go] gbp buildpackage

2018-06-17 Thread Michael Stapelberg
Which version of sbuild are you using this with? Try installing sbuild from unstable (or testing), too. On Sun, Jun 17, 2018 at 10:40 PM, Tong Sun wrote: > On Sat, Jun 16, 2018 at 5:38 PM Michael Stapelberg wrote: > > > I’m using sbuild (as the buildds run sbuild, too), which you can set up > us

Re: [pkg-go] gbp buildpackage

2018-06-18 Thread Tong Sun
On Sat, Jun 16, 2018 at 5:38 PM Michael Stapelberg - stapelb...@debian.org wrote: > > I’m using sbuild (as the buildds run sbuild, too), which you can set up using > https://people.debian.org/~stapelberg//2018/03/19/sbuild-debian-developer-setup.html > > In my ~/.gbp.conf, I specify: > [buildpack

Re: [pkg-go] gbp buildpackage

2018-06-18 Thread Michael Stapelberg
I use gbp buildpackage --git-export-dir=/tmp/export, the builder configuration happens in ~/.gbp.conf entirely. On Mon, Jun 18, 2018 at 9:49 PM, Tong Sun wrote: > On Sat, Jun 16, 2018 at 5:38 PM Michael Stapelberg - > stapelb...@debian.org > wrote: > > > > I’m using sbuild (as the buildds run s