source: patches/tar-1.22-new_compressors-1.patch@ 3763058

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3763058 was 2bfaabe, checked in by Jim Gifford <clfs@…>, 16 years ago

Updated to TAR 1.22

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[2bfaabe]1Submitted By: Jim Gifford <jim at cross-lfs dot org>
2Date: 2009-03-05
3Initial Package Version: 1.22
4Upstream Status: Unknown
5Origin: Jim Gifford
6Description: For using lzip compression
7
8diff -Naur tar-1.22.orig/src/buffer.c tar-1.22/src/buffer.c
9--- tar-1.22.orig/src/buffer.c 2009-03-04 23:04:13.000000000 -0800
10+++ tar-1.22/src/buffer.c 2009-03-05 20:46:39.763509707 -0800
11@@ -203,6 +203,7 @@
12 ct_compress,
13 ct_gzip,
14 ct_bzip2,
15+ ct_lzip,
16 ct_lzma,
17 ct_lzop,
18 ct_xz
19@@ -221,10 +222,11 @@
20 { ct_tar },
21 { ct_none, },
22 { ct_compress, 2, "\037\235", "compress", "-Z" },
23- { ct_gzip, 2, "\037\213", "gzip", "-z" },
24- { ct_bzip2, 3, "BZh", "bzip2", "-j" },
25- { ct_lzma, 6, "\xFFLZMA", "lzma", "--lzma" }, /* FIXME: ???? */
26- { ct_lzop, 4, "\211LZO", "lzop", "--lzop" },
27+ { ct_gzip, 2, "\037\213", "gzip", "-z" },
28+ { ct_bzip2, 3, "BZh", "bzip2", "-j" },
29+ { ct_lzip, 4, "LZIP", "lzip", "--lzip" },
30+ { ct_lzma, 6, "\xFFLZMA", "lzma", "--lzma" }, /* FIXME: ???? */
31+ { ct_lzop, 4, "\211LZO", "lzop", "--lzop" },
32 { ct_xz, 6, "\0xFD7zXZ", "-J" },
33 };
34
35diff -Naur tar-1.22.orig/src/tar.c tar-1.22/src/tar.c
36--- tar-1.22.orig/src/tar.c 2009-03-04 23:04:13.000000000 -0800
37+++ tar-1.22/src/tar.c 2009-03-05 20:48:09.989291521 -0800
38@@ -271,6 +271,7 @@
39 IGNORE_FAILED_READ_OPTION,
40 INDEX_FILE_OPTION,
41 KEEP_NEWER_FILES_OPTION,
42+ LZIP_OPTION,
43 LZMA_OPTION,
44 LZOP_OPTION,
45 MODE_OPTION,
46@@ -328,7 +329,8 @@
47 VERSION_OPTION,
48 VOLNO_FILE_OPTION,
49 WILDCARDS_MATCH_SLASH_OPTION,
50- WILDCARDS_OPTION
51+ WILDCARDS_OPTION,
52+ XZ_OPTION
53 };
54
55 const char *argp_program_version = "tar (" PACKAGE_NAME ") " VERSION;
56@@ -605,6 +607,8 @@
57 {"compress", 'Z', 0, 0,
58 N_("filter the archive through compress"), GRID+1 },
59 {"uncompress", 0, 0, OPTION_ALIAS, NULL, GRID+1 },
60+ {"lzip", LZIP_OPTION, 0, 0,
61+ N_("filter the archive through lzip"), GRID+8 },
62 {"lzma", LZMA_OPTION, 0, 0,
63 N_("filter the archive through lzma"), GRID+1 },
64 {"lzop", LZOP_OPTION, 0, 0,
65@@ -1404,6 +1408,10 @@
66 }
67 break;
68
69+ case LZIP_OPTION:
70+ set_use_compress_program_option ("lzip");
71+ break;
72+
73 case LZMA_OPTION:
74 set_use_compress_program_option ("lzma");
75 break;
76@@ -1561,6 +1569,10 @@
77 }
78 break;
79
80+ case XZ_OPTION:
81+ set_use_compress_program_option ("xz");
82+ break;
83+
84 case 'z':
85 set_use_compress_program_option ("gzip");
86 break;
Note: See TracBrowser for help on using the repository browser.