Skip to content

Commit 25aedd5

Browse files
authored
Merge pull request #248673 from branchvincent/[email protected]
cfv: migrate to `[email protected]`
2 parents d667770 + 8494ff5 commit 25aedd5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Formula/c/cfv.rb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,20 @@ class Cfv < Formula
88
license "GPL-2.0-or-later"
99

1010
bottle do
11-
rebuild 2
12-
sha256 cellar: :any_skip_relocation, all: "fb2e9074946326a9618313d03fa78b596e0e65f68b11c3f83de2215a260731c0"
11+
rebuild 3
12+
sha256 cellar: :any_skip_relocation, all: "99b44eb32592c111167965c026854d84137dde520cdce0dd4a60f129555ad3e0"
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)