[buildd-tools-devel] Bug#823897: sbuild-createchroot: Failed to set root: ownership on /.../usr/sbin/policy-rc.d

Tianon Gravi tianon at debian.org
Tue May 10 06:15:05 UTC 2016


Package: sbuild
Version: 0.69.0-1
Severity: important

Running "sbuild-createchroot unstable" fails setting permissions:

| E: Failed to set root: ownership on /tmp/sbuild-createchroot.unstable-amd64-sbuild.JyKlqrQyLC/usr/sbin/policy-rc.d at /usr/sbin/sbuild-createchroot line 260.

I _believe_ this is due to the fact that
https://anonscm.debian.org/cgit/buildd-tools/sbuild.git/commit/bin/sbuild-createchroot?id=b45020adfb85ca5487295a3bbd4edce3257ddcc4
introduced "!chown" and "!chmod" syntax for checking for errors, but it
doesn't appear to be verifying the non-zero value appropriately for some
reason on my system.  Modifying the "!chown(...) or die ..." to be
instead "chown(...) > 0 or die ..." allows the script to proceed
successfully and create an unstable schroot. :(

Full set of flags provided:

sbuild-createchroot \
    --make-sbuild-tarball=/path/to/tarball.tar.gz \
    --arch=amd64 \
    --include=eatmydata \
    unstable \
    "$(mktemp -d)" \
    http://httpredir.debian.org/debian


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sbuild depends on:
ii  adduser         3.114
ii  apt-utils       1.2.11
ii  libsbuild-perl  0.69.0-1
ii  perl            5.22.2-1

Versions of packages sbuild recommends:
ii  debootstrap  1.0.81
ii  fakeroot     1.20.2-1

Versions of packages sbuild suggests:
pn  deborphan  <none>
ii  wget       1.17.1-2

-- no debconf information

♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20160509/61092df0/attachment-0001.sig>


More information about the Buildd-tools-devel mailing list