From 08b8641d8054e07a12276341bee90f6d049a7010 Mon Sep 17 00:00:00 2001
From: Slávek Banko <slavek.banko@axis.cz>
Date: Sat, 7 Feb 2026 17:14:35 +0100
Subject: DEB tqt: Changes to silence lintian reports.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

+ Formalization of postinst scripts.
+ Removed no longer valid *BSD architectures.
+ Removed Replaces and Breaks referring to themselves.
+ Removed menu files because desktop files are in their place.
+ The epoch change is for historical reasons from the KDE3 era.
+ Added emptying of dependency_libs field in LA files.
+ Added lintian overrides installation.

Note: When tested on armhf, lintian reported `library-not-linked-against-libc`
on some packages, which is not registered on the lintian tags list, and when
used on amd64, lintian reports `alien-tag library-not-linked-against-libc`.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
---
 debian/_base/dependencies/tqt/debian/changelog     |  12 ++
 debian/_base/dependencies/tqt/debian/control       | 125 ++++++++-------------
 .../tqt/debian/libtqt3-apps-dev.lintian-overrides  |   2 +
 .../tqt/debian/libtqt3-mt-sqlite.lintian-overrides |   2 +
 .../tqt/debian/libtqt3-mt.lintian-overrides        |   2 +
 .../dependencies/tqt/debian/libtqt3-mt.postrm      |  16 ++-
 debian/_base/dependencies/tqt/debian/rules         |  23 +++-
 .../tqt/debian/source.lintian-overrides            |  12 ++
 .../tqt/debian/tqt3-assistant.lintian-overrides    |   2 +
 .../dependencies/tqt/debian/tqt3-assistant.menu    |   6 -
 .../tqt/debian/tqt3-assistant.postinst             |  17 ++-
 .../tqt/debian/tqt3-designer.lintian-overrides     |   2 +
 .../dependencies/tqt/debian/tqt3-designer.menu     |   7 --
 .../dependencies/tqt/debian/tqt3-designer.postinst |  22 +++-
 .../debian/tqt3-dev-tools-compat.lintian-overrides |   2 +
 .../tqt/debian/tqt3-dev-tools.lintian-overrides    |   5 +
 .../tqt/debian/tqt3-dev-tools.postinst             |  58 ++++++----
 .../dependencies/tqt/debian/tqt3-doc.doc-base      |   2 +-
 .../tqt/debian/tqt3-doc.lintian-overrides          |   4 +
 .../dependencies/tqt/debian/tqt3-linguist.menu     |   6 -
 .../dependencies/tqt/debian/tqt3-linguist.postinst |  21 +++-
 .../dependencies/tqt/debian/tqt3-qtconfig.menu     |   8 --
 .../dependencies/tqt/debian/tqt3-qtconfig.postinst |  21 +++-
 dilos/dependencies/tqt/debian/changelog            |  12 ++
 dilos/dependencies/tqt/debian/control              | 125 ++++++++-------------
 .../tqt/debian/libtqt3-apps-dev.lintian-overrides  |   2 +
 .../tqt/debian/libtqt3-mt-sqlite.lintian-overrides |   2 +
 .../tqt/debian/libtqt3-mt.lintian-overrides        |   2 +
 dilos/dependencies/tqt/debian/libtqt3-mt.postrm    |  16 ++-
 dilos/dependencies/tqt/debian/rules                |  23 +++-
 .../tqt/debian/source.lintian-overrides            |  12 ++
 .../tqt/debian/tqt3-assistant.lintian-overrides    |   2 +
 dilos/dependencies/tqt/debian/tqt3-assistant.menu  |   6 -
 .../tqt/debian/tqt3-assistant.postinst             |  17 ++-
 .../tqt/debian/tqt3-designer.lintian-overrides     |   2 +
 dilos/dependencies/tqt/debian/tqt3-designer.menu   |   7 --
 .../dependencies/tqt/debian/tqt3-designer.postinst |  22 +++-
 .../debian/tqt3-dev-tools-compat.lintian-overrides |   2 +
 .../tqt/debian/tqt3-dev-tools.lintian-overrides    |   5 +
 .../tqt/debian/tqt3-dev-tools.postinst             |  58 ++++++----
 dilos/dependencies/tqt/debian/tqt3-doc.doc-base    |   2 +-
 .../tqt/debian/tqt3-doc.lintian-overrides          |   4 +
 dilos/dependencies/tqt/debian/tqt3-linguist.menu   |   6 -
 .../dependencies/tqt/debian/tqt3-linguist.postinst |  21 +++-
 dilos/dependencies/tqt/debian/tqt3-qtconfig.menu   |   8 --
 .../dependencies/tqt/debian/tqt3-qtconfig.postinst |  21 +++-
 ubuntu/_base/dependencies/tqt/debian/changelog     |  12 ++
 ubuntu/_base/dependencies/tqt/debian/control       | 125 ++++++++-------------
 .../tqt/debian/libtqt3-apps-dev.lintian-overrides  |   2 +
 .../tqt/debian/libtqt3-mt-sqlite.lintian-overrides |   2 +
 .../tqt/debian/libtqt3-mt.lintian-overrides        |   2 +
 .../dependencies/tqt/debian/libtqt3-mt.postrm      |  16 ++-
 ubuntu/_base/dependencies/tqt/debian/rules         |  23 +++-
 .../tqt/debian/source.lintian-overrides            |  12 ++
 .../tqt/debian/tqt3-assistant.lintian-overrides    |   2 +
 .../dependencies/tqt/debian/tqt3-assistant.menu    |   6 -
 .../tqt/debian/tqt3-assistant.postinst             |  17 ++-
 .../tqt/debian/tqt3-designer.lintian-overrides     |   2 +
 .../dependencies/tqt/debian/tqt3-designer.menu     |   7 --
 .../dependencies/tqt/debian/tqt3-designer.postinst |  22 +++-
 .../debian/tqt3-dev-tools-compat.lintian-overrides |   2 +
 .../tqt/debian/tqt3-dev-tools.lintian-overrides    |   5 +
 .../tqt/debian/tqt3-dev-tools.postinst             |  58 ++++++----
 .../dependencies/tqt/debian/tqt3-doc.doc-base      |   2 +-
 .../tqt/debian/tqt3-doc.lintian-overrides          |   4 +
 .../dependencies/tqt/debian/tqt3-linguist.menu     |   6 -
 .../dependencies/tqt/debian/tqt3-linguist.postinst |  21 +++-
 .../dependencies/tqt/debian/tqt3-qtconfig.menu     |   8 --
 .../dependencies/tqt/debian/tqt3-qtconfig.postinst |  21 +++-
 69 files changed, 681 insertions(+), 450 deletions(-)
 create mode 100644 debian/_base/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides
 create mode 100644 debian/_base/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides
 create mode 100644 debian/_base/dependencies/tqt/debian/libtqt3-mt.lintian-overrides
 create mode 100644 debian/_base/dependencies/tqt/debian/source.lintian-overrides
 create mode 100644 debian/_base/dependencies/tqt/debian/tqt3-assistant.lintian-overrides
 delete mode 100644 debian/_base/dependencies/tqt/debian/tqt3-assistant.menu
 create mode 100644 debian/_base/dependencies/tqt/debian/tqt3-designer.lintian-overrides
 delete mode 100644 debian/_base/dependencies/tqt/debian/tqt3-designer.menu
 create mode 100644 debian/_base/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides
 create mode 100644 debian/_base/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides
 create mode 100644 debian/_base/dependencies/tqt/debian/tqt3-doc.lintian-overrides
 delete mode 100644 debian/_base/dependencies/tqt/debian/tqt3-linguist.menu
 delete mode 100644 debian/_base/dependencies/tqt/debian/tqt3-qtconfig.menu
 create mode 100644 dilos/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides
 create mode 100644 dilos/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides
 create mode 100644 dilos/dependencies/tqt/debian/libtqt3-mt.lintian-overrides
 create mode 100644 dilos/dependencies/tqt/debian/source.lintian-overrides
 create mode 100644 dilos/dependencies/tqt/debian/tqt3-assistant.lintian-overrides
 delete mode 100644 dilos/dependencies/tqt/debian/tqt3-assistant.menu
 create mode 100644 dilos/dependencies/tqt/debian/tqt3-designer.lintian-overrides
 delete mode 100644 dilos/dependencies/tqt/debian/tqt3-designer.menu
 create mode 100644 dilos/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides
 create mode 100644 dilos/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides
 create mode 100644 dilos/dependencies/tqt/debian/tqt3-doc.lintian-overrides
 delete mode 100644 dilos/dependencies/tqt/debian/tqt3-linguist.menu
 delete mode 100644 dilos/dependencies/tqt/debian/tqt3-qtconfig.menu
 create mode 100644 ubuntu/_base/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides
 create mode 100644 ubuntu/_base/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides
 create mode 100644 ubuntu/_base/dependencies/tqt/debian/libtqt3-mt.lintian-overrides
 create mode 100644 ubuntu/_base/dependencies/tqt/debian/source.lintian-overrides
 create mode 100644 ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.lintian-overrides
 delete mode 100644 ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.menu
 create mode 100644 ubuntu/_base/dependencies/tqt/debian/tqt3-designer.lintian-overrides
 delete mode 100644 ubuntu/_base/dependencies/tqt/debian/tqt3-designer.menu
 create mode 100644 ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides
 create mode 100644 ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides
 create mode 100644 ubuntu/_base/dependencies/tqt/debian/tqt3-doc.lintian-overrides
 delete mode 100644 ubuntu/_base/dependencies/tqt/debian/tqt3-linguist.menu
 delete mode 100644 ubuntu/_base/dependencies/tqt/debian/tqt3-qtconfig.menu

diff --git a/debian/_base/dependencies/tqt/debian/changelog b/debian/_base/dependencies/tqt/debian/changelog
index 4d5a96f19..069445f6a 100644
--- a/debian/_base/dependencies/tqt/debian/changelog
+++ b/debian/_base/dependencies/tqt/debian/changelog
@@ -1,3 +1,15 @@
+tqt (4:14.2.0~pre253-0) forky; urgency=low
+
+  * Formalization of postinst scripts.
+  * Removed no longer valid *BSD architectures.
+  * Removed Replaces and Breaks referring to themselves.
+  * Removed menu files because desktop files are in their place.
+  * The epoch change is for historical reasons from the KDE3 era.
+  * Added emptying of dependency_libs field in LA files.
+  * Added lintian overrides installation.
+
+ -- Slávek Banko <slavek.banko@axis.cz>  Thu, 05 Feb 2026 20:46:38 +0100
+
 tqt (3:3.3.8-d-0ubuntu0) maverick; urgency=low
 
   * Upload of 3.3.8d (working revision) from GIT
diff --git a/debian/_base/dependencies/tqt/debian/control b/debian/_base/dependencies/tqt/debian/control
index 0132b3c05..151c0878d 100644
--- a/debian/_base/dependencies/tqt/debian/control
+++ b/debian/_base/dependencies/tqt/debian/control
@@ -2,16 +2,16 @@ Source: tqt
 Maintainer: TDE Debian Team <team-debian@trinitydesktop.org>
 XSBC-Original-Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
 Uploaders: Ana Beatriz Guerrero Lopez <ana@debian.org>, Sune Vuorela <debian@pusling.com>, Fathi Boudra <fabo@debian.org>, Modestas Vainius <modestas@vainius.eu>
-Build-Depends: cdbs, debhelper (>= 10~), quilt, cpio, libnsl-dev | libc6-dev (<<2.32~), libxext-dev (>= 4.3.0.dfsg.1-4),
+Build-Depends: debhelper (>= 10~), quilt, cpio, libnsl-dev | libc6-dev (<<2.32~), libxext-dev (>= 4.3.0.dfsg.1-4),
  libxrandr-dev (>= 4.3.0.dfsg.1-4), libsm-dev (>= 4.3.0.dfsg.1-4),
  libxmu-dev (>= 4.3.0.dfsg.1-4), libice-dev (>= 4.3.0.dfsg.1-4),
  libx11-dev (>= 4.3.0.dfsg.1-4), libxt-dev (>= 4.3.0.dfsg.1-4), libxrender-dev,
  libxcursor-dev, libxinerama-dev, libxi-dev, zlib1g-dev, libjpeg-dev,
- libmng-dev (>= 1.0.3), libpng-dev, libfontconfig1-dev,
- libfreetype6-dev, libxft-dev, unixodbc-dev, uuid-dev, libglib2.0-dev,
+ libmng-dev (>= 1.0.3), libpng-dev, libfontconfig-dev | libfontconfig1-dev,
+ libfreetype-dev | libfreetype6-dev, libxft-dev, unixodbc-dev, uuid-dev, libglib2.0-dev,
  default-libmysqlclient-dev | libmysqlclient-dev, flex, libpq-dev, postgresql-server-dev-all (>= 117~) | libpq-dev (<< 9.3.3-2~), libaudio-dev, libcups2-dev,
- libgl1-mesa-dev | libgl-dev, libglu1-mesa-dev | libglu-dev, libsqlite3-dev,
- firebird-dev | firebird2.1-dev [i386 kfreebsd-i386 kfreebsd-amd64 knetbsd-i386 netbsd-i386 amd64 sparc powerpc armel] | firebird2-dev [i386 amd64]
+ libgl-dev | libgl1-mesa-dev, libglu1-mesa-dev | libglu-dev, libsqlite3-dev,
+ firebird-dev | firebird2.1-dev [i386 amd64 sparc powerpc armel] | firebird2-dev [i386 amd64]
 Section: libs
 Priority: optional
 Standards-Version: 3.8.4
@@ -21,9 +21,7 @@ Package: libtqt3-mt
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt (<< 4:14.0.0~)
-Breaks: libtqt3-mt (<< 4:14.0.0~)
-Depends: libtqt3-mt-data (= ${binary:Version}), ${shlibs:Depends}, fontconfig
+Depends: libtqt3-mt-data (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}, fontconfig
 Recommends: libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, libxmu6 (>= 4.3.0.dfsg.1-4)
 Suggests: libtqt3-mt-psql, libtqt3-mt-mysql, libtqt3-mt-odbc
 Description: TQt GUI Library (Threaded runtime version), Version 3
@@ -36,7 +34,7 @@ Architecture: all
 Multi-Arch: foreign
 Section: libs
 Conflicts: libtqt3-mt (<< 4:14.1.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Data for TQt GUI Library (Threaded runtime version), Version 3
  This is the Trolltech TQt library, version 3. It's necessary for
  applications that link against the libtqt-mt.so.3, e.g. all Trinity
@@ -46,9 +44,7 @@ Package: libtqt3-mt-mysql
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-mysql (<< 4:14.0.0~)
-Breaks: libtqt3-mt-mysql (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: MySQL database driver for TQt3 (Threaded)
  This package contains the threaded MySQL plugin for TQt3. Install it if
  you intend to use or write TQt programs that are to access a MySQL DB.
@@ -57,9 +53,7 @@ Package: libtqt3-mt-odbc
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-odbc (<< 4:14.0.0~)
-Breaks: libtqt3-mt-odbc (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: ODBC database driver for TQt3 (Threaded)
  This package contains the threaded ODBC plugin for TQt3. Install it if
  you intend to use or write TQt programs that are to access an ODBC DB.
@@ -68,19 +62,17 @@ Package: libtqt3-mt-psql
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-psql (<< 4:14.0.0~)
-Breaks: libtqt3-mt-psql (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: PostgreSQL database driver for TQt3 (Threaded)
  This package contains the threaded PostgreSQL plugin for TQt3.
  Install it if you intend to use or write TQt programs that are
  to access a PostgreSQL DB.
 
 Package: libtqt3-mt-ibase
-Architecture: i386 kfreebsd-i386 kfreebsd-amd64 knetbsd-i386 netbsd-i386 amd64 sparc powerpc
+Architecture: i386 amd64 sparc powerpc
 Multi-Arch: same
 Section: libs
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: InterBase/FireBird database driver for TQt3 (Threaded)
  This package contains the threaded InterBase/FireBird plugin
  for TQt3. Install it if you intend to use or write TQt programs
@@ -90,9 +82,7 @@ Package: libtqt3-mt-sqlite
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-sqlite (<< 4:14.0.0~)
-Breaks: libtqt3-mt-sqlite (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: SQLite database driver for TQt3 (Threaded)
  This package contains the threaded SQLite plugin for TQt3. Install
  it if you intend to use or write TQt programs that are to access an
@@ -102,7 +92,7 @@ Package: libtqt3-mt-sqlite3
 Architecture: any
 Multi-Arch: same
 Section: libs
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: SQLite3 database driver for TQt3 (Threaded)
  This package contains the threaded SQLite3 plugin for TQt3. Install
  it if you intend to use or write TQt programs that are to access an
@@ -112,18 +102,17 @@ Package: libtqt3-mt-dev
 Architecture: any
 Multi-Arch: no
 Section: libdevel
-Replaces: libtqt3-mt-dev (<< 4:14.0.0~)
-Breaks: libtqt3-mt-dev (<< 4:14.0.0~)
 Conflicts: libtqt3-mt (<< 4:14.1.0~)
-Depends: libxext-dev (>= 4.3.0.dfsg.1-4), libxrandr-dev (>= 4.3.0.dfsg.1-4),
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ libxext-dev (>= 4.3.0.dfsg.1-4), libxrandr-dev (>= 4.3.0.dfsg.1-4),
  libsm-dev (>= 4.3.0.dfsg.1-4), libxmu-dev (>= 4.3.0.dfsg.1-4),
  libice-dev (>= 4.3.0.dfsg.1-4), libx11-dev (>= 4.3.0.dfsg.1-4),
  libxt-dev (>= 4.3.0.dfsg.1-4), libxrender-dev, libxcursor-dev, uuid-dev,
  libxinerama-dev, libxi-dev, zlib1g-dev, libjpeg-dev, libmng-dev (>= 1.0.3),
- libpng-dev, libfontconfig1-dev, libfreetype6-dev,
- libxft-dev, libaudio-dev, libgl1-mesa-dev | libgl-dev,
+ libpng-dev, libfontconfig-dev | libfontconfig1-dev, libfreetype-dev | libfreetype6-dev,
+ libxft-dev, libaudio-dev, libgl-dev | libgl1-mesa-dev,
  libglu1-mesa-dev | libglu-dev, libc6-dev, libtqt3-mt (= ${binary:Version}),
- libtqt3-headers (= ${binary:Version}), tqt3-dev-tools (= ${binary:Version})
+ libtqt3-headers (= ${source:Version}), tqt3-dev-tools (= ${binary:Version})
 Recommends: libcups2-dev
 Suggests: libtqt3-i18n, tqt3-doc
 Description: TQt development files (Threaded)
@@ -137,8 +126,7 @@ Package: libtqt3-headers
 Architecture: all
 Multi-Arch: foreign
 Section: devel
-Replaces: libtqt3-headers (<< 4:14.0.0~)
-Breaks: libtqt3-headers (<< 4:14.0.0~)
+Depends: ${misc:Depends}
 Recommends: libtqt3-mt-dev
 Description:  TQt3 header files
  This package contains all header files for libqt and libtqt-mt which come
@@ -149,9 +137,7 @@ Package: tqt3-dev-tools
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-dev-tools (<< 4:14.0.0~)
-Breaks: tqt3-dev-tools (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Recommends: libtqt3-mt-dev
 Description: TQt3 development tools
  This package contains all tools that are necessary to build programs
@@ -162,12 +148,10 @@ Package: tqt3-designer
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-designer (<< 4:14.0.0~)
-Breaks: tqt3-designer (<< 4:14.0.0~)
-Depends: tqt3-designer-plugins (= ${binary:Version}), ${shlibs:Depends}
+Depends: tqt3-designer-plugins (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 Recommends: tqt3-dev-tools
 Suggests: tqt3-assistant, tqt3-doc
-Description: TQt3 Designer
+Description: TQt Designer - graphic designer for GUI modeling
  The TQt Designer is a GUI design program that interactively lets you
  construct user interfaces for the TQt library. Additionally it lets you
  create whole project and works together with the database drivers
@@ -182,16 +166,19 @@ Architecture: any
 Multi-Arch: same
 Section: devel
 Conflicts: tqt3-designer (<< 4:14.1.0~)
-Depends: ${shlibs:Depends}
-Description: TQt3 Designer plugins
- This package contains plugins for TQt3 Designer
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Plugins for TQt Designer
+ The TQt Designer is a GUI design program that interactively lets you
+ construct user interfaces for the TQt library.
+ .
+ This package contains plugins for TQt Designer
 
 Package: libtqt3-apps-dev
 Architecture: any
 Multi-Arch: same
 Section: libdevel
 Conflicts: tqt3-apps-dev (<< 4:14.1.0~)
-Depends: ${shlibs:Depends}, libtqt3-mt (= ${binary:Version})
+Depends: ${shlibs:Depends}, ${misc:Depends}, libtqt3-mt (= ${binary:Version})
 Description: TQt3 Developer applications development libraries
  This package contains additional libraries that ship with the applications
  included with TQt - the TQt Designer and the TQt Assistant.
@@ -200,9 +187,7 @@ Package: tqt3-apps-dev
 Architecture: any
 Multi-Arch: no
 Section: devel
-Replaces: tqt3-apps-dev (<< 4:14.0.0~)
-Breaks: tqt3-apps-dev (<< 4:14.0.0~)
-Depends: libtqt3-mt-dev, libtqt3-apps-dev
+Depends: ${shlibs:Depends}, ${misc:Depends}, libtqt3-mt-dev, libtqt3-apps-dev
 Description: TQt3 Developer applications development files
  This package is intended for developers who want to develop applications
  using the additional libraries that ship with the applications
@@ -216,11 +201,9 @@ Package: tqt3-linguist
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-linguist (<< 4:14.0.0~)
-Breaks: tqt3-linguist (<< 4:14.0.0~)
 Suggests: tqt3-assistant
-Depends: ${shlibs:Depends}
-Description: The TQt3 Linguist
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: TQt3 Linguist - translators tool
  This package contains the TQt3 Linguist which provides translators a
  tool perfect for translating any TQt-based application into other
  languages and can be used and installed independently of any TQt
@@ -230,10 +213,8 @@ Package: tqt3-assistant
 Architecture: any
 Multi-Arch: foreign
 Section: x11
-Replaces: tqt3-assistant (<< 4:14.0.0~)
-Breaks: tqt3-assistant (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}, tqt3-doc
-Description: The TQt3 assistant application
+Depends: ${shlibs:Depends}, ${misc:Depends}, tqt3-doc
+Description: TQt3 assistant application
  This package contains the TQt3 Assistant, an easy to use frontend for
  the complete TQt3 documentation and serves as an online help viewer for
  any TQt program that wants to give the usesr access to online help.
@@ -241,18 +222,16 @@ Description: The TQt3 assistant application
  for the TQt3 Designer and Linguist as well as qmake and the TQt 3 API
  documentation.
  .
- Developers of TQt Application who want to faciliate the TQt Assistant for online
- help display should refer to the README.Debian file for libtqt3-mt-dev and
- the package tqt3-apps-dev.
+ Developers of TQt Application who want to faciliate the TQt Assistant
+ for online help display should refer to the README.Debian file for
+ libtqt3-mt-dev and the package tqt3-apps-dev.
 
 Package: tqt3-qtconfig
 Architecture: any
 Multi-Arch: foreign
 Section: x11
-Replaces: tqt3-qtconfig (<< 4:14.0.0~)
-Breaks: tqt3-qtconfig (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
-Description: The TQt3 Configuration Application
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: TQt3 Configuration Application
  The TQt Configuration program allows endusers to configure the look
  and behavior of any TQt3 application. It is mostly only necessary
  on systems which don't run TDE because the Trinity control center already
@@ -265,10 +244,8 @@ Package: tqt3-dev-tools-compat
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-dev-tools-compat (<< 4:14.0.0~)
-Breaks: tqt3-dev-tools-compat (<< 4:14.0.0~)
 Recommends: libtqt3-mt-dev
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Conversion utilities for TQt3 development
  This package contains some older TQt tools (namely
  tqm2ts, tqtmergetr, tqtfindtr and msg2tqm). These tools are needed only by
@@ -282,8 +259,7 @@ Package: libtqt3-i18n
 Architecture: all
 Multi-Arch: foreign
 Section: libs
-Replaces: libtqt3-i18n (<< 4:14.0.0~)
-Breaks: libtqt3-i18n (<< 4:14.0.0~)
+Depends: ${misc:Depends}
 Recommends: libtqt3-mt | libtqt3-mt-t64
 Description: i18n files for TQt3 library
  This package contains the internationalization files for the TQt library.
@@ -294,9 +270,8 @@ Package: tqt3-doc
 Architecture: all
 Multi-Arch: foreign
 Section: doc
-Replaces: tqt3-doc (<< 4:14.0.0~)
-Breaks: tqt3-doc (<< 4:14.0.0~)
-Priority: extra
+Priority: optional
+Depends: ${misc:Depends}
 Suggests: libtqt3-headers, tqt3-assistant | www-browser
 Description: TQt3 API documentation
  This package contains the complete API documentation for TQt3.
@@ -308,10 +283,8 @@ Package: tqt3-examples
 Architecture: all
 Multi-Arch: foreign
 Section: doc
-Replaces: tqt3-examples (<< 4:14.0.0~)
-Breaks: tqt3-examples (<< 4:14.0.0~)
-Priority: extra
-Depends: libtqt3-mt-dev (>= ${binary:Version})
+Priority: optional
+Depends: ${misc:Depends}, libtqt3-mt-dev (>= ${binary:Version})
 Suggests: tqt3-apps-dev
 Description:  Examples for TQt3
  These are examples provided with TQt3. They may be especially useful for
@@ -322,10 +295,8 @@ Package: tqt-x11-free-dbg
 Section: libdevel
 Architecture: any
 Multi-Arch: no
-Replaces: tqt-x11-free-dbg (<< 4:14.0.0~)
-Breaks: tqt-x11-free-dbg (<< 4:14.0.0~)
-Priority: extra
-Depends: libtqt3-mt (= ${binary:Version}), gdb
+Priority: optional
+Depends: ${misc:Depends}, libtqt3-mt (= ${binary:Version}), gdb
 Description: debugging symbols for tqt-x11-free binaries
  This package contains the debugging symbols associated with tqt-x11-free.
  They will automatically be used by gdb for debugging TQt-related
diff --git a/debian/_base/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides b/debian/_base/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides
new file mode 100644
index 000000000..17d5be50c
--- /dev/null
+++ b/debian/_base/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides
@@ -0,0 +1,2 @@
+# The package name is not in the form of a shared library.
+libtqt3-apps-dev: package-name-doesnt-match-sonames
diff --git a/debian/_base/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides b/debian/_base/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides
new file mode 100644
index 000000000..abf70f90f
--- /dev/null
+++ b/debian/_base/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides
@@ -0,0 +1,2 @@
+# It was intended that the sqlite module would not need an additional dependency.
+libtqt3-mt-sqlite: embedded-library
diff --git a/debian/_base/dependencies/tqt/debian/libtqt3-mt.lintian-overrides b/debian/_base/dependencies/tqt/debian/libtqt3-mt.lintian-overrides
new file mode 100644
index 000000000..b003daf64
--- /dev/null
+++ b/debian/_base/dependencies/tqt/debian/libtqt3-mt.lintian-overrides
@@ -0,0 +1,2 @@
+# For historical reasons, the package has the suffix 'mt'.
+libtqt3-mt: package-name-doesnt-match-sonames
diff --git a/debian/_base/dependencies/tqt/debian/libtqt3-mt.postrm b/debian/_base/dependencies/tqt/debian/libtqt3-mt.postrm
index bb679158a..d5103a18e 100644
--- a/debian/_base/dependencies/tqt/debian/libtqt3-mt.postrm
+++ b/debian/_base/dependencies/tqt/debian/libtqt3-mt.postrm
@@ -1,9 +1,15 @@
 #!/bin/sh
 
-if [ "$1" = "purge" ]; then
-  if [ -d "/usr/share/doc/libtqt3-mt/" ]; then
-    rm -rf /usr/share/doc/libtqt3-mt/
-  fi
-fi
+set -e
+
+case "$1" in
+
+    purge)
+      if [ -d "/usr/share/doc/libtqt3-mt/" ]; then
+        rm -rf /usr/share/doc/libtqt3-mt/
+      fi
+    ;;
+
+esac
 
 #DEBHELPER#
diff --git a/debian/_base/dependencies/tqt/debian/rules b/debian/_base/dependencies/tqt/debian/rules
index fa9b59714..352d9fe5a 100755
--- a/debian/_base/dependencies/tqt/debian/rules
+++ b/debian/_base/dependencies/tqt/debian/rules
@@ -155,10 +155,11 @@ ifeq ($(DEB_TIME64_API),true)
 	    [ -d $$a ] || [ -f $$a.t64 ] || \
 	    (cp -a $$a debian/libtqt3-mt$(DEB_TIME64_SUFFIX).$${a##*.} && mv $$a $$a.t64); \
 	done
+	sed -i -e "s|^libtqt3-mt:|libtqt3-mt$(DEB_TIME64_SUFFIX):|" \
+	    debian/libtqt3-mt$(DEB_TIME64_SUFFIX).lintian-overrides
 	[ -f debian/control.t64 ] || \
 	sed -i.t64 \
-	    -e "s/^\\(Package: libtqt3-mt\\)$$/\\1$(DEB_TIME64_SUFFIX)/" \
-	    -e "s/^\\(Replaces\\|Breaks\\): \\(libtqt3-mt\\)\\( \|$$\)/\\1: \\2, \\2$(DEB_TIME64_SUFFIX)\\3/" \
+	    -e "s/^Package: \\(libtqt3-mt\\)$$/Package: \\1$(DEB_TIME64_SUFFIX)\\nReplaces: \\1\\nBreaks: \\1/" \
 	    -e "s/\\(libtqt3-mt\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
 	    debian/control
 endif
@@ -255,8 +256,7 @@ ifeq ($(DEB_TIME64_API),true)
 	xargs -r rm
 	[ -f debian/control.t64 ] || \
 	sed -i.t64 \
-	    -e "s/^\\(Package: libtqt3-mt\\)$$/\\1$(DEB_TIME64_SUFFIX)/" \
-	    -e "s/^\\(Replaces\\|Breaks\\): \\(libtqt3-mt\\)\\( \|$$\)/\\1: \\2, \\2$(DEB_TIME64_SUFFIX)\\3/" \
+	    -e "s/^Package: \\(libtqt3-mt\\)$$/Package: \\1$(DEB_TIME64_SUFFIX)\\nReplaces: \\1\\nBreaks: \\1/" \
 	    -e "s/\\(libtqt3-mt\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
 	    debian/control
 else
@@ -376,9 +376,19 @@ binary-indep: build install
 	gzip -n > tqt3-examples.tar.gz
 	install -D `pwd`/debian/doc/tqt3-examples.tar.gz `pwd`/debian/tqt3-examples/usr/share/doc/tqt3-examples/tqt3-examples.tar.gz
 
+	# install lintian-overrides
+	mkdir -p $(CURDIR)/debian
+	for P in \
+		tqt3-doc \
+	; do \
+		mkdir -p $(CURDIR)/debian/$$P//usr/share/lintian/overrides; \
+		install --mode 0644 debian/$$P.lintian-overrides $(CURDIR)/debian/$$P/usr/share/lintian/overrides/$$P; \
+	done
+
 	# proceed
 	dh_compress -i -Xhtml/
 	dh_link -i
+	dh_lintian -i
 
 	dh_fixperms -i
 	dh_installdeb -i
@@ -475,6 +485,10 @@ binary-arch: build install
 	rm -rf debian/tqt3-designer/usr/share/tqt3/tools/tqtconv2ui/.obj
 	rm -f debian/tqt3-designer/usr/share/tqt3/tools/tqtconv2ui/Makefile
 
+	# emptying the dependency_libs field in .la files
+	find debian -name '*.la' -print0 |\
+	xargs -r0 sed -i "/dependency_libs/ s/'.*'/''/"
+
 	# run remaining debhelper scripts
 	dh_installdocs -a $(IBASE) -XREADME.Debian
 	dh_installmenu -a $(IBASE)
@@ -485,6 +499,7 @@ binary-arch: build install
 	dh_installman -a $(IBASE)
 
 	dh_link -a $(IBASE)
+	dh_lintian -a $(IBASE)
 	dh_strip -a $(IBASE) --dbg-package=tqt-x11-free-dbg
 	$(if $(wildcard /usr/bin/dh_strip_nondeterminism),\
 	dh_strip_nondeterminism -a $(IBASE))
diff --git a/debian/_base/dependencies/tqt/debian/source.lintian-overrides b/debian/_base/dependencies/tqt/debian/source.lintian-overrides
new file mode 100644
index 000000000..e842f3a01
--- /dev/null
+++ b/debian/_base/dependencies/tqt/debian/source.lintian-overrides
@@ -0,0 +1,12 @@
+# We build for many distribution versions and therefore need
+# the distribution version as part of the package version,
+# which is unintentionally understood as NMU.
+tqt source: source-nmu-has-incorrect-version-number
+tqt source: binary-nmu-debian-revision-in-source
+tqt source: no-nmu-in-changelog
+
+# We want XZ regardless of the default compression.
+tqt source: custom-compression-in-debian-source-options
+
+# The ltmain.sh file comes from a third-party source.
+tqt source: ancient-libtool
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-assistant.lintian-overrides b/debian/_base/dependencies/tqt/debian/tqt3-assistant.lintian-overrides
new file mode 100644
index 000000000..df3363843
--- /dev/null
+++ b/debian/_base/dependencies/tqt/debian/tqt3-assistant.lintian-overrides
@@ -0,0 +1,2 @@
+# The manual page is not available, this may be addressed sometime in the future.
+tqt3-assistant: no-manual-page
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-assistant.menu b/debian/_base/dependencies/tqt/debian/tqt3-assistant.menu
deleted file mode 100644
index d59f83bd0..000000000
--- a/debian/_base/dependencies/tqt/debian/tqt3-assistant.menu
+++ /dev/null
@@ -1,6 +0,0 @@
-?package(tqt3-assistant):\
-        needs="x11"\
-        section="Applications/Programming"\
-        hints="TDE"\
-        title="TQt3 Assistant"\
-        command="/usr/bin/tqassistant"
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-assistant.postinst b/debian/_base/dependencies/tqt/debian/tqt3-assistant.postinst
index 041457133..7a4fad441 100644
--- a/debian/_base/dependencies/tqt/debian/tqt3-assistant.postinst
+++ b/debian/_base/dependencies/tqt/debian/tqt3-assistant.postinst
@@ -2,7 +2,20 @@
 
 set -e
 
-update-alternatives --install \
-	/usr/bin/assistant assistant "/usr/bin/tqassistant" "45" \
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/assistant assistant "/usr/bin/tqassistant" "45" \
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
 
 #DEBHELPER#
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-designer.lintian-overrides b/debian/_base/dependencies/tqt/debian/tqt3-designer.lintian-overrides
new file mode 100644
index 000000000..69810846a
--- /dev/null
+++ b/debian/_base/dependencies/tqt/debian/tqt3-designer.lintian-overrides
@@ -0,0 +1,2 @@
+# The manual page is not available, this may be addressed sometime in the future.
+tqt3-designer: no-manual-page
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-designer.menu b/debian/_base/dependencies/tqt/debian/tqt3-designer.menu
deleted file mode 100644
index be078bd49..000000000
--- a/debian/_base/dependencies/tqt/debian/tqt3-designer.menu
+++ /dev/null
@@ -1,7 +0,0 @@
-?package(tqt3-designer):\
-        needs="x11"\
-        section="Applications/Programming"\
-        hints="TDE"\
-        title="TQt3 Designer"\
-        command="/usr/bin/tqdesigner"
-
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-designer.postinst b/debian/_base/dependencies/tqt/debian/tqt3-designer.postinst
index 54bc5ea75..640957616 100644
--- a/debian/_base/dependencies/tqt/debian/tqt3-designer.postinst
+++ b/debian/_base/dependencies/tqt/debian/tqt3-designer.postinst
@@ -2,9 +2,23 @@
 
 set -e
 
-update-alternatives --install \
-	/usr/bin/designer designer "/usr/bin/tqdesigner" "45" \
-	--slave /usr/share/man/man1/designer.1.gz designer.1.gz \
-	"/usr/share/man/man1/tqdesigner.1.gz"
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/designer designer "/usr/bin/tqdesigner" "45" \
+            --slave /usr/share/man/man1/designer.1.gz designer.1.gz \
+            "/usr/share/man/man1/tqdesigner.1.gz"
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
 
 #DEBHELPER#
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides b/debian/_base/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides
new file mode 100644
index 000000000..df03cdd00
--- /dev/null
+++ b/debian/_base/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides
@@ -0,0 +1,2 @@
+# Small utility tools that don't have a manual page.
+tqt3-dev-tools-compat: no-manual-page
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides b/debian/_base/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides
new file mode 100644
index 000000000..43f465497
--- /dev/null
+++ b/debian/_base/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides
@@ -0,0 +1,5 @@
+# The manual page is not available, this may be addressed sometime in the future.
+tqt3-dev-tools: no-manual-page
+
+# Building the framework on Windows is not out of the question.
+tqt3-dev-tools: windows-devel-file-in-package
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-dev-tools.postinst b/debian/_base/dependencies/tqt/debian/tqt3-dev-tools.postinst
index e7f14ec70..789e54f84 100644
--- a/debian/_base/dependencies/tqt/debian/tqt3-dev-tools.postinst
+++ b/debian/_base/dependencies/tqt/debian/tqt3-dev-tools.postinst
@@ -2,27 +2,41 @@
 
 set -e
 
-update-alternatives --install \
-	/usr/bin/moc moc "/usr/bin/tqmoc" "45" \
-	--slave /usr/share/man/man1/moc.1.gz moc.1.gz \
-	"/usr/share/man/man1/tqmoc.1.gz"
-
-update-alternatives --install \
-        /usr/bin/uic uic "/usr/bin/tquic" "45" \
-	--slave /usr/share/man/man1/uic.1.gz uic.1.gz \
-	"/usr/share/man/man1/tquic.1.gz"
-
-update-alternatives --install \
-        /usr/bin/lupdate lupdate "/usr/bin/tqlupdate" "45" \
-	--slave /usr/share/man/man1/lupdate.1.gz lupdate.1.gz \
-	"/usr/share/man/man1/tqlupdate.1.gz"
-
-update-alternatives --install \
-        /usr/bin/lrelease lrelease "/usr/bin/tqlrelease" "45" \
-	--slave /usr/share/man/man1/lrelease.1.gz lrelease.1.gz \
-	"/usr/share/man/man1/tqlrelease.1.gz"
-
-update-alternatives --install \
-        /usr/bin/qmake qmake "/usr/bin/tqmake" "45" \
+case "$1" in
+    configure)
+
+        update-alternatives --install \
+            /usr/bin/moc moc "/usr/bin/tqmoc" "45" \
+            --slave /usr/share/man/man1/moc.1.gz moc.1.gz \
+            "/usr/share/man/man1/tqmoc.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/uic uic "/usr/bin/tquic" "45" \
+            --slave /usr/share/man/man1/uic.1.gz uic.1.gz \
+            "/usr/share/man/man1/tquic.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/lupdate lupdate "/usr/bin/tqlupdate" "45" \
+            --slave /usr/share/man/man1/lupdate.1.gz lupdate.1.gz \
+            "/usr/share/man/man1/tqlupdate.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/lrelease lrelease "/usr/bin/tqlrelease" "45" \
+            --slave /usr/share/man/man1/lrelease.1.gz lrelease.1.gz \
+            "/usr/share/man/man1/tqlrelease.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/qmake qmake "/usr/bin/tqmake" "45" \
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
 
 #DEBHELPER#
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-doc.doc-base b/debian/_base/dependencies/tqt/debian/tqt3-doc.doc-base
index 08f4fcdc3..0751a0158 100644
--- a/debian/_base/dependencies/tqt/debian/tqt3-doc.doc-base
+++ b/debian/_base/dependencies/tqt/debian/tqt3-doc.doc-base
@@ -4,7 +4,7 @@ Author: Troll Tech, The TDE Team
 Abstract: Qt (TM) is a multi-platform C++ GUI toolkit. It is a product of
  Troll Tech. It is supported on all major variants of Microsoft Windows and
  Unix/X Windows. 
-Section: Apps/Programming
+Section: Programming/C++
 
 Format: HTML
 Index: /usr/share/doc/tqt3-doc/html/index.html
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-doc.lintian-overrides b/debian/_base/dependencies/tqt/debian/tqt3-doc.lintian-overrides
new file mode 100644
index 000000000..ff5a4b144
--- /dev/null
+++ b/debian/_base/dependencies/tqt/debian/tqt3-doc.lintian-overrides
@@ -0,0 +1,4 @@
+# There seem to be many parts in the documentation that need fixing.
+# Unfortunately, we do not have volunteers to do the fixing at the
+# moment. So this will have to wait for some long winter evenings.
+tqt3-doc: groff-message
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-linguist.menu b/debian/_base/dependencies/tqt/debian/tqt3-linguist.menu
deleted file mode 100644
index 976cb4b3c..000000000
--- a/debian/_base/dependencies/tqt/debian/tqt3-linguist.menu
+++ /dev/null
@@ -1,6 +0,0 @@
-?package(tqt3-linguist):\
-        needs="x11"\
-        section="Applications/Programming"\
-        hints="TDE"\
-        title="TQt3 Linguist"\
-        command="/usr/bin/tqlinguist"
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-linguist.postinst b/debian/_base/dependencies/tqt/debian/tqt3-linguist.postinst
index 48b3216db..a82c028fb 100644
--- a/debian/_base/dependencies/tqt/debian/tqt3-linguist.postinst
+++ b/debian/_base/dependencies/tqt/debian/tqt3-linguist.postinst
@@ -2,9 +2,22 @@
 
 set -e
 
-update-alternatives --install \
-	/usr/bin/linguist linguist "/usr/bin/tqlinguist" "45" \
-	--slave /usr/share/man/man1/linguist.1.gz linguist.1.gz \
-	"/usr/share/man/man1/tqlinguist.1.gz"
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/linguist linguist "/usr/bin/tqlinguist" "45" \
+            --slave /usr/share/man/man1/linguist.1.gz linguist.1.gz \
+            "/usr/share/man/man1/tqlinguist.1.gz"
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
 
 #DEBHELPER#
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-qtconfig.menu b/debian/_base/dependencies/tqt/debian/tqt3-qtconfig.menu
deleted file mode 100644
index 79f2ff8e5..000000000
--- a/debian/_base/dependencies/tqt/debian/tqt3-qtconfig.menu
+++ /dev/null
@@ -1,8 +0,0 @@
-?package(tqt3-qtconfig):\
-        needs="x11"\
-        section="Applications/System/Administration"\
-        title="TQt3 Config"\
-        longtitle="TQt3 Configuration Utility"\
-        hints="TQt3 config tool"\
-        command="/usr/bin/tqtconfig"
-
diff --git a/debian/_base/dependencies/tqt/debian/tqt3-qtconfig.postinst b/debian/_base/dependencies/tqt/debian/tqt3-qtconfig.postinst
index 773022f72..6f9635f52 100644
--- a/debian/_base/dependencies/tqt/debian/tqt3-qtconfig.postinst
+++ b/debian/_base/dependencies/tqt/debian/tqt3-qtconfig.postinst
@@ -2,9 +2,22 @@
 
 set -e
 
-update-alternatives --install \
-	/usr/bin/qtconfig qtconfig "/usr/bin/tqtconfig" "45" \
-	--slave /usr/share/man/man1/qtconfig.1.gz qtconfig.1.gz \
-	"/usr/share/man/man1/tqtconfig.1.gz"
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/qtconfig qtconfig "/usr/bin/tqtconfig" "45" \
+            --slave /usr/share/man/man1/qtconfig.1.gz qtconfig.1.gz \
+            "/usr/share/man/man1/tqtconfig.1.gz"
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
 
 #DEBHELPER#
diff --git a/dilos/dependencies/tqt/debian/changelog b/dilos/dependencies/tqt/debian/changelog
index 4d5a96f19..069445f6a 100644
--- a/dilos/dependencies/tqt/debian/changelog
+++ b/dilos/dependencies/tqt/debian/changelog
@@ -1,3 +1,15 @@
+tqt (4:14.2.0~pre253-0) forky; urgency=low
+
+  * Formalization of postinst scripts.
+  * Removed no longer valid *BSD architectures.
+  * Removed Replaces and Breaks referring to themselves.
+  * Removed menu files because desktop files are in their place.
+  * The epoch change is for historical reasons from the KDE3 era.
+  * Added emptying of dependency_libs field in LA files.
+  * Added lintian overrides installation.
+
+ -- Slávek Banko <slavek.banko@axis.cz>  Thu, 05 Feb 2026 20:46:38 +0100
+
 tqt (3:3.3.8-d-0ubuntu0) maverick; urgency=low
 
   * Upload of 3.3.8d (working revision) from GIT
diff --git a/dilos/dependencies/tqt/debian/control b/dilos/dependencies/tqt/debian/control
index c654f2946..9c02abec4 100644
--- a/dilos/dependencies/tqt/debian/control
+++ b/dilos/dependencies/tqt/debian/control
@@ -2,16 +2,16 @@ Source: tqt
 Maintainer: TDE Debian Team <team-debian@trinitydesktop.org>
 XSBC-Original-Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
 Uploaders: Ana Beatriz Guerrero Lopez <ana@debian.org>, Sune Vuorela <debian@pusling.com>, Fathi Boudra <fabo@debian.org>, Modestas Vainius <modestas@vainius.eu>
-Build-Depends: cdbs, debhelper (>= 10~), quilt, cpio, libnsl-dev | libc6-dev (<<2.32~), libxext-dev (>= 4.3.0.dfsg.1-4),
+Build-Depends: debhelper (>= 10~), quilt, cpio, libnsl-dev | libc6-dev (<<2.32~), libxext-dev (>= 4.3.0.dfsg.1-4),
  libxrandr-dev (>= 4.3.0.dfsg.1-4), libsm-dev (>= 4.3.0.dfsg.1-4),
  libxmu-dev (>= 4.3.0.dfsg.1-4), libice-dev (>= 4.3.0.dfsg.1-4),
  libx11-dev (>= 4.3.0.dfsg.1-4), libxt-dev (>= 4.3.0.dfsg.1-4), libxrender-dev,
  libxcursor-dev, libxinerama-dev, libxi-dev, zlib1g-dev, libjpeg-dev,
- libmng-dev (>= 1.0.3), libpng-dev, libfontconfig1-dev,
- libfreetype6-dev, libxft-dev, unixodbc-dev, uuid-dev, libglib2.0-dev,
+ libmng-dev (>= 1.0.3), libpng-dev, libfontconfig-dev | libfontconfig1-dev,
+ libfreetype-dev | libfreetype6-dev, libxft-dev, unixodbc-dev, uuid-dev, libglib2.0-dev,
  default-libmysqlclient-dev | libmysqlclient-dev, flex, libpq-dev, postgresql-server-dev-all (>= 117~) | libpq-dev (<< 9.3.3-2~), libaudio-dev, libcups2-dev,
- libgl1-mesa-dev | libgl-dev, libglu1-mesa-dev | libglu-dev, libsqlite3-dev,
- firebird-dev [!solaris-any] | firebird2.1-dev [i386 kfreebsd-i386 kfreebsd-amd64 knetbsd-i386 netbsd-i386 amd64 sparc powerpc armel !solaris-any] | firebird2-dev [i386 amd64 !solaris-any],
+ libgl-dev | libgl1-mesa-dev, libglu1-mesa-dev | libglu-dev, libsqlite3-dev,
+ firebird-dev [!solaris-any] | firebird2.1-dev [i386 amd64 sparc powerpc armel !solaris-any] | firebird2-dev [i386 amd64 !solaris-any],
  libkrb5-dev [solaris-any]
 Section: libs
 Priority: optional
@@ -22,9 +22,7 @@ Package: libtqt3-mt
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt (<< 4:14.0.0~)
-Breaks: libtqt3-mt (<< 4:14.0.0~)
-Depends: libtqt3-mt-data (= ${binary:Version}), ${shlibs:Depends}, fontconfig, libaudio2 [solaris-any]
+Depends: libtqt3-mt-data (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}, fontconfig, libaudio2 [solaris-any]
 Recommends: libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, libxmu6 (>= 4.3.0.dfsg.1-4)
 Suggests: libtqt3-mt-psql, libtqt3-mt-mysql, libtqt3-mt-odbc
 Description: TQt GUI Library (Threaded runtime version), Version 3
@@ -37,7 +35,7 @@ Architecture: all
 Multi-Arch: foreign
 Section: libs
 Conflicts: libtqt3-mt (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Data for TQt GUI Library (Threaded runtime version), Version 3
  This is the Trolltech TQt library, version 3. It's necessary for
  applications that link against the libtqt-mt.so.3, e.g. all Trinity
@@ -47,9 +45,7 @@ Package: libtqt3-mt-mysql
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-mysql (<< 4:14.0.0~)
-Breaks: libtqt3-mt-mysql (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: MySQL database driver for TQt3 (Threaded)
  This package contains the threaded MySQL plugin for TQt3. Install it if
  you intend to use or write TQt programs that are to access a MySQL DB.
@@ -58,9 +54,7 @@ Package: libtqt3-mt-odbc
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-odbc (<< 4:14.0.0~)
-Breaks: libtqt3-mt-odbc (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: ODBC database driver for TQt3 (Threaded)
  This package contains the threaded ODBC plugin for TQt3. Install it if
  you intend to use or write TQt programs that are to access an ODBC DB.
@@ -69,19 +63,17 @@ Package: libtqt3-mt-psql
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-psql (<< 4:14.0.0~)
-Breaks: libtqt3-mt-psql (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: PostgreSQL database driver for TQt3 (Threaded)
  This package contains the threaded PostgreSQL plugin for TQt3.
  Install it if you intend to use or write TQt programs that are
  to access a PostgreSQL DB.
 
 Package: libtqt3-mt-ibase
-Architecture: i386 kfreebsd-i386 kfreebsd-amd64 knetbsd-i386 netbsd-i386 amd64 sparc powerpc !solaris-any
+Architecture: i386 amd64 sparc powerpc !solaris-any
 Multi-Arch: same
 Section: libs
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: InterBase/FireBird database driver for TQt3 (Threaded)
  This package contains the threaded InterBase/FireBird plugin
  for TQt3. Install it if you intend to use or write TQt programs
@@ -91,9 +83,7 @@ Package: libtqt3-mt-sqlite
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-sqlite (<< 4:14.0.0~)
-Breaks: libtqt3-mt-sqlite (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: SQLite database driver for TQt3 (Threaded)
  This package contains the threaded SQLite plugin for TQt3. Install
  it if you intend to use or write TQt programs that are to access an
@@ -103,7 +93,7 @@ Package: libtqt3-mt-sqlite3
 Architecture: any
 Multi-Arch: same
 Section: libs
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: SQLite3 database driver for TQt3 (Threaded)
  This package contains the threaded SQLite3 plugin for TQt3. Install
  it if you intend to use or write TQt programs that are to access an
@@ -113,18 +103,17 @@ Package: libtqt3-mt-dev
 Architecture: any
 Multi-Arch: no
 Section: libdevel
-Replaces: libtqt3-mt-dev (<< 4:14.0.0~)
-Breaks: libtqt3-mt-dev (<< 4:14.0.0~)
 Conflicts: libtqt3-mt (<< 4:14.0.0~)
-Depends: libxext-dev (>= 4.3.0.dfsg.1-4), libxrandr-dev (>= 4.3.0.dfsg.1-4),
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ libxext-dev (>= 4.3.0.dfsg.1-4), libxrandr-dev (>= 4.3.0.dfsg.1-4),
  libsm-dev (>= 4.3.0.dfsg.1-4), libxmu-dev (>= 4.3.0.dfsg.1-4),
  libice-dev (>= 4.3.0.dfsg.1-4), libx11-dev (>= 4.3.0.dfsg.1-4),
  libxt-dev (>= 4.3.0.dfsg.1-4), libxrender-dev, libxcursor-dev, uuid-dev,
  libxinerama-dev, libxi-dev, zlib1g-dev, libjpeg-dev, libmng-dev (>= 1.0.3),
- libpng-dev, libfontconfig1-dev, libfreetype6-dev,
- libxft-dev, libaudio-dev, libgl1-mesa-dev | libgl-dev,
+ libpng-dev, libfontconfig-dev | libfontconfig1-dev, libfreetype-dev | libfreetype6-dev,
+ libxft-dev, libaudio-dev, libgl-dev | libgl1-mesa-dev,
  libglu1-mesa-dev | libglu-dev, libc6-dev [!solaris-any], libtqt3-mt (= ${binary:Version}),
- libtqt3-headers (= ${binary:Version}), tqt3-dev-tools (= ${binary:Version})
+ libtqt3-headers (= ${source:Version}), tqt3-dev-tools (= ${binary:Version})
 Recommends: libcups2-dev
 Suggests: libtqt3-i18n, tqt3-doc
 Description: TQt development files (Threaded)
@@ -138,8 +127,7 @@ Package: libtqt3-headers
 Architecture: all
 Multi-Arch: foreign
 Section: devel
-Replaces: libtqt3-headers (<< 4:14.0.0~)
-Breaks: libtqt3-headers (<< 4:14.0.0~)
+Depends: ${misc:Depends}
 Recommends: libtqt3-mt-dev
 Description:  TQt3 header files
  This package contains all header files for libqt and libtqt-mt which come
@@ -150,9 +138,7 @@ Package: tqt3-dev-tools
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-dev-tools (<< 4:14.0.0~)
-Breaks: tqt3-dev-tools (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Recommends: libtqt3-mt-dev
 Description: TQt3 development tools
  This package contains all tools that are necessary to build programs
@@ -163,12 +149,10 @@ Package: tqt3-designer
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-designer (<< 4:14.0.0~)
-Breaks: tqt3-designer (<< 4:14.0.0~)
-Depends: tqt3-designer-plugins (= ${binary:Version}), ${shlibs:Depends}
+Depends: tqt3-designer-plugins (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 Recommends: tqt3-dev-tools
 Suggests: tqt3-assistant, tqt3-doc
-Description: TQt3 Designer
+Description: TQt Designer - graphic designer for GUI modeling
  The TQt Designer is a GUI design program that interactively lets you
  construct user interfaces for the TQt library. Additionally it lets you
  create whole project and works together with the database drivers
@@ -183,16 +167,19 @@ Architecture: any
 Multi-Arch: same
 Section: devel
 Conflicts: tqt3-designer (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
-Description: TQt3 Designer plugins
- This package contains plugins for TQt3 Designer
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Plugins for TQt Designer
+ The TQt Designer is a GUI design program that interactively lets you
+ construct user interfaces for the TQt library.
+ .
+ This package contains plugins for TQt Designer
 
 Package: libtqt3-apps-dev
 Architecture: any
 Multi-Arch: same
 Section: libdevel
 Conflicts: tqt3-apps-dev (<< 4:14.1.0~)
-Depends: ${shlibs:Depends}, libtqt3-mt (= ${binary:Version})
+Depends: ${shlibs:Depends}, ${misc:Depends}, libtqt3-mt (= ${binary:Version})
 Description: TQt3 Developer applications development libraries
  This package contains additional libraries that ship with the applications
  included with TQt - the TQt Designer and the TQt Assistant.
@@ -201,9 +188,7 @@ Package: tqt3-apps-dev
 Architecture: any
 Multi-Arch: no
 Section: devel
-Replaces: tqt3-apps-dev (<< 4:14.0.0~)
-Breaks: tqt3-apps-dev (<< 4:14.0.0~)
-Depends: libtqt3-mt-dev, libtqt3-apps-dev
+Depends: ${shlibs:Depends}, ${misc:Depends}, libtqt3-mt-dev, libtqt3-apps-dev
 Description: TQt3 Developer applications development files
  This package is intended for developers who want to develop applications
  using the additional libraries that ship with the applications
@@ -217,11 +202,9 @@ Package: tqt3-linguist
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-linguist (<< 4:14.0.0~)
-Breaks: tqt3-linguist (<< 4:14.0.0~)
 Suggests: tqt3-assistant
-Depends: ${shlibs:Depends}
-Description: The TQt3 Linguist
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: TQt3 Linguist - translators tool
  This package contains the TQt3 Linguist which provides translators a
  tool perfect for translating any TQt-based application into other
  languages and can be used and installed independently of any TQt
@@ -231,10 +214,8 @@ Package: tqt3-assistant
 Architecture: any
 Multi-Arch: foreign
 Section: x11
-Replaces: tqt3-assistant (<< 4:14.0.0~)
-Breaks: tqt3-assistant (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}, tqt3-doc
-Description: The TQt3 assistant application
+Depends: ${shlibs:Depends}, ${misc:Depends}, tqt3-doc
+Description: TQt3 assistant application
  This package contains the TQt3 Assistant, an easy to use frontend for
  the complete TQt3 documentation and serves as an online help viewer for
  any TQt program that wants to give the usesr access to online help.
@@ -242,18 +223,16 @@ Description: The TQt3 assistant application
  for the TQt3 Designer and Linguist as well as qmake and the TQt 3 API
  documentation.
  .
- Developers of TQt Application who want to faciliate the TQt Assistant for online
- help display should refer to the README.Debian file for libtqt3-mt-dev and
- the package tqt3-apps-dev.
+ Developers of TQt Application who want to faciliate the TQt Assistant
+ for online help display should refer to the README.Debian file for
+ libtqt3-mt-dev and the package tqt3-apps-dev.
 
 Package: tqt3-qtconfig
 Architecture: any
 Multi-Arch: foreign
 Section: x11
-Replaces: tqt3-qtconfig (<< 4:14.0.0~)
-Breaks: tqt3-qtconfig (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
-Description: The TQt3 Configuration Application
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: TQt3 Configuration Application
  The TQt Configuration program allows endusers to configure the look
  and behavior of any TQt3 application. It is mostly only necessary
  on systems which don't run TDE because the Trinity control center already
@@ -266,10 +245,8 @@ Package: tqt3-dev-tools-compat
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-dev-tools-compat (<< 4:14.0.0~)
-Breaks: tqt3-dev-tools-compat (<< 4:14.0.0~)
 Recommends: libtqt3-mt-dev
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Conversion utilities for TQt3 development
  This package contains some older TQt tools (namely
  tqm2ts, tqtmergetr, tqtfindtr and msg2tqm). These tools are needed only by
@@ -283,8 +260,7 @@ Package: libtqt3-i18n
 Architecture: all
 Multi-Arch: foreign
 Section: libs
-Replaces: libtqt3-i18n (<< 4:14.0.0~)
-Breaks: libtqt3-i18n (<< 4:14.0.0~)
+Depends: ${misc:Depends}
 Recommends: libtqt3-mt | libtqt3-mt-t64
 Description: i18n files for TQt3 library
  This package contains the internationalization files for the TQt library.
@@ -295,9 +271,8 @@ Package: tqt3-doc
 Architecture: all
 Multi-Arch: foreign
 Section: doc
-Replaces: tqt3-doc (<< 4:14.0.0~)
-Breaks: tqt3-doc (<< 4:14.0.0~)
-Priority: extra
+Priority: optional
+Depends: ${misc:Depends}
 Suggests: libtqt3-headers, tqt3-assistant | www-browser
 Description: TQt3 API documentation
  This package contains the complete API documentation for TQt3.
@@ -309,10 +284,8 @@ Package: tqt3-examples
 Architecture: all
 Multi-Arch: foreign
 Section: doc
-Replaces: tqt3-examples (<< 4:14.0.0~)
-Breaks: tqt3-examples (<< 4:14.0.0~)
-Priority: extra
-Depends: libtqt3-mt-dev (>= ${binary:Version})
+Priority: optional
+Depends: ${misc:Depends}, libtqt3-mt-dev (>= ${binary:Version})
 Suggests: tqt3-apps-dev
 Description:  Examples for TQt3
  These are examples provided with TQt3. They may be especially useful for
@@ -323,10 +296,8 @@ Package: tqt-x11-free-dbg
 Section: libdevel
 Architecture: linux-any
 Multi-Arch: no
-Replaces: tqt-x11-free-dbg (<< 4:14.0.0~)
-Breaks: tqt-x11-free-dbg (<< 4:14.0.0~)
-Priority: extra
-Depends: libtqt3-mt (= ${binary:Version}), gdb
+Priority: optional
+Depends: ${misc:Depends}, libtqt3-mt (= ${binary:Version}), gdb
 Description: debugging symbols for tqt-x11-free binaries
  This package contains the debugging symbols associated with tqt-x11-free.
  They will automatically be used by gdb for debugging TQt-related
diff --git a/dilos/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides b/dilos/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides
new file mode 100644
index 000000000..17d5be50c
--- /dev/null
+++ b/dilos/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides
@@ -0,0 +1,2 @@
+# The package name is not in the form of a shared library.
+libtqt3-apps-dev: package-name-doesnt-match-sonames
diff --git a/dilos/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides b/dilos/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides
new file mode 100644
index 000000000..abf70f90f
--- /dev/null
+++ b/dilos/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides
@@ -0,0 +1,2 @@
+# It was intended that the sqlite module would not need an additional dependency.
+libtqt3-mt-sqlite: embedded-library
diff --git a/dilos/dependencies/tqt/debian/libtqt3-mt.lintian-overrides b/dilos/dependencies/tqt/debian/libtqt3-mt.lintian-overrides
new file mode 100644
index 000000000..b003daf64
--- /dev/null
+++ b/dilos/dependencies/tqt/debian/libtqt3-mt.lintian-overrides
@@ -0,0 +1,2 @@
+# For historical reasons, the package has the suffix 'mt'.
+libtqt3-mt: package-name-doesnt-match-sonames
diff --git a/dilos/dependencies/tqt/debian/libtqt3-mt.postrm b/dilos/dependencies/tqt/debian/libtqt3-mt.postrm
index 6556affdc..c6057d783 100644
--- a/dilos/dependencies/tqt/debian/libtqt3-mt.postrm
+++ b/dilos/dependencies/tqt/debian/libtqt3-mt.postrm
@@ -4,10 +4,16 @@ if [ "${BASEDIR:=/}" = "/" ]; then
 	BASEDIR=""
 fi
 
-if [ "$1" = "purge" ]; then
-  if [ -d "${BASEDIR}/usr/share/doc/libtqt3-mt/" ]; then
-    rm -rf ${BASEDIR}/usr/share/doc/libtqt3-mt/
-  fi
-fi
+set -e
+
+case "$1" in
+
+    purge)
+      if [ -d "${BASEDIR}/usr/share/doc/libtqt3-mt/" ]; then
+        rm -rf ${BASEDIR}/usr/share/doc/libtqt3-mt/
+      fi
+    ;;
+
+esac
 
 #DEBHELPER#
diff --git a/dilos/dependencies/tqt/debian/rules b/dilos/dependencies/tqt/debian/rules
index 4960cd195..12b310deb 100755
--- a/dilos/dependencies/tqt/debian/rules
+++ b/dilos/dependencies/tqt/debian/rules
@@ -147,10 +147,11 @@ ifeq ($(DEB_TIME64_API),true)
 	    [ -d $$a ] || [ -f $$a.t64 ] || \
 	    (cp -a $$a debian/libtqt3-mt$(DEB_TIME64_SUFFIX).$${a##*.} && mv $$a $$a.t64); \
 	done
+	sed -i -e "s|^libtqt3-mt:|libtqt3-mt$(DEB_TIME64_SUFFIX):|" \
+	    debian/libtqt3-mt$(DEB_TIME64_SUFFIX).lintian-overrides
 	[ -f debian/control.t64 ] || \
 	sed -i.t64 \
-	    -e "s/^\\(Package: libtqt3-mt\\)$$/\\1$(DEB_TIME64_SUFFIX)/" \
-	    -e "s/^\\(Replaces\\|Breaks\\): \\(libtqt3-mt\\)\\( \|$$\)/\\1: \\2, \\2$(DEB_TIME64_SUFFIX)\\3/" \
+	    -e "s/^Package: \\(libtqt3-mt\\)$$/Package: \\1$(DEB_TIME64_SUFFIX)\\nReplaces: \\1\\nBreaks: \\1/" \
 	    -e "s/\\(libtqt3-mt\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
 	    debian/control
 endif
@@ -247,8 +248,7 @@ ifeq ($(DEB_TIME64_API),true)
 	xargs -r rm
 	[ -f debian/control.t64 ] || \
 	sed -i.t64 \
-	    -e "s/^\\(Package: libtqt3-mt\\)$$/\\1$(DEB_TIME64_SUFFIX)/" \
-	    -e "s/^\\(Replaces\\|Breaks\\): \\(libtqt3-mt\\)\\( \|$$\)/\\1: \\2, \\2$(DEB_TIME64_SUFFIX)\\3/" \
+	    -e "s/^Package: \\(libtqt3-mt\\)$$/Package: \\1$(DEB_TIME64_SUFFIX)\\nReplaces: \\1\\nBreaks: \\1/" \
 	    -e "s/\\(libtqt3-mt\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
 	    debian/control
 else
@@ -368,9 +368,19 @@ binary-indep: build install
 	gzip -n > tqt3-examples.tar.gz
 	install -D `pwd`/debian/doc/tqt3-examples.tar.gz `pwd`/debian/tqt3-examples/usr/share/doc/tqt3-examples/tqt3-examples.tar.gz
 
+	# install lintian-overrides
+	mkdir -p $(CURDIR)/debian
+	for P in \
+		tqt3-doc \
+	; do \
+		mkdir -p $(CURDIR)/debian/$$P//usr/share/lintian/overrides; \
+		install --mode 0644 debian/$$P.lintian-overrides $(CURDIR)/debian/$$P/usr/share/lintian/overrides/$$P; \
+	done
+
 	# proceed
 	dh_compress -i -Xhtml/
 	dh_link -i
+	dh_lintian -i
 
 	dh_fixperms -i
 	dh_installdeb -i
@@ -467,6 +477,10 @@ binary-arch: build install
 	rm -rf debian/tqt3-designer/usr/share/tqt3/tools/tqtconv2ui/.obj
 	rm -f debian/tqt3-designer/usr/share/tqt3/tools/tqtconv2ui/Makefile
 
+	# emptying the dependency_libs field in .la files
+	find debian -name '*.la' -print0 |\
+	xargs -r0 sed -i "/dependency_libs/ s/'.*'/''/"
+
 	# run remaining debhelper scripts
 	dh_installdocs -a $(IBASE) -XREADME.Debian
 	dh_installmenu -a $(IBASE)
@@ -477,6 +491,7 @@ binary-arch: build install
 	dh_installman -a $(IBASE)
 
 	dh_link -a $(IBASE)
+	dh_lintian -a $(IBASE)
 	dh_strip -a $(IBASE) --dbg-package=tqt-x11-free-dbg
 	$(if $(wildcard /usr/bin/dh_strip_nondeterminism),\
 	dh_strip_nondeterminism -a $(IBASE))
diff --git a/dilos/dependencies/tqt/debian/source.lintian-overrides b/dilos/dependencies/tqt/debian/source.lintian-overrides
new file mode 100644
index 000000000..e842f3a01
--- /dev/null
+++ b/dilos/dependencies/tqt/debian/source.lintian-overrides
@@ -0,0 +1,12 @@
+# We build for many distribution versions and therefore need
+# the distribution version as part of the package version,
+# which is unintentionally understood as NMU.
+tqt source: source-nmu-has-incorrect-version-number
+tqt source: binary-nmu-debian-revision-in-source
+tqt source: no-nmu-in-changelog
+
+# We want XZ regardless of the default compression.
+tqt source: custom-compression-in-debian-source-options
+
+# The ltmain.sh file comes from a third-party source.
+tqt source: ancient-libtool
diff --git a/dilos/dependencies/tqt/debian/tqt3-assistant.lintian-overrides b/dilos/dependencies/tqt/debian/tqt3-assistant.lintian-overrides
new file mode 100644
index 000000000..df3363843
--- /dev/null
+++ b/dilos/dependencies/tqt/debian/tqt3-assistant.lintian-overrides
@@ -0,0 +1,2 @@
+# The manual page is not available, this may be addressed sometime in the future.
+tqt3-assistant: no-manual-page
diff --git a/dilos/dependencies/tqt/debian/tqt3-assistant.menu b/dilos/dependencies/tqt/debian/tqt3-assistant.menu
deleted file mode 100644
index d59f83bd0..000000000
--- a/dilos/dependencies/tqt/debian/tqt3-assistant.menu
+++ /dev/null
@@ -1,6 +0,0 @@
-?package(tqt3-assistant):\
-        needs="x11"\
-        section="Applications/Programming"\
-        hints="TDE"\
-        title="TQt3 Assistant"\
-        command="/usr/bin/tqassistant"
diff --git a/dilos/dependencies/tqt/debian/tqt3-assistant.postinst b/dilos/dependencies/tqt/debian/tqt3-assistant.postinst
index 2852229d7..d742ea298 100644
--- a/dilos/dependencies/tqt/debian/tqt3-assistant.postinst
+++ b/dilos/dependencies/tqt/debian/tqt3-assistant.postinst
@@ -5,7 +5,20 @@ if [ "${BASEDIR:=/}" = "/" ]; then
 	BASEDIR=""
 fi
 
-update-alternatives --install \
-	/usr/bin/assistant assistant "/usr/bin/tqassistant" "45" \
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/assistant assistant "/usr/bin/tqassistant" "45" \
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
 
 #DEBHELPER#
diff --git a/dilos/dependencies/tqt/debian/tqt3-designer.lintian-overrides b/dilos/dependencies/tqt/debian/tqt3-designer.lintian-overrides
new file mode 100644
index 000000000..69810846a
--- /dev/null
+++ b/dilos/dependencies/tqt/debian/tqt3-designer.lintian-overrides
@@ -0,0 +1,2 @@
+# The manual page is not available, this may be addressed sometime in the future.
+tqt3-designer: no-manual-page
diff --git a/dilos/dependencies/tqt/debian/tqt3-designer.menu b/dilos/dependencies/tqt/debian/tqt3-designer.menu
deleted file mode 100644
index be078bd49..000000000
--- a/dilos/dependencies/tqt/debian/tqt3-designer.menu
+++ /dev/null
@@ -1,7 +0,0 @@
-?package(tqt3-designer):\
-        needs="x11"\
-        section="Applications/Programming"\
-        hints="TDE"\
-        title="TQt3 Designer"\
-        command="/usr/bin/tqdesigner"
-
diff --git a/dilos/dependencies/tqt/debian/tqt3-designer.postinst b/dilos/dependencies/tqt/debian/tqt3-designer.postinst
index 4ebd22505..52a6e301e 100644
--- a/dilos/dependencies/tqt/debian/tqt3-designer.postinst
+++ b/dilos/dependencies/tqt/debian/tqt3-designer.postinst
@@ -5,9 +5,23 @@ if [ "${BASEDIR:=/}" = "/" ]; then
 	BASEDIR=""
 fi
 
-update-alternatives --install \
-	/usr/bin/designer designer "/usr/bin/tqdesigner" "45" \
-	--slave /usr/share/man/man1/designer.1.gz designer.1.gz \
-	"/usr/share/man/man1/tqdesigner.1.gz"
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/designer designer "/usr/bin/tqdesigner" "45" \
+            --slave /usr/share/man/man1/designer.1.gz designer.1.gz \
+            "/usr/share/man/man1/tqdesigner.1.gz"
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
 
 #DEBHELPER#
diff --git a/dilos/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides b/dilos/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides
new file mode 100644
index 000000000..df03cdd00
--- /dev/null
+++ b/dilos/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides
@@ -0,0 +1,2 @@
+# Small utility tools that don't have a manual page.
+tqt3-dev-tools-compat: no-manual-page
diff --git a/dilos/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides b/dilos/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides
new file mode 100644
index 000000000..43f465497
--- /dev/null
+++ b/dilos/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides
@@ -0,0 +1,5 @@
+# The manual page is not available, this may be addressed sometime in the future.
+tqt3-dev-tools: no-manual-page
+
+# Building the framework on Windows is not out of the question.
+tqt3-dev-tools: windows-devel-file-in-package
diff --git a/dilos/dependencies/tqt/debian/tqt3-dev-tools.postinst b/dilos/dependencies/tqt/debian/tqt3-dev-tools.postinst
index 9af54f964..cbe06623a 100644
--- a/dilos/dependencies/tqt/debian/tqt3-dev-tools.postinst
+++ b/dilos/dependencies/tqt/debian/tqt3-dev-tools.postinst
@@ -5,27 +5,41 @@ if [ "${BASEDIR:=/}" = "/" ]; then
 	BASEDIR=""
 fi
 
-update-alternatives --install \
-	/usr/bin/moc moc "/usr/bin/tqmoc" "45" \
-	--slave /usr/share/man/man1/moc.1.gz moc.1.gz \
-	"/usr/share/man/man1/tqmoc.1.gz"
-
-update-alternatives --install \
-        /usr/bin/uic uic "/usr/bin/tquic" "45" \
-	--slave /usr/share/man/man1/uic.1.gz uic.1.gz \
-	"/usr/share/man/man1/tquic.1.gz"
-
-update-alternatives --install \
-        /usr/bin/lupdate lupdate "/usr/bin/tqlupdate" "45" \
-	--slave /usr/share/man/man1/lupdate.1.gz lupdate.1.gz \
-	"/usr/share/man/man1/tqlupdate.1.gz"
-
-update-alternatives --install \
-        /usr/bin/lrelease lrelease "/usr/bin/tqlrelease" "45" \
-	--slave /usr/share/man/man1/lrelease.1.gz lrelease.1.gz \
-	"/usr/share/man/man1/tqlrelease.1.gz"
-
-update-alternatives --install \
-        /usr/bin/qmake qmake "/usr/bin/tqmake" "45" \
+case "$1" in
+    configure)
+
+        update-alternatives --install \
+            /usr/bin/moc moc "/usr/bin/tqmoc" "45" \
+            --slave /usr/share/man/man1/moc.1.gz moc.1.gz \
+            "/usr/share/man/man1/tqmoc.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/uic uic "/usr/bin/tquic" "45" \
+            --slave /usr/share/man/man1/uic.1.gz uic.1.gz \
+            "/usr/share/man/man1/tquic.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/lupdate lupdate "/usr/bin/tqlupdate" "45" \
+            --slave /usr/share/man/man1/lupdate.1.gz lupdate.1.gz \
+            "/usr/share/man/man1/tqlupdate.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/lrelease lrelease "/usr/bin/tqlrelease" "45" \
+            --slave /usr/share/man/man1/lrelease.1.gz lrelease.1.gz \
+            "/usr/share/man/man1/tqlrelease.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/qmake qmake "/usr/bin/tqmake" "45" \
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
 
 #DEBHELPER#
diff --git a/dilos/dependencies/tqt/debian/tqt3-doc.doc-base b/dilos/dependencies/tqt/debian/tqt3-doc.doc-base
index 08f4fcdc3..0751a0158 100644
--- a/dilos/dependencies/tqt/debian/tqt3-doc.doc-base
+++ b/dilos/dependencies/tqt/debian/tqt3-doc.doc-base
@@ -4,7 +4,7 @@ Author: Troll Tech, The TDE Team
 Abstract: Qt (TM) is a multi-platform C++ GUI toolkit. It is a product of
  Troll Tech. It is supported on all major variants of Microsoft Windows and
  Unix/X Windows. 
-Section: Apps/Programming
+Section: Programming/C++
 
 Format: HTML
 Index: /usr/share/doc/tqt3-doc/html/index.html
diff --git a/dilos/dependencies/tqt/debian/tqt3-doc.lintian-overrides b/dilos/dependencies/tqt/debian/tqt3-doc.lintian-overrides
new file mode 100644
index 000000000..ff5a4b144
--- /dev/null
+++ b/dilos/dependencies/tqt/debian/tqt3-doc.lintian-overrides
@@ -0,0 +1,4 @@
+# There seem to be many parts in the documentation that need fixing.
+# Unfortunately, we do not have volunteers to do the fixing at the
+# moment. So this will have to wait for some long winter evenings.
+tqt3-doc: groff-message
diff --git a/dilos/dependencies/tqt/debian/tqt3-linguist.menu b/dilos/dependencies/tqt/debian/tqt3-linguist.menu
deleted file mode 100644
index 976cb4b3c..000000000
--- a/dilos/dependencies/tqt/debian/tqt3-linguist.menu
+++ /dev/null
@@ -1,6 +0,0 @@
-?package(tqt3-linguist):\
-        needs="x11"\
-        section="Applications/Programming"\
-        hints="TDE"\
-        title="TQt3 Linguist"\
-        command="/usr/bin/tqlinguist"
diff --git a/dilos/dependencies/tqt/debian/tqt3-linguist.postinst b/dilos/dependencies/tqt/debian/tqt3-linguist.postinst
index fc135a3e1..4b09affe4 100644
--- a/dilos/dependencies/tqt/debian/tqt3-linguist.postinst
+++ b/dilos/dependencies/tqt/debian/tqt3-linguist.postinst
@@ -5,9 +5,22 @@ if [ "${BASEDIR:=/}" = "/" ]; then
 	BASEDIR=""
 fi
 
-update-alternatives --install \
-	/usr/bin/linguist linguist "/usr/bin/tqlinguist" "45" \
-	--slave /usr/share/man/man1/linguist.1.gz linguist.1.gz \
-	"/usr/share/man/man1/tqlinguist.1.gz"
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/linguist linguist "/usr/bin/tqlinguist" "45" \
+            --slave /usr/share/man/man1/linguist.1.gz linguist.1.gz \
+            "/usr/share/man/man1/tqlinguist.1.gz"
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
 
 #DEBHELPER#
diff --git a/dilos/dependencies/tqt/debian/tqt3-qtconfig.menu b/dilos/dependencies/tqt/debian/tqt3-qtconfig.menu
deleted file mode 100644
index 79f2ff8e5..000000000
--- a/dilos/dependencies/tqt/debian/tqt3-qtconfig.menu
+++ /dev/null
@@ -1,8 +0,0 @@
-?package(tqt3-qtconfig):\
-        needs="x11"\
-        section="Applications/System/Administration"\
-        title="TQt3 Config"\
-        longtitle="TQt3 Configuration Utility"\
-        hints="TQt3 config tool"\
-        command="/usr/bin/tqtconfig"
-
diff --git a/dilos/dependencies/tqt/debian/tqt3-qtconfig.postinst b/dilos/dependencies/tqt/debian/tqt3-qtconfig.postinst
index 3964f38d3..1f6e64d06 100644
--- a/dilos/dependencies/tqt/debian/tqt3-qtconfig.postinst
+++ b/dilos/dependencies/tqt/debian/tqt3-qtconfig.postinst
@@ -5,9 +5,22 @@ if [ "${BASEDIR:=/}" = "/" ]; then
 	BASEDIR=""
 fi
 
-update-alternatives --install \
-	/usr/bin/qtconfig qtconfig "/usr/bin/tqtconfig" "45" \
-	--slave /usr/share/man/man1/qtconfig.1.gz qtconfig.1.gz \
-	"/usr/share/man/man1/tqtconfig.1.gz"
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/qtconfig qtconfig "/usr/bin/tqtconfig" "45" \
+            --slave /usr/share/man/man1/qtconfig.1.gz qtconfig.1.gz \
+            "/usr/share/man/man1/tqtconfig.1.gz"
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
 
 #DEBHELPER#
diff --git a/ubuntu/_base/dependencies/tqt/debian/changelog b/ubuntu/_base/dependencies/tqt/debian/changelog
index 4d5a96f19..069445f6a 100644
--- a/ubuntu/_base/dependencies/tqt/debian/changelog
+++ b/ubuntu/_base/dependencies/tqt/debian/changelog
@@ -1,3 +1,15 @@
+tqt (4:14.2.0~pre253-0) forky; urgency=low
+
+  * Formalization of postinst scripts.
+  * Removed no longer valid *BSD architectures.
+  * Removed Replaces and Breaks referring to themselves.
+  * Removed menu files because desktop files are in their place.
+  * The epoch change is for historical reasons from the KDE3 era.
+  * Added emptying of dependency_libs field in LA files.
+  * Added lintian overrides installation.
+
+ -- Slávek Banko <slavek.banko@axis.cz>  Thu, 05 Feb 2026 20:46:38 +0100
+
 tqt (3:3.3.8-d-0ubuntu0) maverick; urgency=low
 
   * Upload of 3.3.8d (working revision) from GIT
diff --git a/ubuntu/_base/dependencies/tqt/debian/control b/ubuntu/_base/dependencies/tqt/debian/control
index 0132b3c05..151c0878d 100644
--- a/ubuntu/_base/dependencies/tqt/debian/control
+++ b/ubuntu/_base/dependencies/tqt/debian/control
@@ -2,16 +2,16 @@ Source: tqt
 Maintainer: TDE Debian Team <team-debian@trinitydesktop.org>
 XSBC-Original-Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
 Uploaders: Ana Beatriz Guerrero Lopez <ana@debian.org>, Sune Vuorela <debian@pusling.com>, Fathi Boudra <fabo@debian.org>, Modestas Vainius <modestas@vainius.eu>
-Build-Depends: cdbs, debhelper (>= 10~), quilt, cpio, libnsl-dev | libc6-dev (<<2.32~), libxext-dev (>= 4.3.0.dfsg.1-4),
+Build-Depends: debhelper (>= 10~), quilt, cpio, libnsl-dev | libc6-dev (<<2.32~), libxext-dev (>= 4.3.0.dfsg.1-4),
  libxrandr-dev (>= 4.3.0.dfsg.1-4), libsm-dev (>= 4.3.0.dfsg.1-4),
  libxmu-dev (>= 4.3.0.dfsg.1-4), libice-dev (>= 4.3.0.dfsg.1-4),
  libx11-dev (>= 4.3.0.dfsg.1-4), libxt-dev (>= 4.3.0.dfsg.1-4), libxrender-dev,
  libxcursor-dev, libxinerama-dev, libxi-dev, zlib1g-dev, libjpeg-dev,
- libmng-dev (>= 1.0.3), libpng-dev, libfontconfig1-dev,
- libfreetype6-dev, libxft-dev, unixodbc-dev, uuid-dev, libglib2.0-dev,
+ libmng-dev (>= 1.0.3), libpng-dev, libfontconfig-dev | libfontconfig1-dev,
+ libfreetype-dev | libfreetype6-dev, libxft-dev, unixodbc-dev, uuid-dev, libglib2.0-dev,
  default-libmysqlclient-dev | libmysqlclient-dev, flex, libpq-dev, postgresql-server-dev-all (>= 117~) | libpq-dev (<< 9.3.3-2~), libaudio-dev, libcups2-dev,
- libgl1-mesa-dev | libgl-dev, libglu1-mesa-dev | libglu-dev, libsqlite3-dev,
- firebird-dev | firebird2.1-dev [i386 kfreebsd-i386 kfreebsd-amd64 knetbsd-i386 netbsd-i386 amd64 sparc powerpc armel] | firebird2-dev [i386 amd64]
+ libgl-dev | libgl1-mesa-dev, libglu1-mesa-dev | libglu-dev, libsqlite3-dev,
+ firebird-dev | firebird2.1-dev [i386 amd64 sparc powerpc armel] | firebird2-dev [i386 amd64]
 Section: libs
 Priority: optional
 Standards-Version: 3.8.4
@@ -21,9 +21,7 @@ Package: libtqt3-mt
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt (<< 4:14.0.0~)
-Breaks: libtqt3-mt (<< 4:14.0.0~)
-Depends: libtqt3-mt-data (= ${binary:Version}), ${shlibs:Depends}, fontconfig
+Depends: libtqt3-mt-data (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}, fontconfig
 Recommends: libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, libxmu6 (>= 4.3.0.dfsg.1-4)
 Suggests: libtqt3-mt-psql, libtqt3-mt-mysql, libtqt3-mt-odbc
 Description: TQt GUI Library (Threaded runtime version), Version 3
@@ -36,7 +34,7 @@ Architecture: all
 Multi-Arch: foreign
 Section: libs
 Conflicts: libtqt3-mt (<< 4:14.1.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Data for TQt GUI Library (Threaded runtime version), Version 3
  This is the Trolltech TQt library, version 3. It's necessary for
  applications that link against the libtqt-mt.so.3, e.g. all Trinity
@@ -46,9 +44,7 @@ Package: libtqt3-mt-mysql
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-mysql (<< 4:14.0.0~)
-Breaks: libtqt3-mt-mysql (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: MySQL database driver for TQt3 (Threaded)
  This package contains the threaded MySQL plugin for TQt3. Install it if
  you intend to use or write TQt programs that are to access a MySQL DB.
@@ -57,9 +53,7 @@ Package: libtqt3-mt-odbc
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-odbc (<< 4:14.0.0~)
-Breaks: libtqt3-mt-odbc (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: ODBC database driver for TQt3 (Threaded)
  This package contains the threaded ODBC plugin for TQt3. Install it if
  you intend to use or write TQt programs that are to access an ODBC DB.
@@ -68,19 +62,17 @@ Package: libtqt3-mt-psql
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-psql (<< 4:14.0.0~)
-Breaks: libtqt3-mt-psql (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: PostgreSQL database driver for TQt3 (Threaded)
  This package contains the threaded PostgreSQL plugin for TQt3.
  Install it if you intend to use or write TQt programs that are
  to access a PostgreSQL DB.
 
 Package: libtqt3-mt-ibase
-Architecture: i386 kfreebsd-i386 kfreebsd-amd64 knetbsd-i386 netbsd-i386 amd64 sparc powerpc
+Architecture: i386 amd64 sparc powerpc
 Multi-Arch: same
 Section: libs
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: InterBase/FireBird database driver for TQt3 (Threaded)
  This package contains the threaded InterBase/FireBird plugin
  for TQt3. Install it if you intend to use or write TQt programs
@@ -90,9 +82,7 @@ Package: libtqt3-mt-sqlite
 Architecture: any
 Multi-Arch: same
 Section: libs
-Replaces: libtqt3-mt-sqlite (<< 4:14.0.0~)
-Breaks: libtqt3-mt-sqlite (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: SQLite database driver for TQt3 (Threaded)
  This package contains the threaded SQLite plugin for TQt3. Install
  it if you intend to use or write TQt programs that are to access an
@@ -102,7 +92,7 @@ Package: libtqt3-mt-sqlite3
 Architecture: any
 Multi-Arch: same
 Section: libs
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: SQLite3 database driver for TQt3 (Threaded)
  This package contains the threaded SQLite3 plugin for TQt3. Install
  it if you intend to use or write TQt programs that are to access an
@@ -112,18 +102,17 @@ Package: libtqt3-mt-dev
 Architecture: any
 Multi-Arch: no
 Section: libdevel
-Replaces: libtqt3-mt-dev (<< 4:14.0.0~)
-Breaks: libtqt3-mt-dev (<< 4:14.0.0~)
 Conflicts: libtqt3-mt (<< 4:14.1.0~)
-Depends: libxext-dev (>= 4.3.0.dfsg.1-4), libxrandr-dev (>= 4.3.0.dfsg.1-4),
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ libxext-dev (>= 4.3.0.dfsg.1-4), libxrandr-dev (>= 4.3.0.dfsg.1-4),
  libsm-dev (>= 4.3.0.dfsg.1-4), libxmu-dev (>= 4.3.0.dfsg.1-4),
  libice-dev (>= 4.3.0.dfsg.1-4), libx11-dev (>= 4.3.0.dfsg.1-4),
  libxt-dev (>= 4.3.0.dfsg.1-4), libxrender-dev, libxcursor-dev, uuid-dev,
  libxinerama-dev, libxi-dev, zlib1g-dev, libjpeg-dev, libmng-dev (>= 1.0.3),
- libpng-dev, libfontconfig1-dev, libfreetype6-dev,
- libxft-dev, libaudio-dev, libgl1-mesa-dev | libgl-dev,
+ libpng-dev, libfontconfig-dev | libfontconfig1-dev, libfreetype-dev | libfreetype6-dev,
+ libxft-dev, libaudio-dev, libgl-dev | libgl1-mesa-dev,
  libglu1-mesa-dev | libglu-dev, libc6-dev, libtqt3-mt (= ${binary:Version}),
- libtqt3-headers (= ${binary:Version}), tqt3-dev-tools (= ${binary:Version})
+ libtqt3-headers (= ${source:Version}), tqt3-dev-tools (= ${binary:Version})
 Recommends: libcups2-dev
 Suggests: libtqt3-i18n, tqt3-doc
 Description: TQt development files (Threaded)
@@ -137,8 +126,7 @@ Package: libtqt3-headers
 Architecture: all
 Multi-Arch: foreign
 Section: devel
-Replaces: libtqt3-headers (<< 4:14.0.0~)
-Breaks: libtqt3-headers (<< 4:14.0.0~)
+Depends: ${misc:Depends}
 Recommends: libtqt3-mt-dev
 Description:  TQt3 header files
  This package contains all header files for libqt and libtqt-mt which come
@@ -149,9 +137,7 @@ Package: tqt3-dev-tools
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-dev-tools (<< 4:14.0.0~)
-Breaks: tqt3-dev-tools (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Recommends: libtqt3-mt-dev
 Description: TQt3 development tools
  This package contains all tools that are necessary to build programs
@@ -162,12 +148,10 @@ Package: tqt3-designer
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-designer (<< 4:14.0.0~)
-Breaks: tqt3-designer (<< 4:14.0.0~)
-Depends: tqt3-designer-plugins (= ${binary:Version}), ${shlibs:Depends}
+Depends: tqt3-designer-plugins (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 Recommends: tqt3-dev-tools
 Suggests: tqt3-assistant, tqt3-doc
-Description: TQt3 Designer
+Description: TQt Designer - graphic designer for GUI modeling
  The TQt Designer is a GUI design program that interactively lets you
  construct user interfaces for the TQt library. Additionally it lets you
  create whole project and works together with the database drivers
@@ -182,16 +166,19 @@ Architecture: any
 Multi-Arch: same
 Section: devel
 Conflicts: tqt3-designer (<< 4:14.1.0~)
-Depends: ${shlibs:Depends}
-Description: TQt3 Designer plugins
- This package contains plugins for TQt3 Designer
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Plugins for TQt Designer
+ The TQt Designer is a GUI design program that interactively lets you
+ construct user interfaces for the TQt library.
+ .
+ This package contains plugins for TQt Designer
 
 Package: libtqt3-apps-dev
 Architecture: any
 Multi-Arch: same
 Section: libdevel
 Conflicts: tqt3-apps-dev (<< 4:14.1.0~)
-Depends: ${shlibs:Depends}, libtqt3-mt (= ${binary:Version})
+Depends: ${shlibs:Depends}, ${misc:Depends}, libtqt3-mt (= ${binary:Version})
 Description: TQt3 Developer applications development libraries
  This package contains additional libraries that ship with the applications
  included with TQt - the TQt Designer and the TQt Assistant.
@@ -200,9 +187,7 @@ Package: tqt3-apps-dev
 Architecture: any
 Multi-Arch: no
 Section: devel
-Replaces: tqt3-apps-dev (<< 4:14.0.0~)
-Breaks: tqt3-apps-dev (<< 4:14.0.0~)
-Depends: libtqt3-mt-dev, libtqt3-apps-dev
+Depends: ${shlibs:Depends}, ${misc:Depends}, libtqt3-mt-dev, libtqt3-apps-dev
 Description: TQt3 Developer applications development files
  This package is intended for developers who want to develop applications
  using the additional libraries that ship with the applications
@@ -216,11 +201,9 @@ Package: tqt3-linguist
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-linguist (<< 4:14.0.0~)
-Breaks: tqt3-linguist (<< 4:14.0.0~)
 Suggests: tqt3-assistant
-Depends: ${shlibs:Depends}
-Description: The TQt3 Linguist
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: TQt3 Linguist - translators tool
  This package contains the TQt3 Linguist which provides translators a
  tool perfect for translating any TQt-based application into other
  languages and can be used and installed independently of any TQt
@@ -230,10 +213,8 @@ Package: tqt3-assistant
 Architecture: any
 Multi-Arch: foreign
 Section: x11
-Replaces: tqt3-assistant (<< 4:14.0.0~)
-Breaks: tqt3-assistant (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}, tqt3-doc
-Description: The TQt3 assistant application
+Depends: ${shlibs:Depends}, ${misc:Depends}, tqt3-doc
+Description: TQt3 assistant application
  This package contains the TQt3 Assistant, an easy to use frontend for
  the complete TQt3 documentation and serves as an online help viewer for
  any TQt program that wants to give the usesr access to online help.
@@ -241,18 +222,16 @@ Description: The TQt3 assistant application
  for the TQt3 Designer and Linguist as well as qmake and the TQt 3 API
  documentation.
  .
- Developers of TQt Application who want to faciliate the TQt Assistant for online
- help display should refer to the README.Debian file for libtqt3-mt-dev and
- the package tqt3-apps-dev.
+ Developers of TQt Application who want to faciliate the TQt Assistant
+ for online help display should refer to the README.Debian file for
+ libtqt3-mt-dev and the package tqt3-apps-dev.
 
 Package: tqt3-qtconfig
 Architecture: any
 Multi-Arch: foreign
 Section: x11
-Replaces: tqt3-qtconfig (<< 4:14.0.0~)
-Breaks: tqt3-qtconfig (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}
-Description: The TQt3 Configuration Application
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: TQt3 Configuration Application
  The TQt Configuration program allows endusers to configure the look
  and behavior of any TQt3 application. It is mostly only necessary
  on systems which don't run TDE because the Trinity control center already
@@ -265,10 +244,8 @@ Package: tqt3-dev-tools-compat
 Architecture: any
 Multi-Arch: foreign
 Section: devel
-Replaces: tqt3-dev-tools-compat (<< 4:14.0.0~)
-Breaks: tqt3-dev-tools-compat (<< 4:14.0.0~)
 Recommends: libtqt3-mt-dev
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Conversion utilities for TQt3 development
  This package contains some older TQt tools (namely
  tqm2ts, tqtmergetr, tqtfindtr and msg2tqm). These tools are needed only by
@@ -282,8 +259,7 @@ Package: libtqt3-i18n
 Architecture: all
 Multi-Arch: foreign
 Section: libs
-Replaces: libtqt3-i18n (<< 4:14.0.0~)
-Breaks: libtqt3-i18n (<< 4:14.0.0~)
+Depends: ${misc:Depends}
 Recommends: libtqt3-mt | libtqt3-mt-t64
 Description: i18n files for TQt3 library
  This package contains the internationalization files for the TQt library.
@@ -294,9 +270,8 @@ Package: tqt3-doc
 Architecture: all
 Multi-Arch: foreign
 Section: doc
-Replaces: tqt3-doc (<< 4:14.0.0~)
-Breaks: tqt3-doc (<< 4:14.0.0~)
-Priority: extra
+Priority: optional
+Depends: ${misc:Depends}
 Suggests: libtqt3-headers, tqt3-assistant | www-browser
 Description: TQt3 API documentation
  This package contains the complete API documentation for TQt3.
@@ -308,10 +283,8 @@ Package: tqt3-examples
 Architecture: all
 Multi-Arch: foreign
 Section: doc
-Replaces: tqt3-examples (<< 4:14.0.0~)
-Breaks: tqt3-examples (<< 4:14.0.0~)
-Priority: extra
-Depends: libtqt3-mt-dev (>= ${binary:Version})
+Priority: optional
+Depends: ${misc:Depends}, libtqt3-mt-dev (>= ${binary:Version})
 Suggests: tqt3-apps-dev
 Description:  Examples for TQt3
  These are examples provided with TQt3. They may be especially useful for
@@ -322,10 +295,8 @@ Package: tqt-x11-free-dbg
 Section: libdevel
 Architecture: any
 Multi-Arch: no
-Replaces: tqt-x11-free-dbg (<< 4:14.0.0~)
-Breaks: tqt-x11-free-dbg (<< 4:14.0.0~)
-Priority: extra
-Depends: libtqt3-mt (= ${binary:Version}), gdb
+Priority: optional
+Depends: ${misc:Depends}, libtqt3-mt (= ${binary:Version}), gdb
 Description: debugging symbols for tqt-x11-free binaries
  This package contains the debugging symbols associated with tqt-x11-free.
  They will automatically be used by gdb for debugging TQt-related
diff --git a/ubuntu/_base/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides b/ubuntu/_base/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides
new file mode 100644
index 000000000..17d5be50c
--- /dev/null
+++ b/ubuntu/_base/dependencies/tqt/debian/libtqt3-apps-dev.lintian-overrides
@@ -0,0 +1,2 @@
+# The package name is not in the form of a shared library.
+libtqt3-apps-dev: package-name-doesnt-match-sonames
diff --git a/ubuntu/_base/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides b/ubuntu/_base/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides
new file mode 100644
index 000000000..abf70f90f
--- /dev/null
+++ b/ubuntu/_base/dependencies/tqt/debian/libtqt3-mt-sqlite.lintian-overrides
@@ -0,0 +1,2 @@
+# It was intended that the sqlite module would not need an additional dependency.
+libtqt3-mt-sqlite: embedded-library
diff --git a/ubuntu/_base/dependencies/tqt/debian/libtqt3-mt.lintian-overrides b/ubuntu/_base/dependencies/tqt/debian/libtqt3-mt.lintian-overrides
new file mode 100644
index 000000000..b003daf64
--- /dev/null
+++ b/ubuntu/_base/dependencies/tqt/debian/libtqt3-mt.lintian-overrides
@@ -0,0 +1,2 @@
+# For historical reasons, the package has the suffix 'mt'.
+libtqt3-mt: package-name-doesnt-match-sonames
diff --git a/ubuntu/_base/dependencies/tqt/debian/libtqt3-mt.postrm b/ubuntu/_base/dependencies/tqt/debian/libtqt3-mt.postrm
index bb679158a..d5103a18e 100644
--- a/ubuntu/_base/dependencies/tqt/debian/libtqt3-mt.postrm
+++ b/ubuntu/_base/dependencies/tqt/debian/libtqt3-mt.postrm
@@ -1,9 +1,15 @@
 #!/bin/sh
 
-if [ "$1" = "purge" ]; then
-  if [ -d "/usr/share/doc/libtqt3-mt/" ]; then
-    rm -rf /usr/share/doc/libtqt3-mt/
-  fi
-fi
+set -e
+
+case "$1" in
+
+    purge)
+      if [ -d "/usr/share/doc/libtqt3-mt/" ]; then
+        rm -rf /usr/share/doc/libtqt3-mt/
+      fi
+    ;;
+
+esac
 
 #DEBHELPER#
diff --git a/ubuntu/_base/dependencies/tqt/debian/rules b/ubuntu/_base/dependencies/tqt/debian/rules
index fa9b59714..352d9fe5a 100755
--- a/ubuntu/_base/dependencies/tqt/debian/rules
+++ b/ubuntu/_base/dependencies/tqt/debian/rules
@@ -155,10 +155,11 @@ ifeq ($(DEB_TIME64_API),true)
 	    [ -d $$a ] || [ -f $$a.t64 ] || \
 	    (cp -a $$a debian/libtqt3-mt$(DEB_TIME64_SUFFIX).$${a##*.} && mv $$a $$a.t64); \
 	done
+	sed -i -e "s|^libtqt3-mt:|libtqt3-mt$(DEB_TIME64_SUFFIX):|" \
+	    debian/libtqt3-mt$(DEB_TIME64_SUFFIX).lintian-overrides
 	[ -f debian/control.t64 ] || \
 	sed -i.t64 \
-	    -e "s/^\\(Package: libtqt3-mt\\)$$/\\1$(DEB_TIME64_SUFFIX)/" \
-	    -e "s/^\\(Replaces\\|Breaks\\): \\(libtqt3-mt\\)\\( \|$$\)/\\1: \\2, \\2$(DEB_TIME64_SUFFIX)\\3/" \
+	    -e "s/^Package: \\(libtqt3-mt\\)$$/Package: \\1$(DEB_TIME64_SUFFIX)\\nReplaces: \\1\\nBreaks: \\1/" \
 	    -e "s/\\(libtqt3-mt\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
 	    debian/control
 endif
@@ -255,8 +256,7 @@ ifeq ($(DEB_TIME64_API),true)
 	xargs -r rm
 	[ -f debian/control.t64 ] || \
 	sed -i.t64 \
-	    -e "s/^\\(Package: libtqt3-mt\\)$$/\\1$(DEB_TIME64_SUFFIX)/" \
-	    -e "s/^\\(Replaces\\|Breaks\\): \\(libtqt3-mt\\)\\( \|$$\)/\\1: \\2, \\2$(DEB_TIME64_SUFFIX)\\3/" \
+	    -e "s/^Package: \\(libtqt3-mt\\)$$/Package: \\1$(DEB_TIME64_SUFFIX)\\nReplaces: \\1\\nBreaks: \\1/" \
 	    -e "s/\\(libtqt3-mt\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
 	    debian/control
 else
@@ -376,9 +376,19 @@ binary-indep: build install
 	gzip -n > tqt3-examples.tar.gz
 	install -D `pwd`/debian/doc/tqt3-examples.tar.gz `pwd`/debian/tqt3-examples/usr/share/doc/tqt3-examples/tqt3-examples.tar.gz
 
+	# install lintian-overrides
+	mkdir -p $(CURDIR)/debian
+	for P in \
+		tqt3-doc \
+	; do \
+		mkdir -p $(CURDIR)/debian/$$P//usr/share/lintian/overrides; \
+		install --mode 0644 debian/$$P.lintian-overrides $(CURDIR)/debian/$$P/usr/share/lintian/overrides/$$P; \
+	done
+
 	# proceed
 	dh_compress -i -Xhtml/
 	dh_link -i
+	dh_lintian -i
 
 	dh_fixperms -i
 	dh_installdeb -i
@@ -475,6 +485,10 @@ binary-arch: build install
 	rm -rf debian/tqt3-designer/usr/share/tqt3/tools/tqtconv2ui/.obj
 	rm -f debian/tqt3-designer/usr/share/tqt3/tools/tqtconv2ui/Makefile
 
+	# emptying the dependency_libs field in .la files
+	find debian -name '*.la' -print0 |\
+	xargs -r0 sed -i "/dependency_libs/ s/'.*'/''/"
+
 	# run remaining debhelper scripts
 	dh_installdocs -a $(IBASE) -XREADME.Debian
 	dh_installmenu -a $(IBASE)
@@ -485,6 +499,7 @@ binary-arch: build install
 	dh_installman -a $(IBASE)
 
 	dh_link -a $(IBASE)
+	dh_lintian -a $(IBASE)
 	dh_strip -a $(IBASE) --dbg-package=tqt-x11-free-dbg
 	$(if $(wildcard /usr/bin/dh_strip_nondeterminism),\
 	dh_strip_nondeterminism -a $(IBASE))
diff --git a/ubuntu/_base/dependencies/tqt/debian/source.lintian-overrides b/ubuntu/_base/dependencies/tqt/debian/source.lintian-overrides
new file mode 100644
index 000000000..e842f3a01
--- /dev/null
+++ b/ubuntu/_base/dependencies/tqt/debian/source.lintian-overrides
@@ -0,0 +1,12 @@
+# We build for many distribution versions and therefore need
+# the distribution version as part of the package version,
+# which is unintentionally understood as NMU.
+tqt source: source-nmu-has-incorrect-version-number
+tqt source: binary-nmu-debian-revision-in-source
+tqt source: no-nmu-in-changelog
+
+# We want XZ regardless of the default compression.
+tqt source: custom-compression-in-debian-source-options
+
+# The ltmain.sh file comes from a third-party source.
+tqt source: ancient-libtool
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.lintian-overrides b/ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.lintian-overrides
new file mode 100644
index 000000000..df3363843
--- /dev/null
+++ b/ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.lintian-overrides
@@ -0,0 +1,2 @@
+# The manual page is not available, this may be addressed sometime in the future.
+tqt3-assistant: no-manual-page
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.menu b/ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.menu
deleted file mode 100644
index d59f83bd0..000000000
--- a/ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.menu
+++ /dev/null
@@ -1,6 +0,0 @@
-?package(tqt3-assistant):\
-        needs="x11"\
-        section="Applications/Programming"\
-        hints="TDE"\
-        title="TQt3 Assistant"\
-        command="/usr/bin/tqassistant"
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.postinst b/ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.postinst
index 041457133..7a4fad441 100644
--- a/ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.postinst
+++ b/ubuntu/_base/dependencies/tqt/debian/tqt3-assistant.postinst
@@ -2,7 +2,20 @@
 
 set -e
 
-update-alternatives --install \
-	/usr/bin/assistant assistant "/usr/bin/tqassistant" "45" \
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/assistant assistant "/usr/bin/tqassistant" "45" \
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
 
 #DEBHELPER#
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-designer.lintian-overrides b/ubuntu/_base/dependencies/tqt/debian/tqt3-designer.lintian-overrides
new file mode 100644
index 000000000..69810846a
--- /dev/null
+++ b/ubuntu/_base/dependencies/tqt/debian/tqt3-designer.lintian-overrides
@@ -0,0 +1,2 @@
+# The manual page is not available, this may be addressed sometime in the future.
+tqt3-designer: no-manual-page
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-designer.menu b/ubuntu/_base/dependencies/tqt/debian/tqt3-designer.menu
deleted file mode 100644
index be078bd49..000000000
--- a/ubuntu/_base/dependencies/tqt/debian/tqt3-designer.menu
+++ /dev/null
@@ -1,7 +0,0 @@
-?package(tqt3-designer):\
-        needs="x11"\
-        section="Applications/Programming"\
-        hints="TDE"\
-        title="TQt3 Designer"\
-        command="/usr/bin/tqdesigner"
-
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-designer.postinst b/ubuntu/_base/dependencies/tqt/debian/tqt3-designer.postinst
index 54bc5ea75..640957616 100644
--- a/ubuntu/_base/dependencies/tqt/debian/tqt3-designer.postinst
+++ b/ubuntu/_base/dependencies/tqt/debian/tqt3-designer.postinst
@@ -2,9 +2,23 @@
 
 set -e
 
-update-alternatives --install \
-	/usr/bin/designer designer "/usr/bin/tqdesigner" "45" \
-	--slave /usr/share/man/man1/designer.1.gz designer.1.gz \
-	"/usr/share/man/man1/tqdesigner.1.gz"
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/designer designer "/usr/bin/tqdesigner" "45" \
+            --slave /usr/share/man/man1/designer.1.gz designer.1.gz \
+            "/usr/share/man/man1/tqdesigner.1.gz"
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
 
 #DEBHELPER#
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides b/ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides
new file mode 100644
index 000000000..df03cdd00
--- /dev/null
+++ b/ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools-compat.lintian-overrides
@@ -0,0 +1,2 @@
+# Small utility tools that don't have a manual page.
+tqt3-dev-tools-compat: no-manual-page
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides b/ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides
new file mode 100644
index 000000000..43f465497
--- /dev/null
+++ b/ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools.lintian-overrides
@@ -0,0 +1,5 @@
+# The manual page is not available, this may be addressed sometime in the future.
+tqt3-dev-tools: no-manual-page
+
+# Building the framework on Windows is not out of the question.
+tqt3-dev-tools: windows-devel-file-in-package
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools.postinst b/ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools.postinst
index e7f14ec70..789e54f84 100644
--- a/ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools.postinst
+++ b/ubuntu/_base/dependencies/tqt/debian/tqt3-dev-tools.postinst
@@ -2,27 +2,41 @@
 
 set -e
 
-update-alternatives --install \
-	/usr/bin/moc moc "/usr/bin/tqmoc" "45" \
-	--slave /usr/share/man/man1/moc.1.gz moc.1.gz \
-	"/usr/share/man/man1/tqmoc.1.gz"
-
-update-alternatives --install \
-        /usr/bin/uic uic "/usr/bin/tquic" "45" \
-	--slave /usr/share/man/man1/uic.1.gz uic.1.gz \
-	"/usr/share/man/man1/tquic.1.gz"
-
-update-alternatives --install \
-        /usr/bin/lupdate lupdate "/usr/bin/tqlupdate" "45" \
-	--slave /usr/share/man/man1/lupdate.1.gz lupdate.1.gz \
-	"/usr/share/man/man1/tqlupdate.1.gz"
-
-update-alternatives --install \
-        /usr/bin/lrelease lrelease "/usr/bin/tqlrelease" "45" \
-	--slave /usr/share/man/man1/lrelease.1.gz lrelease.1.gz \
-	"/usr/share/man/man1/tqlrelease.1.gz"
-
-update-alternatives --install \
-        /usr/bin/qmake qmake "/usr/bin/tqmake" "45" \
+case "$1" in
+    configure)
+
+        update-alternatives --install \
+            /usr/bin/moc moc "/usr/bin/tqmoc" "45" \
+            --slave /usr/share/man/man1/moc.1.gz moc.1.gz \
+            "/usr/share/man/man1/tqmoc.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/uic uic "/usr/bin/tquic" "45" \
+            --slave /usr/share/man/man1/uic.1.gz uic.1.gz \
+            "/usr/share/man/man1/tquic.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/lupdate lupdate "/usr/bin/tqlupdate" "45" \
+            --slave /usr/share/man/man1/lupdate.1.gz lupdate.1.gz \
+            "/usr/share/man/man1/tqlupdate.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/lrelease lrelease "/usr/bin/tqlrelease" "45" \
+            --slave /usr/share/man/man1/lrelease.1.gz lrelease.1.gz \
+            "/usr/share/man/man1/tqlrelease.1.gz"
+
+        update-alternatives --install \
+            /usr/bin/qmake qmake "/usr/bin/tqmake" "45" \
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
 
 #DEBHELPER#
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-doc.doc-base b/ubuntu/_base/dependencies/tqt/debian/tqt3-doc.doc-base
index 08f4fcdc3..0751a0158 100644
--- a/ubuntu/_base/dependencies/tqt/debian/tqt3-doc.doc-base
+++ b/ubuntu/_base/dependencies/tqt/debian/tqt3-doc.doc-base
@@ -4,7 +4,7 @@ Author: Troll Tech, The TDE Team
 Abstract: Qt (TM) is a multi-platform C++ GUI toolkit. It is a product of
  Troll Tech. It is supported on all major variants of Microsoft Windows and
  Unix/X Windows. 
-Section: Apps/Programming
+Section: Programming/C++
 
 Format: HTML
 Index: /usr/share/doc/tqt3-doc/html/index.html
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-doc.lintian-overrides b/ubuntu/_base/dependencies/tqt/debian/tqt3-doc.lintian-overrides
new file mode 100644
index 000000000..ff5a4b144
--- /dev/null
+++ b/ubuntu/_base/dependencies/tqt/debian/tqt3-doc.lintian-overrides
@@ -0,0 +1,4 @@
+# There seem to be many parts in the documentation that need fixing.
+# Unfortunately, we do not have volunteers to do the fixing at the
+# moment. So this will have to wait for some long winter evenings.
+tqt3-doc: groff-message
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-linguist.menu b/ubuntu/_base/dependencies/tqt/debian/tqt3-linguist.menu
deleted file mode 100644
index 976cb4b3c..000000000
--- a/ubuntu/_base/dependencies/tqt/debian/tqt3-linguist.menu
+++ /dev/null
@@ -1,6 +0,0 @@
-?package(tqt3-linguist):\
-        needs="x11"\
-        section="Applications/Programming"\
-        hints="TDE"\
-        title="TQt3 Linguist"\
-        command="/usr/bin/tqlinguist"
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-linguist.postinst b/ubuntu/_base/dependencies/tqt/debian/tqt3-linguist.postinst
index 48b3216db..a82c028fb 100644
--- a/ubuntu/_base/dependencies/tqt/debian/tqt3-linguist.postinst
+++ b/ubuntu/_base/dependencies/tqt/debian/tqt3-linguist.postinst
@@ -2,9 +2,22 @@
 
 set -e
 
-update-alternatives --install \
-	/usr/bin/linguist linguist "/usr/bin/tqlinguist" "45" \
-	--slave /usr/share/man/man1/linguist.1.gz linguist.1.gz \
-	"/usr/share/man/man1/tqlinguist.1.gz"
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/linguist linguist "/usr/bin/tqlinguist" "45" \
+            --slave /usr/share/man/man1/linguist.1.gz linguist.1.gz \
+            "/usr/share/man/man1/tqlinguist.1.gz"
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
 
 #DEBHELPER#
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-qtconfig.menu b/ubuntu/_base/dependencies/tqt/debian/tqt3-qtconfig.menu
deleted file mode 100644
index 79f2ff8e5..000000000
--- a/ubuntu/_base/dependencies/tqt/debian/tqt3-qtconfig.menu
+++ /dev/null
@@ -1,8 +0,0 @@
-?package(tqt3-qtconfig):\
-        needs="x11"\
-        section="Applications/System/Administration"\
-        title="TQt3 Config"\
-        longtitle="TQt3 Configuration Utility"\
-        hints="TQt3 config tool"\
-        command="/usr/bin/tqtconfig"
-
diff --git a/ubuntu/_base/dependencies/tqt/debian/tqt3-qtconfig.postinst b/ubuntu/_base/dependencies/tqt/debian/tqt3-qtconfig.postinst
index 773022f72..6f9635f52 100644
--- a/ubuntu/_base/dependencies/tqt/debian/tqt3-qtconfig.postinst
+++ b/ubuntu/_base/dependencies/tqt/debian/tqt3-qtconfig.postinst
@@ -2,9 +2,22 @@
 
 set -e
 
-update-alternatives --install \
-	/usr/bin/qtconfig qtconfig "/usr/bin/tqtconfig" "45" \
-	--slave /usr/share/man/man1/qtconfig.1.gz qtconfig.1.gz \
-	"/usr/share/man/man1/tqtconfig.1.gz"
+case "$1" in
+    configure)
+        update-alternatives --install \
+            /usr/bin/qtconfig qtconfig "/usr/bin/tqtconfig" "45" \
+            --slave /usr/share/man/man1/qtconfig.1.gz qtconfig.1.gz \
+            "/usr/share/man/man1/tqtconfig.1.gz"
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
 
 #DEBHELPER#
-- 
cgit v1.2.3

