Closed
Bug 872086
Opened 12 years ago
Closed 12 years ago
move SIMPLE_PROGRAM to moz.build
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla26
People
(Reporter: joey, Assigned: joey)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 1 obsolete file)
5.39 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
5.71 KB,
patch
|
Details | Diff | Splinter Review | |
8.92 KB,
patch
|
Details | Diff | Splinter Review |
./gfx/tests/Makefile.in
./intl/uconv/tests/Makefile.in
./intl/uconv/tools/Makefile.in
./intl/unicharutil/tests/Makefile.in
./mozglue/tests/Makefile.in
./netwerk/test/Makefile.in
./toolkit/mozapps/plugins/tests/Makefile.in
./toolkit/mozapps/update/test/Makefile.in
./toolkit/xre/test/win/Makefile.in
./tools/codesighs/Makefile.in
./tools/trace-malloc/Makefile.in
./uriloader/exthandler/tests/Makefile.in
./xpcom/reflect/xptcall/src/md/test/Makefile.in
./xpcom/reflect/xptcall/tests/Makefile.in
./xpcom/reflect/xptinfo/tests/Makefile.in
./xpcom/sample/program/Makefile.in
./xpcom/tests/external/Makefile.in
./xpcom/tests/Makefile.in
./xpcom/typelib/xpt/tests/Makefile.in
./xpcom/windbgdlg/Makefile.in
Assignee | ||
Updated•12 years ago
|
Blocks: nomakefiles
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → joey
Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 752393 [details] [diff] [review]
move SIMPLE_PROGRAMS to moz.build.
Add SIMPLE_PROGRAMS as a passthrough variable.
Attachment #752393 -
Flags: review?(gps)
Updated•12 years ago
|
Attachment #752393 -
Flags: review?(gps) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Inbound push
changeset: 132701:2c51b6730bbc
https://hg.mozilla.org/integration/mozilla-inbound/rev/2c51b6730bbc
Whiteboard: [leave open]
Comment 4•12 years ago
|
||
Assignee | ||
Comment 5•12 years ago
|
||
First round of file conversions for SIMPLE_PROGRAMS variable.
Try results pending.
Attachment #756739 -
Flags: review?(mshal)
Comment 6•12 years ago
|
||
Comment on attachment 756739 [details] [diff] [review]
move SIMPLE_PROGRAMS to moz.build (file batch #1)
>From: Joey Armstrong <joey@mozilla.com>
>
>bug 872086: move SIMPLE_PROGRAMS to moz.build (file batch #1)
>
>diff --git a/intl/uconv/tools/moz.build b/intl/uconv/tools/moz.build
>--- a/intl/uconv/tools/moz.build
>+++ b/intl/uconv/tools/moz.build
>@@ -2,8 +2,13 @@
> # vim: set filetype=python:
> # 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/.
>
> CSRCS += [
> 'umaptable.c',
> ]
>+
>+bin_suffix = CONFIG['BIN_SUFFIX']
>+SIMPLE_PROGRAMS += [
>+ "%s%s" % (fyl[0:-2], bin_suffix) for fyl in CSRCS
>+]
You also have SIMPLE_PROGRAMS defined in intl/uconv/tools/Makefile.in - that should be DISABLED now. I'll r+ assuming that's fixed.
> CPP_SOURCES += [
> 'NormalizationTest.cpp',
> 'UnicharSelfTest.cpp',
> ]
>+
>+bin_suffix = CONFIG['BIN_SUFFIX']
>+SIMPLE_PROGRAMS += [
>+ "%s%s" % (fyl[0:-4], bin_suffix) for fyl in CPP_SOURCES
>+]
I realize we're just moving things over as-is for now, but we should think about how to simplify this (and maybe get a followup bug on file). I don't think there's any need to define both CPP/C_SOURCES and SIMPLE_PROGRAMS, which contain the same information with different file extensions. Instead we could say that SIMPLE_PROGRAMS contains a list of sources which are compiled into programs. So we could just have:
SIMPLE_PROGRAMS += [
'NormalizationTest.cpp',
'UnicharSelfTest.cpp',
]
The backend would be responsible for replacing the suffix with BIN_SUFFIX, and the moz.build file doesn't need to redundantly declare CPP_SOURCES & SIMPLE_PROGRAMS. Thoughts?
Attachment #756739 -
Flags: review?(mshal) → review+
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Michael Shal [:mshal] from comment #6)
> Comment on attachment 756739 [details] [diff] [review]
> move SIMPLE_PROGRAMS to moz.build (file batch #1)
>
> >From: Joey Armstrong <joey@mozilla.com>
> >
> >bug 872086: move SIMPLE_PROGRAMS to moz.build (file batch #1)
> >
> >diff --git a/intl/uconv/tools/moz.build b/intl/uconv/tools/moz.build
> >--- a/intl/uconv/tools/moz.build
> >+++ b/intl/uconv/tools/moz.build
> >@@ -2,8 +2,13 @@
> > # vim: set filetype=python:
> > # 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/.
> >
> > CSRCS += [
> > 'umaptable.c',
> > ]
> >+
> >+bin_suffix = CONFIG['BIN_SUFFIX']
> >+SIMPLE_PROGRAMS += [
> >+ "%s%s" % (fyl[0:-2], bin_suffix) for fyl in CSRCS
> >+]
>
> You also have SIMPLE_PROGRAMS defined in intl/uconv/tools/Makefile.in - that
> should be DISABLED now. I'll r+ assuming that's fixed.
>
> > CPP_SOURCES += [
> > 'NormalizationTest.cpp',
> > 'UnicharSelfTest.cpp',
> > ]
> >+
> >+bin_suffix = CONFIG['BIN_SUFFIX']
> >+SIMPLE_PROGRAMS += [
> >+ "%s%s" % (fyl[0:-4], bin_suffix) for fyl in CPP_SOURCES
> >+]
May have to send this patch through again, variant parsing behavior reported by fedora and mac
https://tbpl.mozilla.org/php/getParsedLog.php?id=23645638&tree=Try
> I realize we're just moving things over as-is for now, but we should think
> about how to simplify this (and maybe get a followup bug on file).
>
> SIMPLE_PROGRAMS += [
> 'NormalizationTest.cpp',
> 'UnicharSelfTest.cpp',
> ]
Yes post conversion that would be a logical setup. Only change might be to suffix '_SOURCE' on the variable name so the assignment will make sense.
Indirection could also be used to avoid duplication:
SIMPLE_PROGRAMS += 'CSRCS'
Assignee | ||
Comment 8•12 years ago
|
||
Assignee | ||
Comment 9•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #756739 -
Attachment is obsolete: true
Assignee | ||
Comment 10•12 years ago
|
||
Comment on attachment 758105 [details] [diff] [review]
move SIMPLE_PROGRAMS to moz.build (file batch #1)
Removed dangling comma suffixed on the end of list comprehensions.
fedora, fedora64, osx 10.6 & 10.7 do not like the syntax.
Oddly enough osx 10.8 can digest the syntax w/o complaint.
http://tbpl.mozilla.org/?tree=Try&rev=55c92b5431bd
Assignee | ||
Comment 11•12 years ago
|
||
Comment on attachment 758105 [details] [diff] [review]
move SIMPLE_PROGRAMS to moz.build (file batch #1)
Try job: https://tbpl.mozilla.org/?tree=Try&rev=b7c80eeff105
only failure: osx 10.7 debug [bug 74844] - re-run to see if failure is reproducible by this job.
Assignee | ||
Comment 12•12 years ago
|
||
Comment on attachment 758105 [details] [diff] [review]
move SIMPLE_PROGRAMS to moz.build (file batch #1)
Try job http://tbpl.mozilla.org/?tree=Try&rev=b7c80eeff105
osx 10.7 leakstats failure is known: https://bugzilla.mozilla.org/show_bug.cgi?id=774844
Assignee | ||
Comment 13•12 years ago
|
||
Comment on attachment 758105 [details] [diff] [review]
move SIMPLE_PROGRAMS to moz.build (file batch #1)
Inbound push: committed changeset 134940:fa6b60d827d4
https://hg.mozilla.org/integration/mozilla-inbound/rev/fa6b60d827d4
Comment 14•12 years ago
|
||
Flags: in-testsuite+
Assignee | ||
Comment 15•12 years ago
|
||
Comment on attachment 758030 [details] [diff] [review]
2: move SIMPLE_PROGRAMS to moz.build (file batch #2).
Push to inbound: committed changeset 134995:b5c0c5b2a6d4
https://hg.mozilla.org/integration/mozilla-inbound/rev/b5c0c5b2a6d4
Comment 16•12 years ago
|
||
(In reply to Joey Armstrong [:joey] from comment #15)
> Comment on attachment 758030 [details] [diff] [review]
> 2: move SIMPLE_PROGRAMS to moz.build (file batch #2).
>
> Push to inbound: committed changeset 134995:b5c0c5b2a6d4
> https://hg.mozilla.org/integration/mozilla-inbound/rev/b5c0c5b2a6d4
Backed out for Windows bustage.
https://hg.mozilla.org/integration/mozilla-inbound/rev/2777f9ae3173
https://tbpl.mozilla.org/php/getParsedLog.php?id=24124508&tree=Mozilla-Inbound
Assignee | ||
Comment 17•12 years ago
|
||
Lingering var conversion was cleaned up in bug 897909
changeset: 142490:fdeb80c577b3
user: Ms2ger <ms2ger@gmail.com>
date: Wed Aug 14 09:00:13 2013 +0200
summary: Bug 897909 - Cleanup some SIMPLE_PROGRAMS; r=gps
% find . -name Makefile.in | xargs grep SIMPLE_PROGRAMS
./js/src/Makefile.in:HOST_SIMPLE_PROGRAMS += host_jskwgen$(HOST_BIN_SUFFIX)
./js/src/Makefile.in:HOST_SIMPLE_PROGRAMS += host_jsoplengen$(HOST_BIN_SUFFIX)
./uriloader/exthandler/tests/Makefile.in:ifneq (,$(SIMPLE_PROGRAMS))
./uriloader/exthandler/tests/Makefile.in: $(INSTALL) $(SIMPLE_PROGRAMS) $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit
./layout/style/test/Makefile.in:HOST_SIMPLE_PROGRAMS = $(addprefix host_, $(HOST_CPPSRCS:.cpp=$(HOST_BIN_SUFFIX)))
./xpcom/tests/Makefile.in:ifneq (,$(SIMPLE_PROGRAMS))
./xpcom/tests/Makefile.in: $(INSTALL) $(SIMPLE_PROGRAMS) $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit
./toolkit/mozapps/plugins/tests/Makefile.in:programs = $(SIMPLE_PROGRAMS:%$(BIN_SUFFIX)=$(TESTROOT)/%)
Whiteboard: [leave open]
Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Target Milestone: --- → mozilla26
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•