FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 05-26-2010, 07:47 AM
Torsten Veller
 
Default Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild)

> 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?
 
Old 05-26-2010, 08:01 AM
Ulrich Mueller
 
Default Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild)

>>>>> On Wed, 26 May 2010, Torsten Veller wrote:

>> 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

> Is there a reliable/predictable way to create such links?

Don't use a symlink, but create a short file with a groff .so request.
See for example the egrep.1 man page, that just contains the one line:

.so man1/grep.1

Ulrich
 
Old 05-26-2010, 08:42 AM
Mike Frysinger
 
Default Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild)

On Wednesday 26 May 2010 04:01:28 Ulrich Mueller wrote:
> >>>>> On Wed, 26 May 2010, Torsten Veller wrote:
> >> 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
> >
> > Is there a reliable/predictable way to create such links?
>
> Don't use a symlink, but create a short file with a groff .so request.
> See for example the egrep.1 man page, that just contains the one line:
>
> .so man1/grep.1

wonder if this would be a useful repoman check & recommendation. dare i grep
the tree to find all the existing miscreants ...

personally i prefer '.so grep.1' to avoid the redundancy ...
-mike
 

Thread Tools




All times are GMT. The time now is 06:41 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org