Closed
Bug 779997
Opened 12 years ago
Closed 12 years ago
Import SoundTouch audio processing library in mozilla-central
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
Tracking | Status | |
---|---|---|
firefox18 | --- | unaffected |
firefox19 | --- | disabled |
firefox20 | --- | fixed |
People
(Reporter: padenot, Assigned: padenot)
References
Details
Attachments
(2 files, 6 obsolete files)
(deleted),
patch
|
robert.strong.bugs
:
review+
khuey
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
glandium
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
For playbackRate, we need to use SoundTouch. This bug is about importing the files in the tree.
Assignee | ||
Comment 1•12 years ago
|
||
about:license things may have to be changed.
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #648496 -
Attachment is obsolete: true
Attachment #648763 -
Flags: review?(khuey)
Attachment #648763 -
Attachment is patch: true
I need some background here before reviewing. Why does this code need to be in a separate shared library?
Assignee | ||
Comment 4•12 years ago
|
||
Kyle, it is LGPL-licensed. Gerv and the legal folks have determined that it needs to be in a shared library to comply with the license. The discussion happened in bug 764495.
Yuck, ok.
So, to be clear, the shared library this code becomes will be shipped under the LGPL, as opposed to the rest of Mozilla, which is tri-licensed?
If that's the case, we need to do a bunch more work here, because we do things put the tri-license in the copyright field on Windows DLLs.
Assignee | ||
Comment 7•12 years ago
|
||
I think you're right. We cannot re-license code that we take from somewhere on the internet, right?
Are you referring to an .rc files such as this one: http://mxr.mozilla.org/mozilla-central/source/gfx/angle/src/libEGL/libEGL.rc, to put infos in the DLL ?
Yes. I didn't realize you could override them by providing your own. The default one is generated by http://mxr.mozilla.org/mozilla-central/source/config/version_win.pl#237.
So this code will need a custom rc file.
Comment on attachment 648763 [details] [diff] [review]
v1
Review of attachment 648763 [details] [diff] [review]:
-----------------------------------------------------------------
This needs the custom .rc file that we talked about.
Also we need to add soundtouch.dll to dependentlibs.list.
Other than that it looks good.
::: browser/installer/windows/nsis/shared.nsh
@@ +1030,5 @@
> Push "nspr4.dll"
> Push "nssdbm3.dll"
> Push "mozsqlite3.dll"
> Push "xpcom.dll"
> + Push "soundtouch.dll"
I'd like Rob Strong to glance at this to make sure that the order doesn't matter here or something weird.
Also there are several dlls missing ...
::: layout/media/symbols.def.in
@@ +104,5 @@
> speex_resampler_strerror
> #endif
> +#ifdef MOZ_SOUNDTOUCH
> +
> +#endif
....
Attachment #648763 -
Flags: review?(khuey) → review-
Assignee | ||
Comment 10•12 years ago
|
||
I added the RCFILE and RESFILE variable assignment in the makefile and the .rc file (adapted from the one present in the original soundtouch sources).
Somehow, they are not picked up by the build system, and that result in a .dll that has the default information. Troubleshooting that issue, I noticed that the same thing happens with the libEGL{v2,}.dll we have in the tree, that _should_ be copyright Google, but are shown as copyright Mozilla.
Attachment #648763 -
Attachment is obsolete: true
Assignee | ||
Comment 11•12 years ago
|
||
(Spotted a typo when checking I had attached the right patch.)
Attachment #651239 -
Attachment is obsolete: true
Assignee | ||
Comment 12•12 years ago
|
||
Any news on the .rc problem?
I tried to apply the patch and build with it, but the build fails.
Assignee | ||
Comment 14•12 years ago
|
||
I guess the attached patch on the bug was a bit old or something. This compiles
on all platform on try.
Assignee | ||
Updated•12 years ago
|
Attachment #651447 -
Attachment is obsolete: true
That patch works fine for me if I uncomment the relevant lines in the makefile. It's pretty messed up that we have to point RESFILE at a non-existent file to get RCFILE to get picked up by the build though.
Assignee | ||
Comment 16•12 years ago
|
||
Indeed, this compiles fine locally, but not on try. I'll try to install the same VS version to check what's going on.
Assignee | ||
Comment 17•12 years ago
|
||
Disregard the previous comment, it was just me being stupid.
I've checked that libsoundtouch is picked up by the dependentlibs.py script, and
addressed the other comment.
I've also added the license bits that Gerv told me to put in about:license.
Attachment #661824 -
Flags: review?(khuey)
Assignee | ||
Updated•12 years ago
|
Attachment #655634 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #661824 -
Flags: review?(robert.bugzilla)
Assignee | ||
Comment 18•12 years ago
|
||
Comment on attachment 661824 [details] [diff] [review]
Import SoundTouch Library in the tree. r=
Robert, could you look at the Windows installer bits in this patch?
Attachment #661824 -
Flags: review?(robert.bugzilla)
Assignee | ||
Updated•12 years ago
|
Attachment #661824 -
Flags: review?(robert.bugzilla)
Comment 19•12 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) [Away until September 18th (MozCamp EU, then vacation)] from comment #9)
> Comment on attachment 648763 [details] [diff] [review]
> v1
>
> Review of attachment 648763 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> This needs the custom .rc file that we talked about.
>
> Also we need to add soundtouch.dll to dependentlibs.list.
>
> Other than that it looks good.
>
> ::: browser/installer/windows/nsis/shared.nsh
> @@ +1030,5 @@
> > Push "nspr4.dll"
> > Push "nssdbm3.dll"
> > Push "mozsqlite3.dll"
> > Push "xpcom.dll"
> > + Push "soundtouch.dll"
>
> I'd like Rob Strong to glance at this to make sure that the order doesn't
> matter here or something weird.
>
> Also there are several dlls missing ...
This is done before installing so we can notify the user prior to installing that they will likely need to restart their system if any of these files are in use. It doesn't list them all because it has to make copies of the dll which can take a while for the larger ones. I also don't want to add to the list unless we know it is necessary and I plan on reworking this code anyways.
Comment 20•12 years ago
|
||
Comment on attachment 661824 [details] [diff] [review]
Import SoundTouch Library in the tree. r=
Don't bother with adding the dll to the check in shared.nsh per previous comment
Attachment #661824 -
Flags: review?(robert.bugzilla) → review-
Assignee | ||
Comment 21•12 years ago
|
||
Addressed rstrong comments.
Attachment #663177 -
Flags: review?(robert.bugzilla)
Attachment #663177 -
Flags: review?(khuey)
Assignee | ||
Updated•12 years ago
|
Attachment #661824 -
Attachment is obsolete: true
Attachment #661824 -
Flags: review?(khuey)
Comment 22•12 years ago
|
||
Comment on attachment 663177 [details] [diff] [review]
Import SoundTouch Library in the tree. r=
r+ for the installer/* changes
Attachment #663177 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 23•12 years ago
|
||
Comment on attachment 663177 [details] [diff] [review]
Import SoundTouch Library in the tree. r=
I just noticed that I cancelled the wrong review. Kyle, can you make sure this is alright? Changes from last patch are mentioned in comment 17.
Attachment #663177 -
Flags: review?(robert.bugzilla) → review?(khuey)
Attachment #663177 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 24•12 years ago
|
||
Status: NEW → ASSIGNED
Assignee | ||
Comment 25•12 years ago
|
||
Backed out because reviewers names were missing from the commit message in https://hg.mozilla.org/integration/mozilla-inbound/rev/a100edfd3ca0, relanded in https://hg.mozilla.org/integration/mozilla-inbound/rev/2df5960779db.
Comment 26•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Comment 27•12 years ago
|
||
The library is not used by anything at the moment, and we're going to merge to aurora. Are there plans to use this library in FF19 or is that for later? If the former, we should really disable building and shipping it.
Comment 28•12 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #27)
> If the former
err, latter.
Assignee | ||
Comment 29•12 years ago
|
||
Would disabling it in the file system be sufficient? It would not be compiled nor shipped this way, I guess.
Comment 30•12 years ago
|
||
(In reply to Paul ADENOT (:padenot) from comment #29)
> Would disabling it in the file system be sufficient? It would not be
> compiled nor shipped this way, I guess.
You'd need to remove the -lsoundtouch from the libxul linkage command line.
Assignee | ||
Comment 31•12 years ago
|
||
This is green on try. I plan to enable it and land the patch that uses the
library right after the uplift.
Attachment #683095 -
Flags: review?(mh+mozilla)
Updated•12 years ago
|
Attachment #683095 -
Flags: review?(mh+mozilla) → review+
Comment 32•12 years ago
|
||
Comment 33•12 years ago
|
||
Comment on attachment 683095 [details] [diff] [review]
Disable build and linking of libsoundtouch as it is not used for now. r=
Paul: I think you forgot to add the soundtouch lib to removed-files.in so that the file gets removed on update via the installer or the in-app update.
Comment 34•12 years ago
|
||
I don't think this matters much for a file that was never shipped in a release or a beta.
Comment 35•12 years ago
|
||
(In reply to Phil Ringnalda (:philor) from comment #32)
> https://hg.mozilla.org/mozilla-central/rev/e35029dcac2d
Note this didn't make it to aurora, we need an uplift.
Assignee | ||
Comment 36•12 years ago
|
||
Comment on attachment 683095 [details] [diff] [review]
Disable build and linking of libsoundtouch as it is not used for now. r=
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Bug 779997
User impact if declined: libsoundtouch would be shipped with aurora and subsequent releases, but not used. This makes the packages bigger in size.
Testing completed (on m-c, etc.): Green try.
Risk to taking this patch (and alternatives if risky): Not risky, the code was not exercised anyways. It's only a build system change, the removal of a library.
String or UUID changes made by this patch: None.
Attachment #683095 -
Flags: approval-mozilla-aurora?
Comment 37•12 years ago
|
||
Comment on attachment 683095 [details] [diff] [review]
Disable build and linking of libsoundtouch as it is not used for now. r=
[Triage Comment]
Low risk build system change in support of smaller package sizes. Approving for Aurora 19.
Attachment #683095 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 38•12 years ago
|
||
So this is disabled on m-c now and will soon be disabled on aurora too, right?
Comment 39•12 years ago
|
||
status-firefox19:
--- → disabled
status-firefox20:
--- → disabled
Updated•12 years ago
|
status-firefox18:
--- → unaffected
Assignee | ||
Comment 40•12 years ago
|
||
Ryan, this is not disabled on central, because I'm about to land a big patch that uses this library. This is disabled on aurora because I lacked time to land the patch before the uplift and we did not want to increase the size of the package.
Comment 41•12 years ago
|
||
OK, I guess I was confused by comment 32 then.
Assignee | ||
Comment 42•12 years ago
|
||
And backed out since I landed the feature patch:
https://hg.mozilla.org/integration/mozilla-inbound/rev/98a1b656277b
Comment 43•12 years ago
|
||
Updated•12 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•