source: clfs-sysroot/patches/tar-1.22-new_compressors-1.patch@ 8c53ee9

Last change on this file since 8c53ee9 was fabddfd, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Updated Tar to 1.22.

  • Property mode set to 100644
File size: 2.4 KB
  • src/buffer.c

    Submitted By: Jim Gifford <jim at cross-lfs dot org>
    Date: 2009-03-05
    Initial Package Version: 1.22
    Upstream Status: Unknown
    Origin: Jim Gifford
    Description: For using lzip compression
    
    diff -Naur tar-1.22.orig/src/buffer.c tar-1.22/src/buffer.c
    old new  
    203203  ct_compress,
    204204  ct_gzip,
    205205  ct_bzip2,
     206  ct_lzip,
    206207  ct_lzma,
    207208  ct_lzop,
    208209  ct_xz
     
    221222  { ct_tar },
    222223  { ct_none, },
    223224  { ct_compress, 2, "\037\235", "compress", "-Z" },
    224   { ct_gzip,     2, "\037\213", "gzip", "-z"  },
    225   { ct_bzip2,    3, "BZh",      "bzip2", "-j" },
    226   { ct_lzma,     6, "\xFFLZMA", "lzma", "--lzma" }, /* FIXME: ???? */
    227   { ct_lzop,     4, "\211LZO",  "lzop", "--lzop" },
     225  { ct_gzip,     2, "\037\213", "gzip",     "-z"  },
     226  { ct_bzip2,    3, "BZh",      "bzip2",    "-j" },
     227  { ct_lzip,     4, "LZIP",     "lzip",     "--lzip" },
     228  { ct_lzma,     6, "\xFFLZMA", "lzma",     "--lzma" }, /* FIXME: ???? */
     229  { ct_lzop,     4, "\211LZO",  "lzop",     "--lzop" },
    228230  { ct_xz,       6, "\0xFD7zXZ", "-J" },
    229231};
    230232
  • src/tar.c

    diff -Naur tar-1.22.orig/src/tar.c tar-1.22/src/tar.c
    old new  
    271271  IGNORE_FAILED_READ_OPTION,
    272272  INDEX_FILE_OPTION,
    273273  KEEP_NEWER_FILES_OPTION,
     274  LZIP_OPTION,
    274275  LZMA_OPTION,
    275276  LZOP_OPTION,
    276277  MODE_OPTION,
     
    328329  VERSION_OPTION,
    329330  VOLNO_FILE_OPTION,
    330331  WILDCARDS_MATCH_SLASH_OPTION,
    331   WILDCARDS_OPTION
     332  WILDCARDS_OPTION,
     333  XZ_OPTION
    332334};
    333335
    334336const char *argp_program_version = "tar (" PACKAGE_NAME ") " VERSION;
     
    605607  {"compress", 'Z', 0, 0,
    606608   N_("filter the archive through compress"), GRID+1 },
    607609  {"uncompress", 0, 0, OPTION_ALIAS, NULL, GRID+1 },
     610  {"lzip", LZIP_OPTION, 0, 0,
     611   N_("filter the archive through lzip"), GRID+8 },
    608612  {"lzma", LZMA_OPTION, 0, 0,
    609613   N_("filter the archive through lzma"), GRID+1 },
    610614  {"lzop", LZOP_OPTION, 0, 0,
     
    14041408      }
    14051409      break;
    14061410
     1411    case LZIP_OPTION:
     1412      set_use_compress_program_option ("lzip");
     1413      break;
     1414
    14071415    case LZMA_OPTION:
    14081416      set_use_compress_program_option ("lzma");
    14091417      break;
     
    15611569        }
    15621570      break;
    15631571
     1572    case XZ_OPTION:
     1573      set_use_compress_program_option ("xz");
     1574      break;
     1575
    15641576    case 'z':
    15651577      set_use_compress_program_option ("gzip");
    15661578      break;
Note: See TracBrowser for help on using the repository browser.