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]b759b17557
Type: fix Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: Ic1402e671eb1d70dec429bab82ad18d8251f4eef (cherry picked from commit1affb31ef5
)
This commit is contained in:
3
Makefile
3
Makefile
@ -286,7 +286,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)
|
||||
|
Reference in New Issue
Block a user