Closed
Bug 738612
Opened 13 years ago
Closed 12 years ago
Restore mozconfig-extra (Try) feature, or similar
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sgautherie, Assigned: sfink)
References
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
See discussion in bug 558180.
Comment 1•13 years ago
|
||
shouldn't be too hard for you to add this back in.
Assignee: nobody → sgautherie.bz
We already have something similar for OS X and linux at least:
build/unix/mozconfig.linux
build/macosx/common
Adding one for windowns and having them all include a root file would probably fix this bug.
Reporter | ||
Updated•13 years ago
|
Assignee: sgautherie.bz → nobody
Component: Release Engineering → Release Engineering: Developer Tools
QA Contact: release → lsblakk
Updated•12 years ago
|
QA Contact: lsblakk → hwine
Assignee | ||
Comment 4•12 years ago
|
||
I used this patch for my try push and it seemed to work.
Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 653871 [details] [diff] [review]
Include common mozconfigs so try pushes can modify them easily
Not really sure who should review this. Please redirect if I got it wrong.
Attachment #653871 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 6•12 years ago
|
||
I should also mention that to test this I wrote a simple script to validate that I did not introduce any multiple includes in the mozconfig include graph, and that all of the mozconfigs (that I could find) do indeed include build/mozconfig.common. I'm not sure if I really did find all of the mozconfigs in the tree, though.
The mozconfig include graph could afford to be refactored (eg all nightlies include a mozconfig.nightly instead of duplicating that portion of the configuration, etc.) but I did not attempt that in this patch.
Reporter | ||
Comment 7•12 years ago
|
||
Comment on attachment 653871 [details] [diff] [review]
Include common mozconfigs so try pushes can modify them easily
Review of attachment 653871 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good, but it doesn't let to override default settings :-/
::: browser/config/mozconfigs/macosx32/debug
@@ +1,1 @@
> . $topsrcdir/build/macosx/mozconfig.leopard
Something is missing wrt this file, isn't it?
Comment 8•12 years ago
|
||
Comment on attachment 653871 [details] [diff] [review]
Include common mozconfigs so try pushes can modify them easily
Review of attachment 653871 [details] [diff] [review]:
-----------------------------------------------------------------
::: xulrunner/config/mozconfigs/common
@@ +1,1 @@
> +. "$topsrcdir/build/mozconfig.common"
Add a comment here like you did for the other common mozconfig files?
Attachment #653871 -
Flags: review?(ted.mielczarek) → review+
Updated•12 years ago
|
Assignee: nobody → sphink
Assignee | ||
Comment 9•12 years ago
|
||
(In reply to Serge Gautherie (:sgautherie) from comment #7)
> Comment on attachment 653871 [details] [diff] [review]
> Include common mozconfigs so try pushes can modify them easily
>
> Review of attachment 653871 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> This looks good, but it doesn't let to override default settings :-/
Yeah, that's a good point that I was wondering about too. mozconfig-extra was included at the end. I put the mozconfig.common include at the top due to bug 558180 comment 48, but really I'd prefer to be able to override. Come to think of it, I don't even understand why putting it at the top would work for setting CC/CXX. Unless some of the mozconfigs use its current value somewhere? I'm going to make one for the bottom.
>
> ::: browser/config/mozconfigs/macosx32/debug
> @@ +1,1 @@
> > . $topsrcdir/build/macosx/mozconfig.leopard
>
> Something is missing wrt this file, isn't it?
Please explain. Double quotes? License header?
Assignee | ||
Comment 10•12 years ago
|
||
Bikeshedding on the name is welcome.
This patch applies on top of the previous patch.
Attachment #654278 -
Flags: review?(ted.mielczarek)
Reporter | ||
Comment 11•12 years ago
|
||
(In reply to Steve Fink [:sfink] from comment #9)
> I put the mozconfig.common include at the top due
> to bug 558180 comment 48, [...]. Come
> to think of it, I don't even understand why putting it at the top would work
> for setting CC/CXX. Unless some of the mozconfigs use its current value
> somewhere?
{
Rafael Ávila de Espíndola (:espindola) 2011-10-10 17:19:22 CEST
Maybe we could change the mozconfigs to start by including a mozconfig.common, even if mozconfig.common is normally empty? Doing it at the start (instead of at the end like the old mozconfig-extra) makes it easier to set CC and CXX.
}
Rafael, could you give some details, so that case could be documented?
> > ::: browser/config/mozconfigs/macosx32/debug
> > @@ +1,1 @@
> > > . $topsrcdir/build/macosx/mozconfig.leopard
> >
> > Something is missing wrt this file, isn't it?
>
> Please explain. Double quotes? License header?
My bad, I missed to see that 'mozconfig.leopard' does include 'common'.
By the way, maybe that 'common' file should be renamed 'mozconfig.common' too.
Reporter | ||
Comment 12•12 years ago
|
||
Comment on attachment 654278 [details] [diff] [review]
Add mozconfig "override" files to be included after everything else, for overriding previously set options
Review of attachment 654278 [details] [diff] [review]:
-----------------------------------------------------------------
::: build/unix/mozconfig.linux
@@ +1,4 @@
> . "$topsrcdir/build/mozconfig.common"
>
> +#CC=/tools/gcc-4.5-0moz3/bin/gcc
> +#CXX=/tools/gcc-4.5-0moz3/bin/g++
I assume you either want not to touch these lines or to delete them...
::: xulrunner/config/mozconfigs/common
@@ +1,5 @@
> +# This Source Code Form is subject to the terms of the Mozilla Public
> +# License, v. 2.0. If a copy of the MPL was not distributed with this
> +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
> +
> +# This file is included by all xulrunner mozconfigs
You want to use "at the top of" in this comment too.
Assignee | ||
Comment 13•12 years ago
|
||
(In reply to Serge Gautherie (:sgautherie) from comment #11)
> (In reply to Steve Fink [:sfink] from comment #9)
>
> > I put the mozconfig.common include at the top due
> > to bug 558180 comment 48, [...]. Come
> > to think of it, I don't even understand why putting it at the top would work
> > for setting CC/CXX. Unless some of the mozconfigs use its current value
> > somewhere?
>
> {
> Rafael Ávila de Espíndola (:espindola) 2011-10-10 17:19:22 CEST
>
> Maybe we could change the mozconfigs to start by including a
> mozconfig.common, even if mozconfig.common is normally empty? Doing it at
> the start (instead of at the end like the old mozconfig-extra) makes it
> easier to set CC and CXX.
> }
>
> Rafael, could you give some details, so that case could be documented?
Sorry, ted explained over IRC. The previous definitions are used for http://mxr.mozilla.org/mozilla-central/source/build/macosx/universal/mozconfig.common#34 when adding an -arch option for osx universal builds.
> > > ::: browser/config/mozconfigs/macosx32/debug
> > > @@ +1,1 @@
> > > > . $topsrcdir/build/macosx/mozconfig.leopard
> > >
> > > Something is missing wrt this file, isn't it?
> >
> > Please explain. Double quotes? License header?
>
> My bad, I missed to see that 'mozconfig.leopard' does include 'common'.
> By the way, maybe that 'common' file should be renamed 'mozconfig.common'
> too.
I was trying to fit in with the current naming conventions, which seem to omit "mozconfig" when inside a mozconfigs/ directory.
Assignee | ||
Comment 14•12 years ago
|
||
(In reply to Serge Gautherie (:sgautherie) from comment #12)
> Comment on attachment 654278 [details] [diff] [review]
> Add mozconfig "override" files to be included after everything else, for
> overriding previously set options
>
> Review of attachment 654278 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: build/unix/mozconfig.linux
> @@ +1,4 @@
> > . "$topsrcdir/build/mozconfig.common"
> >
> > +#CC=/tools/gcc-4.5-0moz3/bin/gcc
> > +#CXX=/tools/gcc-4.5-0moz3/bin/g++
>
> I assume you either want not to touch these lines or to delete them...
Doh! You're right; that change slipped in. (It's the only thing I need to do in order to make a local build using the in-tree linux64 mozconfigs.) I'll remove it from the patch. (And in fact, I just did a try server push where I erroneously left it in, too. Ugh.)
Done.
> ::: xulrunner/config/mozconfigs/common
> @@ +1,5 @@
> > +# This Source Code Form is subject to the terms of the Mozilla Public
> > +# License, v. 2.0. If a copy of the MPL was not distributed with this
> > +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
> > +
> > +# This file is included by all xulrunner mozconfigs
>
> You want to use "at the top of" in this comment too.
Done.
Thanks.
Reporter | ||
Comment 15•12 years ago
|
||
(In reply to Steve Fink [:sfink] from comment #13)
> (In reply to Serge Gautherie (:sgautherie) from comment #11)
> Sorry, ted explained over IRC. The previous definitions are used for
> http://mxr.mozilla.org/mozilla-central/source/build/macosx/universal/
> mozconfig.common#34 when adding an -arch option for osx universal builds.
Iiuc,
/build/macosx/universal/mozconfig.common includes /build/macosx/common
which has some "export CC=...".
Wouldn't these exports override the possible definitions in "/build/mozconfig.common", which you are including before the exports?
> > By the way, maybe that 'common' file should be renamed 'mozconfig.common'
> > too.
>
> I was trying to fit in with the current naming conventions, which seem to
> omit "mozconfig" when inside a mozconfigs/ directory.
Yes, I was referring to existing '/build/macosx/common'.
Assignee | ||
Comment 16•12 years ago
|
||
(In reply to Serge Gautherie (:sgautherie) from comment #15)
> (In reply to Steve Fink [:sfink] from comment #13)
> > (In reply to Serge Gautherie (:sgautherie) from comment #11)
>
> > Sorry, ted explained over IRC. The previous definitions are used for
> > http://mxr.mozilla.org/mozilla-central/source/build/macosx/universal/
> > mozconfig.common#34 when adding an -arch option for osx universal builds.
>
> Iiuc,
> /build/macosx/universal/mozconfig.common includes /build/macosx/common
> which has some "export CC=...".
> Wouldn't these exports override the possible definitions in
> "/build/mozconfig.common", which you are including before the exports?
:-) Sounds right.
Perhaps that should be a followup -- change those to export CC=${CC-...}. It doesn't seem like there's a way to set CC and CXX via a common mozconfig right now. It's still useful for random things though.
And we ought to create separate mozconfigs for m-c, c-c, and SeaMonkey, and include the appropriate ones.
Unless we're junking mozconfigs and client.mk soonish. :-)
> > > By the way, maybe that 'common' file should be renamed 'mozconfig.common'
> > > too.
> >
> > I was trying to fit in with the current naming conventions, which seem to
> > omit "mozconfig" when inside a mozconfigs/ directory.
>
> Yes, I was referring to existing '/build/macosx/common'.
Oh, sorry. Right you are. Done.
Assignee | ||
Comment 17•12 years ago
|
||
Forgot to |hg add| a file.
Attachment #656098 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•12 years ago
|
Attachment #654278 -
Attachment is obsolete: true
Attachment #654278 -
Flags: review?(ted.mielczarek)
Comment 18•12 years ago
|
||
Comment on attachment 656098 [details] [diff] [review]
Add mozconfig "override" files to be included after everything else, for overriding previously set options
Review of attachment 656098 [details] [diff] [review]:
-----------------------------------------------------------------
A maze of twisty mozconfigs, all alike.
Attachment #656098 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 19•12 years ago
|
||
Assignee | ||
Comment 20•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/20adcf83fc42 - backed out ceb6f653de08
http://hg.mozilla.org/integration/mozilla-inbound/rev/27030680d0cc - backed out 81bbb0b8aff2
Comment 21•12 years ago
|
||
Backed out for real.
https://hg.mozilla.org/integration/mozilla-inbound/rev/4cd45f6cce87
Assignee | ||
Comment 22•12 years ago
|
||
I messed up the rename of build/macosx/common -> build/macosx/mozconfig.common. Fixed. Proof: https://tbpl.mozilla.org/?tree=Try&rev=83e308353e8a
Assignee | ||
Comment 23•12 years ago
|
||
Comment 24•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7d85b2d9447f
https://hg.mozilla.org/mozilla-central/rev/40dd5296396e
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 25•12 years ago
|
||
browser/config/mozconfigs/common says:
"This file is included by all browser mozconfigs"
I don't think that's true - it looks to me like it is only included in Windows mozconfigs.
Comment 26•12 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #25)
> browser/config/mozconfigs/common says:
>
> "This file is included by all browser mozconfigs"
>
> I don't think that's true - it looks to me like it is only included in
> Windows mozconfigs.
Win32 only mozconfigs to be precise. Win64 wasn't changed either (though they were for mozconfig.override).
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Updated•8 years ago
|
Component: Tools → General
You need to log in
before you can comment on or make changes to this bug.
Description
•