Repository navigation
2.7, 3.4: force C99 standard; 2.7.14-18: force OpenSSL 1 formula - #3448
Conversation
GCC 15+ uses C23 by default (https://www.phoronix.com/news/GCC-15-Default-C23) fixes "error: static declaration of ‘sinpi’ follows non-static declaration" fixes "error: cannot use keyword ‘false’ as enumeration constant"
There was a problem hiding this comment.
No issues found across 32 files
Tip: cubic could auto-approve low-risk PRs like this, if it thinks it's safe to merge. Learn more
There was a problem hiding this comment.
2 issues found across 3 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="plugins/python-build/share/python-build/2.7.14">
<violation number="1" location="plugins/python-build/share/python-build/2.7.14:1">
P2: This hard-coded export changes `prefer_openssl11` semantics: it clobbers user OpenSSL formula overrides and drops the MacPorts OpenSSL preference setup. Use default-expansion so overrides still work and keep the MacPorts formula initialization.</violation>
</file>
<file name="plugins/python-build/share/python-build/2.7.15">
<violation number="1" location="plugins/python-build/share/python-build/2.7.15:1">
P2: Replacing `prefer_openssl11` with a hardcoded Homebrew export regresses behavior: it no longer sets the MacPorts OpenSSL preference and no longer preserves user overrides via `${VAR:-...}` defaults.
(Based on your team's feedback about setting expected env vars explicitly.) [FEEDBACK_USED]</violation>
</file>
Tip: cubic used a learning from your PR history. Let your coding agent read cubic learnings directly with the cubic MCP.
Fix all with cubic
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
1 issue found across 6 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="plugins/python-build/share/python-build/2.7-dev">
<violation number="1" location="plugins/python-build/share/python-build/2.7-dev:1">
P2: This change drops the MacPorts OpenSSL preference that `prefer_openssl11` previously set, so `2.7-dev` can skip installed `openssl11` and fall back to building bundled OpenSSL instead.</violation>
</file>
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic
|
Thank you for this fix! A little note just to make this searchable - Ubuntu 26.04 is stuck with pyenv 2.6.8, so this fix is not available there (it landed in 2.6.32) and build for Python 2.7.18 fails with: A workaround: CFLAGS="-std=c99" pyenv install 2.7.18 |
pyenv 2.6.32 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## What's Changed * Add miniconda3 26.3.2-2, miniforge3 26.3.2-0, 26.3.2-1 by @native-api in pyenv/pyenv#3445 * miniforge3 26.1, 26.3, add_miniforge: exclude bogus branches with .pkg installers by @native-api in pyenv/pyenv#3446 * miniforge 26, CI: switch check to 3.13 by @native-api in pyenv/pyenv#3447 * 2.7, 3.4: force C99 standard; 2.7.14-18: force OpenSSL 1 formula by @native-api in pyenv/pyenv#3448 * rehash: detect and remove a stale lockfile by @native-api in pyenv/pyenv#3450 * Add GraalPy 25.0.3 by @msimacek in pyenv/pyenv#3452 * 3.11.0+: Use the `--with-openssl-rpath' Configure option when possible by @native-api in pyenv/pyenv#3458 * python_build: Make `verify_python` verify `pythonX.Y' suffix by @native-api in pyenv/pyenv#3459 * Add micropython 1.22.0 to 1.28.0; add downstream patches to fix compilation errors by @native-api in pyenv/pyenv#3460 * Fix linking against a keg_only Homebrew OpenSSL when a a non-keg_only one is also installed by @native-api in pyenv/pyenv#3462 * Add missing CPython 3.14.2t by @native-api in pyenv/pyenv#3464 * 3.14.0-5: Support building against OpenSSL 4 by @native-api in pyenv/pyenv#3463 **Full Changelog**: https://github.com/pyenv/pyenv/compare/v2.6.31...v2.6.32</pre> <p>View the full release notes at <a href="https://github.com/pyenv/pyenv/releases/tag/v2.6.32">https://github.com/pyenv/pyenv/releases/tag/v2.6.32</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!9870
GCC 15+ uses C23 by default
(https://www.phoronix.com/news/GCC-15-Default-C23)
fixes "error: static declaration of ‘sinpi’ follows non-static declaration"
fixes "error: cannot use keyword ‘false’ as enumeration constant"
Make sure you have checked all steps below.
Prerequisite
Description
see above
Tests
N/A
Summary by cubic
Force C99 when building Python 2.7 and 3.4 in
python-buildto keep them compiling with GCC 15+. Also lock OpenSSL for late 2.7 to 1.x on Homebrew and MacPorts, removing theopensslfallback.Bug Fixes
PYTHON_CFLAGSwith-std=c99across all 2.7.x and 3.4.x definitions.Dependencies
2.7-devand 2.7.14–2.7.18, defaultPYTHON_BUILD_HOMEBREW_OPENSSL_FORMULAto[email protected] [email protected](only if unset); removeopensslfallback from 2.7.18; replaceprefer_openssl11where needed.2.7-devand 2.7.14–2.7.18, defaultPYTHON_BUILD_MACPORTS_OPENSSL_FORMULAtoopenssl11 openssl10(only if unset).Written for commit 3b83d8c. Summary will update on new commits.