[pkg-go] gbp buildpackage

Tong Sun pkgoyq.xpt at neverbox.com
Sat Jun 16 14:19:51 BST 2018


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 with cowbuilder for distribution debian_sid
. . .

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: cannot change root directory to '/var/cache/pbuilder/base.cow':
Operation not permitted
E: End of debootstrap.log
W: Aborting with an error
E: pbuilder create failed
, , ,

- If I run it without `fakeroot`, then it'll break at the beginning with:

, , ,
I: Building the build environment
I: running debootstrap
/usr/sbin/debootstrap
E: debootstrap can only run as root
E: debootstrap failed
, , ,

Looking for the solution for "E: debootstrap can only run as root" myself,
I found a bug report at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571117, but the solution
however, is to use a *different* building method.

So I'm wondering, are you using

gbp buildpackage --git-pbuilder

to build the go packages? If so, how to overcome the problem I'm
experiencing above?

thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-go-maintainers/attachments/20180616/3713e616/attachment-0001.html>


More information about the Pkg-go-maintainers mailing list