Subject: pkg/22555: pkg_install-info should provide info/dir
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 08/20/2003 11:47:45
>Number:         22555
>Category:       pkg
>Synopsis:       pkg_install-info should provide info/dir
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 20 18:48:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6.1_STABLE NetBSD 1.6.1_STABLE (GENERIC) #0: Tue Aug 12 02:52:57 PDT 2003 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
install-info wants an info/dir to properly register info entries.
>How-To-Repeat:
Install gmake which runs pkg_install-info when you don't have
any info/dir file (or it is zero bytes).

When it is 0 bytes, the error is:
 install-info: /usr/info/dir: empty file
>Fix:
Install a skeleton info/dir if it doesn't exist or is 0 bytes.
(I think that zero byte info/dir came from old textutils package -- it's
made by an @exec in its PLIST.)

Maybe a dir.template can be installed to share/examples/pkg_install-info/.

Then if info/dir is missing or only 0 bytes then copy it into place.
(This could be done in an INSTALL script for pkg_install-info.)

Here is a dir.template:

This is the file .../info/dir, which contains the
topmost node of the Info hierarchy, called (dir)Top.
The first time you invoke Info you start off looking at this node.

File: dir,	Node: Top	This is the top of the INFO tree

  This (the Directory node) gives a menu of major topics.
  Typing "q" exits, "?" lists all Info commands, "d" returns here,
  "h" gives a primer for first-timers,
  "mEmacs<Return>" visits the Emacs manual, etc.

  In Emacs, you can click mouse button 2 on a menu item or cross reference
  to select it.

* Menu:
>Release-Note:
>Audit-Trail:
>Unformatted: