wilzbach / tools-test

1 stars 0 forks source link

Rename dman in the Debian .deb package to prevent conflict with Debian package debian-goodies #169

Open wilzbach opened 7 years ago

wilzbach commented 7 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#17569 From: hsteoh@quickfur.ath.cx Reported version: D2 CC: bugzilla@digitalmars.com, code@dawg.eu

wilzbach commented 7 years ago

Comment author: hsteoh@quickfur.ath.cx

This was reported on the forum:


Installing dmd if debian-goodies is installed fails. Both try to write a file named '/usr/bin/dman'

[...snip...]

sudo dpkg -i dmd_2.074.1-0_amd64.1.deb (Reading database ... 224610 files and directories currently installed.) Preparing to unpack dmd_2.074.1-0_amd64.1.deb ... Unpacking dmd (2.074.1-0) ... dpkg: error processing archive dmd_2.074.1-0_amd64.1.deb (--install): trying to overwrite '/usr/bin/dman', which is also in package debian-goodies 0.74 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

sudo dpkg -i dmd_2.075.0~b1-0_amd64.deb (Reading database ... 224610 files and directories currently installed.) Preparing to unpack dmd_2.075.0~b1-0_amd64.deb ... Unpacking dmd (2.075.0~b1-0) ... dpkg: error processing archive dmd_2.075.0~b1-0_amd64.deb (--install): trying to overwrite '/usr/bin/dman', which is also in package debian-goodies 0.74 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

The package debian-goodies also ships a binary named dman, with this description:


dman - Fetch manpages from online manpages.debian.org service

Since this is something shipped with Debian itself, I recommend either (1) renaming our dman utility to something less ambiguous, or (2) excluding it from the .deb package for dmd altogether.

And on that note, just in case, I highly recommend against putting a Conflicts: line in the debian/control file, because there is no good reason why the debian-goodies package should be excluded by the dmd package. If anything, we should be the ones to give up the dman utility (I have never found a need for it, and I question whether anyone actually uses it besides the D developers).

I'm marking this as a major bug, because the conflict means that any Debian user who wants to try out D for the first time may get immediately turned away by the installation failure due to some silly marginal utility being unfortunately named, just because he happens to have the debian-goodies package installed.

wilzbach commented 7 years ago

Comment author: Martin Nowak <code@dawg.eu>

Another reported conflict is deepin-manual http://forum.dlang.org/post/zwusavzzulksmekovwos@ forum.dlang.org.

wilzbach commented 7 years ago

Comment author: Walter Bright <bugzilla@digitalmars.com>

Just rename it to dmanual