[Kolab-devel] kolab-webadmin not installing in native Mandriva

Thomas Spuhler thomas at btspuhler.com
Sun Dec 20 18:43:37 CET 2009


On Friday 18 December 2009 07:23:57 am Thomas Spuhler wrote:
> On Friday 18 December 2009 01:19:31 am Richard Bos wrote:
> > Op vrijdag 18 december 2009 04:09:22 schreef Thomas Spuhler:
> > > > > rpm -q -l php-smarty gives:
> > > > > /usr/share/php/smarty/Smarty.class.php
> > > >
> > > > Is this dist_conf variable set correctly:
> > > > mandriva:kolab_php_smarty_prefix=Smarty
> > >
> > > it set as:
> > > kolab_php_smarty_prefix=Smarty
> >
> > That seems wrong:
> > kolab-webadmin> grep -R kolab_php_smarty_prefix *
> > php/admin/include/mysmarty.php.in:require_once('@kolab_php_smarty_prefix@
> >/S marty.class.php');
> >
> > And you have: smarty/Smarty.class.php, hence kolab_php_smarty_prefix must
> > be set to smarty...
>
> didn't make a difference. (I tried both before posting) and just did it
> again.

I am puzzled, there are actually two dependencies that are reported missing 
during install, and both files are there:
/etc/kolab/session_vars.php
and
/usr/share/php/smarty/Smarty.class.php

putting this line into the spec file solves the problem:

%define _requires_exceptions 	pear(/usr/share/php/smarty/Smarty.class.php)\\|
pear(/etc/kolab/session_vars.php)

This problem must have been existing for a few years. I found this line in the 
spec file done by my predecessor for 2.1.0 (and may be before)
I also had to put an absolute path into the dist_conf/mandriva


-- 
Thomas




More information about the devel mailing list