[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    Re: [gentoo-dev] Links to compressed files
From:       Samuli Suominen <ssuominen () gentoo ! org>
Date:       2010-05-26 7:58:38
Message-ID: 4BFCD4AE.7010407 () gentoo ! org
[Download RAW message or body]

On 05/26/2010 10:47 AM, Torsten Veller wrote:
>> src_install() {
> 
>> 	doman mmv.1 || die
>> 	dosym mmv.1.gz /usr/share/man/man1/mcp.1.gz || die
>> 	dosym mmv.1.gz /usr/share/man/man1/mln.1.gz || die
>> 	dosym mmv.1.gz /usr/share/man/man1/mad.1.gz || die
> 
> How does this work with various package managers?
> 
> Portage works fine with different PORTAGE_COMPRESS settings.
> I guess paludis creates uncompressed man-pages and has three broken links?
> And pkgcore?
> 
> Is there a reliable/predictable way to create such links?
> 

This is wrong (but works fine with Portage),

<code>

local suffix=$(ecompress --suffix)
dosym foo.1${suffix} /usr/share/man/man1/foo.1${suffix}

</code>

What you really want to do is:

ssuominen@foo /usr/share/man/man1 $ bzcat snice.1.bz2
.so man1/skill.1

This simple one-liner & "fake" manpage will link snice(1) manpage to
skill(1) manpage.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic