1 |
vapier 10/01/27 02:35:14 |
2 |
|
3 |
Added: man-1.6f-so-search-2.patch |
4 |
man-1.6f-parallel-build.patch |
5 |
man-1.6f-man2html-compression-2.patch |
6 |
man-1.6f-xz.patch |
7 |
Log: |
8 |
Tweak log output #194532 by Ken Rushia. Fix by Kevin Pyle for parallel build errors #207148 by Csaba Tóth. Fix parallel build warnings #258916 by Mr. Anderson. Add the -r option to default less options #287183 by Martin Baselier. Add support for xz compression #302380 by Dror Levin. |
9 |
(Portage version: 2.2_rc61/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 sys-apps/man/files/man-1.6f-so-search-2.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/files/man-1.6f-so-search-2.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/files/man-1.6f-so-search-2.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: man-1.6f-so-search-2.patch |
18 |
=================================================================== |
19 |
improve the uncompressed .so search |
20 |
|
21 |
--- a/src/man.c |
22 |
+++ b/src/man.c |
23 |
@@ -381,13 +381,23 @@ again: |
24 |
} |
25 |
/* |
26 |
* Some people have compressed man pages, but uncompressed |
27 |
- * .so files - we could glob for all possible extensions, |
28 |
- * for now: only try .gz |
29 |
+ * .so files - we should discover this list dynamically, but |
30 |
+ * for now just hardcode it. |
31 |
*/ |
32 |
- else if (fp == NULL && get_expander(".gz") && |
33 |
- strlen(name)+strlen(".gz") < BUFSIZE) { |
34 |
- strcat(name, ".gz"); |
35 |
- fp = fopen (name, "r"); |
36 |
+ else if (fp == NULL) { |
37 |
+#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) |
38 |
+ size_t i, name_len = strlen(name); |
39 |
+ const char *extensions[] = { ".gz", ".bz2", ".lzma", ".xz", ".z", ".Z" }; |
40 |
+ for (i = 0; i < ARRAY_SIZE(extensions); ++i) { |
41 |
+ const char *comp = extensions[i]; |
42 |
+ name[name_len] = '\0'; |
43 |
+ if (get_expander(comp) && name_len+strlen(comp) < BUFSIZE) { |
44 |
+ strcat(name, comp); |
45 |
+ fp = fopen(name, "r"); |
46 |
+ if (fp) |
47 |
+ break; |
48 |
+ } |
49 |
+ } |
50 |
} |
51 |
|
52 |
if (fp == NULL) { |
53 |
|
54 |
|
55 |
|
56 |
1.1 sys-apps/man/files/man-1.6f-parallel-build.patch |
57 |
|
58 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/files/man-1.6f-parallel-build.patch?rev=1.1&view=markup |
59 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/files/man-1.6f-parallel-build.patch?rev=1.1&content-type=text/plain |
60 |
|
61 |
Index: man-1.6f-parallel-build.patch |
62 |
=================================================================== |
63 |
http://bugs.gentoo.org/207148 |
64 |
|
65 |
patch by Kevin Pyle to fix parallel build issues |
66 |
|
67 |
--- a/src/Makefile.in |
68 |
+++ b/src/Makefile.in |
69 |
@@ -42,9 +42,12 @@ |
70 |
makemsg: |
71 |
$(BUILD_CC) -o makemsg makemsg.c |
72 |
|
73 |
-msg.c gripedefs.h: ../msgs/mess.en makemsg |
74 |
+gripedefs.h: ../msgs/mess.en makemsg |
75 |
./makemsg ../msgs/mess.en gripedefs.h msg.c |
76 |
|
77 |
+# avoid parallel build issues with makemsg |
78 |
+msg.c: gripedefs.h |
79 |
+ |
80 |
# glob.c does not have prototypes |
81 |
glob.o: glob.c ndir.h |
82 |
$(CC) -c $(CWARNNP) $(CFLAGS) -I. $(DEFS) glob.c |
83 |
|
84 |
http://bugs.gentoo.org/258916 |
85 |
|
86 |
avoid: |
87 |
make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. |
88 |
|
89 |
--- a/man/Makefile.in |
90 |
+++ b/man/Makefile.in |
91 |
@@ -3,7 +3,7 @@ |
92 |
MAN5 = man.conf |
93 |
MAN8 = makewhatis |
94 |
ALL = man.1 whatis.1 apropos.1 man.conf.5 |
95 |
-MAYBE8 = makewhatis |
96 |
+MAYBE8 = $(wildcard makewhatis.man) |
97 |
|
98 |
.SUFFIXES: .man .1 .5 .8 |
99 |
|
100 |
@@ -21,9 +21,7 @@ |
101 |
# Where to put the manual pages. |
102 |
mandir = $(DESTDIR)$(PREFIX)@mandir@$(SLANG) |
103 |
|
104 |
-all: $(ALL) |
105 |
- for i in $(MAYBE8); \ |
106 |
- do if test -f $$i.man; then make -f ../Makefile $$i.8; fi; done |
107 |
+all: $(ALL) $(MAYBE8:.man=.8) |
108 |
|
109 |
install: $(ALL) |
110 |
mkdir -p $(mandir)/man1 $(mandir)/man5 $(mandir)/man8 |
111 |
@@ -39,18 +37,17 @@ |
112 |
|
113 |
spotless: |
114 |
|
115 |
-subdirs: |
116 |
- @for i in @languages@; do if test -d $$i; then echo; \ |
117 |
- echo "==== Making the `cat $$i.txt` man pages. ===="; \ |
118 |
- cd $$i; make -f ../Makefile; cd ..; \ |
119 |
- else echo "==== No $$i man pages found. ===="; fi; done |
120 |
- |
121 |
-installsubdirs: |
122 |
- @for i in @languages@; do if test -d $$i; then echo; \ |
123 |
- echo "==== Installing the `cat $$i.txt` man pages. ===="; \ |
124 |
- cd $$i; SLANG=/$$i; if test $$SLANG = /en; then SLANG= ; fi; \ |
125 |
- export SLANG; make -f ../Makefile install; cd ..; \ |
126 |
- else echo "==== No $$i man pages found. ===="; fi; done |
127 |
+MAN_LANGS = @languages@ |
128 |
+subdirs: $(MAN_LANGS:=_lang_subdir) |
129 |
+%_lang_subdir: |
130 |
+ @echo "==== Making the `cat $(@:_lang_subdir=).txt` man pages. ====" |
131 |
+ $(MAKE) -f ../Makefile -C $(@:_lang_subdir=) |
132 |
+ |
133 |
+installsubdirs: $(MAN_LANGS:=_lang_installsubdir) |
134 |
+%_lang_installsubdir: |
135 |
+ @echo "==== Making the `cat $(@:_lang_installsubdir=).txt` man pages. ====" |
136 |
+ $(MAKE) -f ../Makefile -C $(@:_lang_installsubdir=) install \ |
137 |
+ SLANG=`s=$(@:_lang_installsubdir=); test $$s = en || echo /$$s` |
138 |
|
139 |
cleansubdirs: |
140 |
@for i in ??; do cd $$i; make -f ../Makefile clean; cd ..; done |
141 |
|
142 |
|
143 |
|
144 |
1.1 sys-apps/man/files/man-1.6f-man2html-compression-2.patch |
145 |
|
146 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/files/man-1.6f-man2html-compression-2.patch?rev=1.1&view=markup |
147 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/files/man-1.6f-man2html-compression-2.patch?rev=1.1&content-type=text/plain |
148 |
|
149 |
Index: man-1.6f-man2html-compression-2.patch |
150 |
=================================================================== |
151 |
add support for bzip2/lzma to man2html and friends |
152 |
|
153 |
--- man2html/glimpse_filters |
154 |
+++ man2html/glimpse_filters |
155 |
@@ -1,3 +1,6 @@ |
156 |
+*.bz2 bzip2 -d -c |
157 |
+*.lzma lzma -d -c |
158 |
+*.xz xz -d -c |
159 |
*.gz gzip -d -c |
160 |
*.Z gzip -d -c |
161 |
|
162 |
--- man2html/scripts/cgi-bin/man/man2html |
163 |
+++ man2html/scripts/cgi-bin/man/man2html |
164 |
@@ -93,6 +93,12 @@ |
165 |
*.bz2) |
166 |
bzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE" |
167 |
;; |
168 |
+ *.lzma) |
169 |
+ lzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE" |
170 |
+ ;; |
171 |
+ *.xz) |
172 |
+ xzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE" |
173 |
+ ;; |
174 |
*) |
175 |
"$MAN2HTML" "$LL" "$PAGE" |
176 |
;; |
177 |
@@ -103,6 +106,12 @@ |
178 |
elif [ -r "$PAGE".bz2 ] |
179 |
then |
180 |
bzcat "$PAGE".bz2 | "$MAN2HTML" "$LL" -D "$PAGE" |
181 |
+elif [ -r "$PAGE".lzma ] |
182 |
+then |
183 |
+ lzcat "$PAGE".lzma | "$MAN2HTML" "$LL" -D "$PAGE" |
184 |
+elif [ -r "$PAGE".xz ] |
185 |
+then |
186 |
+ xzcat "$PAGE".xz | "$MAN2HTML" "$LL" -D "$PAGE" |
187 |
else |
188 |
"$MAN2HTML" -E "Strange... Cannot find (or read) $PAGE." |
189 |
fi |
190 |
--- man2html/scripts/cgi-bin/man/mansearch |
191 |
+++ man2html/scripts/cgi-bin/man/mansearch |
192 |
@@ -153,7 +153,7 @@ |
193 |
} |
194 |
print "<DT> <a href=\"" cgipath "/man2html?" fullname "\">"; |
195 |
textname = filename; |
196 |
- sub(/\.(gz)|Z|z$/, "", textname); |
197 |
+ sub(/\.([zZ]|gz|bz2|lzma|xz)$/, "", textname); |
198 |
sub(/\./, "(", textname); |
199 |
textname = textname ")"; |
200 |
print textname; |
201 |
--- man2html/scripts/cgi-bin/man/mansec |
202 |
+++ man2html/scripts/cgi-bin/man/mansec |
203 |
@@ -128,7 +128,7 @@ |
204 |
# Print out alphabetic quick index and other links |
205 |
} |
206 |
# Split page.n into "page" and "n" and generate an entry |
207 |
- sub(/[.]([zZ]|(gz))$/, "", manpage); |
208 |
+ sub(/[.]([zZ]|gz|bz2|lzma|xz)$/, "", manpage); |
209 |
match(manpage, /[.][^.]+$/); |
210 |
title = substr(manpage, 1, RSTART - 1); |
211 |
if (section != "all") { |
212 |
|
213 |
|
214 |
|
215 |
1.1 sys-apps/man/files/man-1.6f-xz.patch |
216 |
|
217 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/files/man-1.6f-xz.patch?rev=1.1&view=markup |
218 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/man/files/man-1.6f-xz.patch?rev=1.1&content-type=text/plain |
219 |
|
220 |
Index: man-1.6f-xz.patch |
221 |
=================================================================== |
222 |
add support for xz |
223 |
|
224 |
http://bugs.gentoo.org/302380 |
225 |
|
226 |
--- a/configure |
227 |
+++ b/configure |
228 |
@@ -1017,7 +1017,7 @@ |
229 |
echo $compress |
230 |
else |
231 |
compress= |
232 |
- for i in lzma bzip2 gzip bzip tzip pack compress freeze yabba |
233 |
+ for i in xz lzma bzip2 gzip bzip tzip pack compress freeze yabba |
234 |
do |
235 |
eval F$i=missing |
236 |
for j in $DEFPATH |
237 |
@@ -1076,6 +1076,7 @@ |
238 |
*gzip*) ext=".gz" ;; |
239 |
*bzip*) ext=".bz" ;; |
240 |
*tzip*) ext=".tz" ;; |
241 |
+ *xz*) ext=".xz" ;; |
242 |
*pack*) ext=".z" ;; |
243 |
*compress*) ext=".Z" ;; |
244 |
*freeze*) ext=".F" ;; |
245 |
@@ -1114,7 +1115,7 @@ |
246 |
fi |
247 |
|
248 |
# unconditionally handle uncompression |
249 |
-UNCOMPRESSORS="unlzma gunzip bzip2 pcat zcat fcat unyabba" |
250 |
+UNCOMPRESSORS="unxz unlzma gunzip bzip2 pcat zcat fcat unyabba" |
251 |
for i in $UNCOMPRESSORS |
252 |
do |
253 |
eval F$i=missing |
254 |
@@ -1139,6 +1140,10 @@ |
255 |
if [ $Funlzma != missing ]; then |
256 |
unlzma="$Funlzma -c -d" |
257 |
fi |
258 |
+unxz=missing |
259 |
+if [ $Funxz != missing ]; then |
260 |
+ unxz="$Funxz -c -d" |
261 |
+fi |
262 |
pcat="$Fpcat" |
263 |
zcat="$Fzcat" |
264 |
fcat="$Ffcat" |
265 |
@@ -1170,6 +1175,9 @@ |
266 |
lzma) |
267 |
echo "Command to use for .lzma files (standard lzma)" |
268 |
echo $n "[`eval echo \\$$filter`] $c" ;; |
269 |
+ xz) |
270 |
+ echo "Command to use for .xz files (standard xz)" |
271 |
+ echo $n "[`eval echo \\$$filter`] $c" ;; |
272 |
pcat) |
273 |
echo "Command to use for .z files (pack/unpack)" |
274 |
echo $n "[`eval echo \\$$filter`] $c" ;; |
275 |
@@ -1232,6 +1240,7 @@ |
276 |
.gz) decompress=$gunzip ;; |
277 |
.bz2) decompress=$bzip2 ;; |
278 |
.lzma) decompress=$unlzma ;; |
279 |
+ .xz) decompress=$unxz ;; |
280 |
.z) decompress=$pcat ;; |
281 |
.Z) decompress=$zcat ;; |
282 |
.F) decompress=$fcat ;; |
283 |
@@ -1325,6 +1334,7 @@ |
284 |
s,@gunzip@,$gunzip, |
285 |
s,@bzip2@,$bzip2, |
286 |
s,@unlzma@,$unlzma, |
287 |
+s,@unxz@,$unxz, |
288 |
s,@unyabba@,$unyabba, |
289 |
s,@compress@,$compress, |
290 |
s,@compress_ext@,$compress_ext, |
291 |
--- a/src/makewhatis.sh |
292 |
+++ b/src/makewhatis.sh |
293 |
@@ -230,7 +230,7 @@ |
294 |
find $mandir/${pages}$i/. -name '*' $findarg0 $findarg -print | $AWK ' |
295 |
|
296 |
function readline() { |
297 |
- if (use_zcat || use_bzcat || use_lzcat) { |
298 |
+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { |
299 |
result = (pipe_cmd | getline); |
300 |
if (result < 0) { |
301 |
print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; |
302 |
@@ -245,7 +245,7 @@ |
303 |
} |
304 |
|
305 |
function closeline() { |
306 |
- if (use_zcat || use_bzcat || use_lzcat) { |
307 |
+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { |
308 |
return close(pipe_cmd); |
309 |
} else { |
310 |
return close(filename); |
311 |
@@ -266,7 +266,9 @@ |
312 |
use_bzcat = match(filename,"\\.bz2"); |
313 |
if(!use_bzcat) |
314 |
use_lzcat = match(filename,"\\.lzma"); |
315 |
- if (use_zcat || use_bzcat || use_lzcat ) { |
316 |
+ if(!use_lzcat) |
317 |
+ use_xzcat = match(filename,"\\.xz"); |
318 |
+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { |
319 |
filename_no_gz = substr(filename, 0, RSTART - 1); |
320 |
} else { |
321 |
filename_no_gz = filename; |
322 |
@@ -279,13 +281,15 @@ |
323 |
actual_section = section; |
324 |
} |
325 |
sub(/\..*/, "", progname); |
326 |
- if (use_zcat || use_bzcat || use_lzcat) { |
327 |
+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { |
328 |
if (use_zcat) { |
329 |
pipe_cmd = "zcat \"" filename "\""; |
330 |
} else if (use_bzcat) { |
331 |
pipe_cmd = "bzcat \"" filename "\""; |
332 |
- } else { |
333 |
+ } else if (use_lzcat) { |
334 |
pipe_cmd = "lzcat \"" filename "\""; |
335 |
+ } else { |
336 |
+ pipe_cmd = "xzcat \"" filename "\""; |
337 |
} |
338 |
# try to avoid suspicious stuff |
339 |
if (filename ~ /[;&|`$(]/) { |
340 |
--- a/src/man.conf.in |
341 |
+++ b/src/man.conf.in |
342 |
@@ -133,6 +133,7 @@ |
343 |
.gz @gunzip@ |
344 |
.bz2 @bzip2@ |
345 |
.lzma @unlzma@ |
346 |
+.xz @unxz@ |
347 |
.z @pcat@ |
348 |
.Z @zcat@ |
349 |
.F @fcat@ |