mailutils package has dependency on mysql packages

Bug #1715259 reported by C. Alex Roeber
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mailutils (Debian)
New
Unknown
mailutils (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"

apt-get -y install --no-install-recommends mailutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libmailutils4 libmysqlclient20 mysql-common
Suggested packages:
  mailutils-mh mailutils-doc
The following NEW packages will be installed:
  libmailutils4 libmysqlclient20 mailutils mysql-common
0 upgraded, 4 newly installed, 0 to remove and 4 not upgraded.

+++++
Selecting previously unselected package mysql-common (5.7.19-0ubuntu0.16.04.1)
   Setting up mysql-common (5.7.19-0ubuntu0.16.04.1) ...
   update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode

Selecting previously unselected package libmysqlclient20:amd64 (5.7.19-0ubuntu0.16.04.1) ...
   Setting up libmysqlclient20:amd64 (5.7.19-0ubuntu0.16.04.1) ...

Installation of mailutils has a dependency on:
   libmysqlclient20 AND mysql-common
And should not, there is no reason to have these packages as a dependency

Revision history for this message
C. Alex Roeber (caroeber) wrote :

Also the documentation show that the packages are not part of the dependency list:
https://packages.ubuntu.com/search?keywords=mailutils&searchon=names&suite=zesty&section=all

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

>Also the documentation show that the packages are not part of the dependency list:

Mailutils doesn't depend on the mysql packages directly, but they seem to be pulled in through libmailutils5 (https://packages.ubuntu.com/zesty/libmailutils5).

tags: added: artful xenial zesty
Revision history for this message
C. Alex Roeber (caroeber) wrote :

Thank you, I see that now, and why does libmailutils5 need an libmysqlclient20?
I would request that if it does not really has a dependency then remove it from the dependency list.
Maybe this should be moved to the libmailutils5 package team?

Revision history for this message
Olleg Samoylov (olleg) wrote :

Yep, according to the mailutils documentation,

https://mailutils.org/manual/html_node/sql-statement.html#sql-statement

the mailutils can use MySQL, PostgreSQL and ODBC as SQL interface. But package (library) pulls only MySQL client. It's strange, why mailutils does depend only on MySQL client? Why is such discrimination?

Revision history for this message
Olleg Samoylov (olleg) wrote :

May be you don't need whole mailutils, but only a mailx client? Use other alternatives: bsd-mailx (minimalistic), s-nail (feature rich) or what your else prefer.

tags: added: bionic
removed: zesty
Changed in mailutils (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mailutils (Ubuntu):
status: New → Confirmed
Revision history for this message
Robie Basak (racb) wrote :

It's the nature of a binary distribution like Debian and Ubuntu that dynamically linked things pull in dependencies to provide those dynamic libraries even if you don't want them yourself. Removing the dependency would require a rebuild from source or a patch to the code that pulls it in to use dlopen(3) or similar instead. However that's not within the normal design scope of anything in our ecosystem, so I don't think it's realistic to expect that.

If you want a system that really doesn't dynamically link anything you don't want, then you want a distribution that is designed to be rebuilt from source by users, not Debian or Ubuntu.

Pulling in the dependency should be harmless apart from some small disk space usage. If it is not, then please file a bug with specifics about that.

Since there are no plans to fix this in Ubuntu because what you describe is a fundamental nature of a binary distribution's design, I'm marking this bug Won't Fix to make that clear.

Changed in mailutils (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Robie Basak (racb) wrote :

> the mailutils can use MySQL, PostgreSQL and ODBC as SQL interface. But package (library) pulls only MySQL client. It's strange, why mailutils does depend only on MySQL client? Why is such discrimination?

It isn't pulling in the MySQL client. It depends on a MySQL client library. It also depends on a SQLite protocol library. The list of libraries it depends on is quite large, as is common with most packages. You're just not seeing the full list because you have much of it installed already.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.