[Asterisk-code-review] install prereq: Remove unpackaged version of jansson. (asterisk[16])

Corey Farrell asteriskteam at digium.com
Mon Sep 10 10:28:18 CDT 2018


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/10065


Change subject: install_prereq: Remove unpackaged version of jansson.
......................................................................

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
---
M contrib/scripts/install_prereq
1 file changed, 0 insertions(+), 16 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/65/10065/1

diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq
index dfeb36f..b8e977f 100755
--- a/contrib/scripts/install_prereq
+++ b/contrib/scripts/install_prereq
@@ -349,22 +349,6 @@
 		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

-- 
To view, visit https://gerrit.asterisk.org/10065
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ideab1f65419608d3795aa608e9da873823cc42d3
Gerrit-Change-Number: 10065
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180910/8052297b/attachment-0001.html>


More information about the asterisk-code-review mailing list