Hello!
be...@re... wrote:
> Hello.
>
> Thanks so much for rust and crust! It's a very cool package!
Thanks! With your input, I'll try to keep making it better :)
>
[snip]
> Then I run rust and select the sandbox (using md5).
> I fill in the details in 'Package' Preferences field and try to generate
> the RPM. Everything seems to go just fine, but the process always bombs
> out with problems finding man pages.
>
> 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
This /should/ strip the installed programs but not compress the man pages.
I have yet to test this, let me know how it works out if you try it...
HTH
Pat Deegan.
--
For further information, consult your pineal gland.
|