Closed
Bug 914270
Opened 11 years ago
Closed 11 years ago
move FORCE_STATIC_LIB to mozbuild
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla27
People
(Reporter: joey, Assigned: Cykesiopka)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 13 obsolete files)
67.15 KB,
patch
|
Details | Diff | Splinter Review | |
8.64 KB,
patch
|
Details | Diff | Splinter Review | |
1.12 KB,
patch
|
Details | Diff | Splinter Review |
% find . -name 'Makefile.in' | xargs grep FORCE_STATIC
./gfx/ots/src/Makefile.in:FORCE_STATIC_LIB = 1
./gfx/harfbuzz/src/Makefile.in:FORCE_STATIC_LIB = 1
./gfx/graphite2/src/Makefile.in:FORCE_STATIC_LIB = 1
./js/src/Makefile.in:FORCE_STATIC_LIB = 1
./js/src/editline/Makefile.in:FORCE_STATIC_LIB = 1
./widget/gonk/libdisplay/Makefile.in:FORCE_STATIC_LIB= 1
./widget/xremoteclient/Makefile.in:FORCE_STATIC_LIB = 1
./widget/qt/faststartupqt/Makefile.in:FORCE_STATIC_LIB = 1
./modules/libbz2/src/Makefile.in:FORCE_STATIC_LIB= 1
./modules/libmar/sign/Makefile.in:FORCE_STATIC_LIB = 1
./modules/libmar/verify/Makefile.in:FORCE_STATIC_LIB = 1
./modules/libmar/src/Makefile.in:FORCE_STATIC_LIB = 1
./mozglue/android/Makefile.in:FORCE_STATIC_LIB = 1
./mozglue/linker/Makefile.in:FORCE_STATIC_LIB= 1
./mozglue/build/Makefile.in:FORCE_STATIC_LIB = 1
./db/sqlite3/src/Makefile.in:FORCE_STATIC_LIB = 1
./mfbt/Makefile.in:FORCE_STATIC_LIB = 1
./xpcom/glue/standalone/Makefile.in:FORCE_STATIC_LIB = 1
./xpcom/glue/standalone/staticruntime/Makefile.in:FORCE_STATIC_LIB = 1
./xpcom/glue/nomozalloc/Makefile.in:FORCE_STATIC_LIB = 1
./xpcom/glue/Makefile.in:FORCE_STATIC_LIB = 1
./xpcom/glue/staticruntime/Makefile.in:FORCE_STATIC_LIB = 1
./xpcom/reflect/xptinfo/src/Makefile.in:FORCE_STATIC_LIB = 1
./xpcom/reflect/xptcall/src/Makefile.in:FORCE_STATIC_LIB = 1
./xpcom/reflect/xptcall/src/md/unix/Makefile.in:FORCE_STATIC_LIB = 1
./xpcom/reflect/xptcall/src/md/win32/Makefile.in:FORCE_STATIC_LIB = 1
./xpcom/reflect/xptcall/src/md/os2/Makefile.in:FORCE_STATIC_LIB = 1
./xpcom/string/src/Makefile.in:FORCE_STATIC_LIB = 1
./profile/dirserviceprovider/standalone/Makefile.in:FORCE_STATIC_LIB = 1
./profile/dirserviceprovider/src/Makefile.in:FORCE_STATIC_LIB = 1
./memory/mozalloc/Makefile.in:FORCE_STATIC_LIB= 1
./memory/mozjemalloc/Makefile.in:FORCE_STATIC_LIB= 1
./memory/build/Makefile.in:FORCE_STATIC_LIB = 1
./memory/jemalloc/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/breakpad-windows-libxul/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/processor/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/client/linux/minidump_writer/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/client/linux/crash_generation/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/client/linux/handler/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/client/solaris/handler/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/client/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/client/mac/crash_generation/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/client/mac/handler/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/common/dwarf/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/common/linux/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/common/solaris/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/common/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/google-breakpad/src/common/mac/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/crashreporter/breakpad-windows-standalone/Makefile.in:FORCE_STATIC_LIB = 1
./toolkit/components/protobuf/Makefile.in:FORCE_STATIC_LIB = 1
./rdf/util/src/internal/Makefile.in:FORCE_STATIC_LIB = 1
./rdf/util/src/Makefile.in:FORCE_STATIC_LIB = 1
./intl/unicharutil/util/internal/Makefile.in:FORCE_STATIC_LIB = 1
./intl/unicharutil/util/Makefile.in:FORCE_STATIC_LIB = 1
./parser/expat/lib/Makefile.in:FORCE_STATIC_LIB = 1
./other-licenses/android/Makefile.in:FORCE_STATIC_LIB = 1
./media/mtransport/standalone/Makefile.in:FORCE_STATIC_LIB= 1
./media/libjpeg/Makefile.in:FORCE_STATIC_LIB = 1
./media/libogg/src/Makefile.in:FORCE_STATIC_LIB= 1
./media/libtremor/lib/Makefile.in:FORCE_STATIC_LIB= 1
./media/libopus/Makefile.in:FORCE_STATIC_LIB= 1
./media/libvorbis/lib/Makefile.in:FORCE_STATIC_LIB= 1
./media/libspeex_resampler/src/Makefile.in:FORCE_STATIC_LIB = 1
./media/libnestegg/src/Makefile.in:FORCE_STATIC_LIB= 1
./media/libpng/Makefile.in:FORCE_STATIC_LIB= 1
./media/libpng/Makefile.in:FORCE_STATIC_LIB = 1
./media/libcubeb/src/Makefile.in:FORCE_STATIC_LIB= 1
./media/libtheora/lib/Makefile.in:FORCE_STATIC_LIB = 1
./media/libvpx/Makefile.in:FORCE_STATIC_LIB= 1
./build/unix/stdc++compat/Makefile.in:FORCE_STATIC_LIB= 1
./build/stlport/Makefile.in:FORCE_STATIC_LIB = 1
./content/media/omx/mediaresourcemanager/Makefile.in:FORCE_STATIC_LIB = 1
./browser/components/dirprovider/Makefile.in:FORCE_STATIC_LIB = 1
./browser/components/about/Makefile.in:FORCE_STATIC_LIB = 1
./browser/components/shell/src/Makefile.in:FORCE_STATIC_LIB = 1
./browser/components/feeds/src/Makefile.in:FORCE_STATIC_LIB = 1
./browser/components/migration/src/Makefile.in:FORCE_STATIC_LIB = 1
Reporter | ||
Updated•11 years ago
|
Blocks: nomakefiles
Reporter | ||
Comment 1•11 years ago
|
||
passthrough variable already added, Makefile.in still needs to be converted.
![]() |
Assignee | |
Comment 2•11 years ago
|
||
Attachment #809682 -
Flags: review?(joey)
![]() |
Assignee | |
Comment 3•11 years ago
|
||
Attachment #809683 -
Flags: review?(joey)
![]() |
Assignee | |
Comment 4•11 years ago
|
||
Attachment #809685 -
Flags: review?(joey)
Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 809682 [details] [diff] [review]
Part 1: Simple/Automated moves v1
Review of attachment 809682 [details] [diff] [review]:
-----------------------------------------------------------------
browser/components/about/moz.build
browser/components/dirprovider/moz.build
browser/components/feeds/src/moz.build
browser/components/migration/src/moz.build
build/stlport/moz.build
intl/unicharutil/util/internal/moz.build
js/src/editline/moz.build
media/libcubeb/src/moz.build
[...]
==================================
> FORCE_STATIC_LIB = True
>
nit: several files have trailing blank lines
Attachment #809682 -
Flags: review?(joey) → review+
Reporter | ||
Comment 6•11 years ago
|
||
Comment on attachment 809683 [details] [diff] [review]
Part 2: Manual moves v1
Review of attachment 809683 [details] [diff] [review]:
-----------------------------------------------------------------
gfx/graphite2/src/moz.build
gfx/harfbuzz/src/moz.build
gfx/ots/src/moz.build
[...]
=================
suggestion: reversing the conditional would make the WINNT-ness of the blocks bit more explicit.
if CONFIG['OS_TARGET'] == 'WINNT':
FORCE_STATIC_LIB = True
else:
LIBXUL_LIBRARY = True
Also the statement placeholder 'pass' can be removed since FORCE_STATIC has been uncommented.
Are there any try results available for the patch(es) ?
Attachment #809683 -
Flags: review?(joey) → feedback?(joey)
Reporter | ||
Updated•11 years ago
|
Attachment #809683 -
Flags: feedback?(joey) → feedback+
Reporter | ||
Updated•11 years ago
|
Whiteboard: [leaveopen]
Reporter | ||
Comment 7•11 years ago
|
||
Comment on attachment 809685 [details] [diff] [review]
Part 3: Disallow in Makefiles v1
Review of attachment 809685 [details] [diff] [review]:
-----------------------------------------------------------------
looks good, the [leaveopen] whiteboard tag on the bug can be removed when this patch is submitted after the other conversion patches have landed.
Attachment #809685 -
Flags: review?(joey) → review+
![]() |
Assignee | |
Comment 8•11 years ago
|
||
+ Removed trailing blank lines
Carrying forward r+.
Assignee: nobody → cykesiopka.bmo
Attachment #809682 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 9•11 years ago
|
||
+ Reverse the WINNT conditional blocks
+ Remove instances of |pass|
Attachment #809683 -
Attachment is obsolete: true
Attachment #809949 -
Flags: review?(joey)
![]() |
Assignee | |
Comment 10•11 years ago
|
||
(In reply to Joey Armstrong [:joey] from comment #6)
> Are there any try results available for the patch(es) ?
No, unfortunately. I don't have access to the try server.
Reporter | ||
Comment 11•11 years ago
|
||
(In reply to Cykesiopka from comment #10)
> (In reply to Joey Armstrong [:joey] from comment #6)
> > Are there any try results available for the patch(es) ?
>
> No, unfortunately. I don't have access to the try server.
Oh if you do not have access [yet] feel free to ask for someone to submit a try job on your behalf. In channel, from whomever is doing your code review, etc. Usually not a problem as long as the patch applies cleanly and esp good to sanity check conversion patches. Just note what platforms/test coverage is needed for the patches.
patch 1: [build & test] https://tbpl.mozilla.org/?tree=Try&rev=23c815b51217
patch 2: [build-only] https://tbpl.mozilla.org/?tree=Try&rev=e1a1ebe8e082
Reporter | ||
Comment 12•11 years ago
|
||
Comment on attachment 809949 [details] [diff] [review]
Part 2: Manual moves v2
Review of attachment 809949 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, minor nit for extra blank lines.
db/sqlite3/src/moz.build
========================
+if CONFIG['MOZ_FOLD_LIBS']:
+ FORCE_STATIC_LIB = True
+
memory/mozalloc/moz.build
=========================
+if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
+ FORCE_STATIC_LIB = True
+
Attachment #809949 -
Flags: review?(joey) → review+
![]() |
Assignee | |
Comment 13•11 years ago
|
||
+ Remove extra blank lines
Carrying forward r+.
Attachment #809949 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 14•11 years ago
|
||
(In reply to Joey Armstrong [:joey] from comment #11)
> Oh if you do not have access [yet] feel free to ask for someone to submit a
> try job on your behalf. In channel, from whomever is doing your code
> review, etc. Usually not a problem as long as the patch applies cleanly and
> esp good to sanity check conversion patches. Just note what platforms/test
> coverage is needed for the patches.
OK, thanks.
> patch 1: [build & test] https://tbpl.mozilla.org/?tree=Try&rev=23c815b51217
> patch 2: [build-only] https://tbpl.mozilla.org/?tree=Try&rev=e1a1ebe8e082
All the oranges etc are intermittent I guess?
![]() |
Assignee | |
Updated•11 years ago
|
Flags: needinfo?(joey)
Reporter | ||
Comment 17•11 years ago
|
||
responded but never cleared the needinfo flag.
Flags: needinfo?(joey)
![]() |
Assignee | |
Comment 18•11 years ago
|
||
Are the previous try push oranges all intermittent?
Should I get a new try push done now that so much time has passed?
(Sorry, I couldn't find the answer anywhere...)
Flags: needinfo?(joey)
Reporter | ||
Comment 19•11 years ago
|
||
Sorry for not responding sooner. Since you are not changing underlying logic and the faiures are orange/known/intermittent your patch will be ok to push.
Flags: needinfo?(joey)
![]() |
Assignee | |
Comment 20•11 years ago
|
||
(In reply to Joey Armstrong [:joey] from comment #19)
> Sorry for not responding sooner. Since you are not changing underlying
> logic and the faiures are orange/known/intermittent your patch will be ok to
> push.
OK, thanks!
![]() |
Assignee | |
Comment 22•11 years ago
|
||
Updated for post Bug 900526, which moved _MOZBUILD_EXTERNAL_VARIABLES to config.mk
This updated patch still works, and the changes seem really trivial, so carrying forward r+. Please correct otherwise.
Attachment #809685 -
Attachment is obsolete: true
![]() |
Assignee | |
Updated•11 years ago
|
Keywords: checkin-needed
Comment 23•11 years ago
|
||
Sorry doesn't apply cleanly against inbound, please can you rebase? :-)
Keywords: checkin-needed
Whiteboard: [leaveopen]
![]() |
Assignee | |
Comment 24•11 years ago
|
||
Against 17d130494887 on m-i.
Attachment #821440 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 25•11 years ago
|
||
Against 17d130494887 on m-i.
Attachment #815731 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 26•11 years ago
|
||
Against 17d130494887 on m-i.
Attachment #821442 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 27•11 years ago
|
||
(In reply to Ed Morley [:edmorley UTC+1] from comment #23)
> Sorry doesn't apply cleanly against inbound, please can you rebase? :-)
Done. Hope it applies cleanly this time...
Keywords: checkin-needed
![]() |
Assignee | |
Comment 28•11 years ago
|
||
Rebased on a70124509785 of m-i.
Attachment #821750 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 29•11 years ago
|
||
Attachment #821751 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 30•11 years ago
|
||
Attachment #821752 -
Attachment is obsolete: true
Comment 31•11 years ago
|
||
(In reply to Cykesiopka from comment #27)
> Done. Hope it applies cleanly this time...
It does, thank you :-)
Comment 32•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e43b02e631f0
https://hg.mozilla.org/integration/mozilla-inbound/rev/359ff41b3cd1
https://hg.mozilla.org/integration/mozilla-inbound/rev/7195e4f5c68c
Keywords: checkin-needed
Comment 33•11 years ago
|
||
Followup to touch the CLOBBER file, since this was burning otherwise:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b35cd52a1f40
Joey, until bug 852814 is fixed, moving variables to moz.build requires a clobber - so can you ask people to tocuh the CLOBBER file as part of these transition bugs please? (Note: try server is always-clobber so won't pick this up)
Flags: needinfo?(joey)
Comment 35•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e43b02e631f0
https://hg.mozilla.org/mozilla-central/rev/359ff41b3cd1
https://hg.mozilla.org/mozilla-central/rev/7195e4f5c68c
https://hg.mozilla.org/mozilla-central/rev/b35cd52a1f40
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
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
•