From aca4ba4dd15274aaa70b8c927515d1e74c740d0c Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Tue, 28 Aug 2018 13:00:55 -0700 Subject: [PATCH] test/vm_setup: fix yum-deprectad for fc28 with vpp Change-Id: I6608725c031daff6f6d59ced0c327f19b6eea979 Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/423755 Tested-by: SPDK CI Jenkins Chandler-Test-Pool: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- test/common/config/vm_setup.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/common/config/vm_setup.sh b/test/common/config/vm_setup.sh index 519185c9e..f3874697f 100755 --- a/test/common/config/vm_setup.sh +++ b/test/common/config/vm_setup.sh @@ -281,6 +281,25 @@ cd ~ if echo $CONF | grep -q vpp; then # Vector packet processing (VPP) is installed for use with iSCSI tests. + # At least on fedora 28, the yum setup that vpp uses is deprecated and fails. + # The actions taken under the vpp_setup script are necessary to fix this issue. + if [ -d vpp_setup ]; then + echo "vpp setup already done." + else + echo "%_topdir $HOME/vpp_setup/src/rpm" >> ~/.rpmmacros + sudo dnf install perl-generators + mkdir -p ~/vpp_setup/src/rpm + cd ~/vpp_setup/src/rpm + mkdir -p BUILD RPMS SOURCES SPECS SRPMS + dnf download --source redhat-rpm-config + rpm -ivh redhat-rpm-config* + sed -i s/"Requires: (annobin if gcc)"//g SPECS/redhat-rpm-config.spec + rpmbuild -ba SPECS/*.spec + sudo dnf remove -y --noautoremove redhat-rpm-config + sudo rpm -Uvh RPMS/noarch/* + cd - + fi + if [ -d vpp ]; then echo "vpp already cloned." if [ ! -d vpp/build-root ]; then