<div dir="ltr"><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 19, 2016 at 9:41 AM, Jared Smith <span dir="ltr"><<a href="mailto:jaredsmith@jaredsmith.net" target="_blank">jaredsmith@jaredsmith.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Jan 19, 2016 at 9:30 AM, George Joseph <span dir="ltr"><<a href="mailto:george.joseph@fairview5.com" target="_blank">george.joseph@fairview5.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I understand the packaging issue and I'd like to hear from packagers like Jared Smith. </blockquote><div><br></div></span><div>Not sure what to say here -- bundling pjproject with Asterisk causes me a world of hurt from a packaging standpoint. Having them as separate projects makes my job as a packager much much easier.<br></div></div></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif;display:inline">Understood</div></div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif;display:inline"></div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">We could simply require a specific version of Asterisk to be statically linked to a specific version of pjproject and let the packaging process insure it's there. For rpms, a BuildRequires would do that. There's be no runtime dependency after that.</blockquote></span></div><br></div><div class="gmail_extra">And a "Requires:" would force that particular version to be present to install the package -- but you're right -- it doesn't enforce it at *run time*.<br></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">We already have a --with-pjproject=PATH option in ./configure which I'd default to the one in asterisk/third_party but you could choose any path. The only real difference is that we're always statically linking rather than dynamically linking. If you don't change the path, the Asterisk build would (smartly) download and build the approved version.<br></div></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><div class="gmail_default">So for RH packages, you already have a separate sub-package for pjsip. You'd add a BuildRequires: pjproject-devel = 2.4.5 (or whatever the Asterisk-approved version is) and set the --with-pjproject path to the system path and build as normal. No third_party stuff gets downloaded or built.</div><div class="gmail_default"><br></div><div class="gmail_default">Either way, we've locked Asterisk to a specific, approved version.</div><div class="gmail_default"><br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">If there are things that I can do from a packaging standpoint to make things easier (either on the pjproject side or the Asterisk side) of the Fedora/RHEL/CentOS packages, please don't hesitate to reach out to me. I've already made one change last week (that George asked me to make), and I'd be happy to make more. I just don't play with Asterisk and pjproject every day like I once could, so I often miss out on the little nuances these days :-/<br><br>--<br></div><div class="gmail_extra">Jared Smith<br></div></div>
<br></blockquote><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">Yep, thanks for that!</div></div><div> </div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">Even if we don't change anything, the one thing you might have to check is the possible dependence between res_rtp_asterisk and pjproject.</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div></div></div></div></div>