Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-22-2008, 07:11 PM
|
#1
|
Member
Registered: Oct 2006
Location: Cochise County, Arizona
Distribution: Gentoo-AMD64 / Slackware64-Current
Posts: 474
Rep:
|
Corrupted output from manpages
I am getting the following output from my manpages. I'm using Gentoo, with lzma compression on the pages. I don't know if this has been dealt with before (probably has), but I need a quick solution to this.
Shingoshi
The same thing happens with using info, too! Just found that out.
====================================================
]oz'mrAE7/I7#x(*.3~U....V.c:1/4t2oirUuHcxS(C)TOe|aeecY|+-AaF/OjOO}gl+dAEK<<UOUe9/u|2 uE* .I[EIy|c....
(R)yEG()Wx1/27_bdAh_eo+uAMcKS9~Y/)R ipNOquxoFyHiI1/4CNxxsO|yONE/qReh hUACu7aXw9|uOa8uxc[cu$OH^~=!A3u%HS='*
'Zpa>O+N4I@D SIiA|oIKAUuUZTixOL<w& oUsSeOcUFI1ouYOeOI.a1/4lfBADuy>>ap9bO uxx)Ym ~1a<<Y-:-F|BY4oYrA;da%bi |ma8w(+u,jhxH|a^-
,A-:-oxNDrudi5S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YiOl12uo}AaOui3hWxAi<<k8IuI(C-:-orp| <<Zc"eooN;Ao#EH"i(Da!iCVK-I2L!1/4Ey<<A`!AUaae"CHGAbaE]UU8~A8U>TH' XVAkOeah<<HS;i>rS9|qYAaT$IZoF|~exa
cT.CIxFuEOs^1/42iA@qe V;V3/4B9|4ulUIu,<<q4o-'BNo[i,Gc;+PaVr$Lq$O ALxE+9|}uUBAtWE-:-Yau9|t4*kD^>>6Yd&du:e@^anTpS..u3yU-
A>(C)|UAIu$%AUsayyoK}%}aO"A+|*d"o-:-UaOxQOUOirsaOuyi$i.O.Jq1l~ixo.Icu3......uAAIgaau!oC9=x^i0VAY3iA<<"aEO-:-gk,<-:-xIa"@vY2a'noxI'7WlQ bOlAv.yOPofYa2nn,OatakY>uIiid`w<<u2
&U9|-IHU1/2O2:sO91/29.o1/4^(C)UEP|L;>>AEb Cap <<1/4EDBp74.aOV'oI3/4,^_iVfoi/LeCio69|Oo4DcUx3o`uUaKl;OeL5AYZ,|IMyxn3O5
6AkU61/4i:[cmUaYua&3o}wDOe1arxFyEiI,|Uh")<<ZAI..CXuIeAPi1Amab v&waUBOD. H2088|'zxhA`OLUboi;-_ M
KAXL+uAE-:-x)#2u,roxTBEAn{FaUa|iae<NAEcIOUxC3-|bEaan{UbA:n`(R)UO' VU1|2/9*u*#Ix@si......tEeoLm4/oAob',"I'aco.A}3(C)oodW>Ci|vaEIaYuLgo:nHaezVG1-
Last edited by Shingoshi; 02-22-2008 at 07:21 PM.
|
|
|
02-22-2008, 07:22 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Did you recompress the manpages? I've only seen manpages with .gz extentions. Does "less /path/to/manpage" show the troff source? The man command normally uses the less program for it's pager. Look at the value of your PAGER environment variable. That is the pager that your man program uses. If there is a pager that displays text with lzma compression, then changing the PAGER variable in your ~/.bash_profile or ~/.bashrc may fix the program.
|
|
|
02-22-2008, 07:38 PM
|
#3
|
Member
Registered: Oct 2006
Location: Cochise County, Arizona
Distribution: Gentoo-AMD64 / Slackware64-Current
Posts: 474
Original Poster
Rep:
|
The compression format of manpages can be changed in make.conf
Quote:
Originally Posted by jschiwal
Did you recompress the manpages? I've only seen manpages with .gz extentions. Does "less /path/to/manpage" show the troff source? The man command normally uses the less program for it's pager. Look at the value of your PAGER environment variable. That is the pager that your man program uses. If there is a pager that displays text with lzma compression, then changing the PAGER variable in your ~/.bash_profile or ~/.bashrc may fix the program.
|
The variable for doing it is:
PORTAGE_COMPRESS="lzma"
I need someone to tell me exactly how to recompress the manpages, since I don't have a manpage which I can read to tell me. So I need the exact command(s, in proper order) to eliminate this problem.
Shingoshi
|
|
|
02-22-2008, 09:09 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Is that the default value for that variable. If so, check the value of the PAGER variable. It probably will be "less". If it is "less", then check the value of your "LESSOPEN" environment variable. The LESSOPEN variable should contain the name of the program that less uses to analyse the file and uncompress it using the correct program. That program will create a temporary file. The environment variable LESSCLOSE will contain the name of a program that deletes the temporary file.
If you recompress your man files, you will end up doing so for new packages.
|
|
|
02-23-2008, 11:28 PM
|
#5
|
Member
Registered: Oct 2006
Location: Cochise County, Arizona
Distribution: Gentoo-AMD64 / Slackware64-Current
Posts: 474
Original Poster
Rep:
|
(I thought) I've solved this myself...
I had previously given instructions on how I thought I had solved this. But the situation REMAINS.
I originally got a complaint about:
man emerge
fgets: No such file or directory
Error reading man page /usr/share/man/man1/emerge.1.lzma
Changing the settings in /etc/man.conf had NO effect on this whatsoever. The situation remains. It seems that unless an instruction exists, to recompress existing man-pages to another type, the only solution is to rebuild all packages with "emerge -e system or emerge -e world". I haven't tested either of these yet, so I don't actually know.
Xavian-Anderson Macpherson
Shingoshi
Last edited by Shingoshi; 02-24-2008 at 12:45 PM.
|
|
|
02-24-2008, 02:16 PM
|
#6
|
Member
Registered: Oct 2006
Location: Cochise County, Arizona
Distribution: Gentoo-AMD64 / Slackware64-Current
Posts: 474
Original Poster
Rep:
|
I'm still researching this for a fix.
I came across this in my searching:
Following emerge =dev-java/blackdown-jdk-1.4.2.03-r13, the man pages installed
in /opt/blackdown-jdk-1.4.2.03/man/man1/ (and any localized man pages) are
doubly compressed as .gz.bz2 files, which the 'man' command cannot handle
properly.
Reproducible: Always
Steps to Reproduce:
1. emerge =dev-java/blackdown-jdk-1.4.2.03-r13
2. ls -l /opt/blackdown-jdk-1.4.2.03/man/man1
3. man -M /opt/blackdown-jdk-1.4.2.03/man
I don't know if this applies to me or not. I did recently attempt to install blackdown, though
unsuccessfully. Some pages are properly visible, and others are not. I think man is attempting
to use lzma when reading old .bz2 pages. That's not correct, and should never happen.
Shingoshi
|
|
|
02-24-2008, 02:59 PM
|
#7
|
Member
Registered: Oct 2006
Location: Cochise County, Arizona
Distribution: Gentoo-AMD64 / Slackware64-Current
Posts: 474
Original Poster
Rep:
|
This is happening with newly installed packages.
That being the case, it doesn't seem that running "emerge -e system" would make any difference, since if this happens with newly installed packages, rebuilding them would likely yield the same result.
Shingoshi
|
|
|
02-26-2008, 05:29 AM
|
#8
|
Member
Registered: Oct 2006
Location: Cochise County, Arizona
Distribution: Gentoo-AMD64 / Slackware64-Current
Posts: 474
Original Poster
Rep:
|
I can happily say I was wrong.
Running "emerge -e system" did resolve the situation. At the end of doing so, I found out I had not properly set the (de)compression for lzma in /etc/man.conf.
Here are the correct settings:
COMPRESS /usr/bin/lzma
COMPRESS_EXT .lzma
# Decompress with given decompressor when input file has given extension
# The command given must act as a filter.
.lzma /usr/bin/unlzma -c -d
Shingoshi
|
|
|
All times are GMT -5. The time now is 09:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|