Bug#1011420: opencu: missing Breaks+Replaces: cu

2022-05-22 Thread Tobias Heider
On Sun, May 22, 2022 at 02:43:17PM +0200, Andreas Beckmann wrote:
> Package: opencu
> Version: 3-1
> Severity: serious
> User: debian...@lists.debian.org
> Usertags: piuparts
> 
> Hi,
> 
> during a test with piuparts I noticed your package failed to install
> because it tries to overwrite other packages files without declaring a
> Breaks+Replaces relation.

Hey Andreas,

> 
> See policy 7.6 at
> https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces
> 
> From the attached log (scroll to the bottom...):
> 
>   Selecting previously unselected package opencu.
>   Preparing to unpack .../archives/opencu_3-2_amd64.deb ...
>   Unpacking opencu (3-2) ...
>   dpkg: error processing archive /var/cache/apt/archives/opencu_3-2_amd64.deb 
> (--unpack):
>trying to overwrite '/usr/bin/cu', which is also in package cu 1.07-27+b1
>   Errors were encountered while processing:
>/var/cache/apt/archives/opencu_3-2_amd64.deb
> 
> 
> How are cu and opencu supposed to co-exist?
> Is cu supposed to be removed from the archive?

opencu is a replacement for uudp-cu in the sense that they provide a binary
with the same name and users installing opencu are unlikely to also uudp-cu.
The binaries are however not 100% cli compatible, so scripts written for
uudp-cu won't always work with opencu without adjustments.

It looks like we have a similar situation with netcat and netcat-openbsd where
the latter declares Breaks+Replaces netcat, so this seems like the correct
solution.

Regards,

Tobias

> 
> 
> cheers,
> 
> Andreas



Bug#1011420: opencu: missing Breaks+Replaces: cu

2022-05-22 Thread Andreas Beckmann
Package: opencu
Version: 3-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install
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

>From the attached log (scroll to the bottom...):

  Selecting previously unselected package opencu.
  Preparing to unpack .../archives/opencu_3-2_amd64.deb ...
  Unpacking opencu (3-2) ...
  dpkg: error processing archive /var/cache/apt/archives/opencu_3-2_amd64.deb 
(--unpack):
   trying to overwrite '/usr/bin/cu', which is also in package cu 1.07-27+b1
  Errors were encountered while processing:
   /var/cache/apt/archives/opencu_3-2_amd64.deb


How are cu and opencu supposed to co-exist?
Is cu supposed to be removed from the archive?


cheers,

Andreas


cu=1.07-27+b1_opencu=3-2.log.gz
Description: application/gzip