Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 507340

Summary: sys-apps/gawk-4.1.1 breaks makewhatis from sys-apps/man
Product: Gentoo Linux Reporter: Holger Hoffstätte <holger>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: Adrian.Bassett, alyf, casta, gentoo, voyageur, whissi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://lists.gnu.org/archive/html/bug-gawk/2014-04/msg00028.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Holger Hoffstätte 2014-04-10 19:48:53 UTC
After upgrading to gawk-4.1.1 makewhatis starts to spew errors:

...
bzcat: I/O or other error, bailing out.  Possible reason follows.
bzcat: Broken pipe
	Input file = /usr/share/man/man1/./git-log.1.bz2, output file = (stdout)

bzcat: I/O or other error, bailing out.  Possible reason follows.
bzcat: Broken pipe
	Input file = /usr/share/man/man1/./git-diff-tree.1.bz2, output file = (stdout)
...

There is nothing wrong with the man pages in question; manually calling bzcat on them prints their contents without problems. Investigation yielded that makewhatis pipes the compressor used by a man page into a giant awk script, and that seems to fail now. Reverting to gawk-4.1.0 immediately resolved the problem.


Reproducible: Always

Steps to Reproduce:
1. update to gawk-4.1.1
2. run makewhatis
3. errors galore!

Actual Results:  
See description.

Expected Results:  
A silently processed whatis database.

This bug is independent of USE/CFLAGS and can be reproduced with a vanilla build of the gawk executable.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-04-25 18:40:56 UTC
+*gawk-4.1.1-r1 (25 Apr 2014)
+
+  25 Apr 2014; Lars Wendler <polynomial-c@gentoo.org> -gawk-4.1.1.ebuild,
+  +gawk-4.1.1-r1.ebuild, +files/gawk-4.1.1-sigpipe.patch:
+  Add sigpipe fix from upstream so makewhatis works again (bug #507340).
+  Removed old.
+