Remove dependency on gunzip

View: New views
3 Messages — Rating Filter:   Alert me  

Remove dependency on gunzip

by Bugzilla from ant_diaz@teleline.es :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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" },

Re: Remove dependency on gunzip

by Karl Berry :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    --- 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

I see nothing wrong with requiring gunzip, but since you asked for it,
ok, installed.



Re: Remove dependency on gunzip

by Bugzilla from ant_diaz@teleline.es :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Karl Berry wrote:
> I see nothing wrong with requiring gunzip, but since you asked for it,
> ok, installed.

Thanks.