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

Cherry-pick upstream fixes to support building against python3 libraries #201

Merged
merged 2 commits into from
Jun 22, 2022

Conversation

igorpeshansky
Copy link
Member

@igorpeshansky igorpeshansky commented May 9, 2022

srivasta and others added 2 commits April 13, 2022 17:23
PyOS_AfterFork() is deprecated in favour of the new functions
PyOS_BeforeFork(), PyOS_AfterFork_Parent() and
PyOS_AfterFork_Child(). (Contributed by Antoine Pitrou in bpo-16500.)

Since the -Werror=deprecated-declarations flag is on, the fact that
PyOS_AfterFork is deprecated now results in a warning, and since all
warnings being treated as errors, collectd fails to compile.

This commit detects when we have python 3.7 or newer, and uses the new
replacement function.

Signed-off-by: Manoj Srivastava <[email protected]>
@igorpeshansky igorpeshansky requested review from a team and jkschulz and removed request for a team May 9, 2022 22:19
@google-cla
Copy link

google-cla bot commented May 9, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.

@igorpeshansky igorpeshansky merged commit 98b4dc7 into stackdriver-agent-5.8.1 Jun 22, 2022
@igorpeshansky igorpeshansky deleted the igorpeshansky-python3-support branch June 22, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants