bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #46481] install-info can "corrupt" dir file if interrupted.


From: Stefan Husmann
Subject: Re: [bug #46481] install-info can "corrupt" dir file if interrupted.
Date: Fri, 20 Nov 2015 12:47:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Am 20.11.2015 um 12:19 schrieb Gavin Smith:
> On 19 November 2015 at 21:48, Pedrum Mohageri <address@hidden> wrote:
> 
>> Details:
>>
>> I use Arch and the package manager bailed out on several packages during the
>> install. I traced this to a failed install-info call to add entries for
>> package to the 'dir' that info use.
>>
Hello,

I am also on Arch Linux, but did not get such problems yet. But I often see 
install files of (even official) Arch Linux packages which try to run 
install-info 
more often than needed.

For instance the package for texinfo has the following install file:

infodir=usr/share/info
filelist=(info.info info-stnd.info texinfo.info{,-1,-2,-3})

post_install() {
  # Scan *all* info files on install
  for file in $(find $infodir -type f ! -name dir); do
      install-info $file $infodir/dir 2> /dev/null
  done
}

post_upgrade() {
  for file in address@hidden; do
    install-info $infodir/$file.gz $infodir/dir 2> /dev/null
  done
}

pre_remove() {
  for file in address@hidden; do
    install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
  done
}

I think the install-info command is smart enough to handle the split info files 
itself, so the array "filelist" should not contain files with -1, -2... 
extension.

This is only an example.

Am I right?
Can you check if the affected packages have somthing like this in the install 
file?


Best Regards

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]