[buildd-tools-devel] Bug#608416: sbuild-createchroot overwrites files under /etc

Cyril Brulebois kibi at debian.org
Thu Dec 30 18:33:40 UTC 2010


Package: sbuild
Version: 0.60.7-1
Severity: important

Hi,

creating two chroots in a row (sid then experimental) leads to a single
/etc/sbuild/chroot/sid-amd64-sbuild, which means the first version of it
got nuked, and replaced with another version:
| $ sudo sbuild-createchroot sid ~/opt/sid-amd64-sbuild          http://localhost:9999/debian
| $ sudo sbuild-createchroot sid ~/opt/experimental-amd64-sbuild http://localhost:9999/debian
| $ ls -l /etc/sbuild/chroot/sid-amd64-sbuild
| lrwxrwxrwx 1 root root 39 Dec 30 19:23 /etc/sbuild/chroot/sid-amd64-sbuild -> /home/cyril/opt/experimental-amd64-sbuild

Since experimental has no own debootstrap script, I know of no better
way of creating a chroot for experimental.

sbuild-creatchroot should probably refuse to create a symlink to the
(new) directory if there's already a symlink?

KiBi.

-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sbuild depends on:
ii  adduser                       3.112+nmu2 add and remove users and groups
ii  libsbuild-perl                0.60.7-1   Tool for building Debian binary pa
ii  perl                          5.10.1-16  Larry Wall's Practical Extraction 
ii  perl-modules                  5.10.1-16  Core Perl modules

Versions of packages sbuild recommends:
ii  debootstrap                   1.0.26     Bootstrap a basic Debian system
ii  fakeroot                      1.14.5-1   Gives a fake root environment

Versions of packages sbuild suggests:
ii  deborphan                     1.7.28.3   program that can find unused packa
ii  wget                          1.12-2.1   retrieves files from the web

-- no debconf information





More information about the Buildd-tools-devel mailing list