> > I've managed to get the man-pages<fill in many langues here>
> > packages to build with a non-root account. Please test &
> > integrate into cooker if possible.
> > %post
> > /usr/sbin/makewhatis.ja /usr/man/ja /usr/X11R6/man/ja
> > /etc/cron.weekly/makewhatis-%{LANG}.cron
> You are running twice the same command; as what is inside of
> /etc/cron.weekly/makewhatis-%{LANG}.cron script is
> "/usr/sbin/makewhatis.ja /usr/man/ja /usr/X11R6/man/ja"
> Put this instead:
> %post
> /etc/cron.weekly/makewhatis-%{LANG}.cron
True.
> > %postun
> > # 0 means deleting the package
> > if [ "$1" = "0" ]; then
> > ## Force removing of /var/catman/%{LANG}, if there isn't any man page
> > ## directory /usr/man/%{LANG}
> > if [ ! -d /usr/man/%{LANG} ] ; then
>
> > %files
> [...]
> > #%ghost /usr/man/%{LANG}/whatis
> The problem if you don't include the whatis file into the rpm package
> is that the %postun script is mostly useless and the /usr/man/%{LANG}
> directories cannot get removed; that leads to error messages and to
> orphaned directories and files on the harddisk.
I've tested this with the cs package, and the /usr/man/cs does
stay after de-installation The whatis file is gone though. If
we add a "rmdir /usr/man/cs" to the %postun things should work...
As far as I'm concerned my packages were only "suggestions" and "things
to look into". I'm happy we got the discusion going ;-)
My issues with the man packages were:
1) makewhatis can't be run by a "non-root" users.
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).
Solutions (??):
1) let makewhatis run in %post (it already does, I let it run twice -->
stupid) and not during the package build.
2) rm -rf /usr/man/$LANG/whatis and rmdir /usr/man/$LANG in the %postun.
Stefan van der Eijk