~xdavidwu/saf-cephfs

44c6e895ca719b60ab320096ad392a37efab4ae9 — xdavidwu 2 years ago 421b1ad
jni: update prebuilts from ceph v16.2.7 rebase, un-lfs

newer ndk r23.b toolchain seems to produce a lot smaller binaries, and
we can now get rid of lfs. old binraries are branched at
old-prebuilts-lfs branch on github.
8 files changed, 5 insertions(+), 5 deletions(-)

M COMPILING-CEPH.md
M README.md
M src/main/jniLibs/arm64-v8a/libc++_shared.so
A src/main/jniLibs/arm64-v8a/libceph-common.so
M src/main/jniLibs/arm64-v8a/libcephfs.so
M src/main/jniLibs/arm64-v8a/libcephfs_jni.so
D src/main/jniLibs/arm64-v8a/libcrc32.so
D src/main/jniLibs/arm64-v8a/libfmt.so
M COMPILING-CEPH.md => COMPILING-CEPH.md +3 -3
@@ 2,12 2,12 @@

Ceph libraries in this project are built by:

Install android-ndk android-cmake android-aarch64-boost android-aarch64-openssl AUR packages on Archlinux.
Install samurai package, android-ndk android-cmake android-aarch64-boost android-aarch64-openssl AUR packages on Archlinux.

Using https://github.com/xdavidwu/ceph, branch saf-cephfs-pacific. This branch contains (hacky) patches on top of upstream pacific to make it build with ndk.

```sh
mkdir build && cd build
android-aarch64-cmake -DWITH_MANPAGE=OFF -DWITH_RDMA=OFF -DWITH_LEVELDB=OFF -DWITH_KVS=OFF -DWITH_FUSE=OFF -DWITH_BLUESTORE=OFF -DWITH_XFS=OFF -DWITH_RBD=OFF -DWITH_OPENLDAP=OFF -DWITH_RADOSGW=OFF -DWITH_LZ4=OFF -DWITH_KRBD=OFF -DWITH_LTTNG=OFF -DWITH_MGR=OFF -DWITH_BABELTRACE=OFF -DWITH_CEPHFS=OFF -DWITH_LIBRADOSSTRIPER=OFF -DWITH_TESTS=OFF -DWITH_REENTRANT_STRSIGNAL=ON -DWITH_SYSTEMD=OFF -DWITH_MGR_DASHBOARD_FRONTEND=OFF -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF -D WITH_RADOSGW_AMQP_ENDPOINT=OFF -DWITH_RADOSGW_BEAST_OPENSSL=OFF -DWITH_RADOSGW_BEAST_FRONTEND=OFF -DDEBUG_GATHER=OFF -DWITH_CEPHFS_JAVA=ON -DOPENSSL_INCLUDE_DIR:FILEPATH=/opt/android-libs/aarch64/include/ -DOPENSSL_CRYPTO_LIBRARY=/opt/android-libs/aarch64/lib/libcrypto.so -DWITH_SYSTEM_BOOST=ON -DBoost_INCLUDE_DIR=/opt/android-libs/aarch64/include/ -DBoost_LIBRARY_DIR=/opt/android-libs/aarch64/lib/ -DWITH_LIBCEPHSQLITE=OFF ..
make java
android-aarch64-cmake -DWITH_MANPAGE=OFF -DWITH_RDMA=OFF -DWITH_LEVELDB=OFF -DWITH_KVS=OFF -DWITH_FUSE=OFF -DWITH_BLUESTORE=OFF -DWITH_XFS=OFF -DWITH_RBD=OFF -DWITH_OPENLDAP=OFF -DWITH_RADOSGW=OFF -DWITH_LZ4=OFF -DWITH_KRBD=OFF -DWITH_LTTNG=OFF -DWITH_MGR=OFF -DWITH_BABELTRACE=OFF -DWITH_CEPHFS=OFF -DWITH_LIBRADOSSTRIPER=OFF -DWITH_TESTS=OFF -DWITH_REENTRANT_STRSIGNAL=ON -DWITH_SYSTEMD=OFF -DWITH_MGR_DASHBOARD_FRONTEND=OFF -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF -D WITH_RADOSGW_AMQP_ENDPOINT=OFF -DWITH_RADOSGW_BEAST_OPENSSL=OFF -DWITH_RADOSGW_BEAST_FRONTEND=OFF -DDEBUG_GATHER=OFF -DWITH_CEPHFS_JAVA=ON -DOPENSSL_INCLUDE_DIR:FILEPATH=/opt/android-libs/aarch64/include/ -DOPENSSL_CRYPTO_LIBRARY=/opt/android-libs/aarch64/lib/libcrypto.so -DWITH_SYSTEM_BOOST=ON -DBoost_INCLUDE_DIR=/opt/android-libs/aarch64/include/ -DBoost_LIBRARY_DIR=/opt/android-libs/aarch64/lib/ -DWITH_LIBCEPHSQLITE=OFF -DANDROID_PLATFORM=24 -GNinja ..
samu java
```

M README.md => README.md +2 -2
@@ 10,8 10,8 @@ Native libraries bundled are built from:

* libboost_\*.so: Archlinx User Repository (AUR) package `android-aarch64-boost` (1.76.0-1)
* libcrypto\_1\_1.so: AUR package `android-aarch64-openssl` (1.1.1.i-2)
* libc++\_shared.so: copied from NDK r22.b
* libcrc32.so, libcephfs.so, libceph-common.so, libcephfs\_jni.so, libfmt.so: built from Ceph Pacific, see [COMPILING-CEPH.md](COMPILING-CEPH.md) for how I built it
* libc++\_shared.so: copied from NDK r23.b
* libcephfs.so, libceph-common.so, libcephfs\_jni.so: built from Ceph Pacific, see [COMPILING-CEPH.md](COMPILING-CEPH.md) for how I built it

Java libraries com.ceph.\* is copied from Ceph 15.2.5 source code.


M src/main/jniLibs/arm64-v8a/libc++_shared.so => src/main/jniLibs/arm64-v8a/libc++_shared.so +0 -0
A src/main/jniLibs/arm64-v8a/libceph-common.so => src/main/jniLibs/arm64-v8a/libceph-common.so +0 -0
M src/main/jniLibs/arm64-v8a/libcephfs.so => src/main/jniLibs/arm64-v8a/libcephfs.so +0 -0
M src/main/jniLibs/arm64-v8a/libcephfs_jni.so => src/main/jniLibs/arm64-v8a/libcephfs_jni.so +0 -0
D src/main/jniLibs/arm64-v8a/libcrc32.so => src/main/jniLibs/arm64-v8a/libcrc32.so +0 -0
D src/main/jniLibs/arm64-v8a/libfmt.so => src/main/jniLibs/arm64-v8a/libfmt.so +0 -0