Skip to content

Commit 90fd600

Browse files
committed
v0.15.2-offline
1 parent eff2784 commit 90fd600

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Rdkafka Changelog
22

3+
## 0.15.2 (2024-07-10)
4+
- [Fix] Switch to local release of librdkafka to mitigate its unavailability.
5+
36
## 0.15.1 (2024-01-30)
47
- [Enhancement] Provide support for Nix OS (alexandriainfantino)
58
- [Enhancement] Replace `rd_kafka_offset_store` with `rd_kafka_offsets_store` (mensfeld)

dist/librdkafka_2.3.0.tar.gz

4.18 MB
Binary file not shown.

ext/Rakefile

+11-1
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,21 @@ task :default => :clean do
2222
ENV["LDFLAGS"] = "-L#{homebrew_prefix}/lib" unless ENV["LDFLAGS"]
2323
end
2424

25+
releases = File.expand_path(File.join(File.dirname(__FILE__), '../dist'))
26+
2527
recipe.files << {
26-
:url => "https://codeload.github.com/edenhill/librdkafka/tar.gz/v#{Rdkafka::LIBRDKAFKA_VERSION}",
28+
:url => "file://#{releases}/librdkafka_#{Rdkafka::LIBRDKAFKA_VERSION}.tar.gz",
2729
:sha256 => Rdkafka::LIBRDKAFKA_SOURCE_SHA256
2830
}
2931
recipe.configure_options = ["--host=#{recipe.host}"]
32+
33+
# Disable using libc regex engine in favor of the embedded one
34+
# The default regex engine of librdkafka does not always work exactly as most of the users
35+
# would expect, hence this flag allows for changing it to the other one
36+
if ENV.key?('RDKAFKA_DISABLE_REGEX_EXT')
37+
recipe.configure_options << '--disable-regex-ext'
38+
end
39+
3040
recipe.cook
3141
# Move dynamic library we're interested in
3242
if recipe.host.include?('darwin')

lib/rdkafka/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module Rdkafka
4-
VERSION = "0.15.1"
4+
VERSION = "0.15.2"
55
LIBRDKAFKA_VERSION = "2.3.0"
66
LIBRDKAFKA_SOURCE_SHA256 = "2d49c35c77eeb3d42fa61c43757fcbb6a206daa560247154e60642bcdcc14d12"
77
end

0 commit comments

Comments
 (0)