[issue34862] No longer builds on OpenBSD due to missing definition of convert_sched_param

2018-10-01 Thread William Orr
Change by William Orr : -- keywords: +patch pull_requests: +9050 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34862> ___ ___ Py

[issue34862] No longer builds on OpenBSD due to missing definition of convert_sched_param

2018-10-01 Thread William Orr
New submission from William Orr : [ worr on locke ] ( cpython ) % make -j15 [0] gcc -pthread -fno-strict-aliasing -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O2 -pipe -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers

[issue12978] Figure out extended attributes on BSDs

2015-11-04 Thread William Orr
William Orr added the comment: After a considerable amount of rework, I've gotten something worth submitting. All unit tests pass, and it handles some of the more unfortunate differences between FreeBSD's extended attribute syscalls and Linux's. One of the bigger changes is that I reworked

[issue9246] os.getcwd() hardcodes max path len

2015-04-24 Thread William Orr
Changes by William Orr w...@worrbase.com: Removed file: http://bugs.python.org/file39005/max_getcwd.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9246

[issue9246] os.getcwd() hardcodes max path len

2015-04-24 Thread William Orr
Changes by William Orr w...@worrbase.com: Removed file: http://bugs.python.org/file39154/max_getcwd.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9246

[issue9246] os.getcwd() hardcodes max path len

2015-04-24 Thread William Orr
William Orr added the comment: I've updated the patch with the comments from the review -- Added file: http://bugs.python.org/file39199/max_getcwd.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9246

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-24 Thread William Orr
William Orr added the comment: Updated the patch based on review -- Added file: http://bugs.python.org/file39200/max_fd.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23852

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-24 Thread William Orr
Changes by William Orr w...@worrbase.com: Removed file: http://bugs.python.org/file39097/max_fd.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23852

[issue9246] os.getcwd() hardcodes max path len

2015-04-20 Thread William Orr
William Orr added the comment: I've incorporated some of the feedback from the reviews into this new patch. I used the PyMem_Raw* functions to do allocation to avoid having to acquire the GIL and also avoid complciations from the builtin memory allocator, since I'm not using python objects

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-17 Thread William Orr
William Orr added the comment: I've updated Cédric's patch to only run that portion on OpenBSD. -- Added file: http://bugs.python.org/file39097/max_fd.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23852

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-17 Thread William Orr
Changes by William Orr w...@worrbase.com: Removed file: http://bugs.python.org/file39028/recvmsg_trunc_emsgsize_cmsg_linux_only.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20669

[issue12978] Figure out extended attributes on BSDs

2015-04-17 Thread William Orr
William Orr added the comment: Here's an initial attempt at implementing extended attribute support. Let me know if there's any interest. There's currently one deficiency, which is that the namespace isn't prepended to the attribute name when calling lsxattr. Let me know if my approach

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-17 Thread William Orr
Changes by William Orr w...@worrbase.com: Removed file: http://bugs.python.org/file38990/recvmsg_trunc_emsgsize_cmsg_obsd_skip.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20669

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-17 Thread William Orr
William Orr added the comment: Double checked on a FreeBSD box and confirmed. I missed the loop in the kernel source. I've attached a new patch, without the emsgsize change. -- Added file: http://bugs.python.org/file39096/recvmsg_linux_freebsd_only.patch

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-14 Thread William Orr
William Orr added the comment: Given that OpenBSD returns *bad* data via sysconf(3), I'm not sure that there's a good way to validate other than *only* calling getrlimit(3) on OpenBSD. Is that an acceptable approach? -- ___ Python tracker rep

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-14 Thread William Orr
William Orr added the comment: In the case of EINVAL, OpenBSD returns this if multiple cmsghdrs are attached to a message with sendmsg(2). In this case, those tests should probably be skipped. I've attached the patch that combines haypo's patch with skips referencing this issue wrt. multiple

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-14 Thread William Orr
William Orr added the comment: I'm adding another patch, as adding multiple cmsg's to a single message with sendmsg is a Linux-specific extension. This only enables the problematic patches on Linux. This solves the AIX failures in #20718 as well. -- Added file: http://bugs.python.org

[issue9246] os.getcwd() hardcodes max path len

2015-04-14 Thread William Orr
William Orr added the comment: Revisiting this, I've updated python3 to calculate this and use gradual dynamic allocation like the python2 implementation. -- nosy: +worr versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file39005

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-14 Thread William Orr
William Orr added the comment: I've updated the error message to just include the expected number of arguments. I think this makes it way more readable. -- keywords: +patch nosy: +worr Added file: http://bugs.python.org/file39010/maxvalueerror.patch

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-13 Thread William Orr
William Orr added the comment: Tested on OpenBSD 5.6/amd64. lgtm. -- nosy: +worr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23852

[issue21976] Fix test_ssl.py to handle LibreSSL versioning appropriately

2014-07-14 Thread William Orr
New submission from William Orr: Currently, test_ssl.py requires the version information to match the OpenSSL format exactly, and to be less than 2.0. LibreSSL, a drop-in replacement for OpenSSL, has started its version numbers at 2.0.0, and reports it slightly differently. This patch