Bug 36785 - [Qt, Gtk] Allows build-webkit script to accept custom make command as parameter
Summary: [Qt, Gtk] Allows build-webkit script to accept custom make command as parameter
Status: RESOLVED LATER
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: Gtk, Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2010-03-29 15:02 PDT by Rodrigo Belem
Modified: 2014-04-08 18:34 PDT (History)
8 users (show)

See Also:


Attachments
Patch that adds the --make option. (4.33 KB, patch)
2010-03-29 15:15 PDT, Rodrigo Belem
hausmann: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Belem 2010-03-29 15:02:06 PDT
The build-webkit script lacks for a parameter to set a custom make command.

A debian/rules snippet as a real world example. 

build-stamp:                                                                                                                                 
       dh_testdir                                                                                                                            
                                                                                                                                             
       WebKitTools/Scripts/build-webkit --qt --make=$(QMAKE)


This enables the dpkg-buildpackage get the make arguments, like -j parameter for distributed builds.
Comment 1 Rodrigo Belem 2010-03-29 15:15:55 PDT
Created attachment 51971 [details]
Patch that adds the --make option.
Comment 2 Rodrigo Belem 2010-03-29 15:17:07 PDT
Adding the keywords qt and gtk.
Comment 3 Rodrigo Belem 2010-03-30 07:17:17 PDT
I made a mistake.

(In reply to comment #0)
> The build-webkit script lacks for a parameter to set a custom make command.
> 
> A debian/rules snippet as a real world example. 
> 
> build-stamp:                                                                    
>        dh_testdir                                                               
> 
>        WebKitTools/Scripts/build-webkit --qt --make=$(QMAKE)
> 

I mean --make=$(MAKE) where I wrote --make=$(QMAKE)
Comment 4 Kenneth Rohde Christiansen 2010-03-30 10:17:46 PDT
How is this different from --makeargs= ? You want to use another make? like gmake?

qmake is not a replacement for make, but a companion.
Comment 5 Rodrigo Belem 2010-03-30 11:15:08 PDT
(In reply to comment #4)
> How is this different from --makeargs= ? You want to use another make? like
> gmake?
>
When building the qtwebkit debian package with the command

dpkg-buildpackage -rfakeroot -j15

and using --makeargs=$(MAKEFLAGS) as following

WebKitTools/Scripts/build-webkit --qt --makeargs=$(MAKEFLAGS)

It does not passes the -j15 correctly to the make command. With the attached patch and the following command in the debian/rules, it works as desired.

WebKitTools/Scripts/build-webkit --qt --make=$(MAKE)


> qmake is not a replacement for make, but a companion.

Sorry. That was a typo.
Comment 6 Gustavo Noronha (kov) 2010-04-02 12:43:03 PDT
(In reply to comment #5)
> When building the qtwebkit debian package with the command
> 
> dpkg-buildpackage -rfakeroot -j15
> 
> and using --makeargs=$(MAKEFLAGS) as following
> 
> WebKitTools/Scripts/build-webkit --qt --makeargs=$(MAKEFLAGS)
> 
> It does not passes the -j15 correctly to the make command. With the attached
> patch and the following command in the debian/rules, it works as desired.

Why not fix the usage of --makeargs, instead, then? I am assuming it should work for your case (in fact, using -j was precisely why it got added in the first place).
Comment 7 Simon Hausmann 2010-04-28 12:48:04 PDT
Comment on attachment 51971 [details]
Patch that adds the --make option.

(In reply to comment #6)
> (In reply to comment #5)
> > When building the qtwebkit debian package with the command
> > 
> > dpkg-buildpackage -rfakeroot -j15
> > 
> > and using --makeargs=$(MAKEFLAGS) as following
> > 
> > WebKitTools/Scripts/build-webkit --qt --makeargs=$(MAKEFLAGS)
> > 
> > It does not passes the -j15 correctly to the make command. With the attached
> > patch and the following command in the debian/rules, it works as desired.
> 
> Why not fix the usage of --makeargs, instead, then? I am assuming it should
> work for your case (in fact, using -j was precisely why it got added in the
> first place).

I agree, fixing the quoting sounds like the better thing to do.
Comment 8 Kenneth Rohde Christiansen 2010-05-11 12:14:04 PDT
Rodrigo do you want to assign this one to you?
Comment 9 Zan Dobersek 2012-10-05 12:31:24 PDT
Is there still interest in getting this done?
Comment 10 Martin Robinson 2014-04-08 18:34:57 PDT
I'm thinking this isn't a big problem any longer, since no one has complained or submitted a fix.