[asterisk-commits] CI: Use bundled jansson if needed. (asterisk[16])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 24 10:51:24 CDT 2018


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/9650 )

Change subject: CI: Use bundled jansson if needed.
......................................................................

CI: Use bundled jansson if needed.

Use pkg-config to determine if jansson is at least 2.11, enabled bundled
version otherwise.

Change-Id: Ib555a8b72ff6f6925f9280ef035caa0b91ca4bd2
---
M tests/CI/buildAsterisk.sh
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Jenkins2: Looks good to me, approved; Approved for Submit



diff --git a/tests/CI/buildAsterisk.sh b/tests/CI/buildAsterisk.sh
index b48da23..5cf7a46 100755
--- a/tests/CI/buildAsterisk.sh
+++ b/tests/CI/buildAsterisk.sh
@@ -58,9 +58,11 @@
 runner ulimit -a
 
 MAKE=`which make`
+PKGCONFIG=`which pkg-config`
 [ -d /usr/lib64 ] && _libdir=/usr/lib64
 
 common_config_args="--prefix=/usr ${_libdir:+--libdir=${_libdir}} --sysconfdir=/etc --with-pjproject-bundled"
+$PKGCONFIG 'jansson >= 2.11' || common_config_args+=" --with-jansson-bundled"
 common_config_args+=" ${CACHE_DIR:+--with-sounds-cache=${CACHE_DIR}/sounds --with-externals-cache=${CACHE_DIR}/externals}"
 common_config_args+=" --enable-dev-mode"
 export WGET_EXTRA_ARGS="--quiet"

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

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib555a8b72ff6f6925f9280ef035caa0b91ca4bd2
Gerrit-Change-Number: 9650
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20180724/a38f0b1b/attachment.html>


More information about the asterisk-commits mailing list