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
bpo-30512: add CAN Socket support for NetBSD #30066
Conversation
Indeed, it would be better for that to be a separate PR. Thanks! |
@serhiy-storchaka, since according to the b.p.o. issue you've worked on this in the past, it would be good to get your review of this! |
This reverts commit 41c4574.
@taleinat I've made a separate pull request for the configure script fix, but I don't know how to mark it as "skip news", please advise. Thanks! |
Thanks for doing that! Don't worry about the skip-news labels; only triagers and core devs can add those, but a mention in a comment is great |
Modules/socketmodule.c
Outdated
PyModule_AddIntMacro(m, CAN_ERR_MASK); | ||
|
||
PyModule_AddIntMacro(m, CAN_RAW_FILTER); | ||
/* PyModule_AddIntMacro(m, CAN_RAW_ERR_FILTER); */ |
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.
Is it not defined on NetBSD? Then after merging with the HAVE_LINUX_CAN_RAW_H case you can add #ifdef CAN_RAW_ERR_FILTER
.
Modules/socketmodule.c
Outdated
@@ -7790,6 +7790,20 @@ PyInit__socket(void) | |||
|
|||
PyModule_AddIntMacro(m, J1939_FILTER_MAX); | |||
#endif | |||
#ifdef HAVE_NETCAN_CAN_H |
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.
Why not merge this with blocks for HAVE_LINUX_CAN_H and HAVE_LINUX_CAN_RAW_H?
@@ -0,0 +1 @@ | |||
Add CAN Socket support for 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.
Add CAN Socket support for NetBSD | |
Add CAN Socket support for NetBSD. |
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 And if you don't make the requested changes, you will be put in the comfy chair! |
Thanks for the review, @serhiy-storchaka !
since I thought that's what the blurb is used for. |
I have made the requested changes; please review again |
Thanks for making the requested changes! @serhiy-storchaka: please review the changes made to this pull request. |
Modules/socketmodule.c
Outdated
PyModule_AddIntMacro(m, CAN_RAW_FILTER); | ||
#if defined(CAN_RAW_ERR_FILTER) |
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.
#if defined(CAN_RAW_ERR_FILTER) | |
#ifdef CAN_RAW_ERR_FILTER |
For consistency.
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.
Changed as suggested. (A couple lines above that, it's #if defined
- the file is not very consistent :) ).
Blurb is used for creating full Changelog which includes all user-visible changed as they are made, including bugfixes. There is a separate file
|
I've added a Whatsnew entry as suggested - thanks for the explanation & review! |
This also fixes a small unrelated bug in the configure script - test(1) only supports "=" as a comparison operator, "==" is a bash extension. If this should be a separate pull request, please let me know.
https://bugs.python.org/issue30512