[buildd-tools-devel] Bug#782534: sbuild: sbuild-createchroot agrees to create a duplicate-named chroot, which schroot then barfs on

Dima Kogan dima at secretsauce.net
Mon Apr 13 19:40:07 UTC 2015


Package: sbuild
Version: 0.65.2-1
Severity: normal

Hi. Look:


    dima at shorty:/etc/schroot/chroot.d$ schroot -l
    chroot:sid-amd64-sbuild
    chroot:trusty-amd64-sbuild
    chroot:wheezy-amd64-sbuild
    source:sid-amd64-sbuild
    source:trusty-amd64-sbuild
    source:wheezy-amd64-sbuild

    dima at shorty:/etc/schroot/chroot.d$ ls
    sid-amd64-sbuild-VVRXav  trusty-amd64-sbuild-dXNuL1  wheezy-amd64-sbuild-Y42av1

    dima at shorty:/etc/schroot/chroot.d$ sudo sbuild-createchroot --make-sbuild-tarball=/var/lib/sbuild/trusty-amd64.tar.gz wheezy /tmp/xxx http://mirror.hmc.edu/debian 
    I: SUITE: wheezy
    I: TARGET: /tmp/xxx
    <snip. lots of output as a "wheezy" chroot is made>

    dima at shorty:/etc/schroot/chroot.d$ schroot -l
    E: /etc/schroot/chroot.d/wheezy-amd64-sbuild-Y42av1: line 1 [wheezy-amd64-sbuild]: A chroot or alias â already exists with this name
    I: Duplicate names are not allowed

    dima at shorty:/etc/schroot/chroot.d$ ls
    sid-amd64-sbuild-VVRXav  trusty-amd64-sbuild-dXNuL1  wheezy-amd64-sbuild-HHoTCT  wheezy-amd64-sbuild-Y42av1
duplicates:                                              ^^^^^^                      ^^^^^^


So I had a "wheezy" sbuild chroot. Then I made another one with the same
name (and sbuild-createchroot let me). Then schroot gets confused.
sbuild-createchroot should probably check for this.



More information about the Buildd-tools-devel mailing list