June 04, 2023
https://issues.dlang.org/show_bug.cgi?id=23962

          Issue ID: 23962
           Summary: Please move dub and dustmite to separate deb package
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: installer
          Assignee: nobody@puremagic.com
          Reporter: witold.baryluk+d@gmail.com

dustmite and dub are packages already in Debian and Ubuntu, and I often have them installed together with gdc, ldc2.

When installing dmd deb from dlang website, they cause conflicts, requiring me to uninstall dustmite and dub first.

This is very annoying, and makes testing different versions difficult.

Would be better to split dub and dustmite into own packages, and make them recommend dmd (but not require!).

root@debian# dpkg -i dmd_2.104.0-0_amd64.deb
Selecting previously unselected package dmd.
(Reading database ... 1451549 files and directories currently installed.)
Preparing to unpack dmd_2.104.0-0_amd64.deb ...
Unpacking dmd (2.104.0-0) ...
dpkg: error processing archive dmd_2.104.0-0_amd64.deb (--install):
 trying to overwrite '/usr/bin/dub', which is also in package dub 1.27.0-3
Errors were encountered while processing:
 dmd_2.104.0-0_amd64.deb
root@debian#


root@debian# apt purge dub
...
root@debian#


root@debian# dpkg -i dmd_2.104.0-0_amd64.deb
(Reading database ... 1451516 files and directories currently installed.)
Preparing to unpack dmd_2.104.0-0_amd64.deb ...
Unpacking dmd (2.104.0-0) ...
dpkg: error processing archive dmd_2.104.0-0_amd64.deb (--install):
 trying to overwrite '/usr/bin/dustmite', which is also in package dustmite
0.0.430-2
Errors were encountered while processing:
 dmd_2.104.0-0_amd64.deb
root@debian#


root@debian# apt purge dustmite
...
root@debian#


root@debian# dpkg -i dmd_2.104.0-0_amd64.deb
(Reading database ... 1451511 files and directories currently installed.)
Preparing to unpack dmd_2.104.0-0_amd64.deb ...
Unpacking dmd (2.104.0-0) ...
Setting up dmd (2.104.0-0) ...
Processing triggers for mate-menus (1.26.0-3) ...
Processing triggers for gnome-menus (3.36.0-1.1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for bamfdaemon (0.5.6+repack-1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for shared-mime-info (2.2-1) ...
root@debian#

Finally.

(No idea why so many triggeres are triggered)

As of rdmd and ddemangle I do not have opinions, as they do not cause issues
(yet).

--