<div dir="ltr">I’m using sbuild (as the buildds run sbuild, too), which you can set up using <a href="https://people.debian.org/~stapelberg//2018/03/19/sbuild-debian-developer-setup.html">https://people.debian.org/~stapelberg//2018/03/19/sbuild-debian-developer-setup.html</a><div><br></div><div>In my ~/.gbp.conf, I specify:</div><div>[buildpackage]</div><div><div>builder = sbuild --source-only-changes -s -v -A --no-clean-source</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 16, 2018 at 4:46 PM, Anthony Fok <span dir="ltr"><<a href="mailto:foka@debian.org" target="_blank">foka@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi again,<br>
<span class=""><br>
On Sat, Jun 16, 2018 at 8:35 AM, Anthony Fok <<a href="mailto:foka@debian.org">foka@debian.org</a>> wrote:<br>
> Hi Tong,<br>
><br>
> On Sat, Jun 16, 2018 at 7:19 AM, Tong Sun <<a href="mailto:pkgoyq.xpt@neverbox.com">pkgoyq.xpt@neverbox.com</a>> wrote:<br>
>> However, I'm having problem with `cowbuilder --create` --<br>
>><br>
>> - If I run it with `fakeroot`, then it'll break at the end with:<br>
>><br>
>> chroot: cannot change root directory to '/var/cache/pbuilder/base.cow'<wbr>:<br>
>> Operation not permitted<br>
</span>>> ..<br>
<span class="">>><br>
>> - If I run it without `fakeroot`, then it'll break at the beginning with:<br>
>><br>
</span><span class="">>> E: debootstrap can only run as root<br>
><br>
</span><span class="">> 1. man fakeroot<br>
> 2. man sudo<br>
> 3. man su<br>
<br>
</span>I don't know how you manage to run cowbuilder as a non-root because<br>
/usr/sbin isn't even in the PATH for non-root users.<br>
<br>
Anyhow, nowadays, I am using a higher-level tool:<br>
<br>
git-pbuilder - Wrapper around cowbuilder/qemubuilder for gbp buildpackage<br>
<br>
It is part of the git-buildpackage package:<br>
<br>
$ dpkg -S git-pbuilder<br>
git-buildpackage: /usr/bin/git-pbuilder<br>
git-buildpackage: /usr/share/man/man1/git-<wbr>pbuilder.1.gz<br>
<br>
It lives in /usr/bin/git-pbuilder and calls sudo for you, and does<br>
other nice things for you.<br>
So, instead of calling "sudo cowbuilder create" directly,<br>
you call "git-pbuilder create".<br>
<br>
Have fun exploring (Google about it) and experimenting!<br>
<div class="HOEnZb"><div class="h5"><br>
Anthony<br>
<br>
______________________________<wbr>_________________<br>
Pkg-go-maintainers mailing list<br>
<a href="mailto:Pkg-go-maintainers@alioth-lists.debian.net">Pkg-go-maintainers@alioth-<wbr>lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-go-maintainers" rel="noreferrer" target="_blank">https://alioth-lists.debian.<wbr>net/cgi-bin/mailman/listinfo/<wbr>pkg-go-maintainers</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Michael</div>
</div>