#1011443 faker,ruby-faker: error when trying to install together

#1011443#5
Date:
2022-05-22 23:58:56 UTC
From:
To:
Hi,

automatic installation tests of packages that share a file and at the
same time do not conflict by their package dependency relationships has
detected the following problem:

  Selecting previously unselected package ruby-faker.
  Preparing to unpack .../19-ruby-faker_2.20.0-1_all.deb ...
  Unpacking ruby-faker (2.20.0-1) ...
  dpkg: error processing archive /tmp/apt-dpkg-install-9mjGF0/19-ruby-faker_2.20.0-1_all.deb (--unpack):
   trying to overwrite '/usr/bin/faker', which is also in package faker 0.9.3-0.1
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Errors were encountered while processing:
   /tmp/apt-dpkg-install-9mjGF0/19-ruby-faker_2.20.0-1_all.deb

This is a serious bug as it makes installation fail, and violates
sections 7.6.1 and 10.1 of the policy. An optimal solution would
consist in only one of the packages installing that file, and renaming
or removing the file in the other package. Depending on the
circumstances you might also consider Replace relations or file
diversions. If the conflicting situation cannot be resolved then, as a
last resort, the two packages have to declare a mutual
Conflict. Please take into account that Replaces, Conflicts and
diversions should only be used when packages provide different
implementations for the same functionality.

Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
slightly out of sync):

  /usr/bin/faker

This bug is assigned to both packages. If you, the maintainers of
the two packages in question, have agreed on which of the packages will
resolve the problem please reassign the bug to that package. You may
also register in the BTS that the other package is affected by the bug.

Cheers,

Andreas

PS: for more information about the detection of file overwrite errors
of this kind see https://qa.debian.org/dose/file-overwrites.html

#1011443#14
Date:
2022-07-05 16:44:15 UTC
From:
To:
I'm posting to d-devel because I failed to make contact with the
Ruby Team directly:

ruby-faker primarily ships a Ruby module while faker's sole purpose
is the faker executable, so I believe ruby-faker should yield.
There are two reverse dependencies:

- ruby-devise-two-factor builds fine without /usr/bin/faker in
   ruby-faker

- ruby-omniauth-openid-connect FTBFS for unrelated reasons with and
   wihout /usr/bin/faker

If the Ruby Team agrees with my analysis, I'd appreciate it if
someone could upload a fixed version (I am not a team member).


Cheers
Timo

#1011443#19
Date:
2022-07-05 21:18:29 UTC
From:
To:
package for upgrades to work.
#1011443#24
Date:
2022-07-05 21:34:00 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
ruby-faker, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1011443@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antonio Terceiro <terceiro@debian.org> (supplier of updated ruby-faker package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 05 Jul 2022 18:11:13 -0300
Source: ruby-faker
Architecture: source
Version: 2.21.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Changed-By: Antonio Terceiro <terceiro@debian.org>
Closes: 1011443
Changes:
 ruby-faker (2.21.0-1) unstable; urgency=medium
 .
   * New upstream version 2.21.0
   * debian/control: refresh from template
   * debian/upstream/metadata: update project URL
   * debian/rules: update from template
   * Refresh patches
   * Add patch to drop useless `faker` binary (Closes: #1011443)
Checksums-Sha1:
 ff51e50fc521102bc4c965aeeb91104e0968efd3 2086 ruby-faker_2.21.0-1.dsc
 45d25a4d13f25ed9ecf76b4b815f1f94a36d1c6c 1699409 ruby-faker_2.21.0.orig.tar.gz
 0a0b802f6e451719395fdb58eb70b23791e1a28c 5132 ruby-faker_2.21.0-1.debian.tar.xz
 c8b720d17d090f30c4886d34249d911f888417c0 9698 ruby-faker_2.21.0-1_amd64.buildinfo
Checksums-Sha256:
 bfa33a38372e610ae2a1f51d7558e712e7d8ca640f0c227f18937e2acf2744af 2086 ruby-faker_2.21.0-1.dsc
 6fd6c8476a6509ecc0772be6269c8182d4c9f4d2fb4e83cfbfa4c703e3589caf 1699409 ruby-faker_2.21.0.orig.tar.gz
 aa3111d0a2046eb8f96ee449f91a745f0d431dbaa3a2a638ac0229f850387b53 5132 ruby-faker_2.21.0-1.debian.tar.xz
 b49e4e6935f9af259372a2a05f0b245a27474cd91e17a0dc951ccc7bf773a62c 9698 ruby-faker_2.21.0-1_amd64.buildinfo
Files:
 41fb8af856369cfa0a35920c9cd96c36 2086 ruby optional ruby-faker_2.21.0-1.dsc
 d8ef386f5c667ec3f970eee7019d2130 1699409 ruby optional ruby-faker_2.21.0.orig.tar.gz
 66e68baaae6c0303ed95c7829afbd99f 5132 ruby optional ruby-faker_2.21.0-1.debian.tar.xz
 d5048b0b3f559eaafade07e7389a5469 9698 ruby optional ruby-faker_2.21.0-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEst7mYDbECCn80PEM/A2xu81GC94FAmLEqlIACgkQ/A2xu81G
C946zRAAp5YEHZJJ0orLju5OhxltSSiFlIt2oQiBtKiH1nD6ynoSwHlOwb23gjgs
Zs4i36L2BoaqF3SbCeyR2udvjKRtCClDktbYH//MFRN15m5kdPVgjB2LnFre6/c6
7inD/gAtXJh6dGKTXJYjRDjZyddvuTIk1k3bJOkayHtaOPIZGOqXEk42C9PEiUAh
bKkh9aLTT491EgoxGMqVroPvO+KXVwAgzoTkEsYYv5de9Qef4JfhX2B2xq7vid+q
7twDySVZymiThlnDnV3qVLVDhu3e/wqm3LIsefgqNbEfwijSP7CVWlALZuRgLdUK
gC7K8oql9QqvwIy4WD9Nq4BB7YKO4oOO6NhaZ3tn8k+t0XNQvkj7Ph0bkiUZID/M
GxyIj1AJY0QWafDdfTfRKbIhCEpnwcXCYoqlGUnjobdUPV6UbbyHpd2x55uvv/G3
T1uySabHFwGt//fffIMu+sJy+1yuU13m1ruwVPSi3EVPtLF2Z7WFSMChsjhew0lU
QsLOJWDhAqC+45xejLtVheLvkygFhZf6NcRsoT36B+BryVul3t/EGhWXbtIWhyIM
3qeypVM6msIya1YAZ/ynEHWSADUja+p4CypO4eLp0Tn2NRvROkw6a5R+9mUJFQeM
XuPVMd95sFWzfv8T4xtbhlxcSvkOPF0Zov8DydfulFsW2xgTlrA=
=pDGS
-----END PGP SIGNATURE-----