On 27.12.2013 00:33, Geoff wrote: >> your package fails to build in a clean unstable chroot: > > I cannot reproduce it with "pbuilder --build ./glances_1.7.3-1.dsc". > The package builds fine.
I use sbuild with a schroot chroot on lvm, which (as you point out later) doesn't provide a /etc/mtab file. >>> OSError: [Errno 2] No such file or directory: '/etc/mtab' >> (Followed by another bunch of similar errors) > > In my previous experiences with chrooted build environment I remember > "/etc/mtab" was not replicated in the chroot (using schroot for instance). > > I'm wondering then if this is actually an issue in glances packaging. > I believe '/etc/mtab' should exist on regular environment. I believe starting with Wheezy, /etc/mtab is a symlink to /proc/mounts [1], but that of course doesn't/shouldn't concern chroots. According to the glibc documentation, however, software shouldn't rely on the existence of the mtab file: "Note that the fstab and mtab files are maintained on a system by convention. It is possible for the files not to exist or not to be consistent with what is really mounted or available to mount" [2] Which makes me think that glances should be ported to use /proc/mounts directly. [1] http://www.debian.org/releases/stable/i386/release-notes/ch-information.en.html#mtab [2] http://www.gnu.org/software/libc/manual/html_mono/libc.html#Mount-Information -- Andreas Moog, Berliner Str. 29, 36205 Sontra/Germany PGP-encrypted mails preferred (Key-ID: 74DE6624) PGP Fingerprint: 74CD D9FE 5BCB FE0D 13EE 8EEA 61F3 4426 74DE 6624
signature.asc
Description: OpenPGP digital signature