Debian Bug report logs - #693242
live-build: apt-get autoclean doesn't remove old versions

version graph

Package: live-build; Maintainer for live-build is Live Systems Maintainers <debian-live@lists.debian.org>; Source for live-build is src:live-build.

Reported by: Thanatermesis <thanatermesis@gmail.com>

Date: Wed, 14 Nov 2012 16:06:05 UTC

Severity: normal

Found in version live-build/3.0~a67-1

Done: Daniel Baumann <daniel.baumann@progress-technologies.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#693242; Package live-build. (Wed, 14 Nov 2012 16:06:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thanatermesis <thanatermesis@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Wed, 14 Nov 2012 16:06:07 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Thanatermesis <thanatermesis@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: live-build: apt-get autoclean doesn't remove old versions
Date: Wed, 14 Nov 2012 17:02:53 +0100
[Message part 1 (text/plain, inline)]
Package: live-build
Version: 3.0~a67-1
Severity: normal
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

The apt-get autoclean command removes extra packages in the chroot but
the cache has an incremental and growing size, which can be seen with
this command that shows only same-packagenames:  ls -1 cache/packages.chroot/ | sort | sed 's|_.*$||g' | uniq -d

A patch is included for fix this problem, which maintains only the last
versions in the cache directory


- -- Package-specific info:

- -- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages live-build depends on:
ii  debootstrap  1.0.42

Versions of packages live-build recommends:
ii  cpio                            2.11-8
ii  gnu-fdisk                       1.2.4-3.1
ii  live-boot-doc                   3.0~a35-1
ii  live-config-doc                 3.0~a43-1
ii  live-manual-html [live-manual]  1:3.0~a13-1

Versions of packages live-build suggests:
ii  dosfstools       3.0.13-1
ii  fakeroot         1.18.4-2
ii  genisoimage      9:1.1.11-2
ii  git              1:1.7.10.4-1
pn  loadlin          <none>
ii  memtest86+       4.20-1.1
ii  mtools           4.0.17-1
ii  parted           2.3-11
ii  squashfs-tools   1:4.2-5
ii  sudo             1.8.5p2-1
pn  syslinux | grub  <none>
ii  uuid-runtime     2.20.1-5.2
pn  win32-loader     <none>

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJQo8CsAAoJEKLHmb/f+NfClmkP/RYODVQbzMWHi4z2jUoYpgJf
Xid0JPI+/LgfqywLd3beJ63uNd0/YqUDmb6mJmPpWLzVRbFejhjZq0rRlzJh6IAn
jrnVangG/x0A2oIZZ2yrZLBJ89YIwR4J5U/2AxIk2NJ3xBG/MNX5tJ9Y7yHtS0pK
bcTrdLr6RTEixjVMHKM6rvaBuU4orQGjD+3NayGbH8JM61mNFluHX248ZqLlfT50
BLrHm+BmHGNeQMeMpl0YREU0TBDvWeLH7jW5OdwLLDTlLPkiXNTiO2YqXeQI10ke
9ipzRtWDb5zm80ttdbUyW1s04ia4a4hBA8IblQ0IJbXv8JaR2kaAV2r1KhKHDu32
oGxRkzxDxKBj2mwCapsa7Gjl1H0qOdBeunmErUOzLmvZ6AAd5F1hk0Dh1ChCYgWy
h6P7LjOnFMZHRJU8i4E57XDg8QF/2Gwlh9ogqam8/F6nZ41pwWtjJFJYMK2UPJSz
fNNZsqpGLs2X65n2jlVFJ9VBJs33hd1EgLnk8ESj7JF6GDrtFXqvXGxLHwW3Sfzw
gI1Xsxt8mh6R36jLLzaFSWLLeGOoOwFmW+QN6ZYnUDChndLYjJ37moK+2GJ6GrJ7
OKTCKqAVlBHWiCygH1zNB7jdbmUjbp7YowIEPoPU8BaUkzasJNV3Z2qO7dvA/k2A
DNZ+Bwy5QwA7nIhC0kWb
=fyi7
-----END PGP SIGNATURE-----
[patch.apt-get_autoclean_do_not_maintain_old_versions.diff (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#693242; Package live-build. (Wed, 14 Nov 2012 20:54:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to daniel.baumann@progress-technologies.net:
Extra info received and forwarded to list. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Wed, 14 Nov 2012 20:54:07 GMT) Full text and rfc822 format available.

Message #10 received at 693242@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel.baumann@progress-technologies.net>
To: Thanatermesis <thanatermesis@gmail.com>
Cc: 693242@bugs.debian.org
Subject: Re: Bug#693242: live-build: apt-get autoclean doesn't remove old versions
Date: Wed, 14 Nov 2012 21:51:55 +0100
tag 693242 - patch
thanks

On 11/14/2012 05:02 PM, Thanatermesis wrote:
> The apt-get autoclean command removes extra packages in the chroot
> but the cache has an incremental and growing size

the current assumption is that the cache of lb is usuable for more
than one distribution built from the same config tree, your suggested
change breaks that, so this can (if at all and if in that way, which i
don't think is a good one; lb rather should cache distribution
specifically, but anyway) at earliest be done with lb4 post wheezy.

-- 
Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:          daniel.baumann@progress-technologies.net
Internet:       http://people.progress-technologies.net/~daniel.baumann/



Removed tag(s) patch. Request was from Daniel Baumann <daniel.baumann@progress-technologies.net> to control@bugs.debian.org. (Wed, 14 Nov 2012 20:54:09 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#693242; Package live-build. (Thu, 15 Nov 2012 12:36:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ben Armstrong <synrg@sanctuary.nslug.ns.ca>:
Extra info received and forwarded to list. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Thu, 15 Nov 2012 12:36:03 GMT) Full text and rfc822 format available.

Message #17 received at 693242@bugs.debian.org (full text, mbox):

From: Ben Armstrong <synrg@sanctuary.nslug.ns.ca>
To: 693242@bugs.debian.org
Subject: Re: Bug#693242: live-build: apt-get autoclean doesn't remove old versions
Date: Thu, 15 Nov 2012 08:32:41 -0400
On 11/14/2012 04:51 PM, Daniel Baumann wrote:
> tag 693242 - patch
> thanks
> 
> On 11/14/2012 05:02 PM, Thanatermesis wrote:
>> The apt-get autoclean command removes extra packages in the chroot
>> but the cache has an incremental and growing size
> 
> the current assumption is that the cache of lb is usuable for more
> than one distribution built from the same config tree,

Are you sure? The bootstrap for the old distribution would be retained,
requiring an 'lb clean --purge' before rebuilding with the new
distribution (and that would delete the package cache in any case).

> your suggested
> change breaks that, so this can (if at all and if in that way, which i
> don't think is a good one; lb rather should cache distribution
> specifically, but anyway) at earliest be done with lb4 post wheezy.

This is discouraging. I worked closely with Thanatermesis on this and
want to protect my investment of effort. I think it's suitable for the
current release, as I know of no use case it actually breaks, so if you
can furnish me with test instructions to reproduce this problem, I would
be happy to try them and rework the patch.

Ben



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#693242; Package live-build. (Thu, 15 Nov 2012 22:42:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michal Suchanek <hramrach@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Thu, 15 Nov 2012 22:42:03 GMT) Full text and rfc822 format available.

Message #22 received at 693242@bugs.debian.org (full text, mbox):

From: Michal Suchanek <hramrach@gmail.com>
To: Ben Armstrong <synrg@sanctuary.nslug.ns.ca>, 693242@bugs.debian.org
Subject: Re: Bug#693242: live-build: apt-get autoclean doesn't remove old versions
Date: Thu, 15 Nov 2012 23:38:33 +0100
On 15 November 2012 13:32, Ben Armstrong <synrg@sanctuary.nslug.ns.ca> wrote:
> On 11/14/2012 04:51 PM, Daniel Baumann wrote:
>> tag 693242 - patch
>> thanks
>>
>> On 11/14/2012 05:02 PM, Thanatermesis wrote:
>>> The apt-get autoclean command removes extra packages in the chroot
>>> but the cache has an incremental and growing size
>>
>> the current assumption is that the cache of lb is usuable for more
>> than one distribution built from the same config tree,
>
> Are you sure? The bootstrap for the old distribution would be retained,
> requiring an 'lb clean --purge' before rebuilding with the new
> distribution (and that would delete the package cache in any case).
>

You can typically upgrade the bootstrap. There is an upgrade step
anyway in case the bootstrap is stale due to updates to the current
distribution. And it can be cleared manually quite easily.

Thanks

Michal



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#693242; Package live-build. (Thu, 15 Nov 2012 23:36:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ben Armstrong <synrg@sanctuary.nslug.ns.ca>:
Extra info received and forwarded to list. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Thu, 15 Nov 2012 23:36:03 GMT) Full text and rfc822 format available.

Message #27 received at 693242@bugs.debian.org (full text, mbox):

From: Ben Armstrong <synrg@sanctuary.nslug.ns.ca>
To: 693242@bugs.debian.org
Subject: Re: Bug#693242: live-build: apt-get autoclean doesn't remove old versions
Date: Thu, 15 Nov 2012 19:33:58 -0400
On 15/11/12 06:38 PM, Michal Suchanek wrote:
> You can typically upgrade the bootstrap. There is an upgrade step
> anyway in case the bootstrap is stale due to updates to the current
> distribution. And it can be cleared manually quite easily.

Please explain how, as I was under the impression live-build only
allowed for one-time generation of the bootstrap and thereafter it just
retrieves it from the cache, so if I change from 'lb config
--distribution squeeze' to 'lb config --distribution wheezy' or vice
versa, you would need to do 'lb clean --purge' between to regenerate the
bootstrap stage from scratch. Otherwise, we're probably not really
talking about what live-build itself supports.

Ben



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#693242; Package live-build. (Fri, 16 Nov 2012 11:33:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michal Suchanek <hramrach@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Fri, 16 Nov 2012 11:33:03 GMT) Full text and rfc822 format available.

Message #32 received at 693242@bugs.debian.org (full text, mbox):

From: Michal Suchanek <hramrach@gmail.com>
To: Ben Armstrong <synrg@sanctuary.nslug.ns.ca>, 693242@bugs.debian.org
Subject: Re: Bug#693242: live-build: apt-get autoclean doesn't remove old versions
Date: Fri, 16 Nov 2012 12:27:42 +0100
On 16 November 2012 00:33, Ben Armstrong <synrg@sanctuary.nslug.ns.ca> wrote:
> On 15/11/12 06:38 PM, Michal Suchanek wrote:
>> You can typically upgrade the bootstrap. There is an upgrade step
>> anyway in case the bootstrap is stale due to updates to the current
>> distribution. And it can be cleared manually quite easily.
>
> Please explain how, as I was under the impression live-build only
> allowed for one-time generation of the bootstrap and thereafter it just
> retrieves it from the cache, so if I change from 'lb config
> --distribution squeeze' to 'lb config --distribution wheezy' or vice
> versa, you would need to do 'lb clean --purge' between to regenerate the
> bootstrap stage from scratch. Otherwise, we're probably not really
> talking about what live-build itself supports.
>

When you do squeeze build a squeeze bootstrap is cached. If you do
wheezy build after the bootstrap is restored form cache and upgrade is
run after restore. That may bring the bootstrap up to date to wheezy
version or fail if some dependencies in the bootstrapped packages are
too complex for apt's little brain.

Thanks

Michal



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live Project <debian-live@lists.debian.org>:
Bug#693242; Package live-build. (Fri, 16 Nov 2012 12:15:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ben Armstrong <synrg@sanctuary.nslug.ns.ca>:
Extra info received and forwarded to list. Copy sent to Debian Live Project <debian-live@lists.debian.org>. (Fri, 16 Nov 2012 12:15:03 GMT) Full text and rfc822 format available.

Message #37 received at 693242@bugs.debian.org (full text, mbox):

From: Ben Armstrong <synrg@sanctuary.nslug.ns.ca>
To: 693242@bugs.debian.org
Subject: Re: Bug#693242: live-build: apt-get autoclean doesn't remove old versions
Date: Fri, 16 Nov 2012 08:11:50 -0400
On 11/16/2012 07:27 AM, Michal Suchanek wrote:
> When you do squeeze build a squeeze bootstrap is cached. If you do
> wheezy build after the bootstrap is restored form cache and upgrade is
> run after restore. That may bring the bootstrap up to date to wheezy
> version or fail if some dependencies in the bootstrapped packages are
> too complex for apt's little brain.

So the answer is "no, live-build doesn't support it". Also, that would
definitely not work for a downgrade (--distribution wheezy fails, so
user tries a --distribution squeeze build afterwards). I will definitely
not document or recommend this procedure, then, and stand by my
assertion that I see no reason the patch could not be accepted as-is.

Ben



Reply sent to daniel.baumann@progress-technologies.net:
You have taken responsibility. (Fri, 15 Feb 2013 11:27:08 GMT) Full text and rfc822 format available.

Notification sent to Thanatermesis <thanatermesis@gmail.com>:
Bug acknowledged by developer. (Fri, 15 Feb 2013 11:27:08 GMT) Full text and rfc822 format available.

Message #42 received at 693242-done@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel.baumann@progress-technologies.net>
To: 693242-done@bugs.debian.org
Subject: Re: live-build: apt-get autoclean doesn't remove old versions
Date: Fri, 15 Feb 2013 12:24:05 +0100
we're almost there in live-build 4.x to build multiple images from the 
same config tree, using the same cache.

given that, we do want to have 'an evergrowing' cache. it remains a task 
of the user to clear it from time to time, as there's no good automatic 
way to handle that.

-- 
Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:          daniel.baumann@progress-technologies.net
Internet:       http://people.progress-technologies.net/~daniel.baumann/



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 16 Mar 2013 07:27:58 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 04:52:52 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.