From f32ee10de8f455bdeac16cfa511f56881ea6c89f Mon Sep 17 00:00:00 2001
From: Anh Nguyen-Tuong <zenpoems@gmail.com>
Date: Tue, 19 Mar 2019 22:05:20 -0400
Subject: [PATCH] realpath is not a valid package on ubuntu 18

---
 get-peasoup-packages.sh | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/get-peasoup-packages.sh b/get-peasoup-packages.sh
index 1fdbd76d2..8e2e666c0 100755
--- a/get-peasoup-packages.sh
+++ b/get-peasoup-packages.sh
@@ -17,12 +17,24 @@ BASE_PKGS="
   gcc-multilib
   g++-multilib
   autoconf
-  realpath
+  apt-libjsoncpp-dev
   apt-libelf-dev
   yum-libelf-devel
   libstdc++6:i386
   coreutils
-  makeself"
+  makeself
+  "
+
+# realpath is not a candidate install package on u18
+platform=$(lsb_release -d -s)
+case "$platform" in
+	Ubuntu?18*)
+		;;
+	*)
+		BASE_PKGS="$BASE_PKGS realpath"
+		;;
+esac
+
 
 #
 # base (ld):
@@ -86,7 +98,7 @@ install_packs()
 	which apt-get 1> /dev/null 2> /dev/null 
 	if [[ $? == 0  ]]; then
 		cmd="sudo apt-get install -y --ignore-missing $apters"
-		sudo apt-get install -y --ignore-missing $apters
+		sudo apt-get -y --ignore-missing install $apters
 	else
 		sudo yum install -y --skip-broken $yummers
 	fi
-- 
GitLab