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

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



package webcalendar
severity 393832 normal
merge 393832 419570
thanks

[Cc: to debian-mentors]

* Oleksandr Moskalenko <malex@debian.org> [2007-04-16 11:13]:

> Package: webcalendar
> Version: 1.0.5-1
> Severity: normal
> Tags: patch
> 
> 
> webcalendar forces retention of php4 on the system. Dependencies must be
> adjusted to allow removal of php4 in favor of php5. Upstream shows that it can
> be done.
> 
> --- control.old 2007-04-16 11:12:09.000000000 -0600
> +++ control     2007-04-16 11:03:17.000000000 -0600
> @@ -11,8 +11,8 @@
> 
>  Package: webcalendar
>  Architecture: all
> -Depends: ${misc:Depends}, libapache2-mod-php4 | libapache-mod-php4, php4-mysql | php4-pgsql, apache | apache2 | apache-ssl | apache-perl, ucf (>= 0.28), dbconfig-common
> -Suggests: php4-cli
> +Depends: ${misc:Depends}, libapache2-mod-php4 | libapache-mod-php4 | libapache2-mod-php5 | libapache-mod-php5, php4-mysql | php4-pgsql | php5-mysql | php5-pgsql, apache | apache2 | apache-ssl | apache-perl, ucf (>= 0.28), dbconfig-common
> +Suggests: php4-cli | php5-cli
>  Recommends: mysql-client | postgresql-client, mysql-server | postgresql
>  Description: PHP-Based multi-user calendar
>   WebCalendar is a PHP-based calendar application that can be configured

Thanks for this suggestion, we have already thought about the issue. Another
bug report has been filed requiring php5 support (#393832), so I am merging
both bug reports.

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?

At any rate, the problem comes from the orthogonality of the three
"dimensions":

   * PHP 4 vs. 5
   * mysql vs. pgsql
   * apache 1 vs. 2

The problem exists already in the the current version of the package.
Indeed, the following combination satisfy the dependencies:

   apache2 installed
   other apaches NOT installed
   libapache-mod-php4 installed 
   libapache2-mod-php4 NOT installed

However, the webcalendar package will not work under these conditions.  

I have no idea how to fix this problem.  Suggestions are welcome.

-- 
Rafael



Reply to: