-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add basic NetBSD support. #557
Conversation
I just saw that there is a new release out, but not even feedback on this version. |
Hello. Judging from test results this doesn't seem ready for inclusion. What are the major stoppers? SSH access to a NetBSD would be welcome and I can try to take a look. Feel free to contact me privately ([email protected]). |
Sorry for not having given too much attention to this. In case you don't know I added support for OpenBSD in the last psutil release so I would like to push this further. http://grodola.blogspot.com/2015/11/openbsd-support-for-psutil.html explains how I reorganized source files in order to do that. If you're still interested in working on this you should update your PR in accordance, meaning having a shared |
Ryo ONODERA has ported psutil to NetBSD, again, based on psutil 3.3.0. I've replaced my version with his and committed it to my fork. Please take a look! Thank you. |
@@ -123,7 +123,7 @@ | |||
elif sys.platform.startswith("darwin"): | |||
from . import _psosx as _psplatform | |||
|
|||
elif sys.platform.startswith("freebsd") or sys.platform.startswith("openbsd"): | |||
elif sys.platform.startswith("freebsd") or sys.platform.startswith("openbsd") or sys.platform.startswith("netbsd"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be PEP8 compliant
What's the best way to disable the cwd function on NetBSD? |
I just did it in e377b74. It turns out NetBSD has /proc fs (didn't notice). I'm almost done with everything though. I will merge this soon. |
That's great news, thank you! |
Merged into master. Next version of psutil will support NetBSD (yay!). |
Yay! Thank you! I ran the tests again on psutil git head, and this is what I currently see:
|
I applied different fixes. Can you re-run tests? |
Sure, here are the new test results:
test_process_create_time fails because my default locale is German. The tests should probably reset to C locale if they compare locale-relevant strings. Thank you for the credits! |
Can you retry now? |
Sure:
|
I don't understand why this happens (can't reproduce).
Could you try to debug it? The implementation is in
|
Here's a patch:
Can you try it? |
The process is long-running and still exists.
The file sizes are not relevant, e.g.:
Here's the sysctl(8) output for the pid:
|
With your patch (btw, you need to remove the opening '{' in the first if too) I still get the same error:
|
OK can you please try now (337c6be)? |
Down to 7!
|
OK, cool. I think I'm gonna make a release now. These are not important failures and hopefully I/we can fix them later and use this very ticket. for discussing |
I'll trust your judgment on that. Let's do it this way. |
Signed-off-by: Thomas Klausner [email protected]
I've updated my one-year old patch.
There are still a lot of test failures. Are these because I didn't implement everything or because there are some major bugs?