Skip to content

Commit

Permalink
fix(centos): build for centos 8 and update centos 7 deps
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbertoli committed Oct 28, 2019
1 parent 9b4afcc commit d69a530
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion matrix.csv
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ archlinux/base,latest,2017.7,git,2

# CENTOS
centos,8,master,git,3
centos,8,2019.2,stable,3
# There are no RPM's for Centos8 https://repo.saltstack.com/yum/redhat/
# centos,8,2019.2,stable,3
centos,8,2019.2,git,3
centos,7,2019.2,stable,3
centos,7,2019.2,stable,2
centos,7,2018.3,stable,2
Expand Down
16 changes: 8 additions & 8 deletions scripts/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ case ${OS} in
dpkg-reconfigure -f noninteractive locales
;;
centos)
# This is a quick fix for https://github.com/saltstack/salt-bootstrap/issues/1371
# No other stanza uses `python34` and current centos 7 & 8 have python3 packages
# FIXME: modifying this here is really, really, really horrible and messy
sed -i "s/python34/python3/g" /tmp/saltbootstrap.sh

C_PKGS="${COMMON_PKGS} openssh-server openssh-clients which epel-release"

yum -y update && yum -y install ${C_PKGS}

if [ "${PY_VER}" = "3" ]; then
if [ "${SALT_VER}" = "develop" ]; then
PY_PKGS="python34 python34-pip python34-devel openssl-devel gcc-g++ zeromq zeromq-devel"
# The bootstrapper script only installs python3.4 packages
# and searches for *3 binaries, which do not exist on the python3.4 packages
ln -s /usr/bin/python3.4 /usr/bin/python3
ln -s /usr/bin/pip3.4 /usr/bin/pip3
else
PY_PKGS="python36 python36-pip"
PY_PKGS="python3 python3-pip python3-devel openssl-devel swig"
if [ "${OS_VER}" = "7" ]; then
PY_PKGS="${PY_PKGS} gcc-g++ zeromq zeromq-devel"
fi
else # py2
if [ "${OS_VER}" = "7" ]; then
Expand Down

0 comments on commit d69a530

Please sign in to comment.