[buildd-tools-devel] Bug#801572: Bug#801572: sbuild-update -u not saved

Gaudenz Steinlin gaudenz at debian.org
Tue Oct 13 08:31:11 UTC 2015


Hi

Raphael Hertzog <hertzog at debian.org> writes:

> Hi,
>
> On Mon, 12 Oct 2015, Jérémy Lal wrote:
>> doing sbuild-update -udcar sid-amd64-sbuild
>> does update some packages.
>> If i do it again, it does the same thing.
>> Same for just -u.
>> This is not happening with sbuild 0.65.2-1.1.
>>
>> [sid-amd64-sbuild]
>> type=directory
>> union-type=overlay
>
> You are asking for an "overlay" chroot, so you want to update the source
> of the chroot, not the chroot itself.
>
> The correct command to use was always “sbuild-update [options]
> source:sid-amd64-sbuild”.
>
> At least that's my understanding and what my own chroot update scripts
> have been doing for ages.

I just ran into the same problem and this does not solve it. Attached is the
debug output (std output and error) from running sbuild-update with the
following command:
/usr/bin/sbuild-update -u source:sid-amd64 --debug
                          ^^^^^^

If I rerun the same command again it downloads the same pdiffs again, so
apparently the source chroot was not updated. The same happens when
updating packages with -d or -g. The packages are installed, but not
into the source chroot.

sbuild-update seems to use a non source:* chroot even if asked to do so.
I can also confirm this by the fact that it creates an LVM snapshot for
the chroot session. My chroots are LVM snapshot based:

[sid-amd64]
type=lvm-snapshot
device=/dev/moebius/sid-amd64-chroot
lvm-snapshot-options=--size 2G
description=Debian sid/amd64 autobuilder
groups=root,sbuild
root-groups=root,sbuild
source-root-groups=root,sbuild
command-prefix=/var/cache/ccache-sbuild/sbuild-setup,eatmydata

This used to work in the past even without the explicit "source:"
qualifier. But it should at least work with it.

Gaudenz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20151013/0f8da592/attachment.sig>


More information about the Buildd-tools-devel mailing list