WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 82209
[jhbuild] Use $MAKE if it is defined to build jhbuild itself.
https://bugs.webkit.org/show_bug.cgi?id=82209
Summary
[jhbuild] Use $MAKE if it is defined to build jhbuild itself.
Raphael Kubo da Costa (:rakuco)
Reported
2012-03-26 07:44:59 PDT
[jhbuild] Use $MAKE if it is defined to build jhbuild itself.
Attachments
Patch
(1.58 KB, patch)
2012-03-26 07:46 PDT
,
Raphael Kubo da Costa (:rakuco)
no flags
Details
Formatted Diff
Diff
Patch
(1.96 KB, patch)
2012-03-26 13:03 PDT
,
Raphael Kubo da Costa (:rakuco)
mrobinson
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Raphael Kubo da Costa (:rakuco)
Comment 1
2012-03-26 07:46:01 PDT
Created
attachment 133812
[details]
Patch
Gustavo Noronha (kov)
Comment 2
2012-03-26 08:23:00 PDT
Comment on
attachment 133812
[details]
Patch A few lines before that we strip MAKE out, so this won't do good.
Raphael Kubo da Costa (:rakuco)
Comment 3
2012-03-26 08:30:10 PDT
Actually, I wonder if it really makes sense to pass env_without_make to that call to make itself -- I mean, if you explicitly invoke "make", setting $MAKE to something else doesn't seem to have any effect.
Gustavo Noronha (kov)
Comment 4
2012-03-26 09:02:51 PDT
That's a good point. If it still works if you set MAKE='make -j4' and remove that, then sure, it doesn't hurt to have it though.
Raphael Kubo da Costa (:rakuco)
Comment 5
2012-03-26 13:03:44 PDT
Created
attachment 133872
[details]
Patch
Raphael Kubo da Costa (:rakuco)
Comment 6
2012-03-26 13:04:38 PDT
(In reply to
comment #4
)
> That's a good point. If it still works if you set MAKE='make -j4' and remove that, then sure, it doesn't hurt to have it though.
It does, and
r112139
removed the os.environ workaround which was in place.
Martin Robinson
Comment 7
2012-03-26 13:11:12 PDT
Comment on
attachment 133872
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=133872&action=review
> Tools/jhbuild/jhbuild-wrapper:96 > + make = shlex.split(os.environ.get('MAKE', 'make'))
Why not just os.environ.get('MAKE', 'make').split()[0] ?
Raphael Kubo da Costa (:rakuco)
Comment 8
2012-03-26 13:12:40 PDT
(In reply to
comment #7
)
> (From update of
attachment 133872
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=133872&action=review
> > > Tools/jhbuild/jhbuild-wrapper:96 > > + make = shlex.split(os.environ.get('MAKE', 'make')) > > Why not just os.environ.get('MAKE', 'make').split()[0] ?
If MAKE is set to "make -j3" that will only give me "make" and "-j3" will be lost. shlex.split("make -j3") gives me ['make', '-j3'].
Martin Robinson
Comment 9
2012-03-26 13:25:07 PDT
(In reply to
comment #8
)
> If MAKE is set to "make -j3" that will only give me "make" and "-j3" will be lost. shlex.split("make -j3") gives me ['make', '-j3'].
In that case, why not os.environ.get('MAKE', 'make').split()?
>>> "make -j4".split()
['make', '-j4']
Raphael Kubo da Costa (:rakuco)
Comment 10
2012-03-26 13:29:05 PDT
(In reply to
comment #9
)
> (In reply to
comment #8
) > > > If MAKE is set to "make -j3" that will only give me "make" and "-j3" will be lost. shlex.split("make -j3") gives me ['make', '-j3']. > > In that case, why not os.environ.get('MAKE', 'make').split()? > > >>> "make -j4".split() > ['make', '-j4']
Mostly because subprocess.Popen's documentation recommends using shlex.split() for proper argument tokenization. I can move to just using str.split() if that's preferred, though.
Martin Robinson
Comment 11
2012-03-26 14:41:10 PDT
Comment on
attachment 133872
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=133872&action=review
>>> Tools/jhbuild/jhbuild-wrapper:96 >>> + make = shlex.split(os.environ.get('MAKE', 'make')) >> >> Why not just os.environ.get('MAKE', 'make').split()[0] ? > > If MAKE is set to "make -j3" that will only give me "make" and "-j3" will be lost. shlex.split("make -j3") gives me ['make', '-j3'].
Makes sense, thanks!
Raphael Kubo da Costa (:rakuco)
Comment 12
2012-03-26 15:15:26 PDT
Committed
r112153
: <
http://trac.webkit.org/changeset/112153
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug