[buildd-tools-devel] Bug#798835: Bug#798835: sbuild fails without any error message when /var/lib/sbuild is not writable in the chroot

Raphael Hertzog hertzog at debian.org
Wed Dec 30 08:38:12 UTC 2015


Control: tag -1 - moreinfo unreproducible

On Fri, 25 Dec 2015, Johannes Schauer wrote:
> > I plan to clone this bug and have a separate bug to also do a chown call.
> 
> I just did the following steps:
> $ sudo sbuild-createchroot unstable /srv/chroot/unstable-amd64 http://httpredir.debian.org/debian
> then added "union-type=overlay" to
> /etc/schroot/chroot.d/squeeze-amd64-sbuild-XXXX
                        ^^^^^^^
here it should have been "unstabled-amd64-sbuild-XXXX"

> And then tried to build a package. This went through without any errors.
> 
> So are you sure that there is still a chown call missing?

Yes, you don't say that you changed the permissions within the chroot
to be able to reproduce the problem. I can still reproduce it easily with
a chroot using overlay:
$ sudo chown -R root:root /srv/chroots/sid-amd64-sbuild/var/lib/sbuild
$ sbuild -d unstable hello_2.10-1.dsc
sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on x230-buxy.home.ouaza.com

+==============================================================================+
| hello 2.10-1 (amd64)                                      30 d�c. 2015 09:32 |
+==============================================================================+

Package: hello
Version: 2.10-1
Source Version: 2.10-1
Distribution: unstable
Machine Architecture: amd64
Host Architecture: amd64
Build Architecture: amd64

I: NOTICE: Log filtering will replace 'build/hello-MVByAj/hello-2.10' with '<<PKGBUILDDIR>>'
I: NOTICE: Log filtering will replace 'build/hello-MVByAj' with '<<BUILDDIR>>'
I: NOTICE: Log filtering will replace 'var/run/schroot/mount/sid-amd64-sbuild-0c0721a3-a4d6-422e-8f80-dc74ad3929be' with '<<CHROOT>>'
E: Can't create /<<CHROOT>>//var/lib/sbuild/apt.conf: Permission denied
E: resolver setup failed

+------------------------------------------------------------------------------+
| Summary                                                                      |
+------------------------------------------------------------------------------+

Build Architecture: amd64
Build-Space: 0
Build-Time: 0
Distribution: unstable
Fail-Stage: resolver setup
Host Architecture: amd64
Install-Time: 0
Job: /home/rhertzog/tmp/hello_2.10-1.dsc
Machine Architecture: amd64
Package: hello
Package-Time: 0
Source-Version: 2.10-1
Space: 0
Status: failed
Version: 2.10-1
--------------------------------------------------------------------------------
Finished at 20151230-0932
Build needed 00:00:00, 0k disc space
E: resolver setup failed

FYI it's with schroot 1.6.10-2 and sbuild 0.67.0-2.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/



More information about the Buildd-tools-devel mailing list