[pkg-php-pear] Bug#1070423: php-composer-pcre: missing Breaks+Replaces: composer (<< 2.2)
Andreas Beckmann
anbe at debian.org
Sun May 5 09:26:47 BST 2024
Package: php-composer-pcre
Version: 3.1.0-1
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts fileconflict
Control: affects -1 + src:composer
Hi,
during a test with piuparts I noticed your package fails to upgrade from
'bullseye'.
It installed fine in 'bullseye', then the upgrade to 'bookworm' fails
because it tries to overwrite other packages files without declaring a
Breaks+Replaces relation.
See policy 7.6 at
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces
This was observed during an upgrade test of the composer package.
From the attached log (scroll to the bottom...):
Selecting previously unselected package php-composer-pcre.
Preparing to unpack .../06-php-composer-pcre_3.1.0-1_all.deb ...
Unpacking php-composer-pcre (3.1.0-1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-BF4xWr/06-php-composer-pcre_3.1.0-1_all.deb (--unpack):
trying to overwrite '/usr/share/php/Composer/Pcre/MatchAllResult.php', which is also in package composer 2.0.9-2+deb11u2
This is a recent regression, most probably caused by this change in
bullseye-pu:
composer (2.0.9-2+deb11u2) bullseye; urgency=medium
.
[ David Prévot ]
* Force system dependencies loading
* Import Pcre
I'd suggest to use "(<< 2.2)" as the version constraint as that seems to
be the first composer version adding a (build-)dependency on
php-composer-pcre (and thus no longer needing an embedded copy).
(bookworm has composer 2.5.5.)
cheers,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: composer_2.5.5-1+deb12u1.log.gz
Type: application/gzip
Size: 38517 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-php-pear/attachments/20240505/dbd99cf1/attachment-0001.gz>
More information about the pkg-php-pear
mailing list