summaryrefslogtreecommitdiffstats
path: root/do_cmake.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* do_cmake.sh: set python version for Fedora 39Brad Hubbard2023-11-211-9/+4
| | | | | | | If do_cmake.sh is being exeuted on Fedora 39 set Python version to 3.12. Remove versions for anything earlier than Fedora 37 Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
* cmake: add --progress flag to git submodule update commandsRishabh Dave2023-10-311-1/+1
| | | | | | | | | Ceph has lots of submodules that needs to be cloned before building binaries from the repository. Seeing the progress when these submodules are being cloned is useful, especially when developers/users have a network issue or a slow network. Signed-off-by: Rishabh Dave <ridave@redhat.com>
* Merge pull request #48672 from nokia/fix_do_cmake_python_for_rockyIlya Dryomov2023-07-121-1/+1
|\ | | | | | | | | | | do_cmake.sh: build with correct python version on Rocky Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Kefu Chai <tchaikov@gmail.com>
| * do_cmake.sh: build with correct python version on rocky osShimTanny2022-11-031-1/+1
| | | | | | | | | | | | Fixes: https://tracker.ceph.com/issues/57945 Signed-off-by: ShimTanny <shimon.tanny@nokia.com>
* | do_cmake.sh: set python version for Fedora 37Rishabh Dave2023-04-051-1/+3
|/ | | | | | If do_cmake.sh is being exeuted on Fedora 37 set Python version to 3.11. Signed-off-by: Rishabh Dave <ridave@redhat.com>
* do_cmake.sh: build with python3.10 on ubuntu version >= 22.0Laura Flores2022-08-231-0/+7
| | | | | Fixes: https://tracker.ceph.com/issues/57230 Signed-off-by: Laura Flores <lflores@redhat.com>
* do_cmake:sh: use newer gcc if availableKefu Chai2022-08-051-0/+13
| | | | | | | | | | | | | | | | despite that we are using clang in `run-make-check.sh`, `do_cmake.sh` is still used by some workflows like jenkins' ceph-pr-api job. now that we've migrated to C++20, we need to use GCC-11 or up for building the tree. GCC-11 is installed from PPA repo in `install-deps.sh`, but to avoid interfere with the build of older branches which do not use GCC-11, as their builds might break if we use GCC-11 for building them. we don't use the alternative machinary to point gcc to gcc-11, see 8f342a32ce4a236c45c67497ae34f508e032a9e1. so, in this change, we try to use the newest GCC in system when running `do_cmake.sh`. Signed-off-by: Kefu Chai <tchaikov@gmail.com>
* do_cmake:sh: do not set BOOST_JKefu Chai2021-08-111-5/+0
| | | | | | | | | | | | | | | do_cmake.sh is called by src/script/run-make.sh in configure() function, in src/script/run-make.sh, BOOST_J is also set if it is not set. so we can drop the code setting BOOST_J in do_cmake.sh. this helps to silence the cmake warning like: CMake Warning: Manually-specified variables were not used by the project: BOOST_J Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake.sh: use python3.10 for fedora 35Kefu Chai2021-06-071-1/+3
| | | | | | | | | fedora34 was released in April 2021 with Python3.9. while fedora 35 (still Rawhide) will include python3.10. see https://fedoraproject.org/wiki/Releases/35/ChangeSet#Python_3.10 so update the script accordingly. Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake.sh: refactor code to set PYBUILDKefu Chai2021-06-071-5/+6
| | | | | | so it is more consistent with rhel/centos part. Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake: build with python3.9 on RHEL9Kefu Chai2021-06-031-1/+3
| | | | | | | rhel9 has python3.9 as of rhel9beta Signed-off-by: Kaleb S KEITHLEY <kkeithle@redhat.com> Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake: always pass -DWITH_PYTHON3 to cmakeKefu Chai2021-03-091-4/+2
| | | | | | do not pretend that we support python2 anymore. Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake,run-make: switch to ninjaKefu Chai2021-03-091-0/+1
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake.sh: do not perform 'git submodule update' if building from tarballVladimir Bashkirtsev2021-01-091-1/+3
| | | | Signed-off-by: Vladimir Bashkirtsev <vladimir@bashkirtsev.com>
* do_cmake: add a default value to BOOST_Jluo rixin2020-12-231-0/+5
| | | | Signed-off-by: luo rixin <luorixin@huawei.com>
* do_cmake.sh: use python-3.9 with fedora version 33Sunny Kumar2020-10-261-1/+3
| | | | | | | | | | | | Fedora-33 (rawhide) now has python-3.9. Build breaks on Fedoa-33 with Traceback: CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:165 (message): Could NOT find Python3: Found unsuitable version "3.9.0", but required is exact version "3.8" (found /usr/bin/python3, found components: Interpreter Development) Fixes: https://tracker.ceph.com/issues/47971 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
* do_cmake.sh: do not unnecessarily warn about debug buildAbutalib Aghayev2020-05-131-1/+1
| | | | | | | do_cmake.sh forgets to check the arguments passed to it and ends up warning about debug build even if a user specifies a release build. Signed-off-by: Abutalib Aghayev <agayev@gmail.com>
* do_cmake.sh: bail out if something goes wrongKefu Chai2020-01-311-1/+1
| | | | | | | so we can be aware if some updated submodule reference is missing in our repo Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake.sh: fedora-32 (rawhide) build with python-3.8Kaleb S. KEITHLEY2020-01-031-2/+3
| | | | | | | | | | | | Fedora-32 now has python-3.8. Fedora-29 is EOL. All non-EOL versions of Fedora have python-3.7, except Fedora-32 (Unclear to me why PYBUILD="3" isn't used, like Ubuntu and FreeBSD. That would eliminate breakage when pyhon versions change in Rawhide.) Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
* cmake: drop WITH_PYTHON2 optionKefu Chai2019-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * drop WITH_PYTHON2 option * print warning message if WITH_PYTHON3 is disabled * drop MGR_PYTHON_VERSION option, as we don't support use different python version for python binding and ceph-mgr embedded python interpreter anymore. as before switching to python3-only build, we can build python3 and python2 python bindings, and ceph-mgr can use either of them. but after switching to python3-only build, ceph-mgr has to use whatever python version used to build python binding. * move WITH_PYTHON3 option to $top_srcdir/CMakeLists.txt, as ceph-mgr and python binding will share this option. * hardware ${PYTHON_VERSION} to 3 * hardware ${Python${PYTHON_VERSION}_VERSION_MAJOR} to 3 * only build boost library with python3 * s/Python_EXECUTABLE/Python3_EXECUTABLE/ * update the build scripts and packagings accordingly * rename all cython${PYTHON_VERSION}_* targets to cython_* * update distutils_install_module() so it does not take python_version parameter anymore. Signed-off-by: Kefu Chai <kchai@redhat.com>
* Merge pull request #30863 from matthewoliver/improve_do_cmakeKefu Chai2019-11-231-2/+3
|\ | | | | | | | | | | do_cmake.sh: Add CEPH_GIT_DIR Reviewed-by: Nathan Cutler <ncutler@suse.com> Reviewed-by: Kefu Chai <kchai@redhat.com>
| * do_cmake.sh: Add CEPH_GIT_DIRMatthew Oliver2019-11-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a new env variables that users can set to define the location of the checked out ceph git repo. The documentation mentions having to go edit the script directly to point to the ceph git directory if the build dir isn't in the top directory of the checked out git repo. This patch changes the '..' into an env variable, CEPH_GIT_DIR, that defaults to '..'. To make it easy to script and change. This allows someone to do things like: export CEPH_GIT_DIR=~/git/ceph ./do_cmake.sh or CEPH_GIT_DIR=~/git/ceph ./do_cmake.sh Which is much better then editing the script directly. The README.md has been modified to mention this variable and also includes a drive by to mention `make -j` for new contributors to build ceph quicker. Signed-off-by: Matthew Oliver <moliver@suse.com>
* | rgw/pubsub: add kafka notification endpointYuval Lifshitz2019-11-051-0/+2
|/ | | | Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
* do_cmake: Disable shell command printing feature before cmake executionJunyoung, Sung2019-10-241-0/+1
| | | | Signed-off-by: Junyoung, Sung <junyoung.sung@navercorp.com>
* do_cmake: Warn user about slow debug performance only for not setJunyoung, Sung2019-10-241-1/+5
| | | | Signed-off-by: Junyoung, Sung <junyoung.sung@navercorp.com>
* do_cmake.sh: enable amqp and rdma for EL8Kefu Chai2019-10-171-2/+0
| | | | | | | the PowerTools repo now has the related dependencies, so let's enable them. Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake.sh: remove -DCMAKE_BUILD_TYPE=Debug from cmake optionsKefu Chai2019-10-091-1/+1
| | | | | | | so we can use do_cmake.sh for building release builds, which are required for performance tests. Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake.sh: disable amqp and rdma on RHEL/CentOS 8Kefu Chai2019-09-281-0/+2
| | | | | | | RHEL/CentOS 8 does not offer librabbitmq-devel, libibverbs-devel and librdmacm-devel at this moment. so disable these features now. Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake.sh: set WITH_RADOSGW_AMQP_ENDPOINT using ARGSKefu Chai2019-09-281-7/+4
| | | | | | so we can extend ARGS in a more unified way Signed-off-by: Kefu Chai <kchai@redhat.com>
* allow for multiple "build" dirs to existYuval Lifshitz2019-09-061-4/+8
| | | | Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
* do_cmake.sh: specify the supported py versions for different distrosKefu Chai2019-07-231-4/+4
| | | | | | | | there is chance that a distro offer a newer python3 version than the supported one, so we need to avoid using the latest python3 version by specifying the supported python3 Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake.sh: Add a heading to the minimal configBrad Hubbard2019-06-281-0/+1
| | | | | | Post #28634 the minimal ceph config is invalid without a header. Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
* do_cmake.sh: use bashNathan Cutler2019-05-201-1/+2
| | | | | Fixes: http://tracker.ceph.com/issues/39981 Signed-off-by: Nathan Cutler <ncutler@suse.com>
* build: FreeBSD does not have /etc/os-releaseWillem Jan Withagen2019-03-041-18/+27
| | | | | | So "manually" set requirements Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
* do_cmake.sh: SUSE builds need WITH_RADOSGW_AMQP_ENDPOINT=OFFNathan Cutler2019-02-281-0/+4
| | | | | | | Without this patch, "make check" fails on SUSE systems because WITH_RADOS_AMQP_ENDPOINT defaults to "ON". Signed-off-by: Nathan Cutler <ncutler@suse.com>
* do_cmake: Warn user about slow debug performance by default.Mark Nelson2018-12-121-0/+8
| | | | Signed-off-by: Mark Nelson <mnelson@redhat.com>
* build/ops: do_cmake.sh: automate py3 build options for certain distrosNathan Cutler2018-11-211-0/+22
| | | | | | | | | | | | | Before this patch, run-make-check.sh was setting the cmake options for py3 build based only on the absence of a python2 binary in the system. This was not sufficiently deterministic, and it didn't help folks who run do_cmake.sh directly. With this patch, we explicitly force the py3 build in do_cmake.sh, for those OS types/versions we know need it. Fixes: https://tracker.ceph.com/issues/37330 Signed-off-by: Nathan Cutler <ncutler@suse.com>
* do_cmake.sh: default to Debug buildSage Weil2018-09-211-1/+1
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* run-make-check,do_cmake: set BOOST_J if !WITH_SYSTEM_BOOSKefu Chai2018-09-111-2/+1
| | | | | | | it's also more readable if we can set the number of make jobs in a single place. Signed-off-by: Kefu Chai <kchai@redhat.com>
* do_cmake: fail if cmake failsKefu Chai2018-07-261-1/+1
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* deb,rpm,do_cmake: switch to cmake3Kefu Chai2018-07-061-1/+6
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* build/ops: do_cmake.sh: get rid of which dependencyNathan Cutler2018-04-231-1/+1
| | | | | | | | | | | "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>
* build: do_cmake: allow ARGS to be overriddenAbhishek Lekshmanan2018-01-101-1/+0
| | | | | | | 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>
* vstart.sh: drop .ceph_port and use randomly selected available portShinobu Kinjo2017-12-011-3/+0
| | | | | | vstart.sh becomes independent of do_cmake.sh Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
* do_{cmake,freebsd}: Don't invoke nproc(1) on FreeBSDAlan Somers2017-09-261-1/+2
| | | | | | | Use sysctl(8) instead. Also, there's no longer any need for /bin/bash on FreeBSD. Signed-off-by: Alan Somers <asomers@gmail.com>
* do_cmake.sh: fix syntax for /bin/sh (doesn't have +=)Dan Mick2017-07-201-1/+1
| | | | Signed-off-by: Dan Mick <dan.mick@redhat.com>
* do_cmake.sh: enable ccache if installedSage Weil2017-06-011-1/+8
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* do_cmake.sh: set BOOST_J to $(nproc)Sage Weil2016-11-071-1/+1
| | | | | | | This lets us build boost with all processors. Signed-off-by: Sage Weil <sage@redhat.com> Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
* do_freebsd.sh: Set options for debug building.Willem Jan Withagen2016-10-121-1/+1
| | | | | | | | 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>
* do_cmake.sh: set .ceph_port to random portSage Weil2016-10-041-0/+4
| | | | Signed-off-by: Sage Weil <sage@redhat.com>