Skip to content

Commit

Permalink
merge: master <--- feature/v17.2.5-6
Browse files Browse the repository at this point in the history
* HEAD
| \
| * 948bd85 <github@luxolus.com> pkgbuild: pkgrel=6
| * d470b03 <github@luxolus.com> pkgbuild: use ceph-17.2.5-rgw-client-boost-string-view.patch
| * 5bc29e5 <github@luxolus.com> pkgbuild: add ceph-17.2.5-rgw-client-boost-string-view.patch
| * dd2565d <github@luxolus.com> pkgbuild: use rdkafka.mpatch + set env
| * d045174 <github@luxolus.com> pkgbuild: add rdkafka.mpatch
| /
| master

Fixes: #11
Signed-off-by: Bazaah <github@luxolus.com>
  • Loading branch information
bazaah committed Mar 7, 2023
2 parents 418a8f6 + 948bd85 commit 5431f96
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 9 deletions.
18 changes: 11 additions & 7 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = ceph
pkgdesc = Distributed, fault-tolerant storage platform delivering object, block, and file system
pkgver = 17.2.5
pkgrel = 5
pkgrel = 6
url = https://ceph.com/
arch = x86_64
license = GPL
Expand Down Expand Up @@ -162,6 +162,8 @@ pkgbase = ceph
source = ceph-17.2.4-pybind-unmock-cythonize.patch
source = ceph-17.2.5-fix-iterator-depreciations.patch
source = ceph-18.0.0-mgr-sqlite-pragmas.patch
source = rdkafka.mpatch
source = ceph-17.2.5-rgw-client-boost-string-view.patch
sha512sums = 10cd3d9eb01c91c148a92f1f7d040bbd78af5bb1ab15d071d93f54b37097dc9e1268eed9e788fe32794d137f6af81abd6a2aeaee39cef44d2c45234a15cc6020
sha512sums = 4354001c1abd9a0c385ba7bd529e3638fb6660b6a88d4e49706d4ac21c81b8e829303a20fb5445730bdac18c4865efb10bc809c1cd56d743c12aa9a52e160049
sha512sums = 41dbc1c395cdf9b3edf5c5d91bbc90f416b4338ad964fa3471f26a4312d3ec2a5dcebbc351a1640dc4b047b4f71aa134ac7486747e5f62980092b0176e7567f5
Expand All @@ -177,9 +179,11 @@ pkgbase = ceph
sha512sums = 781a01e622a70d56bf1948bdc0b427ffa95a86cec7dd9d26c6007a9ec024a942a8ca55f2acc3d37344862f1d6bf11cae998d8071754cd841a66bfba4ec9c58bf
sha512sums = 2a6f33791760e14543c90077bfc6bf1b6b82ee2996e80b4762eadb887a0d9a67c221b6f10832ddf780dc6abaed246a1e2ee7680c9c861c4ff70e61b752a37b36
sha512sums = b2e1f495b57f3ed65b466719faded1713d8155e10b6432b704c632501313b6a98a56461164942cf303427770be0d5efe4798572fe8490ee977bf652906166bde
sha512sums = e4703027fccdb18be4255ba087a165e2a780248d8d52f18a776ef7b50f09f312a9e9a0d5832440a19f248b508e4ed4a869c1baa4362923f93a61e9a471760178
sha512sums = 02ca1a9bf15f9cd6f474f264ba2bf66ae725bac990a7cac315dabe377c66935a7afd8117f18a1f82c78bdf9ab2c3e5a2a227f2ffc166974dd7bb99b290f1f233

pkgname = ceph
depends = ceph-libs=17.2.5-5
depends = ceph-libs=17.2.5-6
depends = boost-libs
depends = curl
depends = fuse3
Expand All @@ -204,7 +208,7 @@ pkgname = ceph
depends = gawk
optdepends = smartmontools: disk monitoring via S.M.A.R.T
optdepends = nvme-cli: disk monitoring for NVMe drives
provides = ceph=17.2.5-5
provides = ceph=17.2.5-6
conflicts = ceph-bin
backup = etc/logrotate.d/ceph
backup = etc/udev/rules.d/50-ceph-rbd.rules
Expand Down Expand Up @@ -234,12 +238,12 @@ pkgname = ceph-libs
depends = python-prettytable
depends = python-yaml
depends = python-setuptools
provides = ceph-libs=17.2.5-5
provides = ceph-libs=17.2.5-6
conflicts = ceph-libs-bin

pkgname = ceph-mgr
depends = ceph=17.2.5-5
depends = ceph-libs=17.2.5-5
depends = ceph=17.2.5-6
depends = ceph-libs=17.2.5-6
depends = bash
depends = boost-libs
depends = curl
Expand Down Expand Up @@ -268,6 +272,6 @@ pkgname = ceph-mgr
optdepends = python-kubernetes: rook module
optdepends = python-prometheus_client: prometheus module
optdepends = python-remoto: ssh module
provides = ceph-mgr=17.2.5-5
provides = ceph-mgr=17.2.5-6
conflicts = ceph<16.2.1-1
conflicts = ceph-mgr-bin
19 changes: 17 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgbase='ceph'
pkgname=('ceph' 'ceph-libs' 'ceph-mgr')
pkgver=17.2.5
pkgrel=5
pkgrel=6
pkgdesc='Distributed, fault-tolerant storage platform delivering object, block, and file system'
arch=('x86_64')
url='https://ceph.com/'
Expand Down Expand Up @@ -91,6 +91,15 @@ source=(
# fixes an issue with mgr usage of libradossqlite and temp tables,
# backported from the upstream
'ceph-18.0.0-mgr-sqlite-pragmas.patch'

# Fix for upstream bugs in pkgconfig of rdkafka
# https://github.com/bazaah/aur-ceph/issues/11
# https://github.com/confluentinc/librdkafka/issues/4155
'rdkafka.mpatch'

# Fixes API changes to boost::beast string_view type def in 1.81
# https://github.com/boostorg/beast/issues/2594
'ceph-17.2.5-rgw-client-boost-string-view.patch'
)
sha512sums=('10cd3d9eb01c91c148a92f1f7d040bbd78af5bb1ab15d071d93f54b37097dc9e1268eed9e788fe32794d137f6af81abd6a2aeaee39cef44d2c45234a15cc6020'
'4354001c1abd9a0c385ba7bd529e3638fb6660b6a88d4e49706d4ac21c81b8e829303a20fb5445730bdac18c4865efb10bc809c1cd56d743c12aa9a52e160049'
Expand All @@ -106,7 +115,9 @@ sha512sums=('10cd3d9eb01c91c148a92f1f7d040bbd78af5bb1ab15d071d93f54b37097dc9e126
'81f540c8312972887a7cb43b8a4e29bfc6f24d5774787a4a8edfe65cca7d3b08faa08ecd09066d7ea67111769a5aec7385fe9a969546626f58874dd8aff5b664'
'781a01e622a70d56bf1948bdc0b427ffa95a86cec7dd9d26c6007a9ec024a942a8ca55f2acc3d37344862f1d6bf11cae998d8071754cd841a66bfba4ec9c58bf'
'2a6f33791760e14543c90077bfc6bf1b6b82ee2996e80b4762eadb887a0d9a67c221b6f10832ddf780dc6abaed246a1e2ee7680c9c861c4ff70e61b752a37b36'
'b2e1f495b57f3ed65b466719faded1713d8155e10b6432b704c632501313b6a98a56461164942cf303427770be0d5efe4798572fe8490ee977bf652906166bde')
'b2e1f495b57f3ed65b466719faded1713d8155e10b6432b704c632501313b6a98a56461164942cf303427770be0d5efe4798572fe8490ee977bf652906166bde'
'e4703027fccdb18be4255ba087a165e2a780248d8d52f18a776ef7b50f09f312a9e9a0d5832440a19f248b508e4ed4a869c1baa4362923f93a61e9a471760178'
'02ca1a9bf15f9cd6f474f264ba2bf66ae725bac990a7cac315dabe377c66935a7afd8117f18a1f82c78bdf9ab2c3e5a2a227f2ffc166974dd7bb99b290f1f233')

# -fno-plt causes linker errors (undefined reference to internal methods)
# similar issue: https://bugs.archlinux.org/task/54845
Expand Down Expand Up @@ -143,6 +154,9 @@ prepare() {
# disable/remove broken tests
sed -i '/add_ceph_test(smoke.sh/d' src/test/CMakeLists.txt
sed -i '/add_ceph_test(safe-to-destroy.sh/d' src/test/osd/CMakeLists.txt

mkdir -p "__pkgconfig__"
patch /usr/lib/pkgconfig/rdkafka.pc "${srcdir}/rdkafka.mpatch" -o "__pkgconfig__/rdkafka.pc"
}

build() {
Expand All @@ -158,6 +172,7 @@ build() {
export CXXFLAGS+=" ${CPPFLAGS}"
export CMAKE_BUILD_TYPE='RelWithDebInfo'
export CMAKE_WARN_UNUSED_CLI=no
export PKG_CONFIG_PATH="$PWD/__pkgconfig__:$(pkg-config --variable pc_path pkg-config)"

cmake \
-B build \
Expand Down
50 changes: 50 additions & 0 deletions ceph-17.2.5-rgw-client-boost-string-view.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
diff --git a/src/rgw/rgw_asio_client.cc b/src/rgw/rgw_asio_client.cc
index 82d5d43f8b8..ad6723a6436 100644
--- a/src/rgw/rgw_asio_client.cc
+++ b/src/rgw/rgw_asio_client.cc
@@ -39,11 +39,11 @@ int ClientIO::init_env(CephContext *cct)
const auto& value = header->value();

if (field == beast::http::field::content_length) {
- env.set("CONTENT_LENGTH", value.to_string());
+ env.set("CONTENT_LENGTH", value);
continue;
}
if (field == beast::http::field::content_type) {
- env.set("CONTENT_TYPE", value.to_string());
+ env.set("CONTENT_TYPE", value);
continue;
}

@@ -62,26 +62,26 @@ int ClientIO::init_env(CephContext *cct)
}
*dest = '\0';

- env.set(buf, value.to_string());
+ env.set(buf, value);
}

int major = request.version() / 10;
int minor = request.version() % 10;
env.set("HTTP_VERSION", std::to_string(major) + '.' + std::to_string(minor));

- env.set("REQUEST_METHOD", request.method_string().to_string());
+ env.set("REQUEST_METHOD", request.method_string());

// split uri from query
auto uri = request.target();
auto pos = uri.find('?');
if (pos != uri.npos) {
auto query = uri.substr(pos + 1);
- env.set("QUERY_STRING", query.to_string());
+ env.set("QUERY_STRING", query);
uri = uri.substr(0, pos);
}
- env.set("SCRIPT_URI", uri.to_string());
+ env.set("SCRIPT_URI", uri);

- env.set("REQUEST_URI", request.target().to_string());
+ env.set("REQUEST_URI", request.target());

char port_buf[16];
snprintf(port_buf, sizeof(port_buf), "%d", local_endpoint.port());
13 changes: 13 additions & 0 deletions rdkafka.mpatch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/rdkakfa.pc b/rdkakfa.pc
index 0069888..523aa23 100644
--- a/rdkakfa.pc
+++ b/rdkakfa.pc
@@ -6,7 +6,7 @@ libdir=${prefix}/lib
Name: librdkafka
Description: The Apache Kafka C/C++ library
Version: 2.0.2
-Requires: curl zlib libssl libsasl2 libzstd liblz4
+Requires: libcurl zlib libssl libsasl2 libzstd liblz4
Cflags: -I${includedir}
Libs: -L${libdir} -lrdkafka
Libs.private: -lpthread -lrt -ldl -lm

0 comments on commit 5431f96

Please sign in to comment.