[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Any clue how to use pbuilder / cowbuilder in connection with Rules-Requires-Root: no



On Mon, Dec 09, 2019 at 12:56:22PM +0100, Andreas Tille wrote:
> On Mon, Dec 09, 2019 at 12:14:30PM +0100, Mattia Rizzolo wrote:
> > Uh, sorry for being imprecise. I meant, that you *should not* set that
> > option, and let dpkg decide by itself.
> 
> OK,  In my case dpkg has no choice to decide since the pbuilder
> chroot is just lacking fakeroot.  I get

Which is perfectly fine.

I now tried and indeed there is no trace of fakeroot usage, as it should
be.

I: Building the package
D: no hooks of type A found -- ignoring
I: Running cd /build/python-datrie-0.8/ && env PATH="/usr/lib/ccache:/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" dpkg-buildpackage -us -uc  && env PATH="/usr/lib/ccache:/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" dpkg-genchanges -S  > ../python-datrie_0.8-1_source.changes
dpkg-buildpackage: info: source package python-datrie
dpkg-buildpackage: info: source version 0.8-1
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Ondřej Nový <onovy@debian.org>
 dpkg-source --before-build .
[…]
dpkg-source: info: using options from python-datrie-0.8/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building python-datrie using existing ./python-datrie_0.8.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building python-datrie in python-datrie_0.8-1.debian.tar.xz
dpkg-source: info: building python-datrie in python-datrie_0.8-1.dsc
 debian/rules binary
[…]

This last line (`debian/rules binary`) is the revealing string that
indicates that dpkg-buildpackage understood this is a R³:no build,
invoking directly the "binary" target skipping the "build" target.
And I likewise have no fakeroot in my chroots.

> ...
> I: Building the package
> I: Running cd /build/python-datrie-0.8/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" dpkg-buildpackage -us -uc  -i\.git -I.git  && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" dpkg-genchanges -S  > ../python-datrie_0.8-1_source.changes
> dpkg-buildpackage: error: fakeroot not found, either install the fakeroot
> package, specify a command with the -r option, or run this as root
> I: copying local configuration
> E: Failed autobuilding of package
> ...

I'm honestly a bit at loss on how to further debug this issue at this
time.  Even if for some odd reason you had an old dpkg, pbuilder knows
how to detect that and it installs fakeroot in that case, but given that
it doesn't that's not the case.

:\

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
More about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature


Reply to: