Commit 6b2247f1 authored by Frédéric Leroy's avatar Frédéric Leroy

build_helper: fix package version according to distribution

parent 02d321f9
...@@ -257,6 +257,7 @@ check_install_additional_tools (){ ...@@ -257,6 +257,7 @@ check_install_additional_tools (){
} }
check_install_oai_software() { check_install_oai_software() {
local specific_packages=""
if ! check_supported_distribution; then if ! check_supported_distribution; then
echo_error "Your distribution $(get_distribution_release) is not supported by oai !" echo_error "Your distribution $(get_distribution_release) is not supported by oai !"
exit 1 exit 1
...@@ -265,11 +266,17 @@ check_install_oai_software() { ...@@ -265,11 +266,17 @@ check_install_oai_software() {
$SUDO apt install -y software-properties-common $SUDO apt install -y software-properties-common
case "$(get_distribution_release)" in case "$(get_distribution_release)" in
"Ubuntu14.04") "Ubuntu14.04")
specific_packages="libtasn1-3-dev"
# For iperf3 # For iperf3
$SUDO add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty-backports universe" $SUDO add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty-backports universe"
$SUDO apt-get update $SUDO apt-get update
;;
"Ubuntu16.04")
specific_packages="libtasn1-6-dev"
;;
esac esac
$SUDO apt-get install -y \ $SUDO apt-get install -y \
$specific_packages \
autoconf \ autoconf \
automake \ automake \
bison \ bison \
...@@ -310,7 +317,6 @@ check_install_oai_software() { ...@@ -310,7 +317,6 @@ check_install_oai_software() {
libsctp1 \ libsctp1 \
libsctp-dev \ libsctp-dev \
libssl-dev \ libssl-dev \
libtasn1-3-dev \
libtool \ libtool \
libusb-1.0-0-dev \ libusb-1.0-0-dev \
libxml2 \ libxml2 \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment