[asterisk-dev] [Code Review] 2414: install_prereq: Build jansson from source, when necessary

David Lee reviewboard at asterisk.org
Tue Mar 26 13:17:05 CDT 2013



> On March 26, 2013, 11:11 a.m., Shaun Ruffell wrote:
> > /trunk/contrib/scripts/install_prereq, line 116
> > <https://reviewboard.asterisk.org/r/2414/diff/1/?file=35034#file35034line116>
> >
> >     Perhaps add a default JANSSON_VER if one isn't provided by the environment?

That must have been left out of the diff. Will fix.


- David


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2414/#review8138
-----------------------------------------------------------


On March 25, 2013, 9:36 a.m., David Lee wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2414/
> -----------------------------------------------------------
> 
> (Updated March 25, 2013, 9:36 a.m.)
> 
> 
> Review request for Asterisk Developers, Jason Parker and Matt Jordan.
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> When r383579 was committed, it made Jansson a required dependency.
> 
> While libjansson-dev and jansson-devel are available on recent
> distros, some older (but still supported) distros don't have
> it. There's a pull request[1] to get it into repoforge, but that still
> doesn't help everyone. (And helps no one until the pull request is
> merged and packages are built).
> 
> This patch adds Jansson install from source to the install_unpackaged()
> function. There are a few gotcha's, which makes this change not
> completely trivial.
> 
>  * Since Jansson may be installed by a package, don't install from
>    source if a package installation can be found
>    * libresample may also be installed via package, so I added a
>      similar check to that.
>  * Since Jansson installs into /usr/local, this patch also adds
>    /usr/local/lib to /etc/ld.so.conf.d so that the library can be
>    found.
>    * The alternative was to install into /usr, but then it gets
>      complicated having to deal with EL's /usr/lib{32,64} shenanigans.
> 
>  [1]: https://github.com/repoforge/rpms/pull/250
> 
> 
> Diffs
> -----
> 
>   /trunk/contrib/scripts/install_prereq 383747 
> 
> Diff: https://reviewboard.asterisk.org/r/2414/diff/
> 
> 
> Testing
> -------
> 
> Ran script on CentOS 5 and 6; it seemed to do the right thing.
> 
> 
> Thanks,
> 
> David Lee
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130326/26ca8c7a/attachment.htm>


More information about the asterisk-dev mailing list