Skip to content

Commit

Permalink
Merge pull request #818 from confluentinc/import_v1.9.1
Browse files Browse the repository at this point in the history
Import librdkafka v1.9.1
  • Loading branch information
edenhill authored Jul 6, 2022
2 parents 561a260 + 6a71d82 commit db57ef6
Show file tree
Hide file tree
Showing 15 changed files with 80 additions and 53 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Confluent's Golang client for Apache Kafka


## v1.9.1

This is a feature release:

* Built-in support for Mac OSX M1 / arm64.


confluent-kafka-go is based on librdkafka v1.9.1, see the
[librdkafka release notes](https://github.com/edenhill/librdkafka/releases/tag/v1.9.1)
for a complete list of changes, enhancements, fixes and upgrade considerations.



## v1.9.0

This is a feature release:
Expand Down
90 changes: 45 additions & 45 deletions kafka/api.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions kafka/build_darwin.go → kafka/build_darwin_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
package kafka

// #cgo CFLAGS: -DUSE_VENDORED_LIBRDKAFKA -DLIBRDKAFKA_STATICLIB
// #cgo LDFLAGS: ${SRCDIR}/librdkafka_vendor/librdkafka_darwin.a -lm -lsasl2 -ldl -lpthread -framework CoreFoundation -framework SystemConfiguration
// #cgo LDFLAGS: ${SRCDIR}/librdkafka_vendor/librdkafka_darwin_amd64.a -lm -lsasl2 -ldl -lpthread -framework CoreFoundation -framework SystemConfiguration
import "C"

// LibrdkafkaLinkInfo explains how librdkafka was linked to the Go client
const LibrdkafkaLinkInfo = "static darwin from librdkafka-static-bundle-v1.9.0.tgz"
const LibrdkafkaLinkInfo = "static darwin_amd64 from librdkafka-static-bundle-v1.9.1.tgz"
13 changes: 13 additions & 0 deletions kafka/build_darwin_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// +build !dynamic


// This file was auto-generated by librdkafka_vendor/bundle-import.sh, DO NOT EDIT.

package kafka

// #cgo CFLAGS: -DUSE_VENDORED_LIBRDKAFKA -DLIBRDKAFKA_STATICLIB
// #cgo LDFLAGS: ${SRCDIR}/librdkafka_vendor/librdkafka_darwin_arm64.a -lm -lsasl2 -ldl -lpthread -framework CoreFoundation -framework SystemConfiguration
import "C"

// LibrdkafkaLinkInfo explains how librdkafka was linked to the Go client
const LibrdkafkaLinkInfo = "static darwin_arm64 from librdkafka-static-bundle-v1.9.1.tgz"
2 changes: 1 addition & 1 deletion kafka/build_glibc_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ package kafka
import "C"

// LibrdkafkaLinkInfo explains how librdkafka was linked to the Go client
const LibrdkafkaLinkInfo = "static glibc_linux from librdkafka-static-bundle-v1.9.0.tgz"
const LibrdkafkaLinkInfo = "static glibc_linux from librdkafka-static-bundle-v1.9.1.tgz"
2 changes: 1 addition & 1 deletion kafka/build_musl_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ package kafka
import "C"

// LibrdkafkaLinkInfo explains how librdkafka was linked to the Go client
const LibrdkafkaLinkInfo = "static musl_linux from librdkafka-static-bundle-v1.9.0.tgz"
const LibrdkafkaLinkInfo = "static musl_linux from librdkafka-static-bundle-v1.9.1.tgz"
2 changes: 1 addition & 1 deletion kafka/build_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ package kafka
import "C"

// LibrdkafkaLinkInfo explains how librdkafka was linked to the Go client
const LibrdkafkaLinkInfo = "static windows from librdkafka-static-bundle-v1.9.0.tgz"
const LibrdkafkaLinkInfo = "static windows from librdkafka-static-bundle-v1.9.1.tgz"
2 changes: 1 addition & 1 deletion kafka/generated_errors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package kafka
// Copyright 2016-2022 Confluent Inc.
// AUTOMATICALLY GENERATED ON 2022-06-16 11:17:24.861602 -0700 PDT m=+0.000650282 USING librdkafka 1.9.0
// AUTOMATICALLY GENERATED ON 2022-07-07 00:18:45.833869 +0200 CEST m=+0.000704459 USING librdkafka 1.9.1

/*
#include "select_rdkafka.h"
Expand Down
2 changes: 1 addition & 1 deletion kafka/librdkafka_vendor/bundle-import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ for f in rdkafka.h LICENSES.txt ; do
done


for btype in glibc_linux musl_linux darwin windows ; do
for btype in glibc_linux musl_linux darwin_amd64 darwin_arm64 windows ; do
lib=$bdir/librdkafka_${btype}.a
pc=${lib/%.a/.pc}
[[ -f $lib ]] || (echo "Expected file $lib missing" ; exit 1)
Expand Down
Binary file not shown.
Binary file added kafka/librdkafka_vendor/librdkafka_darwin_arm64.a
Binary file not shown.
Binary file modified kafka/librdkafka_vendor/librdkafka_glibc_linux.a
Binary file not shown.
Binary file modified kafka/librdkafka_vendor/librdkafka_musl_linux.a
Binary file not shown.
Binary file modified kafka/librdkafka_vendor/librdkafka_windows.a
Binary file not shown.
2 changes: 1 addition & 1 deletion kafka/librdkafka_vendor/rdkafka.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ typedef SSIZE_T ssize_t;
* @remark This value should only be used during compile time,
* for runtime checks of version use rd_kafka_version()
*/
#define RD_KAFKA_VERSION 0x010900ff
#define RD_KAFKA_VERSION 0x010901ff

/**
* @brief Returns the librdkafka version as integer.
Expand Down

0 comments on commit db57ef6

Please sign in to comment.