Hi,
I just updated roundcube and there was a showstopper
Preparing to unpack .../roundcube-plugins_1.4.15+dfsg.1-1+deb11u8_all.deb ...
Unpacking roundcube-plugins (1.4.15+dfsg.1-1+deb11u8) over
(1.4.15+dfsg.1-1+deb11u7) ...
Preparing to unpack .../roundcube_1.4.15+dfsg.1-1+deb11u8_all.deb ...
Unpacking roundcube (1.4.15+dfsg.1-1+deb11u8) over (1.4.15+dfsg.1-1+deb11u7) ...
Preparing to unpack .../roundcube-core_1.4.15+dfsg.1-1+deb11u8_all.deb ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
Unpacking roundcube-core (1.4.15+dfsg.1-1+deb11u8) over
(1.4.15+dfsg.1-1+deb11u7) ...
Preparing to unpack .../roundcube-mysql_1.4.15+dfsg.1-1+deb11u8_all.deb ...
Unpacking roundcube-mysql (1.4.15+dfsg.1-1+deb11u8) over
(1.4.15+dfsg.1-1+deb11u7) ...
Setting up roundcube-mysql (1.4.15+dfsg.1-1+deb11u8) ...
Setting up roundcube-core (1.4.15+dfsg.1-1+deb11u8) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/roundcube.conf
dbconfig-common: flushing administrative password
PHP Parse error: syntax error, unexpected ')', expecting ::
(T_PAAMAYIM_NEKUDOTAYIM) in
/usr/share/roundcube/program/lib/Roundcube/rcube_utils.php on line 433
dpkg: error processing package roundcube-core (--configure):
installed roundcube-core package post-installation script subprocess returned
error exit status 255
dpkg: dependency problems prevent configuration of roundcube-plugins:
roundcube-plugins depends on roundcube-core (= 1.4.15+dfsg.1-1+deb11u8);
however:
Package roundcube-core is not configured yet.
...
The error is the check for a local connection. I resolved it by bypassing this
check quick n dirty.
diff -uN /usr/share/roundcube/program/lib/Roundcube/rcube_utils.php
/usr/share/roundcube/program/lib/Roundcube/rcube_utils.php.bak
--- /usr/share/roundcube/program/lib/Roundcube/rcube_utils.php 2026-04-02
15:28:03.326626532 +0200
+++ /usr/share/roundcube/program/lib/Roundcube/rcube_utils.php.bak
2026-04-02 15:24:06.241193107 +0200
@@ -427,15 +427,15 @@
['192.168.0.0', '192.168.255.255'], // RFC1918
['169.254.0.0', '169.254.255.255'], // link-local / cloud
metadata
];
-/** if (defined('AF_INET6')) {
- * /* IPv4-compatible and IPv4-mapped IPv6 addresses
(RFC4291 2.5.5)
- * foreach (['::', '::ffff:'] as $prefix) {
- * foreach ($nets as [$range_start, $range_end]) {
- * $nets[] = [ $prefix . $range_start, $prefix .
$range_end ];
- * }
- * }
- * $nets[] = ['::1', '::1'];
- * $nets[] = ['fc00::',
'fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff'];
+ if (defined('AF_INET6')) {
+ /* IPv4-compatible and IPv4-mapped IPv6 addresses (RFC4291
2.5.5) */
+ foreach (['::', '::ffff:'] as $prefix) {
+ foreach ($nets as [$range_start, $range_end]) {
+ $nets[] = [ $prefix . $range_start, $prefix .
$range_end ];
+ }
+ }
+ $nets[] = ['::1', '::1'];
+ $nets[] = ['fc00::',
'fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff'];
}
foreach ($nets as [$range_start, $range_end]) {
@@ -445,7 +445,7 @@
return true;
}
}
- */ return false;
+ return false;
}
// FIXME: Should we accept any non-fqdn hostnames?