Subject: pkg/18076: ispell
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dolemite@wuli.nu>
List: netbsd-bugs
Date: 08/26/2002 09:20:22
>Number: 18076
>Category: pkg
>Synopsis: ispell
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 26 09:21:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Alex Newman
>Release: SunOS 5.8
>Organization:
Psi Upsilon of Troy
>Environment:
SunOS unknown 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-5_10
>Description:
ispell-base does not build:
1) imo we should not require people to have /usr/ucb/cc:
language optional software package not installed
2) + gcc -O2 -DHAVE_INTTYPES_H -c buildhash.c
In file included from buildhash.c:69:
config.h:111: sys/dir.h: No such file or directory
*** Error code 1
and much more but this is how i first discovered problems which i have described a fix
3) are you sure you want the words going to /usr/share/dict/words and not /usr/pkg/share/dict/words? This seems broken and see next problem
4) make -f ../english/Makefile 'DBUILD=' VARIANTS=american \
'EXTRADICT=/usr/share/dict/words' 'SHELLDEBUG=+vx' \
'AFFIXES=../english/english.aff' \
english.med+
make: Fatal error: Don't know how to make target `/usr/share/dict/words'
Current working directory /usr/pkgsrc/textproc/ispell-base/work/ispell-3.1/languages/american
*** Error code 1
make: Fatal error: Command failed for target `english.med+'
Current working directory /usr/pkgsrc/textproc/ispell-base/work/ispell-3.1/languages/american
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /usr/pkgsrc/textproc/ispell-base/work/ispell-3.1/languages/american
+ exit 1
*** Error code 1
make: Fatal error: Command failed for target `language-subdirs'
5) PLIST does not have the dict in it
p.s.
I will be glad to test ispell in solaris whenever their is an update.
>How-To-Repeat:
bmake
>Fix:
1) in local.h #define CC "gcc"
2) #define USG
3) not broken so their is no fix
4) start using /usr/pkg/share/dict/words instead
my Makefile's do-configure now looks like this and it works great:
do-configure:
cd ${WRKSRC}; \
${SED} -e 's|/usr/local|${PREFIX}|g' <local.h.samp >local.h; \
${ECHO} "#define CC \"gcc\" " >> local.h ; \
${ECHO} "#define USG" >> local.h ; \
${ECHO} "#undef NO8BIT" >> local.h ; \
${ECHO} "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFIL
ES=americanmed+.hash,EXTRADICT=${PREFIX}/share/dict/words}\"" >>local.h; \
${ECHO} "#define MASKBITS 64" >>local.h; \
${ECHO} "#undef WORDS" >> local.h ; \
${ECHO} '#define WORDS "${PREFIX/share/dict/words"' >> local.h ;
\
${ECHO} '#undef ELISPDIR' >> local.h; \
${ECHO} "#define ELISPDIR \"${PREFIX}/share/emacs/site-lisp\"" >> local.
h; \
${ECHO} "#define CFLAGS \"${CFLAGS}\"" >> local.h
5) pretty obv
>Release-Note:
>Audit-Trail:
>Unformatted: