Bug 87524 - add Farstream flags/deps to WebKit, for WebRTC
Summary: add Farstream flags/deps to WebKit, for WebRTC
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks: 87514
  Show dependency treegraph
 
Reported: 2012-05-25 11:50 PDT by Danilo de Paula
Modified: 2012-07-31 01:47 PDT (History)
7 users (show)

See Also:


Attachments
FLAGS for Farstream (10.46 KB, patch)
2012-05-25 11:52 PDT, Danilo de Paula
no flags Details | Formatted Diff | Diff
patch proposal (10.33 KB, patch)
2012-05-25 13:01 PDT, Danilo de Paula
no flags Details | Formatted Diff | Diff
Patch (6.61 KB, patch)
2012-07-20 07:20 PDT, Danilo de Paula
no flags Details | Formatted Diff | Diff
Patch (4.91 KB, patch)
2012-07-20 10:23 PDT, Danilo de Paula
no flags Details | Formatted Diff | Diff
patch (65 bytes, text/plain)
2012-07-30 09:42 PDT, Danilo de Paula
danilo.eu: review+
danilo.eu: commit-queue+
Details
Patch (4.91 KB, patch)
2012-07-30 09:43 PDT, Danilo de Paula
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Danilo de Paula 2012-05-25 11:50:31 PDT
Needed to add Farstream as a backend for the GStreamer WebRTC implementation.
It requires libnice and libcrypto as dependencies.
Comment 1 Danilo de Paula 2012-05-25 11:52:18 PDT
Created attachment 144115 [details]
FLAGS for Farstream
Comment 2 WebKit Review Bot 2012-05-25 11:56:43 PDT
Attachment 144115 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'GNUmakefile.am', u'Source/We..." exit_code: 1
Source/WebCore/ChangeLog:13:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Philippe Normand 2012-05-25 12:30:35 PDT
Comment on attachment 144115 [details]
FLAGS for Farstream

View in context: https://bugs.webkit.org/attachment.cgi?id=144115&action=review

> Source/WebKit/gtk/GNUmakefile.am:66
> +	$(HILDON_CFLAGS) \
> +	$(LIBCRYPTO_CFLAGS) \
> +	$(LIBFFTW_CFLAGS) \

hildong and libfftw don' t seem related, right? Merge conflicts maybe?

> Source/WebKit/gtk/GNUmakefile.am:101
> +	$(LIBFFTW_LIBS) \

Doesn' t seem related to Farstream
Comment 4 Danilo de Paula 2012-05-25 13:01:57 PDT
Created attachment 144132 [details]
patch proposal

removing unused deps
Comment 5 Danilo de Paula 2012-05-25 13:03:18 PDT
(In reply to comment #3)
> (From update of attachment 144115 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=144115&action=review
> 
> > Source/WebKit/gtk/GNUmakefile.am:66
> > +	$(HILDON_CFLAGS) \
> > +	$(LIBCRYPTO_CFLAGS) \
> > +	$(LIBFFTW_CFLAGS) \
> 
> hildong and libfftw don' t seem related, right? Merge conflicts maybe?
> 
> > Source/WebKit/gtk/GNUmakefile.am:101
> > +	$(LIBFFTW_LIBS) \
> 
> Doesn' t seem related to Farstream

I believe you're right... Fixed, thanks for the heads up.
Comment 6 Philippe Normand 2012-05-25 13:24:50 PDT
Comment on attachment 144132 [details]
patch proposal

View in context: https://bugs.webkit.org/attachment.cgi?id=144132&action=review

> configure.ac:380
> +LIBFFTW_REQUIRED_VERSION=3.2.2

That can be removed too, didn' t notice it in the first patch.

> configure.ac:1263
> +               [AS_HELP_STRING([--with-media-stream-backend=@<:@farstream/gstreamer@:>@], [the media stream backend to use (default: farstream)])],

So, hum... would it make sense to work on a single implementation? If the farstream implementation is more mature than the pure-gst one maybe the later can just be dropped?
Comment 7 Martin Robinson 2012-05-25 13:28:13 PDT
(In reply to comment #6)

> So, hum... would it make sense to work on a single implementation? If the farstream implementation is more mature than the pure-gst one maybe the later can just be dropped?

I think I agree with Philippe here. More backends equal more maintenance in the end. It would be nice to hear at least a little bit about why the farstream backend might be preferred to the gstreamer one and whether or not it makes sense to drop one of them.
Comment 8 Danilo de Paula 2012-07-20 07:20:50 PDT
Created attachment 153502 [details]
Patch
Comment 9 Philippe Normand 2012-07-20 07:24:52 PDT
Comment on attachment 153502 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=153502&action=review

> Tools/gtk/jhbuild.modules:21
> +      <dep package="farstream"/>

We add new modules in jhbuild if they influence the layout tests results. This is not yet the case, can we do this in the patch where you plan to unskip the mediastream tests?
Comment 10 Danilo de Paula 2012-07-20 10:23:34 PDT
Created attachment 153532 [details]
Patch
Comment 11 Danilo de Paula 2012-07-20 10:27:33 PDT
(In reply to comment #9)
> (From update of attachment 153502 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=153502&action=review
> 
> > Tools/gtk/jhbuild.modules:21
> > +      <dep package="farstream"/>
> 
> We add new modules in jhbuild if they influence the layout tests results. This is not yet the case, can we do this in the patch where you plan to unskip the mediastream tests?

Agree,

Actually I removed LayoutTests/platform/gtk/TestExpectations and most of them are Ok (I'm wondering if they're passing on google too)
Comment 12 Danilo de Paula 2012-07-20 10:30:26 PDT
(In reply to comment #11)
> (In reply to comment #9)
> > (From update of attachment 153502 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=153502&action=review
> > 
> > > Tools/gtk/jhbuild.modules:21
> > > +      <dep package="farstream"/>
> > 
> > We add new modules in jhbuild if they influence the layout tests results. This is not yet the case, can we do this in the patch where you plan to unskip the mediastream tests?
> 
> Agree,
> 
> Actually I removed LayoutTests/platform/gtk/TestExpectations and most of them are Ok (I'm wondering if they're passing on google too)

* remove SKIP of mediastream tests.

Actually, since the implementation is quite big, I'm wondering if splitting those commits on very-small-uncompilable-commits makes sense.
Comment 13 Martin Robinson 2012-07-20 10:32:03 PDT
(In reply to comment #12)
 
> Actually, since the implementation is quite big, I'm wondering if splitting those commits on very-small-uncompilable-commits makes sense.

In my opinion, an incomplete implementation is okay, but not commits that do not compile. One option here is to first stub out all classes that you need to implement and gradually add logical bits of the implementation.
Comment 14 Danilo de Paula 2012-07-20 10:55:49 PDT
Comment on attachment 153532 [details]
Patch

should we add farstream-dev to the build-bot?
Comment 15 Philippe Normand 2012-07-24 01:05:54 PDT
(In reply to comment #14)
> (From update of attachment 153532 [details])
> should we add farstream-dev to the build-bot?

Yes, seems like it's missing in Gustavo's EWS and maybe buildslave.
I installed libfarstream-0.1-dev on my EWS and one the Igalia buildslaves.
Comment 16 Philippe Normand 2012-07-24 01:09:11 PDT
Comment on attachment 153532 [details]
Patch

Looks good but delaying cq+ until we are sure farstream-dev is installed on all bots. It's your call now, Gustavo :)
Comment 17 Danilo de Paula 2012-07-24 05:55:23 PDT
(In reply to comment #16)
> (From update of attachment 153532 [details])
> Looks good but delaying cq+ until we are sure farstream-dev is installed on all bots. It's your call now, Gustavo :)

Agreed.
Comment 18 Danilo de Paula 2012-07-26 06:57:12 PDT
(In reply to comment #17)
> (In reply to comment #16)
> > (From update of attachment 153532 [details] [details])
> > Looks good but delaying cq+ until we are sure farstream-dev is installed on all bots. It's your call now, Gustavo :)
> 
> Agreed.

Might be a good idea to disable media-stream on the default build, so people won't need to have farstream-dev installed to build webkit while the feature is not completed upstream.

Although the build bot should keep media-stream enabled.
Comment 19 Philippe Normand 2012-07-26 10:23:21 PDT
(In reply to comment #18)
> (In reply to comment #17)
> > (In reply to comment #16)
> > > (From update of attachment 153532 [details] [details] [details])
> > > Looks good but delaying cq+ until we are sure farstream-dev is installed on all bots. It's your call now, Gustavo :)
> > 
> > Agreed.
> 
> Might be a good idea to disable media-stream on the default build, so people won't need to have farstream-dev installed to build webkit while the feature is not completed upstream.
> 

This is already the case in configure.ac no?

> Although the build bot should keep media-stream enabled.

Yes it's enabled by default in build-webkit already, AFAIK.
Comment 20 Danilo de Paula 2012-07-26 12:06:52 PDT
(In reply to comment #19)
> (In reply to comment #18)
> > (In reply to comment #17)
> > > (In reply to comment #16)
> > > > (From update of attachment 153532 [details] [details] [details] [details])
> > > > Looks good but delaying cq+ until we are sure farstream-dev is installed on all bots. It's your call now, Gustavo :)
> > > 
> > > Agreed.
> > 
> > Might be a good idea to disable media-stream on the default build, so people won't need to have farstream-dev installed to build webkit while the feature is not completed upstream.
> > 
> 
> This is already the case in configure.ac no?

Well, should be, but there's something wrong when I do
$ Tools/Scripts/build-webkit --gtk --debug

I'm ending with --enable-media-stream in the autogen argument list.
http://pastebin.com/wBq8TTNd
Comment 21 Danilo de Paula 2012-07-26 16:21:35 PDT
> > This is already the case in configure.ac no?
> 
> Well, should be, but there's something wrong when I do
> $ Tools/Scripts/build-webkit --gtk --debug
> 
> I'm ending with --enable-media-stream in the autogen argument list.
> http://pastebin.com/wBq8TTNd

from Tools/Scripts/webkitperl/FeatureList.pm:293, I see that build-webkit enable media-stream for GTK by default. I'm not sure if we should remove that. What do you think Philippe?
Comment 22 Philippe Normand 2012-07-27 00:23:10 PDT
(In reply to comment #21)
> > > This is already the case in configure.ac no?
> > 
> > Well, should be, but there's something wrong when I do
> > $ Tools/Scripts/build-webkit --gtk --debug
> > 
> > I'm ending with --enable-media-stream in the autogen argument list.
> > http://pastebin.com/wBq8TTNd
> 
> from Tools/Scripts/webkitperl/FeatureList.pm:293, I see that build-webkit enable media-stream for GTK by default. I'm not sure if we should remove that. What do you think Philippe?

I was meaning that:

AC_ARG_ENABLE(media_stream,
              AC_HELP_STRING([--enable-media-stream],
                             [enable media stream support (incomplete) [default=no]]),
              [],[enable_media_stream=$enable_unstable_features])

and you saw already that build-webkit toggles this flag on. So everything's fine, I believe.
Comment 23 Danilo de Paula 2012-07-30 09:42:07 PDT
Created attachment 155304 [details]
patch

addind this patch for review again, since the build bot already has libfarstream-dev installed.
Comment 24 Danilo de Paula 2012-07-30 09:43:31 PDT
Created attachment 155305 [details]
Patch

* adding the correct file.
Comment 25 WebKit Review Bot 2012-07-30 09:48:08 PDT
Comment on attachment 153532 [details]
Patch

Cleared Philippe Normand's review+ from obsolete attachment 153532 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Comment 26 WebKit Review Bot 2012-07-30 13:45:04 PDT
Comment on attachment 155305 [details]
Patch

Rejecting attachment 155305 [details] from review queue.

danilo.cesar@collabora.co.uk does not have reviewer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have reviewer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have reviewer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your reviewer rights.
Comment 27 WebKit Review Bot 2012-07-30 13:47:04 PDT
Comment on attachment 155305 [details]
Patch

Rejecting attachment 155305 [details] from commit-queue.

danilo.cesar@collabora.co.uk does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.
Comment 28 Danilo de Paula 2012-07-30 14:33:02 PDT
Comment on attachment 155305 [details]
Patch

Using the correct flags.
Waiting for review/cq
Comment 29 WebKit Review Bot 2012-07-31 01:47:15 PDT
Comment on attachment 155305 [details]
Patch

Clearing flags on attachment: 155305

Committed r124182: <http://trac.webkit.org/changeset/124182>
Comment 30 WebKit Review Bot 2012-07-31 01:47:20 PDT
All reviewed patches have been landed.  Closing bug.