Skip to content

Commit cff293d

Browse files
authored
support ability to release patches (#485)
1 parent 4b8699c commit cff293d

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Rdkafka Changelog
22

33
## 0.17.0 (Unreleased)
4-
- [Enhancement] Update `librdkafka` to `2.4.0`
54
- [Feature] Add `#seek_by` to be able to seek for a message by topic, partition and offset (zinahia)
5+
- [Enhancement] Update `librdkafka` to `2.4.0`
6+
- [Enhancement] Support ability to release patches to librdkafka.
67
- [Change] Remove old producer timeout API warnings.
78
- [Fix] Switch to local release of librdkafka to mitigate its unavailability.
89

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,13 @@ bundle exec rake produce_messages
161161

162162
## Versions
163163

164-
| rdkafka-ruby | librdkafka |
165-
|-|-|
166-
| 0.17.0 (Unreleased) | 2.4.0 (2024-05-07) |
167-
| 0.16.0 (2024-06-13) | 2.3.0 (2023-10-25) |
168-
| 0.15.0 (2023-12-03) | 2.3.0 (2023-10-25) |
169-
| 0.14.0 (2023-11-21) | 2.2.0 (2023-07-12) |
170-
| 0.13.0 (2023-07-24) | 2.0.2 (2023-01-20) |
171-
| 0.12.0 (2022-06-17) | 1.9.0 (2022-06-16) |
172-
| 0.11.0 (2021-11-17) | 1.8.2 (2021-10-18) |
173-
| 0.10.0 (2021-09-07) | 1.5.0 (2020-07-20) |
164+
| rdkafka-ruby | librdkafka | patches |
165+
|-|-|-|
166+
| 0.17.0 (Unreleased) | 2.4.0 (2024-05-07) | no |
167+
| 0.16.0 (2024-06-13) | 2.3.0 (2023-10-25) | no |
168+
| 0.15.0 (2023-12-03) | 2.3.0 (2023-10-25) | no |
169+
| 0.14.0 (2023-11-21) | 2.2.0 (2023-07-12) | no |
170+
| 0.13.0 (2023-07-24) | 2.0.2 (2023-01-20) | no |
171+
| 0.12.0 (2022-06-17) | 1.9.0 (2022-06-16) | no |
172+
| 0.11.0 (2021-11-17) | 1.8.2 (2021-10-18) | no |
173+
| 0.10.0 (2021-09-07) | 1.5.0 (2020-07-20) | no |

ext/Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ task :default => :clean do
3131
}
3232
recipe.configure_options = ["--host=#{recipe.host}"]
3333

34+
recipe.patch_files = Dir[File.join(releases, 'patches', "*.patch")].sort
35+
3436
# Disable using libc regex engine in favor of the embedded one
3537
# The default regex engine of librdkafka does not always work exactly as most of the users
3638
# would expect, hence this flag allows for changing it to the other one
@@ -117,6 +119,7 @@ namespace :build do
117119
recipe = MiniPortile.new("librdkafka", version)
118120
recipe.files << "https://github.com/confluentinc/librdkafka/archive/#{ref}.tar.gz"
119121
recipe.configure_options = ["--host=#{recipe.host}","--enable-static", "--enable-zstd"]
122+
recipe.patch_files = Dir[File.join(releases, 'patches', "*.patch")].sort
120123
recipe.cook
121124

122125
ext = recipe.host.include?("darwin") ? "dylib" : "so"

0 commit comments

Comments
 (0)