[pkg-go] gbp buildpackage

Michael Stapelberg stapelberg at debian.org
Sat Jun 16 22:38:32 BST 2018


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 at 4:46 PM, Anthony Fok <foka at debian.org> wrote:

> Hi again,
>
> On Sat, Jun 16, 2018 at 8:35 AM, Anthony Fok <foka at debian.org> wrote:
> > Hi Tong,
> >
> > On Sat, Jun 16, 2018 at 7:19 AM, Tong Sun <pkgoyq.xpt at neverbox.com>
> 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
> >> ..
> >>
> >> - If I run it without `fakeroot`, then it'll break at the beginning
> with:
> >>
> >> E: debootstrap can only run as root
> >
> > 1. man fakeroot
> > 2. man sudo
> > 3. man su
>
> I don't know how you manage to run cowbuilder as a non-root because
> /usr/sbin isn't even in the PATH for non-root users.
>
> Anyhow, nowadays, I am using a higher-level tool:
>
>   git-pbuilder - Wrapper around cowbuilder/qemubuilder for gbp buildpackage
>
> It is part of the git-buildpackage package:
>
>     $ dpkg -S git-pbuilder
>     git-buildpackage: /usr/bin/git-pbuilder
>     git-buildpackage: /usr/share/man/man1/git-pbuilder.1.gz
>
> It lives in /usr/bin/git-pbuilder and calls sudo for you, and does
> other nice things for you.
> So, instead of calling "sudo cowbuilder create" directly,
> you call "git-pbuilder create".
>
> Have fun exploring (Google about it) and experimenting!
>
> Anthony
>
> _______________________________________________
> Pkg-go-maintainers mailing list
> Pkg-go-maintainers at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/
> pkg-go-maintainers
>



-- 
Best regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-go-maintainers/attachments/20180616/96ce0a71/attachment.html>


More information about the Pkg-go-maintainers mailing list