Nathan Cutler
7a17722d45
build/ops: do_cmake.sh: get rid of which dependency
...
"which" is not available on minimal systems, whereas "type" is a shell builtin,
so the chances of the command "just working" are greater with type than with
which.
In other parts of Ceph build/ops we have replaced "which" with "type" to good
effect.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-04-23 10:50:04 +02:00
Abhishek Lekshmanan
9b99018b99
build: do_cmake: allow ARGS to be overridden
...
so that one can do stuff like
ARGS="-DCMAKE_C_COMPILER=gcc-7 -D.." ./do_cmake.sh
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2018-01-10 18:02:29 +01:00
Shinobu Kinjo
5a3eed74d8
vstart.sh: drop .ceph_port and use randomly selected available port
...
vstart.sh becomes independent of do_cmake.sh
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
2017-12-01 12:16:06 +09:00
Alan Somers
44c6a47fb6
do_{cmake,freebsd}: Don't invoke nproc(1) on FreeBSD
...
Use sysctl(8) instead. Also, there's no longer any need for /bin/bash
on FreeBSD.
Signed-off-by: Alan Somers <asomers@gmail.com>
2017-09-25 16:24:06 -06:00
Dan Mick
137f3018cd
do_cmake.sh: fix syntax for /bin/sh (doesn't have +=)
...
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-07-19 15:04:47 -07:00
Sage Weil
f251b07e5d
do_cmake.sh: enable ccache if installed
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-06-01 12:25:11 -04:00
Sage Weil
feefd35853
do_cmake.sh: set BOOST_J to $(nproc)
...
This lets us build boost with all processors.
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-11-07 15:56:53 -05:00
Willem Jan Withagen
ea708e749b
do_freebsd.sh: Set options for debug building.
...
And that requires that the options need to be passed on completely
to the cmake program as well. Thus adding """'s around the option
argument with do_cmake.sh as well
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2016-10-12 11:06:00 +02:00
Sage Weil
c8a06ce1ee
do_cmake.sh: set .ceph_port to random port
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-03 18:40:07 -04:00
Sage Weil
6732ef05ac
do_cmake.sh: create initial ceph.conf setting dirs
...
This is enough for unit tests to run.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-30 11:06:21 -04:00
Sage Weil
ef5a677870
do_cmake.sh: simple cmake helper
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-22 16:42:37 -04:00