-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-46045: Do not use POSIX semaphores on NetBSD #30047
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
Conversation
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.
Thank you for working on NetBSD support! Would you be interested to contribute a buildbot for NetBSD, too? As far as I know we don't have any CI for NetBSD.
Python/thread_pthread.h
Outdated
#elif defined(__NetBSD__) | ||
#define HAVE_BROKEN_POSIX_SEMAPHORES |
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.
configure.ac
has a block to define HAVE_BROKEN_POSIX_SEMAPHORES
for SunOS and AIX. Please move the NetBSD code there, too.
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.
I've changed this as requested.
I noticed that the generated files from autoconf are in the repository, but I have a newer version installed, so I didn't include these files in the commit.
@@ -0,0 +1 @@ | |||
Do not use POSIX semaphores on 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.
The changelog also needs an explanation why POSIX semaphores cannot be used on NetBSD. Is there an issue with NetBSD kernel or do we need extra quirks to support NetBSD flavor of semaphores?
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.
Sorry, I don't know that.
I've tried using gdb to look at the python processes that are forked by the three mentioned tests, but there are a lot of them. Can you suggest a simple example where Python would use semaphores that I could use to file a NetBSD bug report?
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
@tiran Could you point me to more information about running a build bot? |
Oh, and thanks for the review, @tiran! |
Can someone with autoconf-2.69 please regenerated the generated files? |
Ok, autoconf was not hard. aclocal is from automake though and those files are generated by 1.16.3 (1.16.5 is out). |
I have made the requested changes; please review again |
Thanks for making the requested changes! @tiran: please review the changes made to this pull request. |
Can you run Linux containers on your system? We provider containers to regenerate autoconf files. |
No, I can't run Linux containers, but I've built a copy of autoconf 2.69 manually, so I can regenerate now. |
This PR is stale because it has been open for 30 days with no activity. |
The change in |
https://bugs.python.org/issue46045