Control: tag -1 patch Hi,
* Nelson A. de Oliveira <nao...@gmail.com> [2021-10-04 00:15]:
While upgrading dictionaries-common from 1.28.7 to 1.28.10: ===== Configurando dictionaries-common (1.28.10) ... dmihd: No hunspell dir passed or available dpkg: error processing package dictionaries-common (--configure): installed dictionaries-common package post-installation script subprocess returned error exit status 2 (…) dpkg: dependency problems prevent configuration of aspell-pt-br: aspell-pt-br depende de dictionaries-common (>= 1.23~); porém: Pacote dictionaries-common não está configurado ainda. dpkg: error processing package aspell-pt-br (--configure): problemas de dependência - deixando desconfigurado (…) Erros foram encontrados durante o processamento de: dictionaries-common aspell-pt-br E: Sub-process /usr/bin/dpkg returned an error code (1) =====
I ran into the same problem on a system with no hunspell dictionaries installed. The attached patch fixes the problem for me.
Cheers Jochen
diff --git a/scripts/perl5/Debian/DictionariesCommon.pm.in b/scripts/perl5/Debian/DictionariesCommon.pm.in index 48edc11..e3ac624 100644 --- a/scripts/perl5/Debian/DictionariesCommon.pm.in +++ b/scripts/perl5/Debian/DictionariesCommon.pm.in @@ -425,8 +425,8 @@ sub dc_merge_installed_hunspell_dicts { my $hunspelldir = shift; my $main_dicts = shift; - die "dmihd: No hunspell dir passed or available\n" unless ( -d $hunspelldir); $main_dicts = {} unless $main_dicts; + return $main_dicts unless ( -d $hunspelldir); my @hunspell_aff = <$hunspelldir/*.aff>; my $parsed_dicts = {};
signature.asc
Description: PGP signature