This patch changes the default value of 'dict-dir' to correspond to ~/.guix-profile/lib/aspell rather than $prefix/lib/aspell-X.Y. This is not strictly necessary for the 'aspell' program itself since one can simply set "ASPELL_CONF=dict-dir $HOME/.guix-profile/lib/aspell". However it is necessary for applications that use libaspell since 'ASPELL_CONF' is not honored in this case. See . --- a/common/config.cpp +++ b/common/config.cpp @@ -651,7 +651,20 @@ namespace acommon { } else { // sep == '|' assert(replace[0] == '$'); const char * env = getenv(replace.c_str()+1); - final_str += env ? env : second; + if (env) { + final_str += env; + } else if (second[0] == '$') { + // Expand the right-hand side of '|', which starts with a + // reference to an environment variable. + auto slash = second.find('/'); + String variable = second.substr(1, slash - 1); + const char * env = getenv(variable.c_str()); + String value = env ? String(env) : ""; + value += second.substr(slash, second.size() - slash); + final_str += value; + } else { + final_str += second; + } } replace = ""; in_replace = false; @@ -1349,6 +1349,9 @@ namespace acommon { # define REPL ".aspell..prepl" #endif +#undef DICT_DIR +#define DICT_DIR "<$ASPELL_DICT_DIR|$HOME/.guix-profile/lib/aspell>" + static const KeyInfo config_keys[] = { // the description should be under 50 chars {"actual-dict-dir", KeyInfoString, "", 0} od='get' action='/guix/log/gnu/packages/valgrind.scm'>
AgeCommit message (Expand)Author
2023-05-25gnu: valgrind: Mark as not supported for armhf-linux....From the build log: checking for a supported CPU... no (arm) configure: error: Unsupported host architecture. Sorry * gnu/packages/valgrind.scm (valgrind)[supported-systems]: Remove armhf-linux. Christopher Baines
2023-04-26gnu: valgrind: Update to 3.20.0....* gnu/packages/valgrind.scm (valgrind): Update to 3.20.0. Remove patch. [arguments]<phases>: Remove trailing #t. * gnu/packages/patches/valgrind-enable-arm.patch: Delete file. * gnu/packages/valgrind.scm (dist_patch_DATA): Unregister patch. Signed-off-by: Andreas Enge <andreas@enge.fr> zimoun