* update librdkafka to 2.6.0-1
This commit is contained in:
parent
9355d8be4d
commit
8fdc0f93e6
32
librdkafka/.SRCINFO
Normal file
32
librdkafka/.SRCINFO
Normal file
@ -0,0 +1,32 @@
|
||||
pkgbase = librdkafka
|
||||
pkgdesc = The Apache Kafka C/C++ library
|
||||
pkgver = 2.6.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/confluentinc/librdkafka
|
||||
arch = x86_64
|
||||
arch = powerpc64le
|
||||
arch = powerpc64
|
||||
arch = powerpc
|
||||
arch = riscv64
|
||||
license = Apache-2.0
|
||||
license = BSD-2-Clause
|
||||
license = BSD-3-Clause
|
||||
license = MIT
|
||||
license = Zlib
|
||||
makedepends = cmake
|
||||
makedepends = python
|
||||
makedepends = rapidjson
|
||||
depends = curl
|
||||
depends = gcc-libs
|
||||
depends = glibc
|
||||
depends = libsasl
|
||||
depends = lz4
|
||||
depends = openssl
|
||||
depends = zlib
|
||||
depends = zstd
|
||||
source = librdkafka-2.6.0.tar.gz::https://github.com/confluentinc/librdkafka/archive/v2.6.0.tar.gz
|
||||
source = remove-failing-tests.patch
|
||||
sha256sums = abe0212ecd3e7ed3c4818a4f2baf7bf916e845e902bb15ae48834ca2d36ac745
|
||||
sha256sums = 23c8d030179724d13a91f13cf566b045b195d64a3219eb2c5122d06e1e1c6fd1
|
||||
|
||||
pkgname = librdkafka
|
5
librdkafka/.nvchecker.toml
Normal file
5
librdkafka/.nvchecker.toml
Normal file
@ -0,0 +1,5 @@
|
||||
[librdkafka]
|
||||
source = "git"
|
||||
git = "https://github.com/confluentinc/librdkafka.git"
|
||||
prefix = "v"
|
||||
include_regex = '^v\d+\.\d+\.\d+$'
|
@ -1,16 +1,23 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: Anatol Pomozov
|
||||
# Maintainer: Carl Smedstad <carsme@archlinux.org>
|
||||
# Contributor: Andrew Sun <adsun701 at gmail dot com>
|
||||
# Contributor: Joel Teichroeb <joel at teichroeb dot net>
|
||||
# Contributor: Alim Gokkaya <alimgokkaya at gmail dot com>
|
||||
|
||||
pkgname=librdkafka
|
||||
pkgver=2.4.0
|
||||
pkgrel=1.1
|
||||
pkgver=2.6.0
|
||||
pkgrel=1
|
||||
pkgdesc='The Apache Kafka C/C++ library'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
url='https://github.com/confluentinc/librdkafka'
|
||||
license=(BSD)
|
||||
license=(
|
||||
Apache-2.0
|
||||
BSD-2-Clause
|
||||
BSD-3-Clause
|
||||
MIT
|
||||
Zlib
|
||||
)
|
||||
depends=(
|
||||
curl
|
||||
gcc-libs
|
||||
@ -21,22 +28,40 @@ depends=(
|
||||
zlib
|
||||
zstd
|
||||
)
|
||||
makedepends=(python rapidjson)
|
||||
source=(librdkafka-$pkgver.tar.gz::https://github.com/confluentinc/librdkafka/archive/v$pkgver.tar.gz)
|
||||
sha256sums=('d645e47d961db47f1ead29652606a502bdd2a880c85c1e060e94eea040f1a19a')
|
||||
options=(!lto)
|
||||
makedepends=(
|
||||
cmake
|
||||
python
|
||||
rapidjson
|
||||
)
|
||||
source=(
|
||||
"$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
|
||||
"remove-failing-tests.patch"
|
||||
)
|
||||
sha256sums=('abe0212ecd3e7ed3c4818a4f2baf7bf916e845e902bb15ae48834ca2d36ac745'
|
||||
'23c8d030179724d13a91f13cf566b045b195d64a3219eb2c5122d06e1e1c6fd1')
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
patch -Np1 -i "$srcdir/remove-failing-tests.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
cmake -S . -B build \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-Wno-dev
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
make -k check -C $pkgname-$pkgver
|
||||
cd $pkgname-$pkgver
|
||||
ctest --test-dir build --output-on-failure \
|
||||
--tests-regex RdKafkaTestBrokerLess
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
|
||||
install -vDm 644 $pkgname-$pkgver/LICENSE* -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
cd $pkgname-$pkgver
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" ./*.md
|
||||
}
|
||||
|
46
librdkafka/remove-failing-tests.patch
Normal file
46
librdkafka/remove-failing-tests.patch
Normal file
@ -0,0 +1,46 @@
|
||||
diff --git a/tests/test.c b/tests/test.c
|
||||
index 8a4a6806..24a007b2 100644
|
||||
--- a/tests/test.c
|
||||
+++ b/tests/test.c
|
||||
@@ -178,7 +178,7 @@ _TEST_DECL(0062_stats_event);
|
||||
_TEST_DECL(0063_clusterid);
|
||||
_TEST_DECL(0064_interceptors);
|
||||
_TEST_DECL(0065_yield);
|
||||
-_TEST_DECL(0066_plugins);
|
||||
+/*_TEST_DECL(0066_plugins);*/
|
||||
_TEST_DECL(0067_empty_topic);
|
||||
_TEST_DECL(0068_produce_timeout);
|
||||
_TEST_DECL(0069_consumer_add_parts);
|
||||
@@ -248,7 +248,7 @@ _TEST_DECL(0129_fetch_aborted_msgs);
|
||||
_TEST_DECL(0130_store_offsets);
|
||||
_TEST_DECL(0131_connect_timeout);
|
||||
_TEST_DECL(0132_strategy_ordering);
|
||||
-_TEST_DECL(0133_ssl_keys);
|
||||
+/*_TEST_DECL(0133_ssl_keys);*/
|
||||
_TEST_DECL(0134_ssl_provider);
|
||||
_TEST_DECL(0135_sasl_credentials);
|
||||
_TEST_DECL(0136_resolve_cb);
|
||||
@@ -404,10 +404,10 @@ struct test tests[] = {
|
||||
_TEST(0063_clusterid, 0, TEST_BRKVER(0, 10, 1, 0)),
|
||||
_TEST(0064_interceptors, 0, TEST_BRKVER(0, 9, 0, 0)),
|
||||
_TEST(0065_yield, 0),
|
||||
- _TEST(0066_plugins,
|
||||
- TEST_F_LOCAL | TEST_F_KNOWN_ISSUE_WIN32 | TEST_F_KNOWN_ISSUE_OSX,
|
||||
- .extra =
|
||||
- "dynamic loading of tests might not be fixed for this platform"),
|
||||
+ /*_TEST(0066_plugins,*/
|
||||
+ /* TEST_F_LOCAL | TEST_F_KNOWN_ISSUE_WIN32 | TEST_F_KNOWN_ISSUE_OSX,*/
|
||||
+ /* .extra =*/
|
||||
+ /* "dynamic loading of tests might not be fixed for this platform"),*/
|
||||
_TEST(0067_empty_topic, 0),
|
||||
#if WITH_SOCKEM
|
||||
_TEST(0068_produce_timeout, TEST_F_SOCKEM),
|
||||
@@ -506,7 +506,7 @@ struct test tests[] = {
|
||||
_TEST(0130_store_offsets, 0),
|
||||
_TEST(0131_connect_timeout, TEST_F_LOCAL),
|
||||
_TEST(0132_strategy_ordering, 0, TEST_BRKVER(2, 4, 0, 0)),
|
||||
- _TEST(0133_ssl_keys, TEST_F_LOCAL),
|
||||
+ /*_TEST(0133_ssl_keys, TEST_F_LOCAL),*/
|
||||
_TEST(0134_ssl_provider, TEST_F_LOCAL),
|
||||
_TEST(0135_sasl_credentials, 0),
|
||||
_TEST(0136_resolve_cb, TEST_F_LOCAL),
|
Loading…
x
Reference in New Issue
Block a user