summaryrefslogtreecommitdiffstats
path: root/install-deps.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* install-deps.sh: install libtool-ltdl-devel for building python-samlKefu Chai2018-11-131-2/+3
| | | | | | | | | | python-saml depends on dm.xmlsec.binding. which links against ltdl. so without libtool-ltdl-devel, we will have /opt/rh/devtoolset-7/root/usr/libexec/gcc/aarch64-redhat-linux/7/ld: cannot find -lltdl Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps: install setuptools before upgrading virtualenvKefu Chai2018-11-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | this should address the failures when running install-deps.sh, like Downloading/unpacking virtualenv Running setup.py egg_info for package virtualenv /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) error in virtualenv setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. Complete output from command python setup.py egg_info: /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) error in virtualenv setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. this only happens on very old virtualenv shipped with RHEL7.4 Signed-off-by: Kefu Chai <kchai@redhat.com>
* mgr/dashboard: SAML 2.0 supportRicardo Marques2018-11-081-0/+3
| | | | | | | Fixes: https://tracker.ceph.com/issues/24268 Signed-off-by: Ricardo Dias <rdias@suse.com> Signed-off-by: Ricardo Marques <rimarques@suse.com>
* install-deps.sh: dashboard frontend needs gitSebastian Wagner2018-10-111-0/+1
| | | | | | | Running `npm install` for the dashboard pulls dependenies with git. Under some setups, git was not installed when building the frontend. Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
* install-deps: do not specify unknown optionsKefu Chai2018-09-281-4/+4
| | | | | | | | | | per apt.conf(5), and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550564, "Acquire::Translation" is not documented and will be deprecated. it would be better to use "Acquire::Languages" solely. and it's consistent with https://github.com/ceph/ceph-build/pull/1137 . Signed-off-by: Kefu Chai <kchai@redhat.com>
* Merge pull request #23955 from wjwithagen/wjw-fix-ceph-helpers.shKefu Chai2018-09-171-0/+1
|\ | | | | | | | | test: Start using GNU awk and fix archiving directory Reviewed-by: Kefu Chai <kchai@redhat.com>
| * test: Start using GNU awk and fix archiving directoryWillem Jan Withagen2018-09-061-0/+1
| | | | | | | | | | | | | | | | | | | | awk uses some tests that the native FreeBSD awk does not support: like: BEGIN{print 0 < 90} And TESTDIR is not set when calling ceph-helpers from smoke.sh So fix with keeping the archive in /tmp Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
* | install-deps,run-make-check: use ceph-libboost repoKefu Chai2018-09-111-0/+41
|/ | | | | | | | | | | | | | | ceph-libboost1.67 repo is setup to satisfy the libboost dependencies used when building ceph. now it offers arm64 and amd64 builds for xenial. * install-deps.sh: add ceph-libboost1.67 repo hosted on chacra if the building host does not have any of the listed ceph-libboost1.67 packages installed * run-make-check.sh: add "-DWITH_SYSTEM_BOOST=ON -DBOOST_ROOT=/opt/ceph" if include/boost/config.hpp is found under /opt/ceph See-also: http://tracker.ceph.com/issues/25186 Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps: s/openldap-client/openldap24-client/Kefu Chai2018-09-041-1/+1
| | | | | | | | | please refer: https://svnweb.freebsd.org/ports/head/net/openldap24-client/ https://svnweb.freebsd.org/ports/head/net/openldap-client/ Signed-off-by: Kefu Chai <kchai@redhat.com>
* FreeBSD: update build script to current stateWillem Jan Withagen2018-08-061-0/+2
| | | | Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
* build/ops: refrain from installing/using lsb_release in install-deps.shNathan Cutler2018-08-021-27/+27
| | | | | | | | | | | | | | | | | | | | | Unfortunately the mapping between release number and codename (which is only relevant for Debian and Ubuntu btw) is not available from /etc/os-release. In that one respect, lsb_release was "better". However, when I weigh the advantages of obtaining that mapping from an external tool, with the (substantial) risk that the external dependency might cause trouble on one or more supported distros (to say nothing of the non- or semi-/pseudo-supported ones), against the work involved in maintaining a hard-coded mapping (negligible), the needle on my scale immediately swings toward eliminating the dependency. Also, I see this commit as part of the longer-term effort to completely expunge lsb_release from our codebase. See git log --grep lsb_release. For another example of an external distro-detection tool (albeit one that was included in Python 2) gone awry, see http://tracker.ceph.com/issues/18163. Signed-off-by: Nathan Cutler <ncutler@suse.com>
* build/ops: unify command substitution in install-deps.shNathan Cutler2018-08-011-2/+2
| | | | | | | | The $() form is preferable to `` because folks (like me) might be using ` as a keyboard shortcut to GNU Screen, causing havoc to ensue whenever copy-pasting the ` character. Signed-off-by: Nathan Cutler <ncutler@suse.com>
* build/ops: streamline processing of WITH_SEASTAR env varNathan Cutler2018-08-011-8/+2
| | | | | | | | Quoting relevant portion of "man test": STRING equivalent to -n STRING Signed-off-by: Nathan Cutler <ncutler@suse.com>
* rpm,install-deps,cmake: install {c-ares,fmt}-develKefu Chai2018-07-251-1/+1
| | | | | | | | | | * ceph.spec.in: c-ares-devel and fmt-devel are installed as dependencies fo seastar. * install-deps.sh: libfmt-dev is missing in xenial, so we only install libc-ares-dev for ubuntu in install-deps.sh . * cmake: build libfmt if it's not found. Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps: set DEBIAN_FRONTEND for apt-getKefu Chai2018-07-181-1/+1
| | | | | | so it won't complain if the tty is not an interactive one. Signed-off-by: Kefu Chai <kchai@redhat.com>
* build/ops: install-deps.sh: set with_seastarNathan Cutler2018-07-161-1/+1
| | | | | | | | | | | | | 25d5122b5538062e8282251c3d7bae0f9792d596 introduced code into install-deps.sh which was intended to set a variable "with_seastar" to the string "true" or "false" depending on whether or not an environment variable WITH_SEASTAR is defined. As originally implemented, the conditional is always true, so with_seastar is set to "true" unconditionally. Fix this by putting $WITH_SEASTAR in double quotes. Signed-off-by: Nathan Cutler <ncutler@suse.com>
* Merge pull request #22809 from tchaikov/wip-with-seastarKefu Chai2018-07-141-0/+19
|\ | | | | | | | | run-make-check: enable --with-seastar option Reviewed-by: Casey Bodley <cbodley@redhat.com>
| * rpm,install-deps.sh: add --with-seastar optionKefu Chai2018-07-121-0/+19
| | | | | | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* | install-deps.sh: import ubuntu-toolchain-r's key without keyserverKefu Chai2018-07-101-3/+17
|/ | | | | | | | | | | | | | | | we are running into following error recently gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com gpgkeys: key 1E9377A2BA9EF27F can't be retrieved gpg: no valid OpenPGP data found. gpg: Total number processed: 0 gpg: keyserver communications error: keyserver helper general error gpg: keyserver communications error: unknown pubkey algorithm gpg: keyserver receive failed: unknown pubkey algorithm so use the local copy of the pubkey instead Signed-off-by: Kefu Chai <kchai@redhat.com>
* Add new OpenSUSE Leap id for install-deps.shKyr Shatskyy2018-07-021-1/+1
| | | | Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
* install-deps: check the exit status for the $builddepcmdYunchuan Wen2018-06-241-0/+1
| | | | | | | in some case, the $builddepcmd will failed without any "error:" output. so we should check the exit status to handle it. Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
* Merge pull request #22488 from ai-traders/fix-gcc-installKefu Chai2018-06-101-3/+5
|\ | | | | | | | | install-deps.sh: fix installing gcc on ubuntu when no old compiler Reviewed-by: Kefu Chai <kchai@redhat.com>
| * install-deps: fix installing gcc on ubuntu when no old compilerTomasz Setkowski2018-06-091-3/+5
| | | | | | | | Signed-off-by: Tomasz Setkowski <tom@ai-traders.com>
* | install-deps.sh: support install gcc7 in xenial aarch64Yunchuan Wen2018-06-071-2/+2
| | | | | | | | Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
* | install-deps: nuke wheelhouse if it's staleKefu Chai2018-05-161-0/+7
| | | | | | | | | | | | | | | | otherwise, if we update *requirements.txt, and the wheelhouse fails to offer the newly added dependency, the setup-virtualenv.sh will fail the build. Signed-off-by: Kefu Chai <kchai@redhat.com>
* | install-deps: Add support for 'opensuse-tumbleweed'Ricardo Marques2018-04-251-1/+1
| | | | | | | | Signed-off-by: Ricardo Marques <rimarques@suse.com>
* | install-deps: add liblz4 to freebsd build dependenciesCasey Bodley2018-04-121-0/+1
| | | | | | | | Signed-off-by: Casey Bodley <cbodley@redhat.com>
* | FreeBSD: add new required packages to be installedWillem Jan Withagen2018-04-111-0/+2
|/ | | | Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
* mgr/dashboard: remove node/npm system installationTiago Melo2018-03-161-69/+0
| | | | | | | | | | Node and npm are now being installed in a virtualenv, removing the need of having it installed in the system or as a node dependency. Now, if you want to use npm, you just need to activate the virtualenv created on 'build/src/pybind/mgr/dashboard/node-env', and then you can execute the same commands as you did before. Signed-off-by: Tiago Melo <tmelo@suse.com>
* install-deps.sh: fix an error condition expressionYao Guotao2018-03-091-1/+1
| | | | Signed-off-by: Yao Guotao <yaoguot@gmail.com>
* install-deps: install dashboard_v2 development dependenciesRicardo Dias2018-03-051-0/+71
| | | | | Signed-off-by: Ricardo Dias <rdias@suse.com> Signed-off-by: Kai Wagner <kwagner@suse.com>
* Merge pull request #20436 from smithfarm/wip-22999Nathan Cutler2018-02-271-0/+5
|\ | | | | | | | | | | install-deps.sh: set python2 %bcond by environment Reviewed-by: Kefu Chai <kchai@redhat.com> Reviewed-by: Jan Fajerski <jfajerski@suse.com>
| * install-deps.sh: set python2 %bcond by environmentNathan Cutler2018-02-271-0/+5
| | | | | | | | | | | | | | If there is no /usr/bin/python2 we need to set %bcond_with python2. Fixes: http://tracker.ceph.com/issues/22999 Signed-off-by: Nathan Cutler <ncutler@suse.com>
* | scripts: install-deps.sh: pass --no-recommends to zypperNathan Cutler2018-02-141-2/+3
|/ | | | | Fixes: http://tracker.ceph.com/issues/22998 Signed-off-by: Nathan Cutler <ncutler@suse.com>
* cmake: remove cryptopp optionCasey Bodley2018-01-191-1/+0
| | | | Signed-off-by: Casey Bodley <cbodley@redhat.com>
* install-deps.sh: check if have access to stdoutKefu Chai2017-12-301-10/+7
| | | | | | | | $- is "hB" if launched via command line, and it is "himBH" only when we are actually *in* an interactive shell. so checking "test -t 1" is what we want. Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps: bump DTS version on aarch64 to 7Kefu Chai2017-12-301-1/+1
| | | | | | see https://bugs.centos.org/view.php?id=14078 Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps.sh: only download mirrored package indexwangsongbo2017-12-301-2/+2
| | | | | | | | | | | | E: Failed to fetch http://mirror.cs.uchicago.edu/ubuntu-toolchain-r/dists/xenial/main/binary-i386/Packages 404 Not Found E: Failed to fetch http://mirror.yandex.ru/mirrors/launchpad/ubuntu-toolchain-r/dists/xenial/main/i18n/Translation-en 404 Not Found [IP: 213.180.204.183 80] E: Some index files failed to download. They have been ignored, or old ones used instead. On Ubuntu amd64 installations, i386 is enabled as an additional architecture by default. apt & co. expect repositories to provide all configured architectures, which causes the error above. Signed-off-by: Songbo Wang <wangsongbo@cloudin.cn>
* install-deps.sh: do not download i18n apt indexKefu Chai2017-12-301-1/+1
| | | | | | | and do not fail the `apt-get update` command, if any mirror is not reachable. Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps.sh: use tee for writing a fileKefu Chai2017-12-141-1/+1
| | | | | | | | because the stdout redirect is performed by current shell not `$SUDO cat`, so $SUDO does not help here. use `$SUDO tee` instead, which is able to read the stdin and write to the given file just as expected. Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps.sh: avoid re-installing g++-7Kefu Chai2017-12-131-11/+19
| | | | | | | | | | | * add ubuntu-toolchain-r mirrors in case the ppa.launchpad.net is not accessible * add ppa repo manually, it's faster than installing `software-properties-common` and then launch `add-apt-repository` * hardwire $old to the gcc version shipped by the distro, simpler this way. Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps.sh: use GCC-7 on xenial alsoKefu Chai2017-12-111-2/+11
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps.sh: install new gcc as the default the right wayKefu Chai2017-12-091-5/+6
| | | | | | | | | * should install software-properties-common beforehand, otherwise the `add-apt-repository` command will not be available. * the update-alternative commandline were copied from ceph-build, should remove the escape characters. Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps.sh: enable testing repo on centos on aarch64Kefu Chai2017-12-081-2/+10
| | | | | | the DTS-6 is only available in the testing repo Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps.sh: use DTS on centos if GCC is too oldKefu Chai2017-12-081-6/+46
| | | | | | | | please note, run-make-check.sh sources install-deps.sh here to import the $PATH and other environmental variables, which could be changed by the the DTS "enable" script. Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps.sh: install centos-release-scl-rh on aarch64Kefu Chai2017-12-051-1/+6
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps.sh: use gcc-7 on trustyKefu Chai2017-12-051-1/+36
| | | | | | | * always install gcc-7 on trusty * point g++ to g++-7 if not yet Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps.sh: always use yum-config-manager for consistencyKefu Chai2017-12-051-2/+1
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* install-deps.sh: install devtoolset-7 for centos/rhelKefu Chai2017-12-051-2/+5
| | | | | | ready them for gcc7 and libstdc++-7 for better performance. Signed-off-by: Kefu Chai <kchai@redhat.com>
* scripts: fix bash path in shebangsAlan Somers2017-07-271-1/+2
| | | | | | | /bin/bash is a Linuxism. Other operating systems install bash to different paths. Use /usr/bin/env in shebangs to find bash. Signed-off-by: Alan Somers <asomers@gmail.com>