Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support GNU/Hurd #276

Closed
giampaolo opened this issue May 23, 2014 · 13 comments
Closed

Support GNU/Hurd #276

giampaolo opened this issue May 23, 2014 · 13 comments

Comments

@giampaolo
Copy link
Owner

From sandro.tosi on June 08, 2012 00:06:35

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

Attachment: pypsutil-hurd.diff

Original issue: http://code.google.com/p/psutil/issues/detail?id=276

@giampaolo
Copy link
Owner Author

From g.rodola on June 07, 2012 15:45:27

Ciao Sandro,
have you also tried to run the test suite?

@giampaolo
Copy link
Owner Author

From sandro.tosi on June 08, 2012 14:00:50

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.

@giampaolo
Copy link
Owner Author

From g.rodola on June 08, 2012 18:42:30

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] 
https://code.google.com/p/psutil/source/browse/tags/release-0.4.1/psutil/_psutil_posix.c
 [2] 
https://code.google.com/p/psutil/source/browse/tags/release-0.4.1/psutil/_pslinux.py

@giampaolo
Copy link
Owner Author

From sandro.tosi on June 09, 2012 03:35:36

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.

@giampaolo
Copy link
Owner Author

From tipec...@gmail.com on November 01, 2012 18:09:56

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

@giampaolo
Copy link
Owner Author

From g.rodola on November 01, 2012 19:30:38

Sure go on, although I'm not sure when I'll have time to look into it.

@giampaolo
Copy link
Owner Author

From sandro.tosi on November 02, 2012 11:42:25

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

@giampaolo
Copy link
Owner Author

From tipec...@gmail.com on November 05, 2012 16:34:15

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.

@giampaolo
Copy link
Owner Author

From g.rodola on May 02, 2013 07:49:45

Labels: -Type-Defect Type-Enhancement Portability

@giampaolo
Copy link
Owner Author

Closing out as outdated.

@sandrotosi
Copy link

hey @giampaolo this still happens with 5.4.1:

https://buildd.debian.org/status/fetch.php?pkg=python-psutil&arch=hurd-i386&ver=5.4.1-1&stamp=1511665962&raw=0

for python in python2.7 python3.6; do \
	$python setup.py build; \
	$python-dbg setup.py build; \
done
platform gnu0 is not supported
/<<PKGBUILDDIR>>/debian/rules:10: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
/<<PKGBUILDDIR>>/debian/rules:7: recipe for target 'build-arch' failed
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2

should this issue be re-opened?

@sthibaul
Copy link

sthibaul commented Sep 5, 2021

Well, yes this is still happening :) and blocking the availability of a hundred packages in Debian.
Hurd's /proc implementation is mostly following Linux' shape, so probably much of the Linux code can be just called as such.

@giampaolo
Copy link
Owner Author

What happens if you fix setup.py and run tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants