Hi Oleg & Pierre, ludo@gnu.org (Ludovic Courtès) skribis: > Indeed. I have: > > $ guix environment --ad-hoc aspell aspell-dict-ru -C -- aspell --config | grep -A3 dict-dir > # dict-dir (string) > # location of the main word list > # default: <$ASPELL_DICT_DIR|home-dir/.guix-profile/lib/aspell> = /gnu/store/b411b0fbwc85fjnf0h030gdkbv1qdmqh-profile/lib/aspell > dict-dir /home/ludo/.guix-profile/lib/aspell > > # encoding (string) > # encoding to expect data to be in > -- > # default: = /home/ludo/.guix-profile/lib/aspell/ > > # master (string) > # base name of the main dictionary to use > > The value that shows up after the “=” sign is as expected (it’s > $ASPELL_DICT_DIR), but the value shown on the line below is not. > > Sounds like a problem in ‘aspell-dict-dir.patch’. Actually the problem is the ‘wrap-aspell’ phase, which predates ‘aspell-dict-dir.patch’ and is unnecessary in the presence of this patch. In addition to removing the phase, the patch had to be adjusted so that it would actually adjust the right-hand size of ‘|’ for ‘dict-dir’ (a bug that apparently went unnoticed, probably because the ‘wrap-aspell’ phase was hiding it). With the patch below, I get: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix environment --ad-hoc aspell aspell-dict-ru -C -- aspell --config |grep -A2 '^# dict-dir' # dict-dir (string) # location of the main word list # default: <$ASPELL_DICT_DIR|$HOME/.guix-profile/lib/aspell> = /gnu/store/adfc4l73nw3ccai3h5im21wblmrhfy4z-profile/lib/aspell --8<---------------cut here---------------end--------------->8--- and: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix environment --ad-hoc aspell aspell-dict-ru -C -- aspell dicts ru ru-ye ru-yeyo ru-yo --8<---------------cut here---------------end--------------->8--- … while still getting the intended result when running it outside ‘guix environment’: --8<---------------cut here---------------start------------->8--- $ (unset ASPELL_DICT_DIR; ./pre-inst-env guix environment --ad-hoc aspell -K -- aspell --config) |grep -A2 '^# dict-dir' # dict-dir (string) # location of the main word list # default: <$ASPELL_DICT_DIR|$HOME/.guix-profile/lib/aspell> = /home/ludo/.guix-profile/lib/aspell $ (unset ASPELL_DICT_DIR; ./pre-inst-env guix environment --ad-hoc aspell -K -- aspell dicts) |wc -l 58 $ (unset HOME; ./pre-inst-env guix environment --ad-hoc aspell -K -- aspell dicts) |wc -l 58 --8<---------------cut here---------------end--------------->8--- I’ll apply it on ‘core-updates’ if it’s fine with you. Ludo’.