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

gh-119447: Fix build with _PY_SHORT_FLOAT_REPR == 0 #121178

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

yu-re-ka
Copy link
Contributor

@yu-re-ka yu-re-ka commented Jun 30, 2024

After 3c57971 the dtoa_runtime_state is referenced from pycore_runtime.h (later moved to Include/internal/pycore_interp.h) unconditionally, but the dtoa_runtime_state struct is not defined in all cases. Use the "not_used" definition of dtoa_runtime_state which already exists for the Py_USING_MEMORY_DEBUGGER case on those platforms as well.

Copy link

cpython-cla-bot bot commented Jun 30, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Jun 30, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM

@vstinner vstinner added skip news needs backport to 3.13 bugs and security fixes labels Jun 30, 2024
@vstinner vstinner merged commit c3677be into python:main Jun 30, 2024
39 checks passed
@miss-islington-app
Copy link

Thanks @yu-re-ka for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 30, 2024
…21178)

(cherry picked from commit c3677be)

Co-authored-by: Yureka <yuka@yuka.dev>
@bedevere-app
Copy link

bedevere-app bot commented Jun 30, 2024

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

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 30, 2024
@vstinner vstinner added the needs backport to 3.12 bug and security fixes label Jun 30, 2024
@miss-islington-app
Copy link

Thanks @yu-re-ka for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @yu-re-ka and @vstinner, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker c3677befbecbd7fa94cde8c1fecaa4cc18e6aa2b 3.12

@yu-re-ka
Copy link
Contributor Author

@bedevere-app
Copy link

bedevere-app bot commented Jun 30, 2024

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

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jun 30, 2024
@yu-re-ka yu-re-ka deleted the fix-dtoa branch June 30, 2024 09:47
vstinner pushed a commit to vstinner/cpython that referenced this pull request Jun 30, 2024
@vstinner
Copy link
Member

Also needs back port to 3.12. The diff for that is available here: https://github.com/yu-re-ka/nixpkgs/blob/27fa2eb77ee683db4e9318d58c5fe102b25cfb6e/pkgs/development/interpreters/python/cpython/3.12/0001-Fix-build-with-_PY_SHORT_FLOAT_REPR-0.patch

Right. I created a PR manually for 3.12 using a cherry-pick of your fix: #121180.

vstinner added a commit that referenced this pull request Jun 30, 2024
…121180)

gh-119447: Fix build with _PY_SHORT_FLOAT_REPR == 0 (#121178)

(cherry picked from commit c3677be)

Co-authored-by: Yureka <yuka@yuka.dev>
vstinner pushed a commit that referenced this pull request Jun 30, 2024
#121179)

gh-119447: Fix build with _PY_SHORT_FLOAT_REPR == 0 (GH-121178)
(cherry picked from commit c3677be)

Co-authored-by: Yureka <yuka@yuka.dev>
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants