Compare commits
No commits in common. "232c7a98d4a6393acfedabb97f04a59d2640c2f4" and "5eeee6ada2075dc8f3abbc8580297f02f2a5406e" have entirely different histories.
232c7a98d4
...
5eeee6ada2
@ -1,114 +0,0 @@
|
||||
From 5502f0672908ce2c5891a3290bdfb57182435adb Mon Sep 17 00:00:00 2001
|
||||
From: Ludovic Henry <git@ludovic.dev>
|
||||
Date: Thu, 14 Dec 2023 11:27:17 -0800
|
||||
Subject: [PATCH] Add support for linux-riscv64 (#12139)
|
||||
|
||||
Summary:
|
||||
Following https://github.com/evolvedbinary/docker-rocksjava/pull/2, we can now build rocksdb on riscv64.
|
||||
|
||||
I've verified this works as expected with `make rocksdbjavastaticdockerriscv64`.
|
||||
|
||||
Also fixes https://github.com/facebook/rocksdb/issues/10500 https://github.com/facebook/rocksdb/issues/11994
|
||||
|
||||
Pull Request resolved: https://github.com/facebook/rocksdb/pull/12139
|
||||
|
||||
Reviewed By: jaykorean
|
||||
|
||||
Differential Revision: D52128098
|
||||
|
||||
Pulled By: akankshamahajan15
|
||||
|
||||
fbshipit-source-id: 706d36a3f8a9e990b76f426bc450937a0cd1a537
|
||||
---
|
||||
Makefile | 8 ++++++--
|
||||
build_tools/build_detect_platform | 9 +++++----
|
||||
java/src/main/java/org/rocksdb/util/Environment.java | 6 +++++-
|
||||
3 files changed, 16 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index d9ebbb72b..8829be9d8 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -2060,7 +2060,7 @@ JAVA_INCLUDE = -I$(JAVA_HOME)/include/ -I$(JAVA_HOME)/include/linux
|
||||
ifeq ($(PLATFORM), OS_SOLARIS)
|
||||
ARCH := $(shell isainfo -b)
|
||||
else ifeq ($(PLATFORM), OS_OPENBSD)
|
||||
- ifneq (,$(filter amd64 ppc64 ppc64le s390x arm64 aarch64 sparc64 loongarch64, $(MACHINE)))
|
||||
+ ifneq (,$(filter amd64 ppc64 ppc64le s390x arm64 aarch64 riscv64 sparc64 loongarch64, $(MACHINE)))
|
||||
ARCH := 64
|
||||
else
|
||||
ARCH := 32
|
||||
@@ -2081,7 +2081,7 @@ ifneq ($(origin JNI_LIBC), undefined)
|
||||
endif
|
||||
|
||||
ifeq (,$(ROCKSDBJNILIB))
|
||||
-ifneq (,$(filter ppc% s390x arm64 aarch64 sparc64 loongarch64, $(MACHINE)))
|
||||
+ifneq (,$(filter ppc% s390x arm64 aarch64 riscv64 sparc64 loongarch64, $(MACHINE)))
|
||||
ROCKSDBJNILIB = librocksdbjni-linux-$(MACHINE)$(JNI_LIBC_POSTFIX).so
|
||||
else
|
||||
ROCKSDBJNILIB = librocksdbjni-linux$(ARCH)$(JNI_LIBC_POSTFIX).so
|
||||
@@ -2346,6 +2346,10 @@ rocksdbjavastaticdockers390x:
|
||||
mkdir -p java/target
|
||||
docker run --rm --name rocksdb_linux_s390x-be --attach stdin --attach stdout --attach stderr --volume $(HOME)/.m2:/root/.m2:ro --volume `pwd`:/rocksdb-host:ro --volume /rocksdb-local-build --volume `pwd`/java/target:/rocksdb-java-target --env DEBUG_LEVEL=$(DEBUG_LEVEL) evolvedbinary/rocksjava:ubuntu18_s390x-be /rocksdb-host/java/crossbuild/docker-build-linux-centos.sh
|
||||
|
||||
+rocksdbjavastaticdockerriscv64:
|
||||
+ mkdir -p java/target
|
||||
+ docker run --rm --name rocksdb_linux_riscv64-be --attach stdin --attach stdout --attach stderr --volume $(HOME)/.m2:/root/.m2:ro --volume `pwd`:/rocksdb-host:ro --volume /rocksdb-local-build --volume `pwd`/java/target:/rocksdb-java-target --env DEBUG_LEVEL=$(DEBUG_LEVEL) evolvedbinary/rocksjava:ubuntu20_riscv64-be /rocksdb-host/java/crossbuild/docker-build-linux-centos.sh
|
||||
+
|
||||
rocksdbjavastaticdockerx86musl:
|
||||
mkdir -p java/target
|
||||
docker run --rm --name rocksdb_linux_x86-musl-be --platform linux/386 --attach stdin --attach stdout --attach stderr --volume $(HOME)/.m2:/root/.m2:ro --volume `pwd`:/rocksdb-host:ro --volume /rocksdb-local-build --volume `pwd`/java/target:/rocksdb-java-target --env DEBUG_LEVEL=$(DEBUG_LEVEL) evolvedbinary/rocksjava:alpine3_x86-be /rocksdb-host/java/crossbuild/docker-build-linux-alpine.sh
|
||||
diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform
|
||||
index fd70a9835..a5e2b5aa2 100755
|
||||
--- a/build_tools/build_detect_platform
|
||||
+++ b/build_tools/build_detect_platform
|
||||
@@ -647,8 +647,10 @@ if [ "$PORTABLE" == "" ] || [ "$PORTABLE" == 0 ]; then
|
||||
fi
|
||||
COMMON_FLAGS="$COMMON_FLAGS"
|
||||
elif test -n "`echo $TARGET_ARCHITECTURE | grep ^riscv64`"; then
|
||||
- RISC_ISA=$(cat /proc/cpuinfo | grep isa | head -1 | cut --delimiter=: -f 2 | cut -b 2-)
|
||||
- COMMON_FLAGS="$COMMON_FLAGS -march=${RISC_ISA}"
|
||||
+ RISC_ISA=$(cat /proc/cpuinfo | grep -E '^isa\s*:' | head -1 | cut --delimiter=: -f 2 | cut -b 2-)
|
||||
+ if [ -n "${RISCV_ISA}" ]; then
|
||||
+ COMMON_FLAGS="$COMMON_FLAGS -march=${RISC_ISA}"
|
||||
+ fi
|
||||
elif [ "$TARGET_OS" == "IOS" ]; then
|
||||
COMMON_FLAGS="$COMMON_FLAGS"
|
||||
else
|
||||
@@ -660,8 +662,7 @@ else
|
||||
if test -n "`echo $TARGET_ARCHITECTURE | grep ^s390x`"; then
|
||||
COMMON_FLAGS="$COMMON_FLAGS -march=z196 "
|
||||
elif test -n "`echo $TARGET_ARCHITECTURE | grep ^riscv64`"; then
|
||||
- RISC_ISA=$(cat /proc/cpuinfo | grep isa | head -1 | cut --delimiter=: -f 2 | cut -b 2-)
|
||||
- COMMON_FLAGS="$COMMON_FLAGS -march=${RISC_ISA}"
|
||||
+ COMMON_FLAGS="$COMMON_FLAGS -march=rv64gc"
|
||||
elif test "$USE_SSE"; then
|
||||
# USE_SSE is DEPRECATED
|
||||
# This is a rough approximation of the old USE_SSE behavior
|
||||
diff --git a/java/src/main/java/org/rocksdb/util/Environment.java b/java/src/main/java/org/rocksdb/util/Environment.java
|
||||
index 53ff65d26..78b73dc5d 100644
|
||||
--- a/java/src/main/java/org/rocksdb/util/Environment.java
|
||||
+++ b/java/src/main/java/org/rocksdb/util/Environment.java
|
||||
@@ -36,6 +36,10 @@ public class Environment {
|
||||
return ARCH.contains("s390x");
|
||||
}
|
||||
|
||||
+ public static boolean isRiscv64() {
|
||||
+ return ARCH.contains("riscv64");
|
||||
+ }
|
||||
+
|
||||
public static boolean isWindows() {
|
||||
return (OS.contains("win"));
|
||||
}
|
||||
@@ -180,7 +184,7 @@ public class Environment {
|
||||
public static String getJniLibraryName(final String name) {
|
||||
if (isUnix()) {
|
||||
final String arch = is64Bit() ? "64" : "32";
|
||||
- if (isPowerPC() || isAarch64()) {
|
||||
+ if (isPowerPC() || isAarch64() || isRiscv64()) {
|
||||
return String.format("%sjni-linux-%s%s", name, ARCH, getLibcPostfix());
|
||||
} else if (isS390x()) {
|
||||
return String.format("%sjni-linux-%s", name, ARCH);
|
||||
--
|
||||
2.43.0
|
||||
|
||||
BIN
assertj-core-1.7.1.jar
Normal file
BIN
assertj-core-1.7.1.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
cglib-2.2.2.jar
Normal file
BIN
cglib-2.2.2.jar
Normal file
Binary file not shown.
BIN
cglib-3.3.0.jar
BIN
cglib-3.3.0.jar
Binary file not shown.
BIN
hamcrest-2.2.jar
BIN
hamcrest-2.2.jar
Binary file not shown.
BIN
junit-4.13.1.jar
BIN
junit-4.13.1.jar
Binary file not shown.
57
rocksdb-6.8.1-install_path.patch
Normal file
57
rocksdb-6.8.1-install_path.patch
Normal file
@ -0,0 +1,57 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index a6c8c64..5276f96 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1720,33 +1720,35 @@ defer_test: util/defer_test.o $(LIBOBJECTS) $(TESTHARNESS)
|
||||
|
||||
#-------------------------------------------------
|
||||
# make install related stuff
|
||||
-INSTALL_PATH ?= /usr/local
|
||||
+INSTALL_PREFIX ?= /
|
||||
+INCLUDE_INSTAL_DIR ?= /usr/local/include/
|
||||
+LIB_INSTALL_DIR ?= /usr/local/lib/
|
||||
|
||||
uninstall:
|
||||
- rm -rf $(INSTALL_PATH)/include/rocksdb \
|
||||
- $(INSTALL_PATH)/lib/$(LIBRARY) \
|
||||
- $(INSTALL_PATH)/lib/$(SHARED4) \
|
||||
- $(INSTALL_PATH)/lib/$(SHARED3) \
|
||||
- $(INSTALL_PATH)/lib/$(SHARED2) \
|
||||
- $(INSTALL_PATH)/lib/$(SHARED1)
|
||||
+ rm -rf $(INSTALL_PREFIX)/$(INCLUDE_INSTALL_DIR)/rocksdb \
|
||||
+ $(INSTALL_PREFIX)/$(LIB_INSTALL_DIR)/$(LIBRARY) \
|
||||
+ $(INSTALL_PREFIX)/$(LIB_INSTALL_DIR)/$(SHARED4) \
|
||||
+ $(INSTALL_PREFIX)/$(LIB_INSTALL_DIR)/$(SHARED3) \
|
||||
+ $(INSTALL_PREFIX)/$(LIB_INSTALL_DIR)/$(SHARED2) \
|
||||
+ $(INSTALL_PREFIX)/$(LIB_INSTALL_DIR)/$(SHARED1)
|
||||
|
||||
install-headers:
|
||||
- install -d $(INSTALL_PATH)/lib
|
||||
- for header_dir in `$(FIND) "include/rocksdb" -type d`; do \
|
||||
- install -d $(INSTALL_PATH)/$$header_dir; \
|
||||
+ install -d $(INSTALL_PREFIX)/$(LIB_INSTALL_DIR)
|
||||
+ for header_dir in $$(find "include/rocksdb" -type d|sed -r 's/^([^\/]*\/)//'); do \
|
||||
+ install -d $(INSTALL_PREFIX)/$(INCLUDE_INSTALL_DIR)/$$header_dir; \
|
||||
done
|
||||
- for header in `$(FIND) "include/rocksdb" -type f -name *.h`; do \
|
||||
- install -C -m 644 $$header $(INSTALL_PATH)/$$header; \
|
||||
+ for header in $$(find "include/rocksdb" -type f -name *.h|sed -r 's/^([^\/]*\/)//'); do \
|
||||
+ install -C -m 644 "include/$$header" $(INSTALL_PREFIX)/$(INCLUDE_INSTALL_DIR)/$$header; \
|
||||
done
|
||||
|
||||
install-static: install-headers $(LIBRARY)
|
||||
- install -C -m 755 $(LIBRARY) $(INSTALL_PATH)/lib
|
||||
+ install -C -m 755 $(INSTALL_PREFIX)/$(LIB_INSTALL_DIR)
|
||||
|
||||
install-shared: install-headers $(SHARED4)
|
||||
- install -C -m 755 $(SHARED4) $(INSTALL_PATH)/lib && \
|
||||
- ln -fs $(SHARED4) $(INSTALL_PATH)/lib/$(SHARED3) && \
|
||||
- ln -fs $(SHARED4) $(INSTALL_PATH)/lib/$(SHARED2) && \
|
||||
- ln -fs $(SHARED4) $(INSTALL_PATH)/lib/$(SHARED1)
|
||||
+ install -C -m 755 $(SHARED4) $(INSTALL_PREFIX)/$(LIB_INSTALL_DIR) && \
|
||||
+ ln -fs $(SHARED4) $(INSTALL_PREFIX)/$(LIB_INSTALL_DIR)/$(SHARED3) && \
|
||||
+ ln -fs $(SHARED4) $(INSTALL_PREFIX)/$(LIB_INSTALL_DIR)/$(SHARED2) && \
|
||||
+ ln -fs $(SHARED4) $(INSTALL_PREFIX)/$(LIB_INSTALL_DIR)/$(SHARED1)
|
||||
|
||||
# install static by default + install shared if it exists
|
||||
install: install-static
|
||||
58
rocksdb.spec
58
rocksdb.spec
@ -1,12 +1,12 @@
|
||||
Name: rocksdb
|
||||
Version: 8.5.4
|
||||
Release: 3
|
||||
Version: 6.8.1
|
||||
Release: 5
|
||||
Summary: A Persistent Key-Value Store for Flash and RAM Storage
|
||||
|
||||
License: GPLv2 and Apache 2.0 License
|
||||
URL: https://github.com/facebook/rocksdb.git
|
||||
|
||||
BuildRequires: gcc make rpm-build gcc-c++ maven java-1.8.0-openjdk-devel
|
||||
BuildRequires: gcc make rpm-build gcc-c++ gtest-devel maven java-1.8.0-openjdk-devel
|
||||
|
||||
# enable debuginfo pacakges by default, then we need gdb package
|
||||
BuildRequires: gdb
|
||||
@ -16,14 +16,12 @@ BuildRequires: snappy snappy-devel zlib zlib-devel bzip2 bzip2-devel lz4 lz4-dev
|
||||
|
||||
Requires: snappy snappy-devel zlib zlib-devel bzip2 bzip2-devel lz4 lz4-devel zstd zstd-devel gflags gflags-devel
|
||||
|
||||
Source0: https://github.com/facebook/rocksdb/archive/refs/tags/v%{version}.tar.gz
|
||||
Source1: https://repo1.maven.org/maven2/org/assertj/assertj-core/2.9.0/assertj-core-2.9.0.jar
|
||||
Source2: https://repo1.maven.org/maven2/cglib/cglib/3.3.0/cglib-3.3.0.jar
|
||||
Source0: https://codeload.github.com/facebook/%{name}/tar.gz/v%{version}
|
||||
Source1: https://repo1.maven.org/maven2/org/assertj/assertj-core/1.7.1/assertj-core-1.7.1.jar
|
||||
Source2: https://repo1.maven.org/maven2/cglib/cglib/2.2.2/cglib-2.2.2.jar
|
||||
Source3: https://repo1.maven.org/maven2/org/mockito/mockito-all/1.10.19/mockito-all-1.10.19.jar
|
||||
Source4: https://repo1.maven.org/maven2/org/hamcrest/hamcrest/2.2/hamcrest-2.2.jar
|
||||
Source5: https://repo1.maven.org/maven2/junit/junit/4.13.1/junit-4.13.1.jar
|
||||
Patch0: some-jar-packs-should-provides-local.patch
|
||||
Patch1: 0001-Add-support-for-linux-riscv64-12139.patch
|
||||
Patch0: rocksdb-6.8.1-install_path.patch
|
||||
Patch1: some-jar-packs-should-provides-local.patch
|
||||
|
||||
%description
|
||||
Rocksdb is a library that forms the core building block for a fast key value
|
||||
@ -52,17 +50,21 @@ embeddable persistent key-value store for fast storage.
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
rm -rf third-party/gtest-1.8.1
|
||||
rm java/benchmark/src/main/java/org/rocksdb/benchmark/DbBenchmark.java
|
||||
rm build_tools/gnu_parallel
|
||||
mkdir -p java/test-libs
|
||||
cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} java/test-libs
|
||||
cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} java/test-libs
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
# librocksdb*.so* has undefined symbols dlopen and so on, “-ldl” needs to be added here
|
||||
export EXTRA_CXXFLAGS=" -std=c++17 %{optflags} -ldl"
|
||||
export DISABLE_WARNING_AS_ERROR=1
|
||||
export EXTRA_CXXFLAGS=" -std=c++11 %{optflags} -ldl"
|
||||
%ifnarch riscv64
|
||||
%make_build shared_lib
|
||||
%else
|
||||
PORTABLE=1 %make_build shared_lib
|
||||
%endif
|
||||
# build rocksdbjni
|
||||
export JAVA_HOME=%{_jvmdir}/java-1.8.0-openjdk
|
||||
export EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/linux"
|
||||
@ -72,9 +74,9 @@ PORTABLE=1 %make_build rocksdbjava
|
||||
|
||||
%install
|
||||
make install-shared \
|
||||
PREFIX=%{_prefix}\
|
||||
LIBDIR=%{_libdir}\
|
||||
DESTDIR=%{buildroot}
|
||||
INSTALL_PREFIX=%{buildroot}\
|
||||
LIB_INSTALL_DIR=%{_libdir}\
|
||||
INCLUDE_INSTALL_DIR=%{_includedir}
|
||||
|
||||
# install rocksdbjni
|
||||
install -d -p -m 0755 %{buildroot}%{_javadir}/%{name}jni
|
||||
@ -86,15 +88,14 @@ install -D -m 0644 java/target/%{name}jni-%{version}-linux$(getconf LONG_BIT).ja
|
||||
|
||||
|
||||
%files
|
||||
%{_libdir}/librocksdb.so.8
|
||||
%{_libdir}/librocksdb.so.8.5
|
||||
%{_libdir}/librocksdb.so.8.5.4
|
||||
%{_libdir}/librocksdb.so.6
|
||||
%{_libdir}/librocksdb.so.6.8
|
||||
%{_libdir}/librocksdb.so.6.8.1
|
||||
%license COPYING LICENSE.Apache LICENSE.leveldb
|
||||
|
||||
|
||||
%files devel
|
||||
%{_libdir}/librocksdb.so
|
||||
%{_libdir}/pkgconfig/rocksdb.pc
|
||||
%{_includedir}/*
|
||||
|
||||
%files -n %{name}jni
|
||||
@ -102,28 +103,13 @@ install -D -m 0644 java/target/%{name}jni-%{version}-linux$(getconf LONG_BIT).ja
|
||||
%{_javadir}/%{name}jni/%{name}jni.jar
|
||||
|
||||
%changelog
|
||||
* Thu Mar 21 2024 laokz <zhangkai@iscas.ac.cn> - 8.5.4-3
|
||||
- Backport v8.10.0 patch to fix riscv64 build
|
||||
|
||||
* Mon Mar 04 2024 wuzhaomin <wuzhaomin@kylinos.cn> - 8.5.4-2
|
||||
- Modify error date
|
||||
|
||||
* Sat Oct 07 2023 wulei <wu_lei@hoperun.com> - 8.5.4-1
|
||||
- Update to 8.5.4
|
||||
|
||||
* Wed Sep 27 2023 wangkai <13474090681@163.com> - 6.8.1-7
|
||||
- Resolving build error using internal gtest build
|
||||
|
||||
* Fri Aug 4 2023 liyanan <thistleslyn@163.com> - 6.8.1-6
|
||||
- Fix build error for gcc 12
|
||||
|
||||
* Mon Apr 10 2023 laokz <zhangkai@iscas.ac.cn> - 6.8.1-5
|
||||
- Fix building on RISC-V by setting PORTABLE to 1
|
||||
|
||||
* Tue Aug 23 2022 wulei <wulei80@h-partners.com> - 6.8.1-4
|
||||
- Fix binary not striped problem
|
||||
|
||||
* Thu Jul 01 2021 sunguoshuai <sunguoshuai@huawei.com> - 6.8.1-3
|
||||
* Thu 01 Jul 2021 sunguoshuai <sunguoshuai@huawei.com> - 6.8.1-3
|
||||
- Some jar packs should provides local in case of build error
|
||||
|
||||
* Thu May 06 2021 herengui <herengui@uniontech.com> - 6.8.1-2
|
||||
|
||||
@ -1,53 +1,27 @@
|
||||
diff -Nur a/java/Makefile b/java/Makefile
|
||||
--- a/java/Makefile 2023-09-27 10:47:02.000000000 +0800
|
||||
+++ b/java/Makefile 2023-10-08 11:15:06.557154861 +0800
|
||||
@@ -373,8 +373,7 @@
|
||||
mkdir -p "$(JAVA_TEST_LIBDIR)"
|
||||
From 3e387b07fd23960f566dee7209f0779791df4094 Mon Sep 17 00:00:00 2001
|
||||
From: si-gui <sunguoshuai@huawei.com>
|
||||
Date: Wed, 30 Jun 2021 17:16:28 +0800
|
||||
Subject: [PATCH] some jar packs should provides local
|
||||
|
||||
$(JAVA_JUNIT_JAR_PATH): $(JAVA_TEST_LIBDIR)
|
||||
-ifneq (,$(wildcard $(MVN_LOCAL)/junit/junit/$(JAVA_JUNIT_VER)/$(JAVA_JUNIT_JAR)))
|
||||
- cp -v $(MVN_LOCAL)/junit/junit/$(JAVA_JUNIT_VER)/$(JAVA_JUNIT_JAR) $(JAVA_TEST_LIBDIR)
|
||||
+ifneq (,$(wildcard $(JAVA_JUNIT_JAR_PATH)))
|
||||
else
|
||||
curl --fail --insecure --output $(JAVA_JUNIT_JAR_PATH) --location $(DEPS_URL)/$(JAVA_JUNIT_JAR)
|
||||
JAVA_JUNIT_SHA256_ACTUAL=`$(SHA256_CMD) $(JAVA_JUNIT_JAR_PATH) | cut -d ' ' -f 1`; \
|
||||
@@ -385,8 +384,7 @@
|
||||
endif
|
||||
---
|
||||
java/Makefile | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
$(JAVA_HAMCREST_JAR_PATH): $(JAVA_TEST_LIBDIR)
|
||||
-ifneq (,$(wildcard $(MVN_LOCAL)/org/hamcrest/hamcrest/$(JAVA_HAMCREST_VER)/$(JAVA_HAMCREST_JAR)))
|
||||
- cp -v $(MVN_LOCAL)/org/hamcrest/hamcrest/$(JAVA_HAMCREST_VER)/$(JAVA_HAMCREST_JAR) $(JAVA_TEST_LIBDIR)
|
||||
+ifneq (,$(wildcard $(JAVA_HAMCREST_JAR_PATH)))
|
||||
else
|
||||
curl --fail --insecure --output $(JAVA_HAMCREST_JAR_PATH) --location $(DEPS_URL)/$(JAVA_HAMCREST_JAR)
|
||||
JAVA_HAMCREST_SHA256_ACTUAL=`$(SHA256_CMD) $(JAVA_HAMCREST_JAR_PATH) | cut -d ' ' -f 1`; \
|
||||
@@ -397,8 +395,7 @@
|
||||
endif
|
||||
diff --git a/java/Makefile b/java/Makefile
|
||||
index 155db69..0c835ae 100644
|
||||
--- a/java/Makefile
|
||||
+++ b/java/Makefile
|
||||
@@ -288,8 +288,8 @@ optimistic_transaction_sample: java
|
||||
|
||||
$(JAVA_MOCKITO_JAR_PATH): $(JAVA_TEST_LIBDIR)
|
||||
-ifneq (,$(wildcard $(MVN_LOCAL)/org/mockito/mockito-all/$(JAVA_MOCKITO_VER)/$(JAVA_MOCKITO_JAR)))
|
||||
- cp -v $(MVN_LOCAL)/org/mockito/mockito-all/$(JAVA_MOCKITO_VER)/$(JAVA_MOCKITO_JAR) $(JAVA_TEST_LIBDIR)
|
||||
+ifneq (,$(wildcard $(JAVA_MOCKITO_JAR_PATH)))
|
||||
else
|
||||
curl --fail --insecure --output "$(JAVA_MOCKITO_JAR_PATH)" --location $(DEPS_URL)/$(JAVA_MOCKITO_JAR)
|
||||
JAVA_MOCKITO_SHA256_ACTUAL=`$(SHA256_CMD) $(JAVA_MOCKITO_JAR_PATH) | cut -d ' ' -f 1`; \
|
||||
@@ -409,8 +406,7 @@
|
||||
endif
|
||||
resolve_test_deps:
|
||||
test -d "$(JAVA_TEST_LIBDIR)" || mkdir -p "$(JAVA_TEST_LIBDIR)"
|
||||
- test -s "$(JAVA_JUNIT_JAR)" || cp $(MVN_LOCAL)/junit/junit/4.12/junit-4.12.jar $(JAVA_TEST_LIBDIR) || curl --fail --insecure --output $(JAVA_JUNIT_JAR) --location $(DEPS_URL)/junit-4.12.jar
|
||||
- test -s "$(JAVA_HAMCR_JAR)" || cp $(MVN_LOCAL)/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar $(JAVA_TEST_LIBDIR) || curl --fail --insecure --output $(JAVA_HAMCR_JAR) --location $(DEPS_URL)/hamcrest-core-1.3.jar
|
||||
+ test -s "$(JAVA_JUNIT_JAR)" || cp /usr/share/java/junit.jar $(JAVA_TEST_LIBDIR)/junit-4.12.jar || curl --fail --insecure --output $(JAVA_JUNIT_JAR) --location $(DEPS_URL)/junit-4.12.jar
|
||||
+ test -s "$(JAVA_HAMCR_JAR)" || cp /usr/share/java/hamcrest/core.jar $(JAVA_TEST_LIBDIR)/hamcrest-core-1.3.jar || curl --fail --insecure --output $(JAVA_HAMCR_JAR) --location $(DEPS_URL)/hamcrest-core-1.3.jar
|
||||
test -s "$(JAVA_MOCKITO_JAR)" || cp $(MVN_LOCAL)/org/mockito/mockito-all/1.10.19/mockito-all-1.10.19.jar $(JAVA_TEST_LIBDIR) || curl --fail --insecure --output "$(JAVA_MOCKITO_JAR)" --location $(DEPS_URL)/mockito-all-1.10.19.jar
|
||||
test -s "$(JAVA_CGLIB_JAR)" || cp $(MVN_LOCAL)/cglib/cglib/2.2.2/cglib-2.2.2.jar $(JAVA_TEST_LIBDIR) || curl --fail --insecure --output "$(JAVA_CGLIB_JAR)" --location $(DEPS_URL)/cglib-2.2.2.jar
|
||||
test -s "$(JAVA_ASSERTJ_JAR)" || cp $(MVN_LOCAL)/org/assertj/assertj-core/1.7.1/assertj-core-1.7.1.jar $(JAVA_TEST_LIBDIR) || curl --fail --insecure --output "$(JAVA_ASSERTJ_JAR)" --location $(DEPS_URL)/assertj-core-1.7.1.jar
|
||||
--
|
||||
2.30.0
|
||||
|
||||
$(JAVA_CGLIB_JAR_PATH): $(JAVA_TEST_LIBDIR)
|
||||
-ifneq (,$(wildcard $(MVN_LOCAL)/cglib/cglib/$(JAVA_CGLIB_VER)/$(JAVA_CGLIB_JAR)))
|
||||
- cp -v $(MVN_LOCAL)/cglib/cglib/$(JAVA_CGLIB_VER)/$(JAVA_CGLIB_JAR) $(JAVA_TEST_LIBDIR)
|
||||
+ifneq (,$(wildcard $(JAVA_CGLIB_JAR_PATH)))
|
||||
else
|
||||
curl --fail --insecure --output "$(JAVA_CGLIB_JAR_PATH)" --location $(DEPS_URL)/$(JAVA_CGLIB_JAR)
|
||||
JAVA_CGLIB_SHA256_ACTUAL=`$(SHA256_CMD) $(JAVA_CGLIB_JAR_PATH) | cut -d ' ' -f 1`; \
|
||||
@@ -421,8 +417,7 @@
|
||||
endif
|
||||
|
||||
$(JAVA_ASSERTJ_JAR_PATH): $(JAVA_TEST_LIBDIR)
|
||||
-ifneq (,$(wildcard $(MVN_LOCAL)/org/assertj/assertj-core/$(JAVA_ASSERTJ_VER)/$(JAVA_ASSERTJ_JAR)))
|
||||
- cp -v $(MVN_LOCAL)/org/assertj/assertj-core/$(JAVA_ASSERTJ_VER)/$(JAVA_ASSERTJ_JAR) $(JAVA_TEST_LIBDIR)
|
||||
+ifneq (,$(wildcard $(JAVA_ASSERTJ_JAR_PATH)))
|
||||
else
|
||||
curl --fail --insecure --output "$(JAVA_ASSERTJ_JAR_PATH)" --location $(DEPS_URL)/$(JAVA_ASSERTJ_JAR)
|
||||
JAVA_ASSERTJ_SHA256_ACTUAL=`$(SHA256_CMD) $(JAVA_ASSERTJ_JAR_PATH) | cut -d ' ' -f 1`; \
|
||||
|
||||
BIN
v8.5.4.tar.gz
BIN
v8.5.4.tar.gz
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user