[buildd-tools-devel] Bug#775091: sbuild: sbuild-updates creates two files in /tmp on every run
Sebastian Ramacher
sramacher at debian.org
Sun Sep 13 16:20:29 UTC 2015
Hi
On 2015-09-13 17:24:23, Johannes Schauer wrote:
> Hi,
>
> Quoting Sebastian Ramacher (2015-09-13 16:01:48)
> > This is enough to reproduce it in jessie:
> >
> > $ sudo sbuild-createchroot \
> > --make-sbuild-tarball=/tmp/test.tar.gz \
> > sid `mktemp -d` \
> > http://localhost:3142/debian # replace with your own mirror
> > $ tar taf /tmp/test.tar.gz ./tmp
> > ./tmp/
> > ./tmp/WCV3MjvRTJ
> > ./tmp/fbuo0WWY51
> > $ sudo sbuild-update -udrc sid-amd64-sbuild
> > $ tar taf /tmp/test.tar.gz ./tmp
> > ./tmp/
> > ./tmp/WCV3MjvRTJ
> > ./tmp/fbuo0WWY51
> > ./tmp/xstgwRr70t
> > ./tmp/6VSNh4CcCe
> >
> > Every run of sbuild-update adds to new files to /tmp in the tarball.
>
> that's what I tread earlier too but did not see what you see and still do not
> after trying again from scratch.
>
> Are you sure that you are not using some special schroot config which does not
> bind mount /tmp for example? (look into /etc/schroot/default/fstab)
I'm using the sbuild profile and my /etc/schroot/sbuild/fstab has the following
diff compared to the one from schroot 1.6.10-1:
% diff -u schroot-1.6.10-1/etc/schroot/sbuild /etc/schroot/sbuild/fstab
--- schroot-1.6.10-1/etc/schroot/sbuild/fstab 2014-05-25 23:03:42.000000000 +0200
+++ /etc/schroot/sbuild/fstab 2014-12-28 22:00:32.918246403 +0100
@@ -9,4 +9,7 @@
tmpfs /dev/shm tmpfs defaults 0 0
# Mount a large scratch space for the build, so we don't use up
# space on an LVM snapshot of the chroot itself.
-/var/lib/sbuild/build /build none rw,bind 0 0
+/srv/tank/debian/schroot/sbuild-build /build none rw,bind 0 0
+
+# ccache scratch space
+/srv/tank/debian/schroot/sbuild-ccache /ccache none rw,bind 0 0
/tmp does not get mounted as tmpfs or bind mounted in this configuration (why
would I want my hosts /tmp in a chroot intended for building anyway?).
Cheers
--
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20150913/9f758db3/attachment.sig>
More information about the Buildd-tools-devel
mailing list