Skip to content

bpo-34652: Remove lchmod from the big func checking block. #9247

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

Merged
merged 2 commits into from
Sep 13, 2018

Conversation

benjaminp
Copy link
Contributor

@benjaminp benjaminp commented Sep 12, 2018

pyconfig.h.in Outdated
@@ -557,9 +557,6 @@
/* Define to 1 if you have the 'lchflags' function. */
#undef HAVE_LCHFLAGS

/* Define to 1 if you have the `lchmod' function. */
#undef HAVE_LCHMOD
Copy link
Contributor

Choose a reason for hiding this comment

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

Apparently AC_CHECK_FUNCS defines HAVE_* preprocessor macro when a function is found, but AC_CHECK_FUNC does not.
So AC_CHECK_FUNC(lchmod) should be changed to AC_CHECK_FUNCS(lchmod).
Then above deletion from pyconfig.h.in should disappear.

@benjaminp benjaminp merged commit ed709d5 into master Sep 13, 2018
@miss-islington
Copy link
Contributor

Thanks @benjaminp for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

@benjaminp benjaminp deleted the benjamin-lchmod-fix branch September 13, 2018 00:22
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 13, 2018
…9247)

A fix for 883702e.
(cherry picked from commit ed709d5)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
@bedevere-bot
Copy link

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

@miss-islington
Copy link
Contributor

Sorry, @benjaminp, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker ed709d5699716bf7237856dc20aba321e2dfff6d 3.6

benjaminp added a commit that referenced this pull request Sep 13, 2018
…9247)

A fix for 883702e..
(cherry picked from commit ed709d5)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
miss-islington added a commit that referenced this pull request Sep 13, 2018
A fix for 883702e.
(cherry picked from commit ed709d5)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants