Closed
Bug 463075
Opened 16 years ago
Closed 15 years ago
building xul app --with-libxul-sdk fails lacking nspr-config
Categories
(Firefox Build System :: General, defect)
Tracking
(status1.9.1 .3-fixed)
RESOLVED
FIXED
mozilla1.9.2b1
Tracking | Status | |
---|---|---|
status1.9.1 | --- | .3-fixed |
People
(Reporter: ynvich, Assigned: karlt)
References
Details
Attachments
(3 files, 4 obsolete files)
3.43 KB,
patch
|
ted
:
review+
beltzner
:
approval1.9.1.2+
|
Details | Diff | Splinter Review |
911 bytes,
patch
|
ted
:
review+
samuel.sidler+old
:
approval1.9.1.3+
|
Details | Diff | Splinter Review |
1.49 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b2pre) Gecko/20081104 Firefox/3.1b2pre Build Identifier: trunk configure.in is hardcoding $(DEPTH)/nsprpub/config/nspr-config into $(NSPR_CFLAGS) and $(NSPR_LIBS), but the file isn't created. Looks like nsprpub/configure isn't called anymore. This is a regression against 1.9.0 Reproducible: Always There maybe several solutions: * actually create nspr-config in the tree in --with-libxul-sdk builds; * ship nspr-config with sdk and use that one.
Comment 1•16 years ago
|
||
Regression from bug 462405.
Comment 2•16 years ago
|
||
In the xulrunner (SDK) side, can we copy nspr-config to dist/lib or someplace like that, and run it from there instead of directly from objdir/nsprpub/config ?
Reporter | ||
Comment 3•16 years ago
|
||
Copying nspr-config to dist/bin, and setting _USE_SYSTEM_NSPR=1 on "${with_libxul_sdk+set}" = set should be enough for uninstalled case. In that case, nspr-config should get installed to $(libdir) on 'make install'.
Comment 4•16 years ago
|
||
No, we don't want to install NSPR as the system NSPR... the nspr-config should be isolated within sdkdir/lib
Reporter | ||
Comment 5•16 years ago
|
||
For reference, js-config is installed in dist/bin when building. 'make install' puts it into $(prefix)/bin
Assignee | ||
Comment 6•15 years ago
|
||
This was the intention of revision 1.2.28.8 of nsprpub/config/Makefile.in in 2001, but that was backed out for some tinderbox issue. http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=NSPR&branch=NSPRPUB_CLIENT_BRANCH&branchtype=match&dir=&file=mozilla%2Fnsprpub%2Fconfig%2FMakefile.in&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=all&mindate=&maxdate=&cvsroot=%2Fcvsroot Probably time to try this again.
Attachment #376174 -
Flags: review?
Assignee | ||
Updated•15 years ago
|
Attachment #376174 -
Flags: review? → review?(ted.mielczarek)
Assignee | ||
Comment 7•15 years ago
|
||
(In reply to comment #4) > No, we don't want to install NSPR as the system NSPR... the nspr-config should > be isolated within sdkdir/lib I don't think I fully understand this. Would installing nspr-config into dist/bin be making it the system NSPR?
Assignee | ||
Comment 8•15 years ago
|
||
changes to Mozilla's configure.in to use nspr-config exported by attachment 376174 [details] [diff] [review].
Assignee: nobody → mozbugz
Assignee | ||
Comment 9•15 years ago
|
||
export needs to depend on $(TARGETS) for nsinstall.
Attachment #376174 -
Attachment is obsolete: true
Attachment #377979 -
Flags: review?(ted.mielczarek)
Attachment #376174 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 10•15 years ago
|
||
Do we want 1.9.1 to be able to build xul apps without --with-system-nspr? (Or can xul apps be built without --with-libxul-sdk?)
Flags: blocking1.9.1?
Wouldn't block, but would take -- looks like an easy review for Ted.
Flags: wanted1.9.1+
Flags: blocking1.9.1?
Flags: blocking1.9.1-
Comment 12•15 years ago
|
||
(In reply to comment #10) > (Or can xul apps be built without --with-libxul-sdk?) They can be built with: ac_add_app_options <project> --with-libxul-sdk=<relative path to xulrunner objdir>/dist in a multi-project build (which is what we're doing for Fennec). This bug is only about using a pre-built SDK, right?
Assignee | ||
Comment 13•15 years ago
|
||
(In reply to comment #12) > They can be built with: > ac_add_app_options <project> --with-libxul-sdk=<relative path to xulrunner > objdir>/dist > > in a multi-project build (which is what we're doing for Fennec). "ac_add_app_options mobile --with-libxul-sdk=../xulrunner/dist" didn't work for me (with mk_add_options MOZ_BUILD_PROJECTS="xulrunner browser mobile").
Assignee | ||
Comment 14•15 years ago
|
||
Actually, it was probably "ac_add_app_options browser --with-libxul-sdk=../xulrunner/dist" that wasn't working for me. I probably didn't get as far as mobile. Maybe mobile doesn't use NSPR?
Comment 15•15 years ago
|
||
(In reply to comment #14) > Maybe mobile doesn't use NSPR? Indeed it doesn't (apart from on WinCE, which doesn't use nspr-config).
Comment 16•15 years ago
|
||
Just taken the liberty of rolling up those two patches since both are needed and adding a fix to stop nspr-config being packaged in Firefox on OSX.
Attachment #376177 -
Attachment is obsolete: true
Attachment #377979 -
Attachment is obsolete: true
Attachment #380194 -
Flags: review?(ted.mielczarek)
Attachment #377979 -
Flags: review?(ted.mielczarek)
Updated•15 years ago
|
Attachment #380194 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 17•15 years ago
|
||
What's the process for getting (the NSPR part of these) changes into NSPR?
Comment 18•15 years ago
|
||
Comment on attachment 377979 [details] [diff] [review] install nspr-config into $(dist_bindir) Ted, this is identical to the NSPR part of the patch you reviewed and is what needs to land there.
Attachment #377979 -
Attachment is obsolete: false
Attachment #377979 -
Flags: review+
Comment 19•15 years ago
|
||
We can avoid needing to make changes to NSPR (which will take a while to get onto branch) by simply copying across nspr-config ourselves. The only new part of this patch is in config/nspr/Makefile.in
Attachment #385091 -
Flags: review?(ted.mielczarek)
Comment 20•15 years ago
|
||
We've basically broken the documented ways to build XUL apps with our build system so any of those apps that include their own binary components can't update to 1.9.1 without this. The fix is pretty trivial build config stuff, any regressions should be almost immediately apparent.
Flags: blocking1.9.1.1?
Updated•15 years ago
|
Attachment #385091 -
Flags: review?(ted.mielczarek) → review+
Comment 21•15 years ago
|
||
Pushed to trunk: http://hg.mozilla.org/mozilla-central/rev/dc1c75480d85
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Updated•15 years ago
|
Attachment #385091 -
Flags: approval1.9.1.1?
Comment 22•15 years ago
|
||
Comment on attachment 385091 [details] [diff] [review] patch avoiding nspr [Checkin: Comment 21 & 25] This has been on trunk for nearly a week now with no issues, and it is the sort of thing that would completely break the build if it was wrong, so I think this is safe to take on branch
Comment 23•15 years ago
|
||
We won't *block* 1.9.1.1 on this, but may take the patch. It's more like that we'll block 1.9.1.2 on it and take it then, however.
Flags: wanted1.9.1.x+
Flags: blocking1.9.1.1?
Flags: blocking1.9.1.1-
Updated•15 years ago
|
Attachment #385091 -
Flags: approval1.9.1.1? → approval1.9.1.2+
Comment 24•15 years ago
|
||
Comment on attachment 385091 [details] [diff] [review] patch avoiding nspr [Checkin: Comment 21 & 25] a1912=beltzner
Updated•15 years ago
|
status1.9.1:
--- → wanted
Flags: wanted1.9.1.x+
Comment 25•15 years ago
|
||
Fixed on 1.9.1: http://hg.mozilla.org/releases/mozilla-1.9.1/rev/d58f788d601b
Comment 26•15 years ago
|
||
I've noticed there is no "nspr-config" in the xulrunner SDK (for both 1.9.1 and 1.9.2 - at least in the latest Linux nightly builds): http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/latest-trunk/ http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/latest-mozilla-1.9.1/ It seems like there should be right?
Comment 27•15 years ago
|
||
For some reason this is only working on OSX.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•15 years ago
|
Attachment #393545 -
Flags: review?(ted.mielczarek) → review+
Comment 29•15 years ago
|
||
Landed, this should work now: http://hg.mozilla.org/mozilla-central/rev/00470cd4569c
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 30•15 years ago
|
||
(Thanks, Dave. I guess we'll want that change on 1.9.1 too, in a few days maybe.)
Comment 31•15 years ago
|
||
Dave: Does that patch apply to 1.9.1? Can you request approval if so?
Comment 32•15 years ago
|
||
Attachment #393665 -
Flags: review?(bugzilla)
Updated•15 years ago
|
Attachment #393665 -
Flags: review?(bugzilla) → review+
Comment 33•15 years ago
|
||
Comment on attachment 393665 [details] [diff] [review] fix comm-central packaging [Checkin: Comment 33] http://hg.mozilla.org/comm-central/rev/1a8ed893eaf2
Attachment #393665 -
Attachment description: fix comm-central packaging → fix comm-central packaging [checked in]
Comment 34•15 years ago
|
||
Comment on attachment 393545 [details] [diff] [review] fix packaging [Checkin: Comment 29 & 36] Verified that the mozilla-central nightlies are giving SDKs with nspr-config in it on all platforms, we should take this patch on the branch too
Attachment #393545 -
Flags: approval1.9.1.3?
Comment 35•15 years ago
|
||
Comment on attachment 393545 [details] [diff] [review] fix packaging [Checkin: Comment 29 & 36] Approved for 1.9.1.3. a=ss
Attachment #393545 -
Flags: approval1.9.1.3? → approval1.9.1.3+
Updated•15 years ago
|
Attachment #393665 -
Attachment description: fix comm-central packaging [checked in] → fix comm-central packaging
[Checkin: Comment 33]
Updated•15 years ago
|
Attachment #393545 -
Attachment description: fix packaging → fix packaging
[Checkin: Comment 29 & 36]
Updated•15 years ago
|
Attachment #385091 -
Attachment description: patch avoiding nspr → patch avoiding nspr
[Checkin: Comment 21 & 25]
Updated•15 years ago
|
Attachment #377979 -
Attachment is obsolete: true
Updated•15 years ago
|
Attachment #380194 -
Attachment is obsolete: true
Updated•15 years ago
|
Target Milestone: mozilla1.9.2a1 → mozilla1.9.2b1
Version: unspecified → Trunk
Updated•15 years ago
|
Blocks: C191ConfSync
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•