From: Corey Farrell Date: Mon, 10 Sep 2018 15:12:55 +0000 (-0400) Subject: install_prereq: Remove unpackaged version of jansson. X-Git-Tag: 17.0.0-rc1~374^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=246c39e46c5f5bd629623720ca3c8779abc1a28f;p=thirdparty%2Fasterisk.git install_prereq: Remove unpackaged version of jansson. This is removed in favor of ./configure --with-jansson-bundled. The install-unpackaged command would only install jansson once, so once installed it would never update, where the bundled copy will be kept up to date. Change-Id: Ideab1f65419608d3795aa608e9da873823cc42d3 --- diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq index dfeb36f2ce..c3217033db 100755 --- a/contrib/scripts/install_prereq +++ b/contrib/scripts/install_prereq @@ -164,8 +164,6 @@ PACKAGES_DBSD="$PACKAGES_DBSD bzip2 patch python" KVERS=`uname -r` -JANSSON_VER=2.11 - case "$1" in test) testcmd=echo @@ -349,22 +347,6 @@ install_unpackaged() { cd .. fi - # Only install Jansson if it wasn't installed via package - if ! test -f /usr/include/jansson.h; then - echo "*** Installing jansson ***" - wget -O - http://www.digip.org/jansson/releases/jansson-${JANSSON_VER}.tar.gz | zcat | tar -xf - - cd jansson-${JANSSON_VER} - ./configure - make all install - cd .. - if test -d /etc/ld.so.conf.d; then - echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local.conf - else # for example: Slackware 14.2 - echo "/usr/local/lib" > /etc/ld.so.conf - fi - /sbin/ldconfig - fi - # Only install libsrtp2 if it wasn't installed via package if ! test -f /usr/include/srtp/srtp.h; then if ! test -f /usr/include/srtp2/srtp.h; then