[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#419570: webcalendar: Package dependencies must allow php5 instead of php4

This one time, at band camp, James Westby said:
> On (17/04/07 02:27), Rafael Laboissiere wrote:
> > I see a problem with the above dependencies.  Imagine the following
> > combination of packages in a given system:
> > 
> >     apache2 installed
> >     apache, apache-ssl, and apache-perl NOT installed
> >     libapache2-mod-php4 installed
> >     libapache2-mod-php5 NOT installed
> >     php4-mysql, php4-pgsql, and php5-pgsql NOT installed
> >     php5-mysql installed
> > 
> > The above satisfy the dependencies as you wrote them.  The question is:
> > would php5-mysql work well with libapache2-mod-php4?

The answer is of course not.  Fortunately, dependencies prevent this
pathological case from happening.

> That's not your job, the php maintainers have to ensure their packages
> work, you just have to make sure enough php/mysql/apache stuff is
> installed to work.

Well, that's glossing it over a bit - the problem of ORed dependencies
is not trivial to deal with, and there is no support in apt for it.

Theoretically, these sorts of dependencies could be written with
brackets or something to make a complete set soultion possible, but it's
not there just yet.
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran@debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |

Attachment: signature.asc
Description: Digital signature

Reply to: