Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327347 - sys-apps/man-db-2.5.7: fails to display uncompressed non-English manpages
Summary: sys-apps/man-db-2.5.7: fails to display uncompressed non-English manpages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-07 16:26 UTC by Florian
Modified: 2010-08-23 09:16 UTC (History)
1 user (show)

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


Attachments
My emerge --info (emerge.info,4.45 KB, text/plain)
2010-07-07 16:31 UTC, Florian
Details
My build log (build.log,63.72 KB, text/plain)
2010-07-07 16:35 UTC, Florian
Details
patch for man-db 2.5.7 (man-db-2.5.7-fix-uncompressed-pages.patch,3.16 KB, patch)
2010-08-16 10:04 UTC, Florian
Details | Diff
ebuild diff (man-db-2.5.7-r1.diff,350 bytes, patch)
2010-08-16 10:06 UTC, Florian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian 2010-07-07 16:26:36 UTC
man-db 2.5.7 crashes when asked to display uncompressed manpages in languages other than English.

The error message is :
man: man.c:2401: display: Assertion `decomp->ncommands == 1' failed. Aborted


Reproducible: Always

Steps to Reproduce:
1. Disable portage automatic compression in /etc/make.conf with :
PORTAGE_COMPRESS=""

2. Enable installation of some localized pages in /etc/make.conf :
LINGUAS="en fr"

3. Unmerge sys-apps/man (it blocks man-db) :
# emerge -ca sys-apps/man

4. Emerge man-db :
# ACCEPT_KEYWORDS=~x86 emerge -av =sys-apps/man-db-2.5.7

5. Try to display man-db own manpage :
$ LANG=fr LANGUAGE=fr man man
Actual Results:  
man: man.c:2401: display: Assertion `decomp->ncommands == 1' failed. Aborted

Expected Results:  
It should have displayed the manual.


Workarounds (choose any of) :
1) do not disable compression
2) use an english-only configuration
3) stay with the good old sys-apps/man
Comment 1 Florian 2010-07-07 16:31:16 UTC
Created attachment 237909 [details]
My emerge --info

(see bug description above)
Comment 2 Florian 2010-07-07 16:35:34 UTC
Created attachment 237913 [details]
My build log

(see bug report above)

Regards,
Korbian
Comment 3 Florian 2010-08-16 10:04:29 UTC
Created attachment 243177 [details, diff]
patch for man-db 2.5.7

I found on linuxfromscratch.org[1] a patch for this issue. I modified it to have it working on Gentoo.

[1] http://archive.linuxfromscratch.org/mail-archives/patches/2010-May/003694.html
Comment 4 Florian 2010-08-16 10:06:20 UTC
Created attachment 243179 [details, diff]
ebuild diff

Here is a diff for man-db-2.5.7.ebuild (it adds the needed "epatch" line)

Bye.
Comment 5 SpanKY gentoo-dev 2010-08-23 02:31:19 UTC
i'm sure Colin will be interested in the patch
Comment 6 Colin Watson 2010-08-23 08:57:22 UTC
The patch is a backport from latest bzr.  I agree that you should apply it.  I'm hoping to get round to a 2.5.8 release relatively soon but haven't managed to carve out time for it yet.
Comment 7 SpanKY gentoo-dev 2010-08-23 09:16:50 UTC
thanks ... wasnt aware it was already upstream.  wanted to make sure it was.

added to 2.5.7-r1