Filter problems when different values for "data-dir" and "lib-dir" are used
Agustin Martin <[email protected]> Wed, 15 Oct 2014 19:12:46 +0200
| Newsgroups | gmane.comp.gnu.aspell.devel |
|---|---|
| Message-ID | <[email protected]> |
--X1bOJ3K7DJ5YkBrT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
Bringing to devel some things recently shown in aspell-user to give them the
correct audience,
This thread started as
http://lists.gnu.org/archive/html/aspell-user/2014-08/msg00000.html
More info available from
https://bugs.debian.org/612051
A brief summary follows, starting from
http://lists.gnu.org/archive/html/aspell-user/2014-09/msg00000.html
When aspell is compiled with diferent values for 'data-dir' and 'lib-dir',
filters are not found and errors happen like
WARNING: Unable to enter Nroff mode: Unknown mode: "nroff".
Seems that aspell installs ".amf" files under 'lib-dir' and "*-filter.info"
under 'data-dir', making aspell fail when looks for tex-filter.info
under 'dict-dir' if both are different ('lib-dir=/usr/lib/aspell' and
'data-dir=/usr/share/aspell' here).
I have been playing with this when trying to make Debian use different
values for both and finally used attached patch, which, once propagated to
the autotools buildchain, tries to install all filter related things under
'lib-dir'. This seems to make aspell work again in such cases.
There are surely other ways to handle this, but here goes info about mine.
Regards,
--
Agustin
--X1bOJ3K7DJ5YkBrT
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="08_filters-info-installdir.diff"
Author: Agustin Martin Domingo <[email protected]>
Description: Make sure all filters stuff is installed together, allowing separate datadir and libdir.
Bug-Debian: http://bugs.debian.org/612051
Applied-Upstream: Reported
Index: aspell/Makefile.am
===================================================================
--- aspell.orig/Makefile.am 2014-10-06 12:22:21.233616292 +0200
+++ aspell/Makefile.am 2014-10-06 12:22:21.225616369 +0200
@@ -258,8 +258,8 @@
endif # COMPILE_IN_FILTERS
noinst_DATA += $(static_optfiles) gen/filter.pot
-opt_DATA = $(dynamic_optfiles)
-filter_DATA = $(fltfiles)
+# opt_DATA = $(dynamic_optfiles)
+filter_DATA = $(fltfiles) $(dynamic_optfiles)
# settings.h added as a dependency so it will get recreated if
# the COMPILE_IN_FILTERS option changes
--X1bOJ3K7DJ5YkBrT
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Aspell-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/aspell-devel
--X1bOJ3K7DJ5YkBrT--