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

List:       crux
Subject:    Re: problem with Perl 5.8.0 symlinked manpages and pkgmk
From:       Jeremy Jones <jeremy () samnjack ! com>
Date:       2002-07-22 18:59:57
[Download RAW message or body]

Look at http://marc.theaimsgroup.com/?l=crux&m=102008371725880&w=2, 
where Daniel Dupont gives this solution:

for i in $(ls -x $PKG/usr/man | sed "s/man//g") ; do
gzip -9 $PKG/usr/man/man$i/*
eval $(ls -lQ $PKG/usr/man/man$i | grep -e '->' | sed -e \
"s|[^\"]*\"\([^\"]*\)\"[^\"]*\"\([^\"]*\)\"|ln -s \2.gz
$PKG/usr/man/man$i/\1.gz ; |" | xargs)
rm $PKG/usr/man/man$i/*.$i
done

It's worked wonders for me!

Jeremy



Frank Hale wrote:
>>Find out in .footprint which are the real files,
>>compress these, remove the
>>links, add new links with their name ending in .gz.
> 
> 
> Well I've tried for 2 days unsuccessfully to get pkgmk
> to stop complaining about 2 symlinks in the Perl 5.8.0
> man pages. Here are the two files:
> 
> usr/man/man1/pstruct.1perl link to
> usr/man/man1/c2ph.1perl
> 
> usr/man/man1/psed.1perl link to usr/man/man1/s2p.1perl
> 
> The 2 man pages refuse to get gzipped with the
> command:
> 
> gzip -9 $PKG/usr/man/man?/*
> 
> I've also tried gzipping them explicity by issuing two
> commands and calling those files by name but they
> still will not get gzipped.
> 
> I've tried removing the symlinks and recreating them
> but its not working, pkgmk will still complain about
> the 2 symlinks not being compressed man pages.
> 
> Is there anyone out there that can help with this
> problem?
> 
> Here is my ammended Pkgfile:
> 
> name=perl
> version=5.8.0
> release=1
> source=(ftp://ftp.perl.org/pub/CPAN/src/$name-$version.tar.gz)
> 
> build() {
>     cd $name-$version
>     ./Configure -des \
> 		-Dprefix=/usr \
> 		-Dinstallprefix=$PKG/usr \
> 		-Dman1ext=1perl \
> 		-Dman3ext=3perl \
> 		-Doptimize="$CFLAGS"
>     make
>     make test
>     make install
>     (cd $PKG/usr/bin; ln -sf perl$version perl; ln -sf
> c2ph pstruct)
>     find $PKG -type f | xargs grep -l "$PKG" | xargs
> -n1 perl -i -p -e "s|$PKG||g;"
>     chmod -R +w $PKG
>     strip $PKG/usr/bin/*
>     rm -rf $PKG/usr/man/man1/{psed.1perl,
> pstruct.1perl}
>     gzip -9 $PKG/usr/man/man?/*
>     ln -s /usr/man/man1/c2ph.1perl.gz
> $PKG/usr/man/man1/pstruct.1perl.gz
>     ln -s /usr/man/man1/s2p.1perl.gz
> $PKG/usr/man/man1/psed.1perl.gz
> }
> 
> 
> Thank you for your help,
> Frank
> 
> 
> =====
> http://sapphire.sf.net -> aewm++ window manager
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 



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

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