Closed Bug 177333 Opened 22 years ago Closed 22 years ago

--enable-plaintext-editor-only no longer build

Categories

(Core :: DOM: Editor, defect)

x86
Linux
defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla1.2final

People

(Reporter: tvl, Assigned: bryner)

Details

Attachments

(1 file, 6 obsolete files)

--enable-plaintext-editor-only no longer builds on the trunk. c++ -I/usr/X11R6/include -frtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -pedantic -Wno-long-long -pthread -pipe -DDEBUG -D_DEBUG -DDEBUG_tvl -DTRACING -g -fno-inline -fPIC -shared -Wl,-h -Wl,libeditor.so -o libeditor.so nsTextEditorReg.o -Wl,--whole-archive ../text/libtexteditor_s.a ../base/libeditorbase_s.a -Wl,--no-whole-archive ../../../dist/lib/libunicharutil_s.a -L../../../dist/bin -lxpcom -liberty -liberty -L../../../dist/bin -L/src/local/Mozilla/debug/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -L../../../dist/bin -lmozjs -Wl,-Bsymbolic -ldl -lm nsTextEditorReg.o: In function `nsEditorServiceConstructor(nsISupports *, nsID const &, void **)': /src/local/Mozilla/../../../mozilla/editor/libeditor/build/nsTextEditorReg.cpp:54: undefined reference to `nsEditorService::nsEditorService(void)' collect2: ld returned 1 exit status make[6]: *** [libeditor.so] Error 1 make[6]: Leaving directory `/src/local/Mozilla/debug/editor/libeditor/build'
This looks like fallout from bryner's checkin for bug 170136 (Configure flag to disable composer). I think he may need to make the same changes he made to editor/libeditor/build/nsEditorRegistration.cpp to editor/libeditor/build/nsTextEditorReg.cpp
Assignee: kin → bryner
Hm, I know --enable-plaintext-editor-only builds fine in conjunction with --disable-composer, but I guess it may have broken if used separately.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → mozilla1.2final
Do we really need both options? I thought that disabling the composer would also disable the html editing features as they aren't needed/used without the composer.
I think what was checked in merely prevented the composer dll and chrome from being built, so I'm assuming that whatever builds that are relying on this disable composer option, are still building the editor-core library with the HTML code enabled. Some embedders want the minimal amount of editor-core code necessary to keep text widgets in the browser working. That's what the plaintext-only option is about. This plaintext-only option also reduces the editor-core dll by about half.
Attached patch patch (obsolete) — Splinter Review
Attachment #104574 - Flags: superreview+
Oops, sorry I didn't check this in yet. --enable-plaintext-editor-only broke again today, but in a different way. I have a new patch that addresses both problems. I completely removed nsTextEditorReg.cpp and just added #ifdefs to nsEditorRegistration.cpp. This seems like a better solution anyway, and more maintainable.
Attached patch patch v2 (obsolete) — Splinter Review
Attachment #106071 - Attachment is obsolete: true
Comment on attachment 106072 [details] [diff] [review] patch #2 with removal of nsTextEditorReg.cpp included r=mjudge
Attachment #106072 - Flags: review+
Comment on attachment 106072 [details] [diff] [review] patch #2 with removal of nsTextEditorReg.cpp included sr=ben@netscape.com
Attachment #106072 - Flags: superreview+
Hm, I guess there need to be some mac build changes to go with this. Too tired to do that tonight.
Attached patch mac build change (obsolete) — Splinter Review
I think this is all that we need for Mac.
That seems a bit unnatural to me. MacEditorConfig.h is included when building the plaintext-only editor as well.
Attached patch patch #3 (obsolete) — Splinter Review
This leverages the already-existing #define on Mac.
Attachment #106072 - Attachment is obsolete: true
Attachment #106128 - Attachment is obsolete: true
Attached patch mac editor project file changes (obsolete) — Splinter Review
Some mac build help for bryner. This patch changes the plaintext targets to use the plaintext prefix files, which lights the MOZILLA_PLAINTEXT_EDITOR_ONLY define.
Don't we need a new build option too?
Attachment #106130 - Attachment is obsolete: true
Attachment #106158 - Attachment is obsolete: true
Comment on attachment 106159 [details] [diff] [review] new combined patch i built this on cfm mac, and tested the resulting lib with mozilla. text widgets work.
Attachment #106159 - Flags: review+
Attachment #106159 - Flags: superreview+
checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
rs vrfy.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: