Gentoo Archives: gentoo-dev

From: Samuli Suominen <ssuominen@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Links to compressed files
Date: Wed, 26 May 2010 07:57:34
Message-Id: 4BFCD4AE.7010407@gentoo.org
In Reply to: [gentoo-dev] Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild) by Torsten Veller
1 On 05/26/2010 10:47 AM, Torsten Veller wrote:
2 >> src_install() {
3 >
4 >> doman mmv.1 || die
5 >> dosym mmv.1.gz /usr/share/man/man1/mcp.1.gz || die
6 >> dosym mmv.1.gz /usr/share/man/man1/mln.1.gz || die
7 >> dosym mmv.1.gz /usr/share/man/man1/mad.1.gz || die
8 >
9 > How does this work with various package managers?
10 >
11 > Portage works fine with different PORTAGE_COMPRESS settings.
12 > I guess paludis creates uncompressed man-pages and has three broken links?
13 > And pkgcore?
14 >
15 > Is there a reliable/predictable way to create such links?
16 >
17
18 This is wrong (but works fine with Portage),
19
20 <code>
21
22 local suffix=$(ecompress --suffix)
23 dosym foo.1${suffix} /usr/share/man/man1/foo.1${suffix}
24
25 </code>
26
27 What you really want to do is:
28
29 ssuominen@foo /usr/share/man/man1 $ bzcat snice.1.bz2
30 .so man1/skill.1
31
32 This simple one-liner & "fake" manpage will link snice(1) manpage to
33 skill(1) manpage.