Skip to content

Instantly share code, notes, and snippets.

@amatus
Last active August 29, 2015 14:23
Show Gist options
  • Save amatus/5c530ea49f8603b49354 to your computer and use it in GitHub Desktop.
Save amatus/5c530ea49f8603b49354 to your computer and use it in GitHub Desktop.
Building ceph for WDC MyCloud
install qemu 2.4 or newer?
update the 64k binutils:
--- binutils/801-mspd-64k-pages-2.patch.orig 2015-06-26 17:35:26.877938743 +0000
+++ binutils/801-mspd-64k-pages-2.patch 2015-06-26 17:35:51.696175783 +0000
@@ -5,8 +5,7 @@
#ifdef __QNXTARGET__
#define ELF_MAXPAGESIZE 0x1000
#else
--#define ELF_MAXPAGESIZE 0x8000
-+#define ELF_MAXPAGESIZE 0x10000
+ #define ELF_MAXPAGESIZE 0x10000
#endif
-#define ELF_MINPAGESIZE 0x1000
-#define ELF_COMMONPAGESIZE 0x1000
binutils/build-64k-binutils.sh
patching file ld/emulparams/armelf_linux.sh
Reversed (or previously applied) patch detected! Assume -R? [n] n
Apply anyway? [n] n
tar the new .debs into binutils/binutils-armhf-64k.tar.gz
using:
./build-armhf-package.sh --pagesize=64k <package_name> jessie
build:
gcc-4.9
libaio
boost1.55
google-perftools
nspr
nss
systemd
libucru
ust
chroot into the WDC build sysroot:
clone ceph
checkout hammer
diff --git a/debian/ceph-test.install b/debian/ceph-test.install
index 1af1a4f..7a949e6 100644
--- a/debian/ceph-test.install
+++ b/debian/ceph-test.install
@@ -23,6 +23,5 @@ usr/bin/ceph_xattr_bench
usr/bin/ceph-monstore-tool
usr/bin/ceph-osdomap-tool
usr/bin/ceph-kvstore-tool
-usr/share/java/libcephfs-test.jar
usr/bin/rbd-replay*
usr/share/man/man8/rbd-replay*.8
diff --git a/debian/control b/debian/control
index 4f9fc9f..ac19c82 100644
--- a/debian/control
+++ b/debian/control
@@ -12,11 +12,8 @@ Build-Depends: autoconf,
libbz2-dev,
cryptsetup-bin | cryptsetup,
debhelper (>= 6.0.7~),
- default-jdk,
git,
gdisk,
- javahelper,
- junit4,
libaio-dev,
libatomic-ops-dev,
libbabeltrace-ctf-dev,
@@ -59,17 +56,9 @@ Standards-Version: 3.9.3
Package: ceph
Architecture: linux-any
-Depends: binutils,
- ceph-common (>= 0.78-500),
- cryptsetup-bin | cryptsetup,
- gdisk,
- parted,
+Depends: ceph-common (>= 0.78-500),
python,
python-argparse,
- sdparm | hdparm,
- uuid-runtime,
- xfsprogs,
- python-flask,
${misc:Depends},
${shlibs:Depends}
Recommends: btrfs-tools, ceph-mds, librados2, libradosstriper1, librbd1
@@ -533,14 +522,3 @@ Description: Python libraries for the Ceph libcephfs library
This package contains Python libraries for interacting with Ceph's
CephFS file system client library.
-Package: libcephfs-java
-Section: java
-Architecture: all
-Depends: libcephfs-jni, ${java:Depends}, ${misc:Depends}
-Description: Java libraries for the Ceph File System
-
-Package: libcephfs-jni
-Architecture: linux-any
-Section: libs
-Depends: libcephfs1, ${java:Depends}, ${misc:Depends}, ${shlibs:Depends}
-Description: Java Native Interface library for CephFS Java bindings
diff --git a/debian/rules b/debian/rules
index 1fd2d66..1ba8691 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,7 +22,7 @@ export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
extraopts += --with-ocf --with-rest-bench --with-nss
extraopts += --with-debug
-extraopts += --enable-cephfs-java
+extraopts += --disable-cephfs-java
# rocksdb is not packaged by anyone. build it if we can.
extraopts += --with-librocksdb-static=check
@@ -91,7 +91,6 @@ install: build
binary-indep: build install
dh_testdir
dh_testroot
- jh_installlibs -v -i
dh_installchangelogs -i
dh_installdocs -i --all ChangeLog
dh_installexamples -i
./install-deps.sh
dpkg-buildpackage
exit from chroot
install:
libaio1
libtcmalloc-minimal4
libgoogle-perftools4
libnspr4
libnss3
libudev1
liburcu2
liblttng-ust-ctl2
liblttng-ust0
ceph ceph-common librbd1 librados2 python-rados
depends:
gcc-4.9-base (= 4.9.2-10)
libc6 (>= 2.18)
libstdc++6 (>= 4.9)
libboost-program-options1.55.0
libboost-system1.55.0
libboost-thread1.55.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment