Closed Bug 395586 Opened 17 years ago Closed 17 years ago

XULRunner debug is broken on mac [unless you find the badly linked magic page on MDC]

Categories

(Firefox Build System :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Gijs, Assigned: Gijs)

References

Details

Attachments

(1 file)

STR:

1. Build a debug xulrunner build on mac.
2. Try to use it to run your application.

AR:
Does not work.

ER:
Works.

Reason being you need to add your own xulrunner lib versions to DYLD_LIBRARY_PATH or it can't find your non-libxul libraries. Non-libxul? Oh, yes, forgot to tell you that - libxul and debug no longer like eachother (thanks, bug 385241). Problem is, mac doesn't really like non-libxul xulrunners. It would be really really helpful to have this fixed. Right now I have to use XCode to run my apps, and that is Pretty Freaking Annoying.

Also:

http://developer.mozilla.org/en/docs/XULRunner:MacFAQ#Special_Build_Notes
http://developer.mozilla.org/en/docs/XULRunner:Creating_custom_app_bundles_for_Mac_OS_X

don't mention this, hence why me and several other people were pretty stumped.

The missing link is on:
http://developer.mozilla.org/en/docs/mozilla.dev.platform_FAQ
This page is not linked from anywhere, except the newsgroup summaries. Yay for findable information!

As a nice side effect, applications created this way, to run with a xulrunner that mac os x can't completely find, get a nice big "no access sign" overlaid in their icon (in Finder and in the cmd+tab list). This is pretty ugly.

</rant>
The MacFAQ page does say not to build with libxul disabled, course it doesn't mention that that is the default for debug builds.
Severity: critical → normal
The stub doesn't work non-libxul on all platforms, by design and necessity. And you can certainly build a debug-libxul app by specifying --enable-debug --enable-libxul

Feel free to make the docs better. I believe the underlying bug is WONTFIX, though I'd love better warnings/logging to make it clear what's going on and what you need to do about it.
Would it not be possible to enable libxul for xulrunner even for debug builds? Or at least do so on mac? (so basically add extra checks to whatever happened in bug 385241)
This works as far as I've been able to tell - Firefox debug gets built without libxul, XULRunner debug gets built *with* libxul.
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Attachment #281022 - Flags: review?(benjamin)
Comment on attachment 281022 [details] [diff] [review]
Patch not to disable libxul for xulrunner builds

This looks ok to me.  I guess if you're building xulrunner debug, you'll just have to know better if you don't want to link libxul debug.
Attachment #281022 - Flags: review?(benjamin) → review+
Comment on attachment 281022 [details] [diff] [review]
Patch not to disable libxul for xulrunner builds

Alright. Asking for approval - build system only change which should only affect xulrunner debug builds. No risk involved, as far as I can tell.
Attachment #281022 - Flags: approval1.9?
Comment on attachment 281022 [details] [diff] [review]
Patch not to disable libxul for xulrunner builds

a=bzbarsky
Attachment #281022 - Flags: approval1.9? → approval1.9+
Checking in mozilla/configure.in;
/cvsroot/mozilla/configure.in,v  <--  configure.in
new revision: 1.1875; previous revision: 1.1874
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: