www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17569] New: Rename dman in the Debian .deb package to prevent

https://issues.dlang.org/show_bug.cgi?id=17569

          Issue ID: 17569
           Summary: Rename dman in the Debian .deb package to prevent
                    conflict with Debian package debian-goodies
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: tools
          Assignee: nobody puremagic.com
          Reporter: 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.

--
Jun 28