From c79a950fe4d5092c167f1563cd10c3490c7c1ff2 Mon Sep 17 00:00:00 2001 From: Maciej Wawryk Date: Tue, 14 Jan 2020 12:48:32 +0100 Subject: [PATCH] scripts/pkgdep.sh: Fix NASM dependencies Ubuntu Add information about missing dependencies for Ubuntu versions smaller than 19. Signed-off-by: Maciej Wawryk Change-Id: I776d93e156c07c618df9cb5eeb99c0ca8f78e388 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/598 Tested-by: SPDK CI Jenkins Reviewed-by: Aleksey Marchuk Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki Reviewed-by: Shuhei Matsumoto --- scripts/pkgdep.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/pkgdep.sh b/scripts/pkgdep.sh index 98b02135c..6c9dfd0f2 100755 --- a/scripts/pkgdep.sh +++ b/scripts/pkgdep.sh @@ -102,7 +102,13 @@ elif [ -f /etc/debian_version ]; then "Note: Some SPDK CLI dependencies could not be installed." # Additional dependencies for DPDK - apt-get install -y libnuma-dev nasm + if [[ $NAME == "Ubuntu" ]] && [[ $VERSION_ID_NUM -lt 1900 ]]; then + echo "Ubuntu $VERSION_ID needs NASM version 2.13.03 for DPDK but is not in the mainline repository." + echo "You can install it manually" + else + apt-get install -y nasm + fi + apt-get install -y libnuma-dev # Additional dependencies for ISA-L used in compression apt-get install -y autoconf automake libtool help2man if [[ $INSTALL_DEV_TOOLS == "true" ]]; then