[asterisk-bugs] [JIRA] (ASTERISK-27709) [patch] BuildSystem: Avoid == for comparison in ./configure.
Alexander Traud (JIRA)
noreply at issues.asterisk.org
Fri Mar 2 04:43:13 CST 2018
Alexander Traud created ASTERISK-27709:
------------------------------------------
Summary: [patch] BuildSystem: Avoid == for comparison in ./configure.
Key: ASTERISK-27709
URL: https://issues.asterisk.org/jira/browse/ASTERISK-27709
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Core/BuildSystem
Affects Versions: 15.2.1, 13.19.2
Environment: NetBSD 7.1.1
Reporter: Alexander Traud
Severity: Minor
Attachments: test_jansson.patch
With Asterisk 12 and commit [cf9324b|http://github.com/asterisk/asterisk/commit/cf9324b25eb8a7dc5cef77f54e12758dfbcd6645], the external library Jansson got a required dependency. Therefore, the script {{./configure}} tests and stops when that library is not present . Because of a typo, that test fails in some shells, for example in the default shell of NetBSD 7.1.1.
*Steps to Reproduce*
{code}ftp http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar -zxf asterisk-*
cd asterisk-*
export PKG_PATH=ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/7.1.1/All
pkg_add gmake pkg-config editline jansson sqlite3 libuuid libxml2
CFLAGS="-I/usr/pkg/include" LDFLAGS="-L/usr/pkg/lib" ./configure --without-pjproject-bundled{code}
*Expected Results*
The script {{./configure}} should succeed without any warning or error.
*Actual Results*
{code}test: ==: unexpected operator{code}
*Notes*
The attached patch does not simply change the '==' to '=' but uses the PBX_ test for consistency with the rest of the code. The short-term workaround is to install the Jansson library which avoids that error. The same issue was already found/posted two years ago in December 2015 by John Nemeth, member of the NetBSD team.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list