Package: lintian Severity: normal Tags: patch Because of https://lists.debian.org/debian-devel-announce/2016/09/msg00000.html 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 https://travis-ci.org/ottok/lintian/builds/162041045
From 03399353f0b7a55d8c1ecfceeb524cabdd7ad2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Otto=20Kek=C3=A4l=C3=A4inen?= <o...@seravo.fi> Date: Fri, 23 Sep 2016 00:45:05 +0300 Subject: [PATCH] Extend obsolete-packages with the mysql-* -> default-mysql-* transition 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 <o...@seravo.fi> --- 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 ruby1.9.1 ruby1.9.1-dev libruby1.9.1 + +# Deprecated in Stretch (https://lists.debian.org/debian-devel-announce/2016/09/msg00000.html) +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 -- 1.7.9.5