baweaver / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Support GNU/Hurd #276

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,
i'm reporting here the Debian bug: http://bugs.debian.org/676450

>>>
Currently python-psutil fails to build on Debian GNU/Hurd. (Doesn't recognize 
gnu system).

Attached is a patch for building on Hurd.
<<<

Cheers,
Sandro

Original issue reported on code.google.com by sandro.tosi on 7 Jun 2012 at 10:06

Attachments:

GoogleCodeExporter commented 8 years ago
Ciao Sandro,
have you also tried to run the test suite?

Original comment by g.rodola on 7 Jun 2012 at 10:45

GoogleCodeExporter commented 8 years ago
You're right, I hadn't , but I suppose the fellow debian developer had, even if 
he didn't reported in the bug log. I'll ask him for the output or i'll run them 
myself.

Original comment by sandro.tosi on 8 Jun 2012 at 9:00

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Well, the patch as-is can't work as it only includes the C posix extension 
module [1].
The remaining part concerning process management is missing.
I don't know anything about GNU/Hurd. Is it a Linux-like OS? Does it support 
/proc filesystem? If so can we use the existing Linux implementation[2]?

[1] 
http://code.google.com/p/psutil/source/browse/tags/release-0.4.1/psutil/_psutil_
posix.c
[2] 
http://code.google.com/p/psutil/source/browse/tags/release-0.4.1/psutil/_pslinux
.py

Original comment by g.rodola on 9 Jun 2012 at 1:42

GoogleCodeExporter commented 8 years ago
GNU/Hurd is a linux-like environment, where the working env is the same (GNU), 
but the kernel is different: instead of using Linux it uses Hurd. It seems 
there's a basic support to /proc but it probably misses all the info psutil 
uses.

I noticed that too, so I asked the developer that opened the bug to investigate 
further and at least get to run the tests.

I'll update this bug as soon as I have some updated info.

Original comment by sandro.tosi on 9 Jun 2012 at 10:35

GoogleCodeExporter commented 8 years ago
I've started working on a GNU/Hurd port. Should I keep on working on it ? Do 
you mind getting a huge patch ?

Original comment by tipec...@gmail.com on 2 Nov 2012 at 1:09

GoogleCodeExporter commented 8 years ago
Sure go on, although I'm not sure when I'll have time to look into it.

Original comment by g.rodola on 2 Nov 2012 at 2:30

GoogleCodeExporter commented 8 years ago
once we have a patch I can try to run the code on a Debian porterbox and see 
how it goes. But I can't commit too much time, but Debian uses would love to 
have a port on GNU/Hurd :)

Original comment by sandro.tosi on 2 Nov 2012 at 6:42

GoogleCodeExporter commented 8 years ago
I pushed my work at https://gitorious.org/python-psutil-hurd .

Currently, out of the 93 tests, I get:
- 50 working
- 5 skipped
- 2 failed
- 36 errors

I'll try and keep improving this port.

Original comment by tipec...@gmail.com on 6 Nov 2012 at 12:34

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 2 May 2013 at 2:49