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

bpo-35550 fix incorrect Solaris define guards #11275

Merged
merged 3 commits into from
Dec 31, 2018

Conversation

kulikjak
Copy link
Contributor

@kulikjak kulikjak commented Dec 21, 2018

Python source code uses on several places ifdef sun or defined(sun) without the underscores, which is not standard compliant and shouldn't be used.

Defines should check for __sun instead. Reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#Solaris

https://bugs.python.org/issue35550

@gpshead
Copy link
Member

gpshead commented Dec 26, 2018

fire up blurb or click the 'Details' link on the bedevere/news check here (for the blurb-it web interface) and add a NEWS entry to this PR. I suggest some simple text in the Build section such as "Fix incorrect Solaris #ifdef checks to look for __sun && __SVR4 instead of sun when compiling."

Copy link
Member

@gpshead gpshead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@gpshead gpshead merged commit 6f9bc72 into python:master Dec 31, 2018
@miss-islington
Copy link
Contributor

Thanks @kulikjak for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 31, 2018
Python source code uses on several places ifdef sun or defined(sun) without the underscores, which is not standard compliant and shouldn't be used.

Defines should check for __sun instead. Reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_systemGH-Solaris

https://bugs.python.org/issue35550
(cherry picked from commit 6f9bc72)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
@bedevere-bot
Copy link

GH-11383 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Dec 31, 2018
Python source code uses on several places ifdef sun or defined(sun) without the underscores, which is not standard compliant and shouldn't be used.

Defines should check for __sun instead. Reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_systemGH-Solaris

https://bugs.python.org/issue35550
(cherry picked from commit 6f9bc72)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
csabella pushed a commit to csabella/cpython that referenced this pull request Dec 31, 2018
Python source code uses on several places ifdef sun or defined(sun) without the underscores, which is not standard compliant and shouldn't be used.

Defines should check for __sun instead. Reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#Solaris

https://bugs.python.org/issue35550
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants