Open Bug 882907 Opened 11 years ago Updated 2 years ago

move SDK_LIBRARY to moz.build

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

REOPENED
mozilla24

People

(Reporter: joey, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [leave open])

Attachments

(3 files, 2 obsolete files)

No description provided.
Blocks: 882908
No longer depends on: 882904
No longer blocks: 870366
Blocks: nomakefiles
No longer blocks: 882908
No longer depends on: 882906
Attached patch move SDK_LIBRARY to mozbuild (logic). (obsolete) (deleted) — Splinter Review
Assignee: nobody → joey
Comment on attachment 762875 [details] [diff] [review] move SDK_LIBRARY to mozbuild (logic). Add SDK_LIBRARY as a passthrough variable.
Attachment #762875 - Flags: review?(gps)
Attachment #762875 - Flags: review?(gps) → review+
Attachment #762875 - Attachment is obsolete: true
Assignee: joey → jarmstrong
Comment on attachment 764134 [details] [diff] [review] move SDK_LIBRARY to mozbuild (logic). rebase, r=gps carried forward.
Comment on attachment 764134 [details] [diff] [review] move SDK_LIBRARY to mozbuild (logic). Pushed to inbound: committed changeset 135455:d4518f89e75a https://hg.mozilla.org/integration/mozilla-inbound/rev/d4518f89e75a
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
added leave-open whiteboard tag for the upcoming converted file patch.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Whiteboard: [leave open]
Attached patch move SDK_LIBRARY to mozbuild (file batch #1). (obsolete) (deleted) — Splinter Review
Attachment #768525 - Attachment is obsolete: true
Assignee: jarmstrong → joey
Comment on attachment 770303 [details] [diff] [review] move SDK_LIBRARY to mozbuild (file batch #1). http://tbpl.mozilla.org/?tree=Try&rev=40636e0bb9b1 timeout on osx 10.7 opt build. pand and unagi having problems with missing png library symbols, likely a conditional problem in a mozbuild file.
(In reply to Joey Armstrong [:joey] from comment #10) > Comment on attachment 770303 [details] [diff] [review] > move SDK_LIBRARY to mozbuild (file batch #1). > > http://tbpl.mozilla.org/?tree=Try&rev=40636e0bb9b1 > > timeout on osx 10.7 opt build. > pand and unagi having problems with missing png library symbols, likely a > conditional problem in a mozbuild file. media/libpng/arm/arm_init.c not referenced by Makefile.in is also the likely source for this failure.
Lingering var references % find . -name "Makefile.in" | xargs grep SDK_LIBRARY ./js/src/Makefile.in:SDK_LIBRARY = $(IMPORT_LIBRARY) ./js/src/Makefile.in:SDK_LIBRARY = $(SHARED_LIBRARY) ./mozglue/build/Makefile.in:SDK_LIBRARY = $(IMPORT_LIBRARY) ./mozglue/build/Makefile.in:SDK_LIBRARY = $(SHARED_LIBRARY) ./mozglue/build/Makefile.in:SDK_LIBRARY = $(REAL_LIBRARY) ./xpcom/glue/standalone/Makefile.in:SDK_LIBRARY = \ ./xpcom/glue/standalone/staticruntime/Makefile.in:SDK_LIBRARY = \ ./xpcom/glue/nomozalloc/Makefile.in:SDK_LIBRARY = \ ./xpcom/glue/Makefile.in:SDK_LIBRARY = \ ./xpcom/glue/staticruntime/Makefile.in:SDK_LIBRARY = \ ./memory/mozalloc/Makefile.in:SDK_LIBRARY = $(IMPORT_LIBRARY) ./memory/mozalloc/Makefile.in:SDK_LIBRARY = $(SHARED_LIBRARY) ./memory/build/Makefile.in:SDK_LIBRARY = $(REAL_LIBRARY) ./memory/jemalloc/Makefile.in:SDK_LIBRARY = $(REAL_LIBRARY) ./toolkit/library/Makefile.in:SDK_LIBRARY = $(IMPORT_LIBRARY) ./toolkit/library/Makefile.in:SDK_LIBRARY = $(SHARED_LIBRARY) ./toolkit/library/Makefile.in: $(MAKE) libs SHARED_LIBRARY_NAME=gtest/$(EFFECTIVE_LIB_PREFIX)$(LIBRARY_NAME) FINAL_TARGET=$(FINAL_TARGET)/gtest SDK_LIBRARY= IMPORT_LIB_DEST=$(IMPORT_LIB_DEST)/gtest LINK_GTEST=true ./intl/unicharutil/util/Makefile.in:SDK_LIBRARY = $(LIBRARY)
Attached patch move SDK_LIBRARY to mozbuild. (deleted) — Splinter Review
Comment on attachment 806041 [details] [diff] [review] move SDK_LIBRARY to mozbuild. try-build job: http://tbpl.mozilla.org/?tree=Try&rev=7a9f97ba2438
Comment on attachment 806041 [details] [diff] [review] move SDK_LIBRARY to mozbuild. Review of attachment 806041 [details] [diff] [review]: ----------------------------------------------------------------- convert xpcom::SDK_LIBRARY linux64-opt-GU/gaia test failure reported as a missing activeKeyboard or keyboard language. Retest to see if the failure is repeatable.
Attachment #806041 - Flags: review?(mshal)
Comment on attachment 806041 [details] [diff] [review] move SDK_LIBRARY to mozbuild. Looks good to me!
Attachment #806041 - Flags: review?(mshal) → review+
(In reply to Joey Armstrong [:joey] from comment #16) > re-try linux64-opt: http://tbpl.mozilla.org/?tree=Try&rev=32e008c7937d Transient failure, linux64 passed on 2nd attempt.
Attachment #806041 - Flags: review+ → review?(joey)
ignore, wrong bug.
Attachment #806041 - Flags: review?(joey)
Blocks: 922231
Assignee: joey → nobody
Can I take the rest of this bug?
One question: there are places where we set the SDK_LIBRARY variable to either $(IMPORT_LIBRARY) or $(SHARED_LIBRARY) depending on the platform. Those two variables are set in config/rules.mk, so I think they are unavailable in moz.build files. What is the right way of porting those kinds of variables to moz.build?
Wait a few days and there will be a new variable with either IMPORT_LIBRARY or SHARED_LIBRARY
Actually, come to think of it, it's just better to make it a boolean. Either the lib is in the sdk or it's not. It should be the build system's task to figure out what specific file that needs to be.
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: