Skip to content

Commit 1affb31

Browse files
dwallacelfflorincoras
authored andcommitted
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
1 parent bb3befc commit 1affb31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ ifeq ($(OS_ID),rhel)
284284
@sudo -E debuginfo-install $(CONFIRM) glibc openssl-libs mbedtls-devel zlib
285285
else ifeq ($(OS_ID)-$(OS_VERSION_ID),centos-8)
286286
@sudo -E dnf install $(CONFIRM) dnf-plugins-core epel-release
287-
@sudo -E dnf config-manager --set-enabled PowerTools
287+
@sudo -E dnf config-manager --set-enabled \
288+
$(shell dnf repolist all 2>/dev/null|grep -i powertools|cut -d' ' -f1)
288289
@sudo -E dnf groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
289290
@sudo -E dnf install $(CONFIRM) $(RPM_DEPENDS)
290291
else ifeq ($(OS_ID),centos)

0 commit comments

Comments
 (0)