source: patches/man-1.6f-new_compressors-1.patch@ d549e24a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d549e24a 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.6 KB
RevLine 
[89bc6ed]1Submitted By: Jim Gifford <jim at cross-lfs dot org>
2Date: 2009-02-21
3Initial Package Version: 1.6f
4Upstream Status: Unknown
5Origin: Jim Gifford
6Description: For using lzip compression
7 For using xz compression
8
9diff -Naur man-1.6f.orig/configure man-1.6f/configure
10--- man-1.6f.orig/configure 2007-08-20 21:15:21.000000000 -0700
11+++ man-1.6f/configure 2009-02-22 19:30:14.602512641 -0800
12@@ -1015,7 +1015,7 @@
13 then
14 DO_COMPRESSION=true
15 compress=
16- for i in lzma bzip2 gzip bzip tzip pack compress freeze yabba
17+ for i in xz lzip lzma bzip2 gzip bzip tzip pack compress freeze yabba
18 do
19 eval F$i=missing
20 for j in $DEFPATH
21@@ -1068,6 +1068,8 @@
22 fi
23
24 case $compress in
25+ *xz*) ext=".xz" ;;
26+ *lzip*) ext=".lz" ;;
27 *lzma*) ext=".lzma" ;;
28 *bzip2*) ext=".bz2" ;;
29 *gzip*) ext=".gz" ;;
30@@ -1111,7 +1113,7 @@
31 fi
32
33 # unconditionally handle uncompression
34-UNCOMPRESSORS="unlzma gunzip bzip2 pcat zcat fcat unyabba"
35+UNCOMPRESSORS="unxz lzip unlzma gunzip bzip2 pcat zcat fcat unyabba"
36 for i in $UNCOMPRESSORS
37 do
38 eval F$i=missing
39@@ -1132,10 +1134,18 @@
40 if [ $Fbzip2 != missing ]; then
41 bzip2="$Fbzip2 -c -d"
42 fi
43+unxz=missing
44+if [ $Funxz != missing ]; then
45+ unxz="$Funxz -c -d"
46+fi
47 unlzma=missing
48 if [ $Funlzma != missing ]; then
49 unlzma="$Funlzma -c -d"
50 fi
51+lzip=missing
52+if [ $Flzip != missing ]; then
53+ lzip="$Flzip -c -d"
54+fi
55 pcat="$Fpcat"
56 zcat="$Fzcat"
57 fcat="$Ffcat"
58@@ -1164,6 +1174,12 @@
59 bzip2)
60 echo "Command to use for .bz2 files (standard bzip2)"
61 echo $n "[`eval echo \\$$filter`] $c" ;;
62+ xz)
63+ echo "Command to use for .xz files (standard xz)"
64+ echo $n "[`eval echo \\$$filter`] $c" ;;
65+ lzip)
66+ echo "Command to use for .lz files (standard lzip)"
67+ echo $n "[`eval echo \\$$filter`] $c" ;;
68 lzma)
69 echo "Command to use for .lzma files (standard lzma)"
70 echo $n "[`eval echo \\$$filter`] $c" ;;
71@@ -1228,6 +1244,8 @@
72 case $compress_ext in
73 .gz) decompress=$gunzip ;;
74 .bz2) decompress=$bzip2 ;;
75+ .xz) decompress=$unxz ;;
76+ .lz) decompress=$lzip ;;
77 .lzma) decompress=$unlzma ;;
78 .z) decompress=$pcat ;;
79 .Z) decompress=$zcat ;;
80@@ -1321,6 +1339,8 @@
81 s,@zcat@,$zcat,
82 s,@gunzip@,$gunzip,
83 s,@bzip2@,$bzip2,
84+s,@lzip@,$lzip,
85+s,@unxz@,$unxz,
86 s,@unlzma@,$unlzma,
87 s,@unyabba@,$unyabba,
88 s,@compress@,$compress,
89diff -Naur man-1.6f.orig/src/man.conf.in man-1.6f/src/man.conf.in
90--- man-1.6f.orig/src/man.conf.in 2007-08-20 21:15:21.000000000 -0700
91+++ man-1.6f/src/man.conf.in 2009-02-22 19:30:38.916070400 -0800
92@@ -132,6 +132,8 @@
93 #
94 .gz @gunzip@
95 .bz2 @bzip2@
96+.xz @unxz@
97+.lz @lzip@
98 .lzma @unlzma@
99 .z @pcat@
100 .Z @zcat@
Note: See TracBrowser for help on using the repository browser.