Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224209 - dev-util/plan9port manpages get compressed, which renders them useless
Summary: dev-util/plan9port manpages get compressed, which renders them useless
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-30 09:13 UTC by john
Modified: 2011-05-24 15:22 UTC (History)
4 users (show)

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


Attachments
This ebuild works (plan9port-20080530.ebuild,2.12 KB, text/plain)
2008-05-30 09:15 UTC, john
Details

Note You need to log in before you can comment on or make changes to this bug.
Description john 2008-05-30 09:13:40 UTC
The plan9port man program doesn't use bzipped manpages, but portages automatically compresses anything in the man directory of a package. I've made a small hack that fixes this, ebuild attached, the relevant lines are the ones in scr_compile: mv man mtamnp and then in pkg_postinst: mv mtamnp man. I know it's ugly, but this is the only way i could find. Also, I am using a newer plan9port package, so the patch won't apply, though it works fine without the patch. I can imagine some weird situation where the patch would be needed, but shouldn't plan9port be installed to /usr/local anyways?

Reproducible: Always

Steps to Reproduce:
1. install plan9port
2. do an env-update and source /etc/profile
3. 9 man venti

Actual Results:  
man complains about not finding fonts, since they are bzip2ed

Expected Results:  
the manpage of venti gets displayed
Comment 1 john 2008-05-30 09:15:55 UTC
Created attachment 154805 [details]
This ebuild works

The patch is ommited (yeah, i was lazy, and it's not really needed), and a newer version of plan9port is used.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-05-30 09:32:11 UTC
Wouldn't it be better to patch the "plan9port man program" instead?
Comment 3 john 2008-05-30 12:46:21 UTC
Wouldn't that mean having to add C code for 9 man to be able to bunzip manpages before displaying them? If that's the case, that's way beyond my knowledge level (for now, i hope).
And, for the record, actually the new ebuild doesn't work.
Comment 4 john 2008-05-30 12:49:32 UTC
Well, i see that $PLAN9/bin/man is a shellscript, still, the fonts are compressed as well, so i don't really know what good that would do.
This is what i had to do (the ugly hack) on archlinux when i made a package from inferno-os aswell, because arch compresses manpages by default too, it didn't mess up the way this ebuild messes up, though, any ideas why it behaves this way?
Comment 5 Łukasz Damentko (RETIRED) gentoo-dev 2009-03-17 23:19:04 UTC
Moving to maintainer-needed since Anant left Gentoo.
Comment 6 Nick White 2010-06-10 15:21:49 UTC
This has been fixed without an ugly hack in the ebuild posted to bug 273890 (which is also in sunrise). So this bug should probably be closed now.
Comment 7 Ihar Hrachyshka 2010-08-27 12:15:56 UTC
It shouldn't be closed until sunrise ebuild reaches main portage.
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-04-15 17:52:03 UTC
Package removed from tree.