Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

build-pgroonga: Use msgpack-c on Debian 13.

Anders Kaseorg60fe9d438f63
diff --git a/scripts/lib/build-pgroonga b/scripts/lib/build-pgroonga
index e6ae51c5769..707b67dfda6 100755
--- a/scripts/lib/build-pgroonga
+++ b/scripts/lib/build-pgroonga
@@ -13,5 +13,14 @@ sha256sum -c <<<"$sha256 $tarball"
tar -xzf "$tarball"
cd "pgroonga-$version"
-make -j "$(nproc)" HAVE_MSGPACK=1
+if pkg-config msgpack-c; then
+ msgpack='msgpack-c'
+elif pkg-config msgpack; then
+ msgpack='msgpack'
+else
+ echo 'build-pgroonga: Cannot find msgpack'
+ exit 1
+fi
+
+make -j "$(nproc)" HAVE_MSGPACK=1 MSGPACK_PACKAGE_NAME="$msgpack"
make install