[asterisk-bugs] [JIRA] (ASTERISK-27709) [patch] BuildSystem: Avoid == for comparison in ./configure.

Friendly Automation (JIRA) noreply at issues.asterisk.org
Mon Mar 5 12:17:13 CST 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242441#comment-242441 ] 

Friendly Automation commented on ASTERISK-27709:
------------------------------------------------

Change 8400 merged by Joshua Colp:
BuildSystem: Avoid == for comparison in ./configure.

[https://gerrit.asterisk.org/8400|https://gerrit.asterisk.org/8400]

> [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: 13.19.2, 15.2.1
>         Environment: NetBSD 7.1.1
>            Reporter: Alexander Traud
>            Assignee: Alexander Traud
>            Severity: Minor
>              Labels: patch
>         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="http://cdn.NetBSD.org/pub/pkgsrc/packages/$(uname -s)/$(uname -p)/$(uname -r)/All"
> pkg_add gcc7 gmake pkg-config editline jansson sqlite3 libuuid libxml2 wget mozilla-rootcerts
> mozilla-rootcerts install
> CC="/usr/pkg/gcc7/bin/gcc" CXX="/usr/pkg/gcc7/bin/g++" CFLAGS="-I/usr/pkg/include" LDFLAGS="-L/usr/pkg/lib" ./configure{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