On Tue, Feb 07, 2006 at 10:27:30AM -0500, Rudy Godoy wrote:
> On 07/02/2006 at 10:21 Matt Zimmerman wrote...
> 
> <snip> 
> 
> > > Would it not be better to depend on php4 or php5 rather than force people
> > > to upgrade to PHP5?
> > 
> > Possibly, but it is quite tricky to express this correctly using the
> > available dependency relationships.
> > 
> 
> This works for me.
> Depends: ${misc:Depends}, php4 (>= 4.1.0) | php5 | php4-cgi (>=
> 4.1.0) | php5-cgi, php4-pgsql (>= 4.1.0) | php4-mysql (>= 4.1.0) | php5-mysql 
> |
> php5-pgsql, php4-gd | php5-gd, apache | httpd, php4-cli |  php5-cli,
> wwwconfig-common (>= 0.0.7), mimetex

It "works" in that on a system with no PHP installed, it will generally give
you php4 and the appropriate modules.  However, it is incorrect in that it
does not express the actual dependencies of the package, and so there are
many cases where it does not work.

For example, a system with php4-cgi and php5-mysql installed would satisfy
these dependencies, but would presumably not actually be able to run moodle.

-- 
 - mdz


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to