Skip to content

Commit e0ec11a

Browse files
branchvincentdaeho-ro
authored andcommitted
cfv: migrate to python@3.14
1 parent a81dad4 commit e0ec11a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Formula/c/cfv.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ class Cfv < Formula
1212
sha256 cellar: :any_skip_relocation, all: "fb2e9074946326a9618313d03fa78b596e0e65f68b11c3f83de2215a260731c0"
1313
end
1414

15-
depends_on "python@3.13"
15+
depends_on "python@3.14"
1616

1717
def install
18+
# Fix to error: SystemError: buffer overflow
19+
# Issue ref: https://github.com/cfv-project/cfv/issues/76
20+
inreplace "lib/cfv/term.py" do |s|
21+
s.gsub! "'\\0' * struct.calcsize('h h')", "b'\\\\0' * struct.calcsize('hhhh')"
22+
s.gsub! "h, w = struct.unpack('h h'", "h, w, _, _ = struct.unpack('hhhh'"
23+
end
24+
1825
virtualenv_install_with_resources
1926
end
2027

0 commit comments

Comments
 (0)