Hi,

Quoting Gilles Filippini (2020-03-21 15:28:32)
> On Wed, 26 Feb 2020 19:59:20 +0100 Johannes Schauer <jo...@debian.org> wrote:
> > On Sat, 22 Feb 2020 17:45:36 +0100 Johannes Schauer <jo...@debian.org>
> > wrote:
> > > Quoting Jörg Frings-Fürst (2020-02-22 17:36:10)
> > > > Am Samstag, den 22.02.2020, 17:17 +0100 schrieb Johannes Schauer:
> > > > > Control: severity -1 important
> > > > > 
> > > > > Quoting Johannes Schauer (2020-02-22 17:05:47)
> > > > > > Quoting Jörg Frings-Fürst (2020-02-22 16:48:52)
> > > > > > > > please show me evidence of that.
> > > > > > > > 
> > > > > > > > Setting a bug severity to serious means that sbuild will be
> > > > > > > > removed from
> > > > > > > > testing in March. You should have evidence before such a
> > > > > > > > drastic measure is
> > > > > > > > taken.
> > > > > > > All packages that directly or indirectly have systemd as build
> > > > > > > depend can no
> > > > > > > longer be compiled. I think that is reason enough.
> > > > > > 
> > > > > > Indeed I now see the problem myself.
> 
> I've just been bitten by this while building stimfit into a fresh
> unstable sbuild chroot.
> 
> Setting once and for all the correct permissions using sbuild-shell
> fixed the problem for this chroot:
> $ echo "/bin/chown root:root / && /bin/chmod a+rX /" | \
>   sudo sbuild-shell <sbuild-chroot>

I may have a theory...

All you who have this error (Jörg + Gilles), did you use a command line with
sbuild-createchroot that has "$(mktemp -d)" in it? Depending on what your
$TMPDIR is, the problem might be that the create directory has permissions 700.
This means that the root directory of the tarball that is created will only be
readable by root which kills it for most applications. Debootstrap doesn't care
but mmdebstrap explicitly does a "chmod 0755" on the root directory which is
why you might not see the problem with mmdebstrap but only with debootstrap.

So could you please confirm the following:

 - try doing "tar -tvf /srv/... | head" on the chroot tarball and have a look
   at the permissions of ./ -- what are they?

 - the problem only occurs when you use "$(mktemp -d)" when running
   sbuild-creatchroot and it goes away if you use any other directory outside
   $TMPDIR as temporary directory like for example ~/tmp. So for example create
   your chroot like this:

       $ sudo sbuild-createchroot --make-sbuild-tarball=/srv/... unstable ~/tmp

 - if the answer to above question is "yes": when you use "$(mktemp -d)" then
   the directory that is created has permissions 700, right?

This is just a hunch. I still am unable to reproduce the problem you guys are
having so, please support me in finding the cause of this issue.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to