mirror of https://github.com/sipwise/rtpengine.git
utils/build_deps.sh with its gdebi usage doesn't support our needs, so switch to mk-build-deps instead and apply some needed workarounds to successfully run on Travis environment, which uses Ubuntu xenial/16.04 LTS: * The Build-Depends changes from commitschanges/76/40276/20fc0c4732
and2868fc6f5
didn't have Ubuntu xenial/16.04 LTS in mind * Commit1f10dc30d
introduced a RELEASE_DATE handling that's not supported by dpkg-parsechangelog on Ubuntu xenial/16.04 LTS Change-Id: I5cd4e63e686d906b622eb965ba8e539ece01c53b
parent
64e6bf440b
commit
e580c7c7f8
@ -1,22 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# build_deps script for travis CI
|
||||
# installs the build_deps packages needed to build Kamailio
|
||||
# environment based on Ubuntu 12.04 LTS (precise)
|
||||
#
|
||||
BASE_DIR=${1:-$(pwd)}
|
||||
CONTROL_FILE="${BASE_DIR}/debian/control"
|
||||
if ! [ -f "${CONTROL_FILE}" ]; then
|
||||
echo "Error: No ${CONTROL_FILE} found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BUILD_DEPS=($(/usr/bin/gdebi --quiet --non-interactive \
|
||||
--option=APT::Install-Recommends=false \
|
||||
--apt-line "${CONTROL_FILE}"))
|
||||
if [ ${#BUILD_DEPS[@]} -eq 0 ]; then
|
||||
echo "Error: no build deps packages resolved"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
apt-get install -y "${BUILD_DEPS[@]}"
|
Loading…
Reference in new issue