Bug#1009750: reserialize: Fail to install because /usr/bin/json2yaml also contained in libghc-yaml-dev.

2022-05-22 Thread Andreas Beckmann

Control: severity -1 serious
Control: block -1 with 951490

On Sat, 16 Apr 2022 10:47:29 +0200 "Andrej Shadura"  
wrote:

Hi,

On Sat, 16 Apr 2022, at 10:05, Andreas Karnetzki wrote:
>dpkg: error processing archive
> /var/cache/apt/archives/reserialize_20210909-2_all.deb (--unpack):
> trying to overwrite '/usr/bin/json2yaml', which is also in package libghc-
> yaml-dev 0.11.4.0-1-b4



Wouldn’t Conflicts: libghc-yaml-dev be enough?


That's not what Conflicts is for. Why shouldn't one be able to use both 
packages in a project?


There was already #951490 against libghc-yaml-dev "haskell-yaml: please 
split yaml2json out into a separate package". Maybe libghc-yaml-dev can 
just drop the conflicting binaries now and reserialize adds

  Breaks+Replaces: libghc-yaml-dev (<< 0.11.4.0-2~)
(assuming that is the version no longer shipping them elsewhere).

Andreas



Bug#1009750: reserialize: Fail to install because /usr/bin/json2yaml also contained in libghc-yaml-dev.

2022-04-16 Thread Andrej Shadura
Hi,

On Sat, 16 Apr 2022, at 10:05, Andreas Karnetzki wrote:
> Dear Maintainer,
>
>I have package libghc-yaml-dev (0.11.4.0-1+b4) already installed and wanted
>to install reserialize with apt-get.
>
>Execution of this command failes:
>
>$ sudo apt-get install --no-install-recommends
>
>Result:
>
>dpkg: error processing archive
> /var/cache/apt/archives/reserialize_20210909-2_all.deb (--unpack):
> trying to overwrite '/usr/bin/json2yaml', which is also in package libghc-
> yaml-dev 0.11.4.0-1-b4
>
>Expected behavior would be, either use a different name for the conflicting
> program, or
>use the alternatives system of debian to organize the conflict.

Wouldn’t Conflicts: libghc-yaml-dev be enough?

-- 
Cheers,
  Andrej



Bug#1009750: reserialize: Fail to install because /usr/bin/json2yaml also contained in libghc-yaml-dev.

2022-04-16 Thread Andreas Karnetzki
Package: reserialize
Version: 20210909-2
Severity: important
X-Debbugs-Cc: andreas.karnet...@mnet-mail.de

Dear Maintainer,

   I have package libghc-yaml-dev (0.11.4.0-1+b4) already installed and wanted
   to install reserialize with apt-get.

   Execution of this command failes:

   $ sudo apt-get install --no-install-recommends

   Result:

   dpkg: error processing archive
/var/cache/apt/archives/reserialize_20210909-2_all.deb (--unpack):
trying to overwrite '/usr/bin/json2yaml', which is also in package libghc-
yaml-dev 0.11.4.0-1-b4

   Expected behavior would be, either use a different name for the conflicting
program, or
   use the alternatives system of debian to organize the conflict.


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.16.0-6-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages reserialize depends on:
ii  python3   3.9.8-1
ii  python3-yaml  5.4.1-1+b1

Versions of packages reserialize recommends:
pn  python3-bson  
ii  python3-toml  0.10.2-1

reserialize suggests no packages.