Package: dictionaries-common-dev
Version: 1.10.2
Severity: normal

Hi,


While experimenting with using `auto-hash' entries for ibritish/iamerican 
packages, I've found that a dictionary package fails to install when 
the following conditions are met:

 - dictionary provided in the package is selected as the default one
 - /var/lib/ispell/$dict.hash file doesn't exist (e.g. this is an
   initial install, the file is not provided by the package itself, and
   ispell-autobuildhash hasn't been run yet).


The autogenerated posinst contains the following:

  # Automatically added by installdeb-ispell
  dico_class="ispell"
  dico_compat="british.compat british-huge.compat british-large.compat
british-small.compat"

  for i in $dico_compat; do
      >"/var/lib/$dico_class/$i"
  done


It seems that the existance of the default link is checked before
ispell-autobuildhash got a chance to be called, so I think sth like 
the following should be added to postinst (and I've just checed that
it actually solves the problem):

  hash_files="................"
  for  i in $hash_files; do
     touch "/var/lib/$dico_class/$i" # or >"/var/lib/$dico_class/$i", 
                                     # if it's OK to overwrite the file 
contents, It probably
                                     # should be fine, as ispell-autobuildhash 
will overwrite it anyway
  done 


Just for reference, here're output from installation:


  The following NEW packages will be installed:
    ibritish
  0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
  Need to get 0 B/1413 kB of archives.
  After this operation, 1544 kB of additional disk space will be used.
  Preconfiguring packages ...     [ <-- here british was choosen as the default 
dict ]
  Selecting previously deselected package ibritish.
  (Reading database ... 412856 files and directories currently installed.)
  Unpacking ibritish (from .../ibritish_3.3.02-2~_all.deb) ...
  Processing triggers for man-db ...
  Setting up ibritish (3.3.02-2~) ...
  
  When trying to make the default link to a ispell dictionary
  the file to link [/usr/lib/ispell/british.hash] was not found. Please
  report this as a bug to the
  maintainer of the ispell dictionary package you tried to
  select.
  In the meantime select other default value for your ispell dictionary.
  dpkg: error processing ibritish (--configure):
   subprocess installed post-installation script returned error exit
  status 2
  configured to not write apport reports
                                        Errors were encountered while
  processing:
   ibritish
  mount: /usr is busy
  
  
  [20]/home/robert> LC_ALL=C sudo ispell-autobuildhash
  ispell-autobuildhash: Processing 'british-huge' dict 
  ispell-autobuildhash: Processing 'british-large' dict
  ispell-autobuildhash: Processing 'british-small' dict
  ispell-autobuildhash: Processing 'british' dict

  [21]/home/robert> LC_ALL=C sudo  dpkg --configure --pending
  Setting up ibritish (3.3.02-2~) ...
  Processing triggers for dictionaries-common ...
  ispell-autobuildhash: Processing 'british-huge' dict
  ispell-autobuildhash: Processing 'british-large' dict
  ispell-autobuildhash: Processing 'british-small' dict
  ispell-autobuildhash: Processing 'british' dict
  



Reegards,
robert




-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (200, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.37-1-686 (SMP w/1 CPU core)
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/dash

Versions of packages dictionaries-common-dev depends on:
ii  debhelper                     8.1.2      helper programs for debian/rules
ii  dictionaries-common           1.10.2     Common utilities for spelling dict

dictionaries-common-dev recommends no packages.

dictionaries-common-dev suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to