You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ta...@apache.org on 2019/02/04 01:13:14 UTC
[hadoop] branch branch-3.2 updated: HDFS-14232. libhdfs is not
included in binary tarball. Contributed by Akira Ajisaka.
This is an automated email from the ASF dual-hosted git repository.
tasanuma pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 8887980 HDFS-14232. libhdfs is not included in binary tarball. Contributed by Akira Ajisaka.
8887980 is described below
commit 8887980d3202a98d5e1b705a976f893eff115097
Author: Takanobu Asanuma <ta...@apache.org>
AuthorDate: Mon Feb 4 10:12:09 2019 +0900
HDFS-14232. libhdfs is not included in binary tarball. Contributed by Akira Ajisaka.
(cherry picked from commit ec77e95bbd607f1dbfc51132ad02898b4ed1acd0)
---
.../hadoop-hdfs-native-client/src/CMakeLists.txt | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/CMakeLists.txt b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/CMakeLists.txt
index 026be9f..a962f94 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/CMakeLists.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/CMakeLists.txt
@@ -58,11 +58,19 @@ if(WIN32)
# Omit unneeded headers.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWIN32_LEAN_AND_MEAN")
set(OS_DIR ${CMAKE_SOURCE_DIR}/main/native/libhdfs/os/windows)
- set(OUT_DIR target/bin)
+
+ # IMPORTANT: OUT_DIR MUST be relative to maven's
+ # project.build.directory (=target) and match dist-copynativelibs
+ # in order to be in a release
+ set(OUT_DIR bin)
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
set(OS_DIR ${CMAKE_SOURCE_DIR}/main/native/libhdfs/os/posix)
- set(OUT_DIR target/usr/local/lib)
+
+ # IMPORTANT: OUT_DIR MUST be relative to maven's
+ # project.build.directory (=target) and match dist-copynativelibs
+ # in order to be in a release
+ set(OUT_DIR native/target/usr/local/lib)
endif()
# Configure JNI.
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org