From 66c590e0b4d1c799a699b093204bb605486e0056 Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Sun, 6 Nov 2022 14:37:20 +0100 Subject: [PATCH] pkgdep/rhel: Upgrade pip under centos8, rocky8 Do this prior installing any pip package to make sure they are stable. Signed-off-by: Michal Berger Change-Id: I842252fe33b62dddd16858806a7d334cf2139fac Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15292 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Karol Latecki Reviewed-by: Tomasz Zawadzki Reviewed-by: Kamil Godzwon Reviewed-by: Pawel Piatek Reviewed-by: Konrad Sztyber --- scripts/pkgdep/rhel.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/pkgdep/rhel.sh b/scripts/pkgdep/rhel.sh index 131569603..d17b043b6 100755 --- a/scripts/pkgdep/rhel.sh +++ b/scripts/pkgdep/rhel.sh @@ -96,6 +96,12 @@ if echo "$ID $VERSION_ID" | grep -E -q 'centos 8|rhel 8|rocky 8'; then if [[ ! -e /usr/bin/python && -e /etc/alternatives/python3 ]]; then ln -s /etc/alternatives/python3 /usr/bin/python fi + # pip3, which is shipped with centos8 and rocky8, is currently providing faulty ninja binary + # which segfaults at each run. To workaround it, upgrade pip itself and then use it for each + # package - new pip will provide ninja at the same version but with the actually working + # binary. + pip3 install --upgrade pip + pip3() { /usr/local/bin/pip "$@"; } else yum install -y python python3-devel fi