source: patches/texinfo-4.13a-new_compressors-1.patch@ 52368aa

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 52368aa was 89bc6ed, checked in by Jim Gifford <clfs@…>, 16 years ago

Added Patches to File, Man, Tar, and Texinfo to support XZ Utils - Patches

  • Property mode set to 100644
File size: 2.9 KB
  • doc/texinfo.txi

    Submitted By: Jim Gifford <jim at cross-lfs dot org>
    Date: 2009-02-21
    Initial Package Version: 4.13a
    Upstream Status: Unknown
    Origin: Jim Gifford
    Description: For using xz compression
    
    diff -Naur texinfo-4.13.orig/doc/texinfo.txi texinfo-4.13/doc/texinfo.txi
    old new  
    1648816488
    1648916489@cindex Compressed dir files, reading
    1649016490@cindex Bzipped dir files, reading
     16491@cindex XZ-compressed dir files, reading
    1649116492@cindex LZMA-compressed dir files, reading
    1649216493@cindex Dir files, compressed
    1649316494If any input file is compressed with @code{gzip} (@pxref{Top,,,gzip,
     
    1649516496for reading.  And if @var{dir-file} is compressed, @code{install-info}
    1649616497also automatically leaves it compressed after writing any changes.
    1649716498If @var{dir-file} itself does not exist, @code{install-info} tries to
    16498 open @file{@var{dir-file}.gz}, @file{@var{dir-file}.bz2}, and
    16499 @file{@var{dir-file}.lzma}, in that order.
     16499open @file{@var{dir-file}.gz}, @file{@var{dir-file}.bz2},
     16500@file{@var{dir-file}.xz} and @file{@var{dir-file}.lzma}, in that order.
    1650016501
    1650116502Options:
    1650216503
  • info/filesys.c

    diff -Naur texinfo-4.13.orig/info/filesys.c texinfo-4.13/info/filesys.c
    old new  
    5555static COMPRESSION_ALIST compress_suffixes[] = {
    5656  { ".gz", "gunzip" },
    5757  { ".bz2", "bunzip2" },
     58  { ".xz", "unxz" },
    5859  { ".lzma", "unlzma" },
    5960  { ".z", "gunzip" },
    6061  { ".Z", "uncompress" },
  • install-info/install-info.c

    diff -Naur texinfo-4.13.orig/install-info/install-info.c texinfo-4.13/install-info/install-info.c
    old new  
    739739#else
    740740    *compression_program = "bzip";
    741741#endif
     742  else if (data[0] == '\xFD' && data[1] == '7' && data[2] == 'z'
     743               && data[3] == 'X' && data[4] == 'Z' && data[5] == 0x00)
     744#ifndef STRIP_DOT_EXE
     745    *compression_program = "xz.exe";
     746#else
     747    *compression_program = "xz";
     748#endif
    742749    /* We (try to) match against old lzma format (which lacks proper
    743        header, two first matches), as well as the new format (last match). */
     750       header, two first matches). */
    744751  else if ((data[9] == 0x00 && data[10] == 0x00 && data[11] == 0x00
    745752            && data[12] == 0x00)
    746753           || (data[5] == '\xFF' && data[6] == '\xFF' && data[7] == '\xFF'
    747754               && data[8] == '\xFF' && data[9] == '\xFF' && data[10] == '\xFF'
    748                && data[11] == '\xFF' && data[12] == '\xFF')
    749            || (data[0] == '\xFF' && data[1] == 'L' && data[2] == 'Z'
    750                && data[3] == 'M' && data[4] == 'A' && data[5] == 0x00))
     755               && data[11] == '\xFF' && data[12] == '\xFF'))
    751756#ifndef STRIP_DOT_EXE
    752757    *compression_program = "lzma.exe";
    753758#else
Note: See TracBrowser for help on using the repository browser.