Closed
Bug 792325
Opened 13 years ago
Closed 13 years ago
Import libsrtp from alder to m-c
Categories
(Core :: WebRTC: Networking, defect)
Core
WebRTC: Networking
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: jesup, Assigned: jesup)
References
Details
(Whiteboard: [WebRTC], [blocking-webrtc+], [qa-])
Attachments
(3 files, 1 obsolete file)
|
594.19 KB,
patch
|
Biesinger
:
review+
|
Details | Diff | Splinter Review |
|
8.62 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
|
26.80 KB,
patch
|
Biesinger
:
review+
|
Details | Diff | Splinter Review |
We need to import libsrtp. Since this is an external 3rd-party library, preference would be to import it directly and not via webrtc.org (counter-argument is that Google has been patching libsrtp in their repo, at least a little, and it guarantees we're roughly in sync).
If imported, the obvious place would be netwerk/srtp
| Assignee | ||
Comment 1•13 years ago
|
||
| Assignee | ||
Comment 2•13 years ago
|
||
| Assignee | ||
Comment 3•13 years ago
|
||
Those patches assume independent import
Note that due to -pedantic, we get warnings from srtp_priv.h with that that we don't with the gyp version.
This will need a set of patches-for-upstreaming (which I can do as a libsrtp maintainer)
Comment 4•13 years ago
|
||
(In reply to Randell Jesup [:jesup] from comment #3)
> This will need a set of patches-for-upstreaming (which I can do as a libsrtp
> maintainer)
In the short term, we can just strip the -pedantic flag. See bug 786372.
| Assignee | ||
Comment 5•13 years ago
|
||
| Assignee | ||
Updated•13 years ago
|
Attachment #662432 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•13 years ago
|
||
| Assignee | ||
Updated•13 years ago
|
Attachment #662537 -
Attachment description: Build libsrtp in mozilla's system, and update script → Patch 1: Build libsrtp in mozilla's system, and update script
Attachment #662537 -
Flags: review?(ted.mielczarek)
| Assignee | ||
Comment 7•13 years ago
|
||
Comment on attachment 662433 [details] [diff] [review]
Patch 2: external import of libsrtp from CVS Wed Sep 19 01:02:00 EDT 2012
Straight import from srtp CVS repo; patches for upstreaming are on another patch
Attachment #662433 -
Attachment description: external import of libsrtp from CVS Wed Sep 19 01:02:00 EDT 2012 → Patch 2: external import of libsrtp from CVS Wed Sep 19 01:02:00 EDT 2012
Attachment #662433 -
Flags: review?(cbiesinger)
| Assignee | ||
Comment 8•13 years ago
|
||
Comment on attachment 662542 [details] [diff] [review]
Patch 3: patches from jingle's archive of libsrtp for upstreaming (or replacing with an upstream update)
Patches for upstreaming - these make it match the webrtc.org archive exactly; I plan to update the upstream from these patches and the list of patches Android is carrying against libsrtp (see the dependent bug here for a link to the ~10 patches they have, some of which are identical to pieces of this patch - but not all are mirrored in this patch). Some of those also indicate the bugs behind some of replay-check changes here (mostly having to do with wraparounds of sequence numbers)
As I'm a libsrtp maintainer, I'll be doing the upstreaming and then we'll drop this patch when we import the update.
Attachment #662542 -
Attachment description: patches from jingle's archive of libsrtp for upstreaming (or replacing with an upstream update) → Patch 3: patches from jingle's archive of libsrtp for upstreaming (or replacing with an upstream update)
Attachment #662542 -
Flags: review?(cbiesinger)
Comment 9•13 years ago
|
||
Comment on attachment 662537 [details] [diff] [review]
Patch 1: Build libsrtp in mozilla's system, and update script
Review of attachment 662537 [details] [diff] [review]:
-----------------------------------------------------------------
::: netwerk/srtp/src/Makefile.in
@@ +2,5 @@
> +# This Source Code Form is subject to the terms of the Mozilla Public
> +# License, v. 2.0. If a copy of the MPL was not distributed with this
> +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
> +
> +DEPTH = ../../..
DEPTH = @DEPTH@
@@ +5,5 @@
> +
> +DEPTH = ../../..
> +topsrcdir = @top_srcdir@
> +srcdir = @srcdir@
> +VPATH = \
Just use one space before and after the =.
@@ +29,5 @@
> +
> +EXPORTS_NAMESPACES = mozilla/net
> +
> +ifdef GNU_CC
> +OS_CFLAGS := $(filter-out -pedantic,$(OS_CFLAGS))
We should probably add a makefile var for this, like NO_PEDANTIC := 1
@@ +32,5 @@
> +ifdef GNU_CC
> +OS_CFLAGS := $(filter-out -pedantic,$(OS_CFLAGS))
> +endif
> +
> +CSRCS = \
:=
@@ +103,5 @@
> +DEFINES += \
> + -DHAVE_WINSOCK2_H=1 \
> + -Dinline=__inline \
> + $(NULL)
> +endif
The pile of defines here kind of sucks. Can we get better detection integrated upstream, or are we stuck with this?
Attachment #662537 -
Flags: review?(ted.mielczarek) → review+
Comment 10•13 years ago
|
||
Comment on attachment 662542 [details] [diff] [review]
Patch 3: patches from jingle's archive of libsrtp for upstreaming (or replacing with an upstream update)
rs=biesi, I trust that these changes make sense though if you want me to do an actual review you'll have to explain them to me
Attachment #662542 -
Flags: review?(cbiesinger) → review+
Comment 11•13 years ago
|
||
Comment on attachment 662433 [details] [diff] [review]
Patch 2: external import of libsrtp from CVS Wed Sep 19 01:02:00 EDT 2012
rs=biesi
+++ b/netwerk/srtp/srtp_update.log
Should probably only have one entry in here
Attachment #662433 -
Flags: review?(cbiesinger) → review+
Updated•13 years ago
|
Whiteboard: [WebRTC], [blocking-webrtc+]
| Assignee | ||
Comment 12•13 years ago
|
||
| Assignee | ||
Comment 13•13 years ago
|
||
FYI, this was approved by gerv a while ago and the license is already in licenses.html
Comment 14•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/765f725ff419
https://hg.mozilla.org/mozilla-central/rev/5691ca0b22ba
https://hg.mozilla.org/mozilla-central/rev/50ec63e18d1a
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Comment 15•13 years ago
|
||
Just my opinion, but this needs to be backed out of mozilla-central and tested on Alder to make sure it can be built on all the supported platforms before it relands on mozilla-central.
Updated•13 years ago
|
Whiteboard: [WebRTC], [blocking-webrtc+] → [WebRTC], [blocking-webrtc+], [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•