Skip to content

Commit

Permalink
py-propcache: fix build with python312 on old systems, drop python38
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Nov 30, 2024
1 parent c0fa3fe commit b299ff9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/py-propcache/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ revision 0
categories-append devel
license Apache-2

python.versions 38 39 310 311 312 313
python.versions 39 310 311 312 313

maintainers {toby @tobypeterson} openmaintainer

Expand All @@ -30,4 +30,9 @@ if {${name} ne ${subport}} {
depends_build-append \
port:py${python.version}-tomli
}

# pycore_frame.h:134: error: ‘for’ loop initial declaration used outside C99 mode
if {${python.version} == 312} {
build.cmd-prepend CFLAGS=-std=c99
}
}

0 comments on commit b299ff9

Please sign in to comment.