Closed Bug 706186 Opened 14 years ago Closed 14 years ago

xulrunner-stub.exe depends on mozutils.dll

Categories

(Toolkit Graveyard :: XULRunner, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(firefox11 fixed, firefox12 fixed)

RESOLVED FIXED
mozilla13
Tracking Status
firefox11 --- fixed
firefox12 --- fixed

People

(Reporter: mossop, Assigned: mossop)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 3 obsolete files)

At some point (since Gecko 8 at least) xulrunner-stub.exe started depending on mozcrt19.dll. This means you can't just copy the stub to your app dir to run the app. Probably it works when copying the dll too though I didn't yet test that. Ideally we would just remove this dependency though.
As of XULRunner 9 it now depends on mozutils.dll
Summary: xulrunner-stub.exe depends on mozcrt19.dll → xulrunner-stub.exe depends on mozutils.dll
Assignee: nobody → dtownsend
Attached patch patch rev 1 (obsolete) — — Splinter Review
This forces static libraries and doesn't link against mozglue, mozutils etc for the stub.
Attachment #601743 - Flags: review?(benjamin)
Blocks: 722810
Comment on attachment 601743 [details] [diff] [review] patch rev 1 Review of attachment 601743 [details] [diff] [review]: ----------------------------------------------------------------- ::: xulrunner/stub/Makefile.in @@ +43,5 @@ > > include $(DEPTH)/config/autoconf.mk > > MODULE = xulrunner > +USE_STATIC_LIBS = 1 I'm not convinced you need this. @@ +92,5 @@ > endif > > include $(topsrcdir)/config/config.mk > > +MOZ_UTILS_PROGRAM_LDFLAGS = This effectively removes jemalloc from the stub on linux. You probably want MOZ_UTILS_LDFLAGS =
Attachment #601743 - Flags: review?(benjamin) → review-
Attached patch patch rev 2 (obsolete) — — Splinter Review
Should have checked that the patch I wrote a few months ago was still the right fix, it almost was... (In reply to Mike Hommey [:glandium] from comment #4) > Comment on attachment 601743 [details] [diff] [review] > patch rev 1 > > Review of attachment 601743 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: xulrunner/stub/Makefile.in > @@ +43,5 @@ > > > > include $(DEPTH)/config/autoconf.mk > > > > MODULE = xulrunner > > +USE_STATIC_LIBS = 1 > > I'm not convinced you need this. Without this the stub includes a dependency on mozglue (http://mxr.mozilla.org/mozilla-central/source/config/config.mk#253) and on the msvcr dll (http://mxr.mozilla.org/mozilla-central/source/config/config.mk#507), neither of which are wanted for the stub. > @@ +92,5 @@ > > endif > > > > include $(topsrcdir)/config/config.mk > > > > +MOZ_UTILS_PROGRAM_LDFLAGS = > > This effectively removes jemalloc from the stub on linux. You probably want > MOZ_UTILS_LDFLAGS = Actually turns out this isn't necessary anymore, or I was mistaken about it being necessary in the first place.
Attachment #601743 - Attachment is obsolete: true
Attachment #601802 - Flags: review?(mh+mozilla)
Note I've tested this new patch on Windows and Linux, not on OSX yet.
Comment on attachment 601802 [details] [diff] [review] patch rev 2 Review of attachment 601802 [details] [diff] [review]: ----------------------------------------------------------------- ::: xulrunner/stub/Makefile.in @@ +43,5 @@ > > include $(DEPTH)/config/autoconf.mk > > MODULE = xulrunner > +USE_STATIC_LIBS = 1 In practice, what this does is "MOZ_GLUE_LDFLAGS=" on windows. Not on mac, where you'd want the same thing. So I think the right fix would be MOZ_GLUE_LDFLAGS= instead.
Attachment #601802 - Flags: review?(mh+mozilla) → review-
Attached patch patch rev 3 (obsolete) — — Splinter Review
Ok, last try hopefully. Verified that this removes all non-system dependencies on linux, mac and windows. USE_STATIC_LIBS to drop the msvc dependencies on windows. MOZ_GLUE_LDFLAGS to drop the mozglue dependencies on windows and mac. Linux seems ok by itself for some reason.
Attachment #601802 - Attachment is obsolete: true
Attachment #602134 - Flags: review?(mh+mozilla)
Comment on attachment 602134 [details] [diff] [review] patch rev 3 Review of attachment 602134 [details] [diff] [review]: ----------------------------------------------------------------- ::: xulrunner/stub/Makefile.in @@ +44,5 @@ > include $(DEPTH)/config/autoconf.mk > > MODULE = xulrunner > +USE_STATIC_LIBS = 1 > +MOZ_GLUE_LDFLAGS = Please put a comment as to why these are there. What is the file size before and after, on windows?
Attached patch patch rev 4 — — Splinter Review
File size before is 17920, after is 98816.
Attachment #602134 - Attachment is obsolete: true
Attachment #602134 - Flags: review?(mh+mozilla)
Attachment #602190 - Flags: review?(mh+mozilla)
Comment on attachment 602190 [details] [diff] [review] patch rev 4 Review of attachment 602190 [details] [diff] [review]: ----------------------------------------------------------------- > File size before is 17920, after is 98816. Not too bad, I'd say. I wonder how small it would get if the stub was rewritten in C (which it mostly is already). But I don't think it matters for this bug, except if bsmedberg objects to the jump in size.
Attachment #602190 - Flags: review?(mh+mozilla) → review+
Certainly cheaper than also having to copy the ~160kb of msvc* dlls alongside the stub in your app. https://hg.mozilla.org/integration/mozilla-inbound/rev/f622f39e4296
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Comment on attachment 602190 [details] [diff] [review] patch rev 4 [Approval Request Comment] Regression caused by (bug #): Unknown User impact if declined: XULRunner apps have to use an older or nightly SDK to get a usable stub exe Testing completed (on m-c, etc.): On nightly Risk to taking this patch (and alternatives if risky): No risk to Firefox, isn't part of the regular build. String changes made by this patch: None
Attachment #602190 - Flags: approval-mozilla-beta?
Attachment #602190 - Flags: approval-mozilla-aurora?
Comment on attachment 602190 [details] [diff] [review] patch rev 4 [Triage Comment] NPOTB for Firefox, so approving for Aurora 12 and Beta 11.
Attachment #602190 - Flags: approval-mozilla-beta?
Attachment #602190 - Flags: approval-mozilla-beta+
Attachment #602190 - Flags: approval-mozilla-aurora?
Attachment #602190 - Flags: approval-mozilla-aurora+
Whiteboard: [qa-]
Depends on: 741456
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: