Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507340 - sys-apps/gawk-4.1.1 breaks makewhatis from sys-apps/man
Summary: sys-apps/gawk-4.1.1 breaks makewhatis from sys-apps/man
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://lists.gnu.org/archive/html/bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-10 19:48 UTC by Holger Hoffstätte
Modified: 2014-04-25 18:40 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.
+