[Pkg-roundcube-maintainers] Bug#619411: roundcube-core: program/include/iniset.php should not alter INSTALL_PATH constant

Teodor mteodor at gmail.com
Wed Mar 23 16:43:00 UTC 2011


Package: roundcube
Version: 0.5.1+dfsg-7
Severity: important
Tags: patch

Hi,

The INSTALL_PATH constant is hardcoded in program/include/iniset.php to the
default installation on Debian: /var/lib/roundcube. This does not allow us to
have multiple virtual hosts (with different DocumentRoot) for a single domain
(with two instances for desktop and mobile devices) or multiple domains.

Please do not modify the upstream file 'iniset.php'.

Thanks

--- /usr/share/roundcube/program/include/iniset.php_0.5.1+dfsg-7	2011-03-11 10:14:46.000000000 +0200
+++ /usr/share/roundcube/program/include/iniset.php	2011-03-23 15:25:09.000000000 +0200
@@ -42,7 +42,7 @@
 define('RCMAIL_START', microtime(true));
 
 if (!defined('INSTALL_PATH')) {
-    define('INSTALL_PATH', '/var/lib/roundcube/');
+    define('INSTALL_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
 }
 
 if (!defined('RCMAIL_CONFIG_DIR')) {


-- System Information:
Debian Release: 6.0.1
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable'), (200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages roundcube-core depends on:
ii  apache2                 2.2.16-6         Apache HTTP Server metapackage
ii  apache2-mpm-prefork [ht 2.2.16-6         Apache HTTP Server - traditional n
ii  dbconfig-common         1.8.46+squeeze.0 common framework for packaging dat
ii  debconf [debconf-2.0]   1.5.36.1         Debian configuration management sy
ii  libjs-jquery            1.4.2-2          JavaScript library for dynamic web
ii  libmagic1               5.04-5           File type determination library us
ii  php-auth                1.6.2-1          PHP PEAR modules for creating an a
ii  php-mail-mime           1.8.0-2          PHP PEAR module for creating MIME 
ii  php-mdb2                2.5.0b2-1        PHP PEAR module to provide a commo
ii  php-net-smtp            1.4.2-3          PHP PEAR module implementing SMTP 
ii  php-net-socket          1.0.9-2          PHP PEAR Network Socket Interface 
ii  php5                    5.3.3-7+squeeze1 server-side, HTML-embedded scripti
ii  php5-gd                 5.3.3-7+squeeze1 GD module for php5
ii  php5-intl               5.3.3-7+squeeze1 internationalisation module for ph
ii  php5-mcrypt             5.3.3-7+squeeze1 MCrypt module for php5
ii  php5-pspell             5.3.3-7+squeeze1 pspell module for php5
ii  roundcube-sqlite        0.5.1+dfsg-7     metapackage providing sqlite depen
ii  tinymce                 3.3.8+dfsg0-0.1  platform independent web based Jav
ii  ucf                     3.0025+nmu1      Update Configuration File: preserv

roundcube-core recommends no packages.

Versions of packages roundcube-core suggests:
ii  php-auth-sasl               1.0.4-1      Abstraction of various SASL mechan
ii  roundcube-plugins           0.5.1+dfsg-7 skinnable AJAX based webmail solut

roundcube depends on no packages.

-- Configuration Files:
/etc/logrotate.d/roundcube-core changed [not included]
/etc/roundcube/htaccess changed [not included]

-- debconf information:
  roundcube/upgrade-error: abort
  roundcube/pgsql/authmethod-user: password
  roundcube/purge: false
* roundcube/dbconfig-install: true
* roundcube/language: en_US
* roundcube/db/dbname: roundcube
  roundcube/remote/newhost:
  roundcube/pgsql/changeconf: false
  roundcube/upgrade-backup: true
  roundcube/install-error: abort
  roundcube/mysql/admin-user: root
* roundcube/hosts:
  roundcube/pgsql/authmethod-admin: ident
  roundcube/dbconfig-remove:
  roundcube/pgsql/admin-user: postgres
  roundcube/internal/skip-preseed: false
  roundcube/db/app-user:
  roundcube/dbconfig-reinstall: false
  roundcube/mysql/method: unix socket
  roundcube/remove-error: abort
* roundcube/restart-webserver: false
  roundcube/dbconfig-upgrade: true
  roundcube/remote/port:
  roundcube/pgsql/method: unix socket
  roundcube/pgsql/manualconf:
* roundcube/db/basepath: /var/lib/dbconfig-common/sqlite/roundcube
  roundcube/pgsql/no-empty-passwords:
  roundcube/passwords-do-not-match:
  roundcube/internal/reconfiguring: false
* roundcube/reconfigure-webserver:
* roundcube/database-type: sqlite
  roundcube/remote/host:
  roundcube/missing-db-package-error: abort

-- debsums errors found:
debsums: changed file /usr/share/roundcube/program/include/iniset.php (from roundcube-core package)





More information about the Pkg-roundcube-maintainers mailing list