[php-maint] Bug#834189: php-common: php-maintscript-helper loses admin changes on package reinstall/upgrade
Felipe Sateler
fsateler at debian.org
Fri Aug 12 21:25:50 UTC 2016
Package: php-common
Version: 1:42
Severity: serious
Justification: Policy 10.7.3
Policy says: local changes must be preserved during a package upgrade.
And yet:
% ls -l /etc/php/7.0/cli/conf.d/20-xdebug.ini
lrwxrwxrwx 1 root root 38 Aug 12 16:15 /etc/php/7.0/cli/conf.d/20-xdebug.ini -> /etc/php/7.0/mods-available/xdebug.ini
% sudo phpdismod -s cli xdebug
% ls -l /etc/php/7.0/cli/conf.d/20-xdebug.ini
ls: cannot access '/etc/php/7.0/cli/conf.d/20-xdebug.ini': No such file or directory
% sudo apt install --reinstall php-xdebug
<snip>
% ls -l /etc/php/7.0/cli/conf.d/20-xdebug.ini
lrwxrwxrwx 1 root root 38 Aug 12 17:17 /etc/php/7.0/cli/conf.d/20-xdebug.ini -> /etc/php/7.0/mods-available/xdebug.ini
Turns out p-m-s unconditionally calls phpenmod, and thus overrides admin
configuration on upgrades.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages php-common depends on:
ii psmisc 22.21-2.1+b1
ii sed 4.2.2-7.1
php-common recommends no packages.
php-common suggests no packages.
-- no debconf information
More information about the pkg-php-maint
mailing list