summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2020-12-08 10:50:08 -0500
committerFlorin Coras <florin.coras@gmail.com>2020-12-08 20:39:07 +0000
commit1affb31ef528dcbc90b718bd70a9882a4225a385 (patch)
treebad79d5806c624593556f224a22a4fbae10262f7
parentbb3befceee2b9849c236f712e6991a92224b5136 (diff)
build: fix centos-8 'make install-deps' enable PowerTools repo
- The name of the powertools repo was changed [0] in centos-8 from 'PowerTools' to 'powertools'. Retrieve the correct name from 'dnf repolist all' instead of hard coding it. [0] https://git.centos.org/rpms/centos-repos/c/b759b17557b9577e8ea156740af0249ab1a22d70 Type: fix Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: Ic1402e671eb1d70dec429bab82ad18d8251f4eef
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aaba277ec28..99c14081273 100644
--- a/Makefile
+++ b/Makefile
@@ -284,7 +284,8 @@ ifeq ($(OS_ID),rhel)
@sudo -E debuginfo-install $(CONFIRM) glibc openssl-libs mbedtls-devel zlib
else ifeq ($(OS_ID)-$(OS_VERSION_ID),centos-8)
@sudo -E dnf install $(CONFIRM) dnf-plugins-core epel-release
- @sudo -E dnf config-manager --set-enabled PowerTools
+ @sudo -E dnf config-manager --set-enabled \
+ $(shell dnf repolist all 2>/dev/null|grep -i powertools|cut -d' ' -f1)
@sudo -E dnf groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
@sudo -E dnf install $(CONFIRM) $(RPM_DEPENDS)
else ifeq ($(OS_ID),centos)