Page MenuHomeFreeBSD

Add srtp flavor to asterisk13 to generate a binary package with SRTP support
AbandonedPublic

Authored by madpilot on Feb 10 2018, 7:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 17 2024, 1:40 AM
Unknown Object (File)
Jan 1 2024, 12:49 AM
Unknown Object (File)
Nov 6 2023, 7:07 PM
Unknown Object (File)
Oct 24 2023, 2:38 AM
Unknown Object (File)
Sep 11 2023, 10:10 PM
Unknown Object (File)
Jul 9 2023, 4:38 PM
Unknown Object (File)
Jun 20 2023, 7:07 PM
Unknown Object (File)
May 21 2023, 1:40 AM
Subscribers

Details

Reviewers
None
Group Reviewers
portmgr
Summary

I'd like the asterisk port to also generate a flavor witht he SRTP
option turned on.

I don't fdeel comfortable simply enabling the SRTP option by default
die to the problems described in UPDATING entries 20150323 and
20150506, due to non trivial interactions with other ports.

Having two flavors would at least leave the normal one working in
such a situation.

Test Plan

Port already works when correctly compiled with SRTP support

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 14919
Build 15031: arc lint + arc unit

Event Timeline

madpilot retitled this revision from Add strp flavor to asteri13 to generate a binary package with SRTP support to Add strp flavor to asterisk13 to generate a binary package with SRTP support.Feb 21 2018, 10:27 AM

Why not simply add it to the default options ?

In D14292#303087, @mat wrote:

Why not simply add it to the default options ?

Well when I did that in the past it ended up causing a broken binary(as in dumping core on startup) to be generated on 9.x due to modules dependencies being linked to different ssl libraries. Main problem was libcurl linking to ports provided SSL, through a dependency of it's own. (see UPDATING 20150323 and 20150506)

I think the curl issue is solved, but I'd like to decouple the option to avoid braking the main port for everyone.

I'd like to enable the option by default actually, but I'm not completely sure the underlying issue is fixed for good. This would be a good way to test this too, without creating too much problems.

madpilot retitled this revision from Add strp flavor to asterisk13 to generate a binary package with SRTP support to Add srtp flavor to asterisk13 to generate a binary package with SRTP support.

After some more tests and thought I agree this is better done with the option in the unflavored port.

Creating a flavor also brings problems with dependencies which I did not foresee.

Thanks for having taken a look at this!

In D14292#303087, @mat wrote:

Why not simply add it to the default options ?

Well when I did that in the past it ended up causing a broken binary(as in dumping core on startup) to be generated on 9.x due to modules dependencies being linked to different ssl libraries. Main problem was libcurl linking to ports provided SSL, through a dependency of it's own. (see UPDATING 20150323 and 20150506)

I think the curl issue is solved, but I'd like to decouple the option to avoid braking the main port for everyone.

I'd like to enable the option by default actually, but I'm not completely sure the underlying issue is fixed for good. This would be a good way to test this too, without creating too much problems.

There are only two ports that always link to the base openssl, it is pkg (because no dependency) and net-snmp because it links with libpkg and mixing ssl variants is bad.

There are no ports that will forcefully install and like with ports openssl.

(I know, I cleaned up everything)

In D14292#303378, @mat wrote:

There are only two ports that always link to the base openssl, it is pkg (because no dependency) and net-snmp because it links with libpkg and mixing ssl variants is bad.

There are no ports that will forcefully install and like with ports openssl.

(I know, I cleaned up everything)

Thanks for clearing that up...both my doubt in this comment and, most important, doing the actual cleanup!