Package: lintian
Severity: normal
Tags: patch

Because of
I have created a new Lintian rule that helps maintainers to remember
to use virtual-mysql-* packages instead of direct dependencies.

After discussion with Niels Thykier I understood there are two ways to
implement this: a simple obsolete-packages way (preferred) and a more
verbose way with custom error message with more tips about what a
maintainer is expected to do.

The simple version is attached.

Tests pass at
From 03399353f0b7a55d8c1ecfceeb524cabdd7ad2e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Otto=20Kek=C3=A4l=C3=A4inen?= <>
Date: Fri, 23 Sep 2016 00:45:05 +0300
Subject: [PATCH] Extend obsolete-packages with the mysql-* -> default-mysql-*
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

After this a warning will be emitted for mysql-* usage in any depends
fields but not in breaks/replaces/provides fields.

Signed-off-by: Otto Kekäläinen <>
 data/fields/obsolete-packages |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/data/fields/obsolete-packages b/data/fields/obsolete-packages
index c7cd45f..9a9b929 100644
--- a/data/fields/obsolete-packages
+++ b/data/fields/obsolete-packages
@@ -104,3 +104,10 @@ python-support => use dh_python2 instead
+# Deprecated in Stretch (
+mysql-server => default-mysql-server
+mysql-server-core => default-mysql-server-core
+mysql-client => default-mysql-client
+mysql-client-core => default-mysql-client-core
+libmysqlclient-dev => default-libmysqlclient-dev

Reply via email to