Bug 58333 - [GTK] arguments passed to build-jsc are not taken into account
Summary: [GTK] arguments passed to build-jsc are not taken into account
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 09:13 PDT by thouraya
Modified: 2011-11-03 10:42 PDT (History)
6 users (show)

See Also:


Attachments
Fix arguments issue (1.95 KB, patch)
2011-04-12 09:18 PDT, thouraya
no flags Details | Formatted Diff | Diff
Fix arguments issue (1.90 KB, patch)
2011-04-12 09:50 PDT, thouraya
no flags Details | Formatted Diff | Diff
Fix arguments issue (1.42 KB, patch)
2011-04-13 04:07 PDT, thouraya
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description thouraya 2011-04-12 09:13:41 PDT
Hello,

Arguments passed to build-jsc and build-webkit scripts are not taken into account.

I will submit a patch to fix the problem.

Regards,
Thouraya.
Comment 1 thouraya 2011-04-12 09:18:59 PDT
Created attachment 89214 [details]
Fix arguments issue
Comment 2 thouraya 2011-04-12 09:50:33 PDT
Created attachment 89218 [details]
Fix arguments issue
Comment 3 Eric Seidel (no email) 2011-04-12 10:50:27 PDT
Comment on attachment 89218 [details]
Fix arguments issue

I'm rubber-stamping this on the assumption that this is the way teh gtk folks want build-webkit to work for them.
Comment 4 WebKit Commit Bot 2011-04-12 12:24:49 PDT
Comment on attachment 89218 [details]
Fix arguments issue

Clearing flags on attachment: 89218

Committed r83621: <http://trac.webkit.org/changeset/83621>
Comment 5 WebKit Commit Bot 2011-04-12 12:24:53 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Philippe Normand 2011-04-12 13:12:06 PDT
Comment on attachment 89218 [details]
Fix arguments issue

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

> Tools/Scripts/build-webkit:577
> +        push(@options, @ARGV);

I come a bit late as this landed. But I don't think that specific change is needed. What options exactly do you want to pass?
For instance build-webkit --gtk --with-gtk=3.0 --video calls configure --with-gtk=3.0 --enable-video already. Without that patch.
Comment 7 Philippe Normand 2011-04-12 14:06:59 PDT
(In reply to comment #6)
> (From update of attachment 89218 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=89218&action=review
> 
> > Tools/Scripts/build-webkit:577
> > +        push(@options, @ARGV);
> 
> I come a bit late as this landed. But I don't think that specific change is needed. What options exactly do you want to pass?
> For instance build-webkit --gtk --with-gtk=3.0 --video calls configure --with-gtk=3.0 --enable-video already. Without that patch.

And indeed...
http://build.webkit.org/builders/GTK%20Linux%2064-bit%20Debug/builds/21388/steps/jscore-test/logs/stdio

configure: error: unrecognized option: `--gtk'
Try `../../configure --help' for more information

Please roll out.
Comment 8 Philippe Normand 2011-04-12 14:43:18 PDT
Rolled out in http://trac.webkit.org/changeset/83643
Comment 9 thouraya 2011-04-13 03:00:35 PDT
Hello,

using build-jsc as it is and running: Tools/Scripts/build-jsc --gtk  --host="${target_arch}"

I get the error below :

checking whether we are cross compiling... configure: error: in `/home/team/work/Webkit-tot-dev/WebKitBuild/Release':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.



using build-webkit as it is and running: Tools/Scripts/build-webkit --gtk  --host="${target_arch}" --disable-geolocation

geolocation is not disabled and I got a link error due to missed library geloc



Regards,
Thouraya.
Comment 10 Philippe Normand 2011-04-13 03:09:20 PDT
(In reply to comment #9)
> Hello,
> 
> using build-jsc as it is and running: Tools/Scripts/build-jsc --gtk  --host="${target_arch}"
> 
> I get the error below :
> 
> checking whether we are cross compiling... configure: error: in `/home/team/work/Webkit-tot-dev/WebKitBuild/Release':
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> 

Maybe your build-jsc change made sense, not sure.

> 
> 
> using build-webkit as it is and running: Tools/Scripts/build-webkit --gtk  --host="${target_arch}" --disable-geolocation
> 
> geolocation is not disabled and I got a link error due to missed library geloc
> 

build-webkit --help


  --[no-]geolocation                Toggle Geolocation support (default: 1)
Comment 11 Philippe Normand 2011-04-13 03:14:59 PDT
Comment on attachment 89218 [details]
Fix arguments issue

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

> Tools/Scripts/build-jsc:71
> +    $result = buildGtkProject("JavaScriptCore", 0, @ARGV);

Probably should remove --gtk from that args first, like Qt does just below.

checkForArgumentAndRemoveFromARGV("--gtk");
Comment 12 thouraya 2011-04-13 03:59:29 PDT
renamed the bug
Comment 13 thouraya 2011-04-13 04:07:44 PDT
Created attachment 89362 [details]
Fix arguments issue
Comment 14 thouraya 2011-04-13 04:09:35 PDT
Hello,

(In reply to comment #11)
> (From update of attachment 89218 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=89218&action=review
> 
> > Tools/Scripts/build-jsc:71
> > +    $result = buildGtkProject("JavaScriptCore", 0, @ARGV);
> 
> Probably should remove --gtk from that args first, like Qt does just below.
> 
> checkForArgumentAndRemoveFromARGV("--gtk");


Added it.
Thank you,

Regards,
Thouraya.
Comment 15 Philippe Normand 2011-04-13 05:56:18 PDT
(In reply to comment #14)
> Hello,
> 
> (In reply to comment #11)
> > (From update of attachment 89218 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=89218&action=review
> > 
> > > Tools/Scripts/build-jsc:71
> > > +    $result = buildGtkProject("JavaScriptCore", 0, @ARGV);
> > 
> > Probably should remove --gtk from that args first, like Qt does just below.
> > 
> > checkForArgumentAndRemoveFromARGV("--gtk");
> 
> 

I assume you tested this with a clean/full build?
That change looks good. Having a --help option in build-jsc would be nice too but i guess this could be part of another patch.
Comment 16 Eric Seidel (no email) 2011-06-18 20:00:30 PDT
Comment on attachment 89362 [details]
Fix arguments issue

What are we going to do here?  How does this patch move forward?
Comment 17 Martin Robinson 2011-06-19 16:24:17 PDT
(In reply to comment #16)
> (From update of attachment 89362 [details])
> What are we going to do here?  How does this patch move forward?

It would be nice if thouraya could confirm that he tested a full build. If he's moved on, this patch is probably safe to cq.
Comment 18 WebKit Review Bot 2011-11-03 10:41:56 PDT
Comment on attachment 89362 [details]
Fix arguments issue

Clearing flags on attachment: 89362

Committed r99216: <http://trac.webkit.org/changeset/99216>
Comment 19 WebKit Review Bot 2011-11-03 10:42:01 PDT
All reviewed patches have been landed.  Closing bug.