Kaixo!
On Tue, Apr 11, 2000 at 03:08:12AM +0200, Stefan van der Eijk wrote:
> My issues with the man packages were:
>
> 1) makewhatis can't be run by a "non-root" users.
That is a feature.
The problem is that the makewhatis scripts will be run by roout (trough cron);
and they use a temp file. to avoid race vulnerabilities the temp file
isn't put in /tmp but in /root
> 2) the /usr/man/$LANG/whatis file gets bzipped by spec-helper. The file
> then isn't found by when packing up (the %files section contains an
> other file).
Yes, that is a known bug of current spec-helper.
A special case for whatis files should be added; or maybe make the various
man page viewers recognize a compressed whatis file.
> Solutions (??):
> 1) let makewhatis run in %post (it already does, I let it run twice -->
> stupid) and not during the package build.
The idea by running it during package build was to create the file with
a cntent; so rpm -V man-pages-xx wouldn't say the file content has changed
when it hasn't.
Maybe the makewhatis scripts can be modified to accept a variable telling
where to put the temp file. and use that during %install time
> 2) rm -rf /usr/man/$LANG/whatis and rmdir /usr/man/$LANG in the %postun.
In the %preun instead; so during the uninstall the /usr/man/%{LANG}
dir can be removed without yielding error messages (btw; it is %{LANG}
(a macro defined i nthe *.spec file) and not $LANG (the variable of
the language used by the packager); the result is very very different :) )
> Stefan van der Eijk
--
Ki �a vos v�ye b�n,
Pablo Saratxaga
http://www.ping.be/~pin19314/ PGP Key available, key ID: 0x8F0E4975