Bug#733168: glances: FTBFS: OSError: [Errno 2] No such file or directory: '/etc/mtab'

2013-12-27 Thread Andreas Moog
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


Bug#733168: glances: FTBFS: OSError: [Errno 2] No such file or directory: '/etc/mtab'

2013-12-26 Thread Geoff
Hi

Thanks for the report,

On 26/12/2013 17:22, Andreas Moog wrote:
> Package: glances
> Version: 1.7.3-1
> Severity: serious
> 
> Hi there,
> 
> 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.

>> running build_ext
>> test_Glances_getCore (glances.tests.test_glances.TestGlancesStat) ... ERROR
>> […]
>>
>> ==
>> ERROR: test_Glances_getCore (glances.tests.test_glances.TestGlancesStat)
>> --
>> Traceback (most recent call last):
>>   File "/build/buildd/glances-1.7.3/glances/tests/test_glances.py", line 35, 
>> in setUp
>> self.stats.update()
>>   File "/build/buildd/glances-1.7.3/glances/glances.py", line 1673, in update
>> self.__update__(input_stats)
>>   File "/build/buildd/glances-1.7.3/glances/glances.py", line 1648, in 
>> __update__
>> self.fs = self.glancesgrabfs.get()
>>   File "/build/buildd/glances-1.7.3/glances/glances.py", line 1004, in get
>> self.__update__()
>>   File "/build/buildd/glances-1.7.3/glances/glances.py", line 982, in 
>> __update__
>> fs_stat = psutil.disk_partitions(all=True)
>>   File "/usr/lib/python2.7/dist-packages/psutil/__init__.py", line 1345, in 
>> disk_partitions
>> return _psplatform.disk_partitions(all)
>>   File "/usr/lib/python2.7/dist-packages/psutil/_pslinux.py", line 300, in 
>> disk_partitions
>> partitions = _psutil_linux.get_disk_partitions()
>> 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'm ready to change glances packaging to fix this FTBFS, though I'm not sure
this is actually necessary.

Can you tell me if glances is supposed to build in a mtab-less environment?

Cheers,
Geoff


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#733168: glances: FTBFS: OSError: [Errno 2] No such file or directory: '/etc/mtab'

2013-12-26 Thread Andreas Moog
Package: glances
Version: 1.7.3-1
Severity: serious

Hi there,

your package fails to build in a clean unstable chroot:

> running build_ext
> test_Glances_getCore (glances.tests.test_glances.TestGlancesStat) ... ERROR
> test_Glances_getCpu (glances.tests.test_glances.TestGlancesStat) ... ERROR
> test_Glances_getDiskIO (glances.tests.test_glances.TestGlancesStat) ... ERROR
> test_Glances_getFs (glances.tests.test_glances.TestGlancesStat) ... ERROR
> test_Glances_getHDDTemp (glances.tests.test_glances.TestGlancesStat) ... ERROR
> test_Glances_getMem (glances.tests.test_glances.TestGlancesStat) ... ERROR
> test_Glances_getMemSwap (glances.tests.test_glances.TestGlancesStat) ... ERROR
> test_Glances_getNetwork (glances.tests.test_glances.TestGlancesStat) ... ERROR
> test_Glances_getPerCpu (glances.tests.test_glances.TestGlancesStat) ... ERROR
> test_Glances_getProcess (glances.tests.test_glances.TestGlancesStat) ... ERROR
> test_Glances_getSensors (glances.tests.test_glances.TestGlancesStat) ... ERROR
> test_Glances_getSystem (glances.tests.test_glances.TestGlancesStat) ... ERROR
> 
> ==
> ERROR: test_Glances_getCore (glances.tests.test_glances.TestGlancesStat)
> --
> Traceback (most recent call last):
>   File "/build/buildd/glances-1.7.3/glances/tests/test_glances.py", line 35, 
> in setUp
> self.stats.update()
>   File "/build/buildd/glances-1.7.3/glances/glances.py", line 1673, in update
> self.__update__(input_stats)
>   File "/build/buildd/glances-1.7.3/glances/glances.py", line 1648, in 
> __update__
> self.fs = self.glancesgrabfs.get()
>   File "/build/buildd/glances-1.7.3/glances/glances.py", line 1004, in get
> self.__update__()
>   File "/build/buildd/glances-1.7.3/glances/glances.py", line 982, in 
> __update__
> fs_stat = psutil.disk_partitions(all=True)
>   File "/usr/lib/python2.7/dist-packages/psutil/__init__.py", line 1345, in 
> disk_partitions
> return _psplatform.disk_partitions(all)
>   File "/usr/lib/python2.7/dist-packages/psutil/_pslinux.py", line 300, in 
> disk_partitions
> partitions = _psutil_linux.get_disk_partitions()
> OSError: [Errno 2] No such file or directory: '/etc/mtab'
(Followed by another bunch of similar errors)

Full buildlog attached.

Cheers!

-- 
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


glances_1.7.3-1_amd64.build.gz
Description: application/gzip


signature.asc
Description: OpenPGP digital signature