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

2019-12-09 Thread Mattia Rizzolo
On Mon, Dec 09, 2019 at 10:11:34PM +0100, Andreas Tille wrote:
> > I'm honestly a bit at loss on how to further debug this issue at this
> > time.
> 
> Which at least is relaxing that I'm not asking a stupif FAQ here. :/

Could you please try to provide a full log, with --debug?  As an
attachment would be best, since it will be huge.  And maybe consider
scrolling through it yourself, since it might contains "private"
informations such a personal paths and whatnot that people might
consider sensitive, depending on how one names their directories :>

-- 
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  `-



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

2019-12-09 Thread Andreas Tille
On Mon, Dec 09, 2019 at 07:27:12PM +0100, Mattia Rizzolo wrote:
> > OK,  In my case dpkg has no choice to decide since the pbuilder
> > chroot is just lacking fakeroot.  I get
> 
> Which is perfectly fine.

So far I agree.
 
> 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

Looks pretty similar to my command line.  BTW, python-datrie is just the
latest example of a series I had in the past.  So my problem is not
specific to that package at all.

> 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.

Which at least is relaxing that I'm not asking a stupif FAQ here. :/

> 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.

I can exclude an outdated pbuilder chroot.  I'm regularly updating
it mostly once per day.

Kind regards

  Andreas.

-- 
http://fam-tille.de



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

2019-12-09 Thread Mattia Rizzolo
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ý 
 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  `-


signature.asc
Description: PGP signature


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

2019-12-09 Thread Andreas Tille
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

...
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
...


Even specifying -rfakeroot would not help since the fakeroot
package is not available.

Kind regards

 Andreas.

-- 
http://fam-tille.de



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

2019-12-09 Thread Mattia Rizzolo
Uh, sorry for being imprecise. I meant, that you *should not* set that
option, and let dpkg decide by itself.

On Mon, 9 Dec 2019, 12:05 pm Andreas Tille,  wrote:

> On Mon, Dec 09, 2019 at 11:38:59AM +0100, Mattia Rizzolo wrote:
> >
> > Are you explicitly specifying -rfakereoot in your dpkg-buildpackage
> > options?
>
> Ahhh, I was actually missing this in my gbp-pbuilder script.
>
> Thanks for the hint, Andreas.
>
> --
> http://fam-tille.de
>
>


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

2019-12-09 Thread Andreas Tille
On Mon, Dec 09, 2019 at 11:38:59AM +0100, Mattia Rizzolo wrote:
> 
> Are you explicitly specifying -rfakereoot in your dpkg-buildpackage
> options?

Ahhh, I was actually missing this in my gbp-pbuilder script.

Thanks for the hint, Andreas.

-- 
http://fam-tille.de



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

2019-12-09 Thread Mattia Rizzolo
On Mon, Dec 09, 2019 at 11:35:10AM +0100, Andreas Tille wrote:
> ...
> 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
> ...


Are you explicitly specifying -rfakereoot in your dpkg-buildpackage
options?
pbuilder is not installing fakeroot if the package to be built has
R³:no, and likewise dpkg-buildpackage shouldn't be looking up for
fakeroot either.

pbuilder has been doing that for more than a year now, and there are
plenty of packages with R³:no at this date, so I believe something is
wrong with either the package or your setup.

Note that adding fakeroot to the build-deps would be wrong in this
particular case, since that's an error from even before the build
starts.

-- 
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  `-


signature.asc
Description: PGP signature