[Rust-users] Re: Problem, apparently, in generating RPMs with man
Status: Beta
Brought to you by:
psychogenic
|
From: Ben P. <be...@re...> - 2001-10-15 20:56:10
|
* P@ <pa...@ps...> [011015 11:51]:
> >
> > i.e.:
> >
> > File not found:
> > /home/benp/rust/var/tmp/util-linux/usr/share/man/man1/write.1
> > File not found:
/home/benp/rust/var/tmp/util-linux/usr/share/man/man5/nfs.5
> > File not found:
> > /home/benp/rust/var/tmp/util-linux/usr/share/man/man5/fstab.5
> > Is this a known problem?
>
> Yeah, I've seen this before. The problem is that rpm is automagically
> compressing these files (eg turning fstab.5 into fstab.5.gz) - after
generating
> the list of files to include in the RPM. I can think of 2 solutions:
>
> 1) manually gzip the files before creating the RPM (this will not inhibit them
> from being used as man pages), with something like
> gzip -9 /home/benp/rust/var/tmp/util-linux/usr/share/man/*/*
>
> 2) Find a way to stop rpm compressing the files when creating the RPM. You can
> try this:
> As root, edit /usr/local/rust/makeRPM.sh go to line 148 and find:
>
> echo "%_topdir $TOPDIR" > $RPMMACROS
> echo "%buildroot %{_topdir}/var/tmp/$PACKNAME" >> $RPMMACROS
>
> Add the line line:
> echo "%__os_install_post /usr/lib/rpm/brp-strip" >> $RPMMACROS
Option number two seems to work like a charm! Thanks for your help (and
again for these great tools!
Ben
|