Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18060 - Mozilla ebuild lacks spellchecker USE
Summary: Mozilla ebuild lacks spellchecker USE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-23 16:48 UTC by Nick Palmer
Modified: 2004-03-20 14:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mozilla-1.3-r1.ebuild (mozilla-1.3-r1.ebuild,16.20 KB, text/plain)
2003-03-26 03:46 UTC, Matt Taylor
Details
unix-spellcheck.patch (unix-spellcheck.patch,5.46 KB, patch)
2003-03-26 03:47 UTC, Matt Taylor
Details | Diff
spellcheck.tar.gz (spellcheck.tar.gz,274.04 KB, application/octet-stream)
2003-03-26 03:49 UTC, Matt Taylor
Details
new spellcheck.tar.gz (spellcheck.tar.gz,274.04 KB, application/octet-stream)
2003-03-28 00:44 UTC, Matt Taylor
Details
mozilla-1.3-r2.ebuild (mozilla-1.3-r2.ebuild,16.50 KB, text/plain)
2003-06-16 11:30 UTC, Carson Reynolds
Details
Patch and source to enable the spellchecker in Mozilla 1.4 (mozilla-1.4-spellcheck_patch.tar.gz,279.38 KB, application/octet-stream)
2003-07-18 07:10 UTC, Paul Moore
Details
ebuild and patch for 1.4-r3 (mozilla-1.4-r3-spellcheck_patch.tar.gz,281.99 KB, application/x-gzip)
2003-08-05 07:50 UTC, Carson Reynolds
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Palmer 2003-03-23 16:48:39 UTC
We should include a USE var that would include the spellchecker at
spellchecker.mozdev.org in the build of mozilla. The precedent is there with the
enigmail inclusion in the ebuild, and the spellchecker is one of mozilla mails
glaringly missing features.

Reproducible: Always
Steps to Reproduce:
Comment 1 Matt Taylor 2003-03-26 03:45:02 UTC
I patched the spellchecker in but it doesn't compile.  If anyones interested I'll attach the modified ebuild, patch and spellchecker tarball since they only have cvs downloads, however I don't know how usefull it will be since it doesn't compile.  Heres the error I get.

g++ -o mozSpellChecker.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI  -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/editor -I../../../dist/include/content -I../../../dist/include/layout -I../../../dist/include/dom -I../../../dist/include/necko -I../../../dist/include/widget -I../../../dist/include/pref -I../../../dist/include/gfx -I../../../dist/include/txtsvc -I../../../dist/include/uconv -I../../../dist/include/unicharutil -I../../../dist/include/spellchecker -I../../../dist/include -I/var/tmp/portage/mozilla-1.3-r1/work/mozilla/dist/include/nspr      -I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -march=i686 -pipe -Wno-deprecated -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/mozSpellChecker.pp mozSpellChecker.cpp
mozPersonalDictionary.cpp
g++ -o mozPersonalDictionary.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI  -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/editor -I../../../dist/include/content -I../../../dist/include/layout -I.
./../../dist/include/dom -I../../../dist/include/necko -I../../../dist/include/widget -I../../../dist/include/pref -I../../../dist/include/gfx -I../../../dist/include/txtsvc -I../../../dist/include/uconv -I../../../dist/include/unicharutil -I../../../dist/include/spellchecker -I../../../dist/include -I/var/tmp/portage/mozilla-1.3-r1/work/mozilla/dist/include/nspr      -I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -march=i686 -pipe -Wno-deprecated -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/mozPersonalDictionary.pp mozPersonalDictionary.cpp
mozPersonalDictionary.cpp: In method `nsresult mozPersonalDictionary::Load()':
mozPersonalDictionary.cpp:393: no matching function for call to `nsDerivedSafe<nsIUnicharInputStream>::Read (PRUnichar *, int, PRUint32 *)'
../../../dist/include/xpcom/nsIUnicharInputStream.h:59: candidates are: nsresult nsIUnicharInputStream::Read(PRUnichar *, unsigned int, unsigned int, PRUint32 *)
mozPersonalDictionary.cpp:395: no matching function for call to `nsDerivedSafe<nsIUnicharInputStream>::Read (PRUnichar *, int, PRUint32 *)'
../../../dist/include/xpcom/nsIUnicharInputStream.h:59: candidates are: nsresult nsIUnicharInputStream::Read(PRUnichar *, unsigned int, unsigned int, PRUint32 *)
mozPersonalDictionary.cpp:401: no matching function for call to `nsDerivedSafe<nsIUnicharInputStream>::Read (PRUnichar *, int, PRUint32 *)'
../../../dist/include/xpcom/nsIUnicharInputStream.h:59: candidates are: nsresult nsIUnicharInputStream::Read(PRUnichar *, unsigned int, unsigned int, PRUint32 *)
make[4]: *** [mozPersonalDictionary.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/mozilla-1.3-r1/work/mozilla/extensions/spellcheck/src'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/var/tmp/portage/mozilla-1.3-r1/work/mozilla/extensions/spellcheck'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/var/tmp/portage/mozilla-1.3-r1/work/mozilla/extensions'
make[1]: *** [tier_94] Error 2
make[1]: Leaving directory `/var/tmp/portage/mozilla-1.3-r1/work/mozilla'
make: *** [default] Error 2

!!! ERROR: net-www/mozilla-1.3-r1 failed.
!!! Function src_compile, Line 369, Exitcode 2
!!! (no error message)
Comment 2 Matt Taylor 2003-03-26 03:46:49 UTC
Created attachment 9819 [details]
mozilla-1.3-r1.ebuild

created a new use var of mozspellcheck like all the other moz* ones
Comment 3 Matt Taylor 2003-03-26 03:47:59 UTC
Created attachment 9820 [details, diff]
unix-spellcheck.patch

add the spellchecker to the build
Comment 4 Matt Taylor 2003-03-26 03:49:26 UTC
Created attachment 9821 [details]
spellcheck.tar.gz

untar into the files dir
Comment 5 Matt Taylor 2003-03-26 04:01:44 UTC
I submited a bug to the spellchecker guys.  See http://mozdev.org/bugs/show_bug.cgi?id=3487
Comment 6 Matt Taylor 2003-03-27 15:38:22 UTC
I got a fix from the mozdev bug...trying it out. Will update this bug in a few hours when mozilla finishes compiling.
Comment 7 Matt Taylor 2003-03-28 00:42:08 UTC
Ok with the fix it compiles and works.  Uploading new tarball.
Comment 8 Matt Taylor 2003-03-28 00:44:09 UTC
Created attachment 9930 [details]
new spellcheck.tar.gz
Comment 9 Carson Reynolds 2003-06-16 11:30:07 UTC
Created attachment 13377 [details]
mozilla-1.3-r2.ebuild

Result of a diff between (bug attached) mozilla-1.3-r1.ebuild and standard
mozilla-1.3-r2.ebuild.
Comment 10 Matt Taylor 2003-06-16 15:59:57 UTC
cool, I didn't even notice there was a -r2 ebuild since I called my ebuild -r2 on my machine.
Comment 11 Paul Moore 2003-07-08 07:38:08 UTC
I tested the patches on Alpha and it worked for me, I am in the process of testing the latest CVS bits on the mozilla-1.4 package for Alpha as well.  It would be really nice if this made it into the base mozilla package.
Comment 12 Paul Moore 2003-07-18 07:10:11 UTC
Created attachment 14658 [details]
Patch and source to enable the spellchecker in Mozilla 1.4

To install this patch untar the file in /usr/portage/net-www/mozilla; it has
been tested on Gentoo Alpha but I have no reason to believe it will have
problems on Gentoo X86.
Comment 13 Carson Reynolds 2003-08-05 06:29:37 UTC
According to http://spellchecker.mozdev.org/ the spellchechecker is now in the 1.5 trunk. For 1.4, I will be posting patches for 1.4-r2 and 1.4-r3 shortly. We ought to integrate these into the mozilla default ebuild to save the duplication of effort by all the good folks who keep diffing and posting patches to this bug.
Comment 14 Carson Reynolds 2003-08-05 07:50:00 UTC
Created attachment 15546 [details]
ebuild and patch for 1.4-r3

Attached is a new ebuild for mozilla 1.4-r3 which adds a new USE flag called
mozspellcheck. Copy this file into /usr/portage/net-www/mozilla/. Perform tar
-zxvf mozilla-1.4-r3-spellcheck_patch.tar.gz in that directory. Then perform
USE="-crypt mozspellcheck" emerge
/usr/portage/net-www/mozilla/mozilla-1.4-r3.ebuild. After this, the user should
be able to log in as root and install the spellchecker from
http://spellchecker.mozdev.org/installation.html#
Comment 15 Matt Taylor 2003-08-06 14:54:01 UTC
I just emerged the ebuild provided here and it works great.  I didn't need to set -crypt.
Comment 16 A. Permyakov 2003-10-03 16:32:21 UTC
Is this patch still not in 1.4-r4 or am I missing something?
Comment 17 Aron Griffis (RETIRED) gentoo-dev 2004-03-20 14:40:05 UTC
Since mozilla-1.5 I think that the spellchecker is included in moz by default, sorry we weren't able to do this for 1.3/1.4