problem with info files

David Starks-Browning starksb@ebi.ac.uk
Fri Feb 21 20:32:00 GMT 2003


On Friday 21 Feb 03, David Starks-Browning writes:
> Greetings package maintainers,
> 
> I notice that _update-info-dir assumes that all info files worth
> indexing are of the form "/usr/info/*.info".
> 
> Unfortunately, there are 3 packages (if I count correctly) that do
> not follow this rule:
> 
> 	emacs
> 	texinfo
> 	groff
> 
> Are the maintainers of those packages aware of the problem?  Can these
> packages be fixed?
> 
> Alternatively, it might be possible to re-write
> /etc/postinstall/update-info-dir.sh to catch these exceptional cases.

Actually, the alternative is easy.  At the expense of globbing
everything in /usr/info, rather than just *.info (which was no
problem on my PII-400 BTW), this appears to do the right thing for
both variants of info pages:

===================================================================
--- update-info-dir.sh.orig     2002-03-31 20:14:58.000000000 +0100
+++ update-info-dir.sh  2003-02-21 18:12:48.000000000 +0000
@@ -1,9 +1,13 @@
 #!/bin/sh
 cd /usr/info
-for f in *.info; do
+for f in *; do
     case "$f" in
        *\**)
            ;;
+       *-?)
+           ;;
+       *-??)
+           ;;
        *)
            install-info --quiet $f dir ||
            install-info  --quiet --entry="* $$f ($f): $$f" $$f dir
===================================================================

(It got my texinfo info working, anyway!)

I don't see any documentation for the "autodep" setup hint, but I can
guess that this is necessary too:

===================================================================
--- setup.hint.orig     2002-04-10 04:11:08.000000000 +0100
+++ setup.hint  2003-02-21 18:16:52.000000000 +0000
@@ -1,6 +1,6 @@
 sdesc: "Generate info/dir file automatically"
 category: PostInstallLast
 requires: texinfo ash
-autodep: usr/info/.*\.info
+autodep: usr/info/.*
 incver_ifdep: yes
 # verpat: (_update_info)(dir-\d+-\d+)(.*)
===================================================================

If you choose to use it, I hope it's trivial enough not to require an
assignment.

Thanks,
David



More information about the Cygwin-apps mailing list