Skip to content

gh-119770: Make termios ioctl() constants positive - #119840

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:termios_positive
May 31, 2024
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:termios_positive

Conversation

@vstinner

@vstinner vstinner commented May 31, 2024 •

Copy link
Copy Markdown
Member
@vstinner
vstinner force-pushed the termios_positive branch 2 times, most recently from 8dd2f14 to 9db77ce Compare May 31, 2024 11:04
@vstinner

Copy link
Copy Markdown
Member Author

@Eclips4 or @sobolevn: Would you mind to try this fix on macOS?

@Eclips4 Eclips4 self-assigned this May 31, 2024

@Eclips4 Eclips4 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I've tested it locally and everything worked as expected. Thank you Victor!

@Eclips4 Eclips4 added needs backport to 3.12 only security fixes needs backport to 3.13 only security fixes labels May 31, 2024
@vstinner
vstinner merged commit 64ff1e2 into python:main May 31, 2024
@vstinner
vstinner deleted the termios_positive branch May 31, 2024 15:18
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 31, 2024
…9840)

(cherry picked from commit 64ff1e2)

Co-authored-by: Victor Stinner <vstinner@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 31, 2024
…9840)

(cherry picked from commit 64ff1e2)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app

bedevere-app Bot commented May 31, 2024

Copy link
Copy Markdown

GH-119862 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label May 31, 2024
@vstinner vstinner removed the needs backport to 3.12 only security fixes label May 31, 2024
@bedevere-app

bedevere-app Bot commented May 31, 2024

Copy link
Copy Markdown

GH-119863 is a backport of this pull request to the 3.12 branch.

@vstinner

Copy link
Copy Markdown
Member Author

@Eclips4 added needs backport to 3.12 needs backport to 3.13 labels

Oh no, I disagree. That's a backward incompatible change. I don't think that we should backport it. It's not a bugfix. In Python 3.13, "it just works".

This change was needed because I changed ioctl() request parameter type from C unsigned int to C unsigned long in Python 3.14.

@Eclips4

Eclips4 commented May 31, 2024 •

Copy link
Copy Markdown
Member

This change was needed because I changed ioctl() request parameter type from C unsigned int to C unsigned long in Python 3.14.

But this change was backported to versions 3.12 and 3.13, so shouldn't it also be backported since it fixes at least one failing test?
#119504
#119505

@Eclips4

Eclips4 commented May 31, 2024

Copy link
Copy Markdown
Member

Or another option: reverting this change for 3.12 && 3.13 branches since this break backwards compatibility

@vstinner

vstinner commented Jun 1, 2024

Copy link
Copy Markdown
Member Author

Or another option: reverting this change for 3.12 && 3.13 branches since this break backwards compatibility

Right, I created two revert changes:

estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants