Skip to content

Commit ccd3a3d

Browse files
authored
Merge pull request #246714 from Homebrew/unixodbc-downgrade
unixodbc: fix segfault
2 parents 6fe9c7a + 4c79f84 commit ccd3a3d

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

Formula/u/unixodbc.rb

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ class Unixodbc < Formula
1212
end
1313

1414
bottle do
15-
sha256 arm64_tahoe: "ca79032ddd8290b1cd9e9943911659ba2cfd4adda184fe81338b23a6ec1a680c"
16-
sha256 arm64_sequoia: "32d4bb10a53c451f4bf5c7c814a0350c82b3a6abc764481670521d1d9d166484"
17-
sha256 arm64_sonoma: "03d6e6955edb57f13ed650cc29081f5428a943488e22ce51fc52b255d233292d"
18-
sha256 sonoma: "fcd2cb6616f55a2706d1870c7d8117b46c718ea93c926e091746aeca5e7b48b5"
19-
sha256 arm64_linux: "ffd1aebf4638c5a5be04bdd3d989eeaaffe366ebc2dceaeed9ed215050d96853"
20-
sha256 x86_64_linux: "f61d1f1b5fe59f5e3205e94f3fe434a34043e7fd48b6c24b47c066b7e1d4042c"
15+
rebuild 1
16+
sha256 arm64_tahoe: "7c9526b441435001124460466ddd9c036cc494d894b9131a2c1e03f3a0b4dc86"
17+
sha256 arm64_sequoia: "e319fd6f83f15c3c96c570c4f9782ad0d964181a98da712905b94f589dddd921"
18+
sha256 arm64_sonoma: "f0363503a99f6f4ffa64b12eb5c99612250af7964c8be8906d3156a798065531"
19+
sha256 sonoma: "b033f17443c5fc20d3af8f904b90a3bf9bdf668efbfb8bdf0bac5b1bfc3ebc64"
20+
sha256 arm64_linux: "151b0f1ec0f4cc526c338542ce1a292ccc923e09c7f3f23bd178794a5b93dcb7"
21+
sha256 x86_64_linux: "5a7ce1eeb9ce55f3a61a9a9ae16123ad02bf67462abdd49d73a42058cab5db01"
2122
end
2223

2324
depends_on "libtool"
@@ -29,6 +30,13 @@ class Unixodbc < Formula
2930
"include/sqltypes.h", "include/sqlucode.h"
3031
link_overwrite "lib/libodbc.a", "lib/libodbc.so"
3132

33+
# Fix segfault where `dst` is passed to `memcpy` instead of `*dst`
34+
# https://github.com/lurcher/unixODBC/commit/97add92e08ed42102234055d55e098e1c8e5c1c0
35+
patch do
36+
url "https://github.com/lurcher/unixODBC/commit/97add92e08ed42102234055d55e098e1c8e5c1c0.patch?full_index=1"
37+
sha256 "1cc28bbc3fcc4fc170c7b806ca9c1f69c9ecb0c599c7a7a7598da202eaa797e5"
38+
end
39+
3240
def install
3341
system "./configure", "--disable-debug",
3442
"--disable-dependency-tracking",

0 commit comments

Comments
 (0)