Closed Bug 535 Opened 26 years ago Closed 26 years ago

Can't do a MOZ_LITE build

Categories

(MozillaClassic Graveyard :: Layout, defect, P2)

1998-07-28
SGI
HP-UX

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rkl, Assigned: toshok)

References

()

Details

It's not possible to do a MOZ_LITE build from the original 28th July 1998 Mozilla tarball. Yes, I know the recommended default is to do a MOZ_MEDIUM build, but some of us don't want Composer eating RAM thank you :-) I managed to do a MOZ_LITE build on HP-UX by changing lib/layout/Makefile by moving the following CSRCS source files outside of the ifdef EDITOR section and into the main section: layfree.c, layimage.c, layout.c, laysel.c, laytable.c, laytags.c, laytext.c, layutil.c (in other words, the only thing left in the CSRCS += line inside ifdef EDITOR was layedit.c and $(NULL)) The other change I had to make was to cmd/xfe/src/FindDialog.cpp. None of the EDT_* functions should be called when doing a MOZ_LITE build. Unfortunately, fe_replace_db() calls EDT_ReplaceText(), so #ifdef EDITOR was put around the whole fe_replace_db() function. This, of course, meant that #ifdef EDITOR was needed around the code that called this function too. Line 498 onwards of FindDialog.cpp now reads: #ifdef EDITOR if (replaceP) { ... down to line 550: ... else // not replaceP #endif { XtVaSetValues (find_text, ... One final note - is it wise to use the environmental variable EDITOR in the various Mozilla Makefiles to determine if Composer is built ? EDITOR is a standard UNIX env. var. to indicate your default text editor and is often defined in a user's environment ! It means that you have to remember to unset EDITOR prior to any MOZ_LITE build...ho hum... Note that I've fixed this (and other problems under HP-UX) via a patch available here: http://hpux.csc.liv.ac.uk/hppd/mozilla/mozpatch-5.00.tar.gz (this contains a file mozilla.patch, which is the context diffs for all HP-UX problems to date - documentation on the changes in the patch are in the HPUX.Install file)
*** Bug 515 has been marked as a duplicate of this bug. ***
Assignee: briano → toshok
Component: Build Config → Layout
I've added support for MOZ_EDITOR in mozilla/config/config.mk, so the Makefile(s) currently using "ifdef EDITOR" should switch to "ifdef MOZ_EDITOR". The rest of this bug seems to be layout specific, so I'm reassigning it to the layout owner.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
The problems with EDITOR have been resolved.
Status: RESOLVED → VERIFIED
marking verified against old code base
You need to log in before you can comment on or make changes to this bug.