mirror of
https://github.com/ceph/ceph
synced 2024-12-13 23:17:07 +00:00
89f63d4ae8
- README.FreeBSD for the description of the current work thusfar - do_freebsd.sh, the srcipt to run autobuild/compile/tests - autogen_freebsd.sh set the options to use in the auto/configure tools - do_freebsd.sh: Install bash and softlink, so other bash scripts can run as is. Using /usr/bin/env would be more compliant. But not for now. This makes it compatible with the std-linux environment - So now we can even have Clang in /usr/bin and /usr/local/bin and still get the right one. - Use less error suppression, but start fixing warning. Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
20 lines
587 B
Bash
Executable File
20 lines
587 B
Bash
Executable File
#!/bin/sh -xve
|
|
NPROC=`sysctl -n hw.ncpu`
|
|
|
|
if [ x"$1"x = x"--deps"x ]; then
|
|
# we need bash first otherwise almost nothing will work
|
|
sudo pkg install bash
|
|
if [ ! -L /bin/bash ]; then
|
|
echo linking /bin/bash to /usr/local/bin/bash
|
|
ln -s /usr/local/bin/bash /bin/bash
|
|
fi
|
|
sudo ./install-deps.sh
|
|
fi
|
|
. ./autogen_freebsd.sh
|
|
./autogen.sh
|
|
./configure ${CONFIGURE_FLAGS}
|
|
( cd src/gmock/gtest; patch < /usr/ports/devel/googletest/files/patch-bsd-defines )
|
|
gmake -j$NPROC ENABLE_GIT_VERSION=OFF
|
|
gmake -j$NPROC check ENABLE_GIT_VERSION=OFF CEPH_BUFFER_NO_BENCH=yes
|
|
|