diff options
Diffstat (limited to 'gnu/packages/patches/aspell-default-dict-dir.patch')
| -rw-r--r-- | gnu/packages/patches/aspell-default-dict-dir.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/patches/aspell-default-dict-dir.patch b/gnu/packages/patches/aspell-default-dict-dir.patch new file mode 100644 index 00000000000..17a6ff606f5 --- /dev/null +++ b/gnu/packages/patches/aspell-default-dict-dir.patch | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | This patch changes the default value of 'dict-dir' to correspond | ||
| 2 | to ~/.guix-profile/lib/aspell rather than $prefix/lib/aspell-X.Y. | ||
| 3 | |||
| 4 | This is not strictly necessary for the 'aspell' program itself since | ||
| 5 | one can simply set "ASPELL_CONF=dict-dir $HOME/.guix-profile/lib/aspell". | ||
| 6 | However it is necessary for applications that use libaspell since | ||
| 7 | 'ASPELL_CONF' is not honored in this case. See <https://bugs.gnu.org/25836>. | ||
| 8 | |||
| 9 | --- a/common/config.cpp | ||
| 10 | +++ b/common/config.cpp | ||
| 11 | @@ -1349,6 +1349,9 @@ namespace acommon { | ||
| 12 | # define REPL ".aspell.<lang>.prepl" | ||
| 13 | #endif | ||
| 14 | |||
| 15 | +#undef DICT_DIR | ||
| 16 | +#define DICT_DIR "<$ASPELL_DICT_DIR|home-dir/.guix-profile/lib/aspell>" | ||
| 17 | + | ||
| 18 | static const KeyInfo config_keys[] = { | ||
| 19 | // the description should be under 50 chars | ||
| 20 | {"actual-dict-dir", KeyInfoString, "<dict-dir^master>", 0} | ||
