[Buildd-tools-devel] Bug#360124: sbuild: making use of chroot ${dist}-sbuild makes "session managed" to be misdetected

Adeodato Simó dato at net.com.org.es
Thu Mar 30 18:05:44 UTC 2006


Package: sbuild
Version: 0.43

Hi!

  sbuild 0.43 introduced the following nifty feature (thanks!):

    - When using schroot, look for a distribution named
      "$distribution-sbuild" in preference to "$distribution".

  I've observed, though, that if sbuild picks ${dist}-sbuild
  automatically, the chroot will no longer be regarded as session
  managed, even if it is. I haven't been able to look into the code and
  find what is causing this, but consider the following detailed
  example:

% sudo schroot -i -c sid3
  --- Chroot ---
  Name                  sid3
  Description           Debian sid (for sbuild)
  Type                  lvm-snapshot
  Priority              3
  Groups                sbuild
  Root Groups           sbuild
  Aliases               unstable <======== NOTE THIS
  Run Setup Scripts     true
  Run Execution Scripts true
  Session Managed       true
  Location              /chroot/sid
  Path                  /chroot/sid
  Device                /dev/vg2/sbuild
  Mount Options         -t reiserfs -o noatime,notail
  Source Groups         root
  Source Root Groups
  LVM Snapshot Options  -L2g

% sbuild -d u sl_3.03-14 | tail
******************************************************************************
Built successfully
Purging /var/lib/schroot/mount/sid3-385d8ec5-e71f-4b42-972c-77b076862366/chroot/sid/build/sbuild/sl-3.03
------------------------------------------------------------------------------
Not removing build depends: session managed chroot in use
******************************************************************************

% sudo vi /etc/schroot/schroot.conf
% sudo schroot -i -c sid3
  --- Chroot ---
  Name                  sid3
  Description           Debian sid (for sbuild)
  Type                  lvm-snapshot
  Priority              3
  Groups                sbuild
  Root Groups           sbuild
  Aliases               unstable-sbuild <=========== NOTE THE CHANGE
  Run Setup Scripts     true
  Run Execution Scripts true
  Session Managed       true
  Location              /chroot/sid
  Path                  /chroot/sid
  Device                /dev/vg2/sbuild
  Mount Options         -t reiserfs -o noatime,notail
  Source Groups         root
  Source Root Groups
  LVM Snapshot Options  -L2g

% sbuild -d u sl_3.03-14 | tail
******************************************************************************
Built successfully
Purging /var/lib/schroot/mount/sid3-8fb9506c-4591-4cb3-a09d-b3e2ef676a4c/chroot/sid/build/sbuild/sl-3.03
------------------------------------------------------------------------------
/usr/bin/dpkg --purge po-debconf intltool-debian libncurses5-dev libmagic1 gettext file html2text gettext-base debhelper 2>&1 </dev/null
(Reading database ... 10658 files and directories currently installed.)
Removing libncurses5-dev ...
Removing debhelper ...
Removing po-debconf ...
Removing intltool-debian ...
Removing gettext ...
Removing file ...
Purging configuration files for file ...
Removing html2text ...
Purging configuration files for html2text ...
Removing gettext-base ...
Removing libmagic1 ...
Purging configuration files for libmagic1 ...
******************************************************************************

  Thanks,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
Guy on cell: You can't fist someone for that long. They turn into a
handpuppet after 5 minutes.
                -- http://www.overheardinnewyork.com/archives/002602.html





More information about the Buildd-tools-devel mailing list