From b4f1df6b844c4bb23b9526014cdd9f855e478b07 Mon Sep 17 00:00:00 2001
From: Russ Allbery
Date: Fri, 7 Aug 2009 15:34:31 -0700
Subject: [PATCH] Rewrite info documents section
install-info now uses dpkg hooks, so remove all requirements for running
install-info in package maintainer scripts. Document the necessary info
directory information and provide Texinfo modification instructions in a
footnote. Explicitly forbid packages from including /usr/share/info/dir.
---
policy.sgml | 70 +++++++++++++++++++++++++++++++----------------------
1 file changed, 41 insertions(+), 29 deletions(-)
diff --git a/policy.sgml b/policy.sgml
index ffc721f..2a8934a 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -8846,37 +8846,49 @@ name ["syshostname"]:
- Your package should call install-info to update
- the Info dir file in its postinst
- script when called with a configure argument, for
- example:
-
-install-info --quiet --section Development Development \
- /usr/share/info/foobar.info
-
-
-
- It is a good idea to specify a section for the location of
- your program; this is done with the --section
- switch. To determine which section to use, you should look
- at /usr/share/info/dir on your system and choose the most
- relevant (or create a new section if none of the current
- sections are relevant). Note that the --section
- flag takes two arguments; the first is a regular expression
- to match (case-insensitively) against an existing section,
- the second is used when creating a new one.
-
-
- You should remove the entries in the prerm
- script when called with a remove argument:
-
-install-info --quiet --remove /usr/share/info/foobar.info
-
+ The install-info program maintains a directory of
+ installed info documents in /usr/share/info/dir for
+ the use of info readers.
+ It was previously necessary for packages installing info
+ documents to run install-info from maintainer
+ scripts. This is no longer necessary. The installation
+ system now uses dpkg hooks.
+
+ This file must not be included in packages.
+
- If install-info cannot find a description entry
- in the Info file you must supply one. See for details.
+ Info documents should contain section and directory entry
+ information in the document for the use
+ of install-info. The section should be specified
+ via a line starting with INFO-DIR-SECTION followed by a
+ space and the section of this info page. The directory entry or
+ entries should be included between
+ a START-INFO-DIR-ENTRY line and
+ an END-INFO-DIR-ENTRY line. For example:
+
+INFO-DIR-SECTION Individual utilities
+START-INFO-DIR-ENTRY
+* example: (example). An example info directory entry.
+END-INFO-DIR-ENTRY
+
+ To determine which section to use, you should look
+ at /usr/share/info/dir on your system and choose
+ the most relevant (or create a new section if none of the
+ current sections are relevant).
+ Normally, info documents are generated from Texinfo source.
+ To include this information in the generated info document, if
+ it is absent, add commands like:
+
+@dircategory Individual utilities
+@direntry
+* example: (example). An example info directory entry.
+@end direntry
+
+
+ to the Texinfo source of the document and ensure that the info
+ documents are rebuilt from source during the package build.
+
--
2.39.5