Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add script support for CentOS 8 move to PR 9475 #9361

Closed
wants to merge 8 commits into from
3 changes: 1 addition & 2 deletions scripts/eosio_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ echo "$( date -u )"
echo "User: ${CURRENT_USER}"
# echo "git head id: %s" "$( cat .git/refs/heads/master )"
echo "Current branch: $( execute git rev-parse --abbrev-ref HEAD 2>/dev/null )"

( [[ ! $NAME == "Ubuntu" ]] && [[ ! $ARCH == "Darwin" ]] ) && set -i # Ubuntu doesn't support interactive mode since it uses dash + Some folks are having this issue on Darwin; colors aren't supported yet anyway
( [[ ! $NAME == "Ubuntu" ]] && [[ ! $ARCH == "Darwin" ]] && [[ ! $NAME == "CentOS Linux" ]]) && set -i # Ubuntu doesn't support interactive mode since it uses dash + Some folks are having this issue on Darwin; colors aren't supported yet anyway

# Ensure sudo is available (only if not using the root user)
ensure-sudo
Expand Down
9 changes: 9 additions & 0 deletions scripts/eosio_build_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ echo "Disk space available: ${DISK_AVAIL}G"

echo ""

if [[ "$(echo ${VERSION} | sed 's/ .*//g')" == 7 ]]; then
# Repo necessary for rh-python3, devtoolset-8 and llvm-toolset-7.0
ensure-scl
# GCC8 for Centos / Needed for CMAKE install even if we're pinning
Expand All @@ -23,6 +24,14 @@ if [[ -d /opt/rh/devtoolset-8 ]]; then
fi
# Ensure packages exist
ensure-yum-packages "${REPO_ROOT}/scripts/eosio_build_centos7_deps"
fi

if [[ "$(echo ${VERSION} | sed 's/ .*//g')" == 8 ]]; then
echo "Install Development Tools ..."
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf group install -y "Development Tools"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as is, these will require the script to run as root

fi

export PYTHON3PATH="/opt/rh/rh-python36"
if $DRYRUN || [ -d $PYTHON3PATH ]; then
echo "${COLOR_CYAN}[Enabling python36]${COLOR_NC}"
Expand Down