Up to [cvs.NetBSD.org] / pkgsrc / textproc / aspell
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
aspell: update to 0.60.8.3.
Changes from 0.60.8.2 to 0.60.8.3 (October 28, 2026)
Fix CVE-2026-75818, CVE-2026-75819, and CVE-2026-75820, all of which were identified by Michał Majchrowicz and Marcin Wyczechowski, members of the AFINE Team.
Fix CVE-2026-103658 identified by Anthropic and validated by Ada Logics.
Fix various other memory problems, most of which were found and fixed by Arshiya Tabasum.
Fix various typos in documentation.
Remove unused MySpell example code.
aspell: update to 0.60.8.2.
Changes from 0.60.8.1 to 0.60.8.2 (January 27, 2026)
Improved compiler compatibility: Fixed Clang -Wstrict-prototypes warnings for C interface, fixed new Clang warnings, fixed GCC 15 build issues, and added MSYS2 + MINGW64 compile fixes.
Enhanced testing infrastructure with newer compiler versions, including snapshots from both GCC and Clang, to catch future problems before they make their way into distros.
Fixed bug that caused aspell_speller_store_replacement to return random values.
Fixed typo in Texinfo filter option file.
Various documentation updates and fixes.
*: Remove long-obsolete USE_NCURSES references.
aspell: update to 0.60.8.1.
Changes 0.60.8 to 0.60.8.1 (December 19, 2023)
Fix memory leak in suggestion code introduced in 0.60.8.
Various documentation fixes.
Fix various warnings when compiling with -Wall.
Fix two buffer overflows found by Google’s OSS-Fuzz.
Other minor updates.
*: recursive bump for perl 5.36
*: recursive bump for perl 5.34
aspell: Fix for recent regex(3) update for NetBSD. Bump revision. Stop using GNU regex(3) extension \w. XXX Alternatively, should we build lang/perl5 with REG_GNU?
*: bump PKGREVISION for perl-5.32.
textproc/aspell: remove unknown configure option --enable-doc-dir The correct spelling of that option is --enable-docdir, and its default value is $prefix/share/doc/aspell, thus there is no need to specify it at all.
Pullup ticket #6072 - requested by nia
textproc/aspell: security fix
Revisions pulled up:
- textproc/aspell/Makefile 1.74
- textproc/aspell/PLIST 1.18
- textproc/aspell/distinfo 1.31
- textproc/aspell/options.mk deleted
---
Module Name: pkgsrc
Committed By: nia
Date: Sat Oct 19 10:43:28 UTC 2019
Modified Files:
pkgsrc/textproc/aspell: Makefile PLIST distinfo
Removed Files:
pkgsrc/textproc/aspell: options.mk
Log Message:
aspell: Update to 0.68.8
Please note that this version has the potential to break some applications
that use null-terminated UCS-2 and UCS-4 encoded strings in order to fix a
potentially unbounded buffer over-read. Very few applications do this
however. For additional information please see "Upgrading from Aspell 0.60.7"
in the manual.
(http://aspell.net/man-html/Upgrading-from-Aspell-0_002e60_002e7.html)
Major changes from 0.60.7 to 0.68.8:
* Prevent a potentially unbounded buffer over-read by no longer
supporting null-terminated UCS-2 and UCS-4 encoded strings with the
original C API.
* Ensure that possible typos are listed before other suggestions when
typo analysis is used. Also fix a bug so that suggestions that
split a word using a space or hyphen are not always first.
* Add Markdown filter.
* Add new 'wordlists' option, which is a list of UTF-8 files that
contain additional words to accept.
* Add new 'camel-case' option, which enables support for checking
camelCase words.
* Sort personal and replacement dictionaries.
* Change 'ultra' suggestion mode to only find words that are within
one-edit distance or have the same soundslike.
Other changes from 0.60.7:
* Implement the 'aspell filter' command.
* Fix a bug in 'AspellDocumentChecker' that prevented it from working
with UCS-2 and UCS-4 encoded strings.
* Remove unused 'sug-edit-dist' option.
* 'AspellDocumentChecker' now expects the document a line at a time
in order to work with the new Markdown filter. If the document is
split on white space characters instead, nothing will break, but
new filters such as the Markdown filter may give incorrect results.
* The 'clean' option and command will no longer split a word.
* Various documentation improvements.
* Removal of several outdated appendices that don't really belong in
the main manual. Parts that are still relevent may eventually be
moved elsewhere, but for now they are available online at
<http://aspell.net/0.60.7/man-html/>.
* Fix various crashes and other problems found by Google's OSS-Fuzz.
aspell: Update to 0.68.8
Please note that this version has the potential to break some applications
that use null-terminated UCS-2 and UCS-4 encoded strings in order to fix a
potentially unbounded buffer over-read. Very few applications do this
however. For additional information please see "Upgrading from Aspell 0.60.7"
in the manual.
(http://aspell.net/man-html/Upgrading-from-Aspell-0_002e60_002e7.html)
Major changes from 0.60.7 to 0.68.8:
* Prevent a potentially unbounded buffer over-read by no longer
supporting null-terminated UCS-2 and UCS-4 encoded strings with the
original C API.
* Ensure that possible typos are listed before other suggestions when
typo analysis is used. Also fix a bug so that suggestions that
split a word using a space or hyphen are not always first.
* Add Markdown filter.
* Add new 'wordlists' option, which is a list of UTF-8 files that
contain additional words to accept.
* Add new 'camel-case' option, which enables support for checking
camelCase words.
* Sort personal and replacement dictionaries.
* Change 'ultra' suggestion mode to only find words that are within
one-edit distance or have the same soundslike.
Other changes from 0.60.7:
* Implement the 'aspell filter' command.
* Fix a bug in 'AspellDocumentChecker' that prevented it from working
with UCS-2 and UCS-4 encoded strings.
* Remove unused 'sug-edit-dist' option.
* 'AspellDocumentChecker' now expects the document a line at a time
in order to work with the new Markdown filter. If the document is
split on white space characters instead, nothing will break, but
new filters such as the Markdown filter may give incorrect results.
* The 'clean' option and command will no longer split a word.
* Various documentation improvements.
* Removal of several outdated appendices that don't really belong in
the main manual. Parts that are still relevent may eventually be
moved elsewhere, but for now they are available online at
<http://aspell.net/0.60.7/man-html/>.
* Fix various crashes and other problems found by Google's OSS-Fuzz.
aspell: update to 0.60.7
Changes from 0.60.6.1 to 0.60.7 (July 29, 2019)
Add partial support for recognizing the Unicode apostrophe (’) in words. In particular Aspell will accept the Unicode apostrophe when the language uses an ISO Latin charset that doesn’t already have a Unicode apostrophe. For now, Aspell will still use the ASCII version in suggestions.
Detect when a dictionary compiled on a 32-bit machine is used on a 64-bit one (and vise versa), as due to an oversight, compiled dictionaries depend on more than the endianness. Also added a compile time option to remove this dependency, but at the cost of breaking compatibility with already compiled dictionaries on 64-bit systems.
Fix a bug which caused Aspell to crash when passing in a null string to almost any of the C API functions. This should not happen if the size is also zero as the pointer should never be derefrenced.
Fix a bug that caused Aspell to crash with a SEGFAULT when built with mingw-w64.
In addition to outputting a warning when building with NDEBUG defined, also include NDEBUG in the version string.
Various compile fixes for newer version of Gcc and Clang.
Fix VPATH builds.
Use utf-8 encoding for manual instead of iso-8859-1.
Other minor updates and bug fixes.
Patch provided by Iku Iwasa in PR pkg/54548
Bump PKGREVISIONs for perl 5.30.0
NetBSD curses has been fixed since 8.1. So, ncurses is no longer required. Bump PKGREVISION.
Recursive bump for perl5-5.28.0
Bump PKGREVISION for perl-5.24.0 for everything mentioning perl.
Bump all packages that depend on curses.bui* or terminfo.bui* since they might incur ncurses dependencies on some platforms, and ncurses just bumped its shlib. Some packages were bumped twice now, sorry for that.
Bump PKGREVISION for ncurses shlib bump.
Recursive PKGREVISION bump for all packages mentioning 'perl', having a PKGNAME of p5-*, or depending such a package, for perl-5.22.0.
Bump for perl-5.20.0. Do it for all packages that * mention perl, or * have a directory name starting with p5-*, or * depend on a package starting with p5- like last time, for 5.18, where this didn't lead to complaints. Let me know if you have any this time.
Bump all packages for perl-5.18, that a) refer 'perl' in their Makefile, or b) have a directory name of p5-*, or c) have any dependency on any p5-* package Like last time, where this caused no complaints.
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Bump all packages that use perl, or depend on a p5-* package, or are called p5-*. I hope that's all of them.
Update to 0.60.6.1:
Update to Automake 1.10.3
Fix a bug which caused a race condition (leading to a likely
crash) when two threads try to update the dictionary cache at
the same time.
Make it very clear that compiling Aspell with NDEBUG is a bad
idea (see http://aspell.net/ndebug.html) by outputting a warning
when building with NDEBUG defined.
Numerous other minor updates and bug fixes.
recursive bump from gettext-lib shlib bump.
Force use of ncurses as NetBSD curses causes segfaults when running aspell -c file. Should fix PR pkg/44005.
Added LICENSE information.
Add patch fixing problem checking html files, reported by Chris Ross and Uwe Klaus on pkgsrc-users; using upstream patch. Bump PKGREVISION.
Update to 0.60.6:
Complete list of changes from 0.60.5:
* Compile fixes for Gcc 4.3.
* Updated to Libtool 2.2.2 and Automake 1.10.1
* Minor tweak to suggestion code which improved suggestion results in
certain cases.
* Always line buffer stdout and stderr in the Aspell utility when
there is the potential for it to be used interactively through a
pipe.
* Removed debug output in `aspell munch-list'.
* Other minor updates and bug fixes.
Convert to use PLIST_VARS instead of manually passing "@comment " through PLIST_SUBST to the plist module.
Put back a couple of IRIX conditionals the way they used to behave, e.g. match IRIX 5.x but not 6.x. Some of these may indeed apply to 6.x too, but let's be conservative. PR pkg/38224.
Fix abusers of LOWER_OPSYS to check OPSYS or MACHINE_PLATFORM instead.
Drop maintainership.
Convert to use the features framework.
Convert all libnbcompat/buildlink3.mk references to inplace.mk.
At the moment, there aren't any package options. Reported by Ondrej Tuma in PR 36467.
Update to 0.60.5:
* Compile fix for gcc 4.1
* Updated to Gettext 0.16.1, Libtool 1.5.22, Automake 1.10, Autoconf
2.61
* Documentation improvements, including an updated `man' page.
* Complain if more than one file is specified when checking files
using the `aspell check' command, rather than ignoring the other
files.
* Large number of bug fixes.
Made the package work on Solaris. It needed an obscure patch and USE_PKGLOCALEDIR.
Remove post-install, is this directory has files anyways.
Flag a number of packages I use as supporting (user-)destdir. apg is a bit special as it has some hardcoded ownership, so mark that as "destdir".
added support for IRIX 5
Enable NLS on every platform. Previously, it was enabled on Linux only. Approved by the maintainer. Bump PKGREVISION.
List the info pages directly in the PLIST and ensure that we honor PKGINFODIR.
All scripts use #!/bin/sh now.
Recursive revision bump / recommended bump for gettext ABI change.
Prepare some code for an aspell-loadable-filter options, which is not yet enabled because it currently does not work, but this way it is easier to test.
Update to 0.60.4:
Complete list of changes from 0.60.3:
* Fixed a bug that caused Aspell to crash when checking certain
Russian words, this bug likely affected other languages as well.
* Updated to Gettext 0.14.5 which is required for AMD64, also
updated to to Libtool 1.5.20.
* Fixed an alignment bug which causes mmap to always fail when
reading in dictionaries.
* Added note about how `make clean' will remove the HTML manuals.
* Added manual page for prezip-bin and enhanced word-list-compress
manual page thanks to the work of Jose Da Silva.
* Other minor updates and bug fixes.
Added two more patches for Solaris, which makes the package build. Removed the extra LIBS for the SunPro compiler from the Makefile, as they made the build fail for me.
Make sure that filters are built statically until dlopen() detection in configure is fixed. The problem was reported to the author by wiz@. This makes installed files match with PLIST on platforms with libdl. Bump PKGREVISION. Approved by wiz@.
Drop support for TOOLS_DEPMETHOD.<tool>. The new way to specify a run-time dependency (DEPENDS) on a tool is to append a ":run" modifier to the tool name, e.g., USE_TOOLS+= perl:run Tools without modifiers or with an explicit ":build" modifier will cause build dependencies (BUILD_DEPENDS) on those tools to be added. This makes the notation a bit more compact.
USE_PERL5 -> USE_TOOLS+=perl.
Update to 0.60.3.
Complete list of changes from 0.60.2:
* Fixed bugs involving several of the C API functions.
* Fixed bug where `ultra' or `fast' mode will not return any
suggestions when soundslike lookup is not used.
* Made a minor, yet significant, optimization to the suggestion code.
This speed things up by an order of magnitude in some cases.
* Avoid using the slow ngram scan except when the `sug-mode' is
`slow' or `bad-speller'.
* Fixed a bug in curses mode which causes word-wrap to not work
correctly in some cases.
* Fixed a bug in pipe mode with a missing newline.
* Fixed the `spell' compatibility script.
* Several other minor bugs fixed.
* Made note about the change in behavior of the `-l' command line
switch.
* Other manual update/fixes.
* Updated to Libtool 1.5.18, Automake 1.9.6, and Makeinfo 4.8.
Add patch from program's author that fixes aspell-cz build. Bump PKGREVISION to 1.
Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions: USE_GNU_TOOLS -> USE_TOOLS awk -> gawk m4 -> gm4 make -> gmake sed -> gsed yacc -> bison
Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
Set USE_PERL5 to "run" for aspell-import script; perl is also needed during the build phase.
Update to 0.60.2.
New in 0.60.2:
* Added the `munch-list' command to the aspell utility. The `munch'
program in the `myspell/' directory will disappear in Aspell 0.61.
The `munchlist' script will also likely disappear or be replaced
when Aspell 0.61 is released since it doesn't work correctly
anyway.
* Several important bug fixes some of which rendered some non-English
languages unusable.
* Other minor changes.
New in 0.60.1.1:
* Fix bug involving checking of capitalized word when affix
compression is used.
* Compile fixes.
* Added an option to disable using the "wide" curses version in case
it causes compile problems.
* Minor manual updates
* Avoided including some unnecessary files in the distribution.
New in 0.60.1:
* Lots of compile fixes for various platforms.
* Miscellaneous bug fixes.
* Added Nroff filter thanks to Sergey Poznyakoff.
* The default filter mode when in pipe mode is now nroff for
compatibility with Ispell.
* Added Texinfo filter.
* Added a section detailing the differences between Ispell and
Aspell.
* Updated the section on thread safety.
* Other miscellaneous manual changes such as updating the To Do and
Authors section.
Changes since 0.50.5:
* Added support for Affix Compression. Affix compression stores
the root word and then a list of prefixes and suffixes that
the word can take, and thus saves a lot of space. The codebase
comes from MySpell found in OpenOffice. It uses the same affix
file that OpenOffice (and Mozilla) use. Affix compression will
even work with soundslike lookup to a limited extent.
* Added support for accepting all input and printing all output
in UTF-8 or some other encoding different from the one Aspell
uses. This includes support for Unicode normalization. Aspell
can now support any language with no more than 210 distinct
characters, including different capitalizations and accents,
_even if_ there is not an existing 8-bit encoding that supports
the language.
* Added support for loadable filters and customizable filter
modes thanks to Christoph Hintermüller.
* Enhanced SGML filter to also support skipping sgml tags such
as "script" blocks thanks to Tom Snyder.
* Added gettext support thanks to Sergey Poznyakoff
* Reworked the compiled dictionary format. Compiled dictionaries
now take up less space (less than 80% for the English language)
and creating them is significantly faster (over 4 times for
the English language).
* Reworked suggestion code. It is significantly faster when
dealing with short words (up to 10 times). Also added support
for MySpell Replacement Tables and n-gram lookup. In addition,
added basic support for compound words.
* Manual has has been converted to texinfo format thanks to
the work of Chris Martin.
* Reworked the build system so that a single Makefile is used
for most of the code.
* All data, by default, is now included in `LIBDIR/aspell-0.60'.
Also added a built time option to increment the major version
number of the shared library. This should allow both Aspell
version 0.50 and 0.60 to coexist. The major version number is
_not_ incremented by default as Aspell 0.60 is binary compatible
with Aspell 0.50.
NOTE: this is not true for pkgsrc.
* The code to handle dictionaries has been rewritten. Because
of this support for the dictionary option `strip-accents' has
been removed. In addition the `ignore-accents' option is
currently unimplemented.
* Lots of other minor changes due to massive overhaul of the
source code.
this won't build with xlc without some work, mark it as such.
Replace USE_GCC_SHLIB with "USE_LANGUAGE=c c++" (the latter implies the former) for applications that are known to require C++.
Extra PKGREVISION bump to cover the libtool/compiler-wrapper problems. Since dependencies were actually failing to build, they fortunately don't require PKGREVISION bumps themselves.
Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10 in the process. (More information on tech-pkg.) Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and installing .la files. Bump PKGREVISION (only) of all packages depending directly on the above via a buildlink3 include.
link against libm on Solaris for sqrt(), as well as libCrun and libCstd when using SunPro so libaspell.so can resolve all symbols required. bump PKGREVISION for library dependency change.
Make it compile with SunPro C++
Update to 0.50.5. Changes sine 0.50.4.1: * Reworked url filter which fixed several bugs and now accepts "bla.bla/ kdkdl" as a url. * Fixed bug in which the url filter was coming before all other filters when it was suppose to come after. This solved a number of problems where the url filter was interfering with other filters. * Small bug fix in SGML filter. * Added code page charsets, ie cp125?.dat. * Added natural (split) keyboard data file as "split.kbd" * Compile fixes for the upcoming GCC 3.4 * Removed Solaris link hack as it was causing more problems than it fixes. * Compile fixes for Sun WorkShop 6 compiler, but there may still be some problems, especially with linking. * Minor manual fixes. Okayed by wiz.
LIBTOOL_OVERRIDE and SHLIBTOOL_OVERRIDE are now lists of shell globs
relative to ${WRKSRC}. Remove redundant LIBTOOL_OVERRIDE settings that
are automatically handled by the default setting in bsd.pkg.mk.
bl3ify
USE_LANGUAGES=c c++
replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make.
update to 0.50.4.1 changes since 0.50.2: # Fixed major bug in pipe mode which caused the last character to be chopped off words before they were stored. # Minor formating fixes in the manual. # Minor changes in URL filter to avoid treating the double quote character as part of the URL, and to avoid treating words ending in more than one period as a URL. # Document fixes in Aspell API # Small compile fixes, including one for GCC 3.3 # Updated Win32 section since a port now exists thanks to Thorsten Maerz. # Complain instead of doing nothing or aborting for unimplemented functions in Aspell utility. # Portability bug fixes. # Upgraded to Autoconf 2.57, Automake 1.7.7, Libtool 1.5 (no longer use CVS version of libtool). ok'ed by wiz@
work around to remove dependency to ncurses on netbsd. PR pkg/22992
Back out last change related to moving ncurses/buildlink2.mk to curses.buildlink2.mk. This was wrong because we _really_ do want to express that we want _n_curses when we include the buildlink2.mk file. We should have a better way to say that the NetBSD curses doesn't quite work well enough. In fact, it's far better to depend on ncurses by default, and exceptionally note when it's okay to use NetBSD curses for specific packages. We will look into this again in the future.
move ncurses/buildlink2.mk to mk/curses.buildlink2.mk, as it provides support for base system curses/ncurses as well as ncurses itself. suggested by wiz.
... and bump PKGREVISION to 3. The package will have an extra dependancy on systems using gcc from a package.
- Set USE_GCC_SHLIB. - Use INSTALL_DATA_DIR instead of MKDIR. - Capitalize comment.
s/netbsd.org/NetBSD.org/
Added REPLACE_PERL to fix incorrect path to perl in aspell-import script
PKGREVISION bump for libiconv update.
Add NetBSD-1.6_* to INCOMPAT_CURSES. Noted by Cesar Catrian on tech-pkg. Simplify the pattern.
New aspell acts as a replacement for libpspell and contains the same libraries so make it conflict with all installed libpspell packages.
Limit dependency on ncurses only to systems which really need it.
We have halfdelay() in NetBSD 1.6M curses already. Also fix PLIST.
Bump PKGREVISION.
Per discussion with wiz. Addresses PR pkg/19985.
XXX: Operating systems other than NetBSD and SunOS don't have any
reasonable defaults set in devel/ncurses/buildlink2.mk.
This should be addressed!
Update to version 0.50.3.
- added buildlink2.mk for applications using aspell and pspell
- updated DESCR
Changes:
Aspell has undergone an extremely large number of changes since the previous
Aspell/Pspell release. For one thing Pspell has been merged with Aspell so
there in no longer two separate libraries you have to worry about.
Because of the massive changes between Aspell/Pspell and Aspell 0.50 you may
want to clean out the old files before installing the the new Aspell. To do
so do a "make uninstall" in the original Aspell and Pspell source directories.
The way dictionaries are handled has also changed. This includes a change in
the naming conventions of both language names and dictionaries. Due to the
language name change, your old personal dictionaries will not be recognized.
However, you can import the old dictionaries by running the "aspell-import"
script. This also means that dictionaries designed to work with older versions
of Aspell are not likely to function correctly. Fortunately new dictionary
packages are available for most languages. You can find them off of the Aspell
home page at http://aspell.net.
The Pspell ABI is now part of Aspell except that the name of everything has
changed due to the renaming of Pspell to Aspell. In particular please note the
following name changes:
pspell -> aspell
manager -> speller
emulation -> enumeration
master_word_list -> main_word_list
Please also note that the name of the language-tag option has changed to lang.
However, for backward compatible the language-tag option will still work.
However, you should also be able to build applications that require Pspell
with the new Aspell as a backward compatibility header file is provided.
Due to a change in the way dictionaries are handled, scanning for .pwli files
in order to get find out which dictionaries are available will no longer work.
This means that programs that relied on this technique may have problems
finding dictionaries. Fortunately, GNU Aspell now provided a uniform way to
list all installed dictionaries via the C API. See the file "list-dicts.c" in
the examples/ directory for an example of how to due this. Unfortunately there
is isn't any simply way to find out which dictionaries are installed which
will work with both the old Aspell/Pspell and the new GNU Aspell.
Add a distribution patch fixing the following two problems: - Workaround a bug in Pspell where multi-byte words are not getting null terminated properly. - Truly fix a bug in suggest.cc so that Aspell will suggest correctly when typo-analysis is not used such as when sug-mode is ultra or bad spellers. Bump PKGREVISION to 1.
Convert to buildlink2.
Initial import of aspell: Aspell is an Open Source spell checker designed to eventually replace Ispell. Its main feature is that it does a much better job of coming up with possible suggestions than Ispell does. In fact recent tests shows that it even does better than Microsoft Word 97's spell checker in some cases. In addition it has both compile time and run time support for other non English languages. Aspell is also a library however the recommend way to use aspell is through the Pspell library as the actual interface to the aspell library is constantly changing.
Initial revision