Skip to content

Commit aca8eff

Browse files
authored
Merge pull request #250217 from Homebrew/eye-d3-fix2
eye-d3: update fix
2 parents bdecb85 + 73d2a89 commit aca8eff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Formula/e/eye-d3.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class EyeD3 < Formula
99
head "https://github.com/nicfit/eyeD3.git", branch: "0.9.x"
1010

1111
bottle do
12-
rebuild 2
13-
sha256 cellar: :any_skip_relocation, all: "b5e7af9000a35d628bc1c9410be411d08b693c5a72e000b7c60da35f9755e049"
12+
rebuild 3
13+
sha256 cellar: :any_skip_relocation, all: "0824e1bb0ea2d8c4254435b14c48c6845b5a1b610bd0de4e5762e7ed68dc1154"
1414
end
1515

1616
depends_on "[email protected]"
@@ -33,7 +33,10 @@ class EyeD3 < Formula
3333
def install
3434
# Fix to error: SystemError: buffer overflow
3535
# Issue ref: https://github.com/nicfit/eyeD3/issues/680
36-
inreplace "eyed3/utils/console.py", "'\\0'", "b'\\\\0'"
36+
inreplace "eyed3/utils/console.py" do |s|
37+
s.gsub! "'\\0' * 4", "b'\\\\0' * 8"
38+
s.gsub! 'hw = struct.unpack("hh", data)', 'hw = struct.unpack("hhhh", data)'
39+
end
3740

3841
virtualenv_install_with_resources
3942
doc.install Dir["docs/*"]

0 commit comments

Comments
 (0)