* [gentoo-dev] Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild)
[not found] <20100525173210.7F5C22CD19@corvid.gentoo.org>
@ 2010-05-26 7:47 ` Torsten Veller
2010-05-26 7:58 ` [gentoo-dev] Links to compressed files Samuli Suominen
2010-05-26 8:01 ` [gentoo-dev] Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild) Ulrich Mueller
0 siblings, 2 replies; 4+ messages in thread
From: Torsten Veller @ 2010-05-26 7:47 UTC (permalink / raw
To: gentoo-dev
> 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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] Links to compressed files
2010-05-26 7:47 ` [gentoo-dev] Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild) Torsten Veller
@ 2010-05-26 7:58 ` Samuli Suominen
2010-05-26 8:01 ` [gentoo-dev] Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild) Ulrich Mueller
1 sibling, 0 replies; 4+ messages in thread
From: Samuli Suominen @ 2010-05-26 7:58 UTC (permalink / raw
To: gentoo-dev
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild)
2010-05-26 7:47 ` [gentoo-dev] Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild) Torsten Veller
2010-05-26 7:58 ` [gentoo-dev] Links to compressed files Samuli Suominen
@ 2010-05-26 8:01 ` Ulrich Mueller
2010-05-26 8:42 ` Mike Frysinger
1 sibling, 1 reply; 4+ messages in thread
From: Ulrich Mueller @ 2010-05-26 8:01 UTC (permalink / raw
To: gentoo-dev
>>>>> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild)
2010-05-26 8:01 ` [gentoo-dev] Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild) Ulrich Mueller
@ 2010-05-26 8:42 ` Mike Frysinger
0 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2010-05-26 8:42 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Mueller
[-- Attachment #1: Type: Text/Plain, Size: 730 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-05-26 8:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20100525173210.7F5C22CD19@corvid.gentoo.org>
2010-05-26 7:47 ` [gentoo-dev] Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild) Torsten Veller
2010-05-26 7:58 ` [gentoo-dev] Links to compressed files Samuli Suominen
2010-05-26 8:01 ` [gentoo-dev] Links to compressed files (was: gentoo-x86 commit in app-misc/mmv: ChangeLog mmv-1.01b_p15.ebuild) Ulrich Mueller
2010-05-26 8:42 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox