bug-texinfo
[Top][All Lists]
Advanced

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

Remove dependency on gunzip


From: Antonio Diaz Diaz
Subject: Remove dependency on gunzip
Date: Thu, 22 Oct 2009 17:42:34 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

Hello,

I recently received this error from info on a computer without the gunzip binary installed:
  $ info tar
  sh: gunzip: command not found
  info: Unable to find node referenced by `Tar' in `(dir)Top'.

As gunzip is a link to gzip, the only difference between using "gunzip" and "gzip -d" is that the former adds a gratuitous dependency on the gunzip name.

Could you, please, apply the attached patch whose only effect is partially removing the dependency of texinfo on the "gunzip" name?


Regards,
Antonio.
diff -urdN texinfo-4.13.orig/info/filesys.c texinfo-4.13/info/filesys.c
--- texinfo-4.13.orig/info/filesys.c    2008-06-12 14:39:20.000000000 +0200
+++ texinfo-4.13/info/filesys.c 2009-10-22 16:37:00.000000000 +0200
@@ -53,7 +53,11 @@
 };
 
 static COMPRESSION_ALIST compress_suffixes[] = {
+#if STRIP_DOT_EXE
   { ".gz", "gunzip" },
+#else
+  { ".gz", "gzip -d" },
+#endif
   { ".bz2", "bunzip2" },
   { ".lzma", "unlzma" },
   { ".z", "gunzip" },

reply via email to

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