Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit 897df21

Browse files
committed
Revert "upgradezookeeper3.5.8"
This reverts commit 00e4e81.
1 parent 00e4e81 commit 897df21

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

WORKSPACE

+6-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ maven_install(
6666
name = "maven",
6767
artifacts = [
6868
"antlr:antlr:2.7.7",
69-
"org.apache.zookeeper:zookeeper:3.5.8",
69+
"org.apache.zookeeper:zookeeper:3.4.14",
7070
"io.kubernetes:client-java:" + kubernetes_client_version,
7171
"com.esotericsoftware:kryo:3.0.3",
7272
"org.apache.avro:avro:1.7.4",
@@ -282,8 +282,11 @@ http_archive(
282282
http_archive(
283283
name = "org_apache_zookeeper",
284284
build_file = "@//:third_party/zookeeper/BUILD",
285-
strip_prefix = "apache-zookeeper-3.5.8",
286-
urls = ["https://archive.apache.org/dist/zookeeper/stable/apache-zookeeper-3.5.8.tar.gz"],
285+
patch_args = ["-p2"],
286+
patches = ["//third_party/zookeeper:pkgconfig.patch"],
287+
sha256 = "b14f7a0fece8bd34c7fffa46039e563ac5367607c612517aa7bd37306afbd1cd",
288+
strip_prefix = "zookeeper-3.4.14",
289+
urls = ["https://archive.apache.org/dist/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz"],
287290
)
288291

289292
http_archive(

third_party/zookeeper/BUILD

+1-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ genrule(
3939
"export CFLAGS=-Wno-error",
4040
"mkdir -p $$TMP_DIR",
4141
"cp -R $$(pwd)/external/org_apache_zookeeper/* $$TMP_DIR",
42-
"cd $$TMP_DIR",
43-
"ant compile_jute",
44-
"cd $$TMP_DIR/zookeeper-client/zookeeper-client-c",
42+
"cd $$TMP_DIR/zookeeper-client/zookeeper-client-c",
4543
"autoreconf -if",
4644
"./configure --prefix=$$INSTALL_DIR --enable-shared=no",
4745
"make install",

third_party/zookeeper/pkgconfig.patch

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -Naur /tmp/zookeeper-client/zookeeper-client-c/configure.ac /tmp/zookeeper-client/zookeeper-client-c/configure.ac
2+
--- /tmp/zookeeper-client/zookeeper-client-c/configure.ac 2019-03-06 16:50:47.000000000 +0000
3+
+++ /tmp/zookeeper-client/zookeeper-client-c/configure.ac 2020-04-04 23:44:40.442252000 +0000
4+
@@ -34,7 +34,7 @@
5+
CPPUNIT_INCLUDE=
6+
CPPUNIT_LIBS=
7+
else
8+
- AM_PATH_CPPUNIT(1.10.2)
9+
+ PKG_CHECK_MODULES([CPPUNIT], [cppunit >= 1.10.2])
10+
fi
11+
12+
if test "$CALLER" = "ANT" ; then

0 commit comments

Comments
 (0)