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

Bug#47255: dpkg: install-info is making a mess on my dir file



Package: dpkg
Version: 1.4.1.13
Severity: normal

install-info seems to get completely confused by info files with more than one
entry (like the ones from some devel packages). This is a sample (from my dir
file):

* readelf: (binutils)readelf.     Display the contents of ELF format files.
* size: (binutils)size.           List section sizes and total size
* strings: (binutils)strings.     List printable strings from files
* strip: (binutils)strip.         Discard symbols
* c++filt: (binutils)c++filt.     Filter to demangle encoded C++ symbols
* cxxfilt: (binutils)c++filt.     MS-DOS name for c++filt
* addr2line: (binutils)addr2line. Convert addresses to file and line
* nlmconv: (binutils)nlmconv.     Converts object code into an NLM
* windres: (binutils)windres.     Manipulate Windows resources
* dlltool: (binutils)dlltool.     Create files needed to build and use DLLs
* Stabs: (stabs).          The "stabs" debugging information format.
* Standards: (standards).  GNU coding standards
* strings: (binutils)strings.     List printable strings from files
* strip: (binutils)strip.         Discard symbols
* c++filt: (binutils)c++filt.     Filter to demangle encoded C++ symbols
* cxxfilt: (binutils)c++filt.     MS-DOS name for c++filt
* addr2line: (binutils)addr2line. Convert addresses to file and line
* nlmconv: (binutils)nlmconv.     Converts object code into an NLM

The out of order entries are no real problem -- the problem is the duplicate
entries (seems they weren't removed correctly), but having them in the right
order (which might mean splitting entries from the same info file most of the
time) would help.

A fixup-mode to order things again (including the sections themselves) and
remove duplicates or entries without the corresponding info files (leftovers
from failed removes) would fix the bug if applied before and after each change.
Having a mode like this (and running it on dpkg's postinst) would help to clean
up the current mess on unstable systems too (it would be a special install-info
mode then).

Of course, this brings back the question whether dir shouldn't be a /var file
maintained by dpkg and not an unmanaged created-on-that-install-two-centuries-
ago stray file. The way it is currently makes it way too hard to change the
introdutory text after the file has been created the first time.

-- System Information
Debian Release: potato
Kernel Version: Linux cesarb1 2.2.12 #1 Sun Aug 29 16:07:07 EST 1999 i386 unknown

Versions of the packages dpkg depends on:
ii  libc6           2.1.2-5        GNU C Library: Shared libraries and timezone
ii  libncurses4     4.2-3.4        Shared libraries for terminal handling
ii  libstdc++2.10   2.95.2-0pre2   The GNU stdc++ library


Reply to: