From 93db03eb7270e8e8c5a733b25e85c1b8afa27f7e Mon Sep 17 00:00:00 2001
From: Slávek Banko <slavek.banko@axis.cz>
Date: Fri, 27 Feb 2026 15:23:15 +0100
Subject: DEB polkit-agent-tde: Changes to silence lintian reports.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
---
 .../applications/system/polkit-agent-tde/debian/changelog    |  6 ++++++
 .../applications/system/polkit-agent-tde/debian/control      |  7 ++++---
 .../applications/system/polkit-agent-tde/debian/copyright    |  3 +--
 .../system/polkit-agent-tde/debian/lintian-overrides         |  5 +++++
 .../system/polkit-agent-tde/debian/source/lintian-overrides  | 12 ++++++++++++
 .../applications/system/polkit-agent-tde/debian/changelog    |  6 ++++++
 .../applications/system/polkit-agent-tde/debian/control      |  7 ++++---
 .../applications/system/polkit-agent-tde/debian/copyright    |  3 +--
 .../system/polkit-agent-tde/debian/lintian-overrides         |  5 +++++
 .../system/polkit-agent-tde/debian/source/lintian-overrides  | 12 ++++++++++++
 10 files changed, 56 insertions(+), 10 deletions(-)
 create mode 100644 debian/_base/applications/system/polkit-agent-tde/debian/lintian-overrides
 create mode 100644 debian/_base/applications/system/polkit-agent-tde/debian/source/lintian-overrides
 create mode 100644 ubuntu/_base/applications/system/polkit-agent-tde/debian/lintian-overrides
 create mode 100644 ubuntu/_base/applications/system/polkit-agent-tde/debian/source/lintian-overrides

diff --git a/debian/_base/applications/system/polkit-agent-tde/debian/changelog b/debian/_base/applications/system/polkit-agent-tde/debian/changelog
index 434ce69fc..31abd3767 100644
--- a/debian/_base/applications/system/polkit-agent-tde/debian/changelog
+++ b/debian/_base/applications/system/polkit-agent-tde/debian/changelog
@@ -1,3 +1,9 @@
+polkit-agent-tde (4:14.1.6~pre0-0) forky; urgency=low
+
+  * The epoch change is for historical reasons from the KDE3 era.
+
+ -- Slávek Banko <slavek.banko@axis.cz>  Fri, 27 Feb 2026 14:55:40 +0100
+
 polkit-agent-tde (0.99.1-2) unstable; urgency=low
 
   * Port to TDE and package renaming
diff --git a/debian/_base/applications/system/polkit-agent-tde/debian/control b/debian/_base/applications/system/polkit-agent-tde/debian/control
index e0f772f46..887fec1d6 100644
--- a/debian/_base/applications/system/polkit-agent-tde/debian/control
+++ b/debian/_base/applications/system/polkit-agent-tde/debian/control
@@ -3,7 +3,7 @@ Priority: optional
 Maintainer: TDE Debian Team <team-debian@trinitydesktop.org>
 XSBC-Original-Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
 Uploaders: Fathi Boudra <fabo@debian.org>
-Build-Depends: tde-cdbs, debhelper (>= 10~), quilt, tde-cmake, ninja-build, tdelibs14-trinity-dev, libpolkit-tqt-dev
+Build-Depends: cdbs, tde-cdbs, debhelper (>= 10~), quilt, tde-cmake, ninja-build, tdelibs14-trinity-dev, libpolkit-tqt-dev
 Standards-Version: 3.9.4
 Section: libs
 
@@ -12,14 +12,15 @@ Architecture: any
 Provides: polkit-1-auth-agent
 Replaces: tde-ubuntu-integration
 Breaks: tde-ubuntu-integration
-Depends: ${shlibs:Depends}, ${misc:Depends}, policykit-1 | polkitd
+Depends: ${shlibs:Depends}, ${misc:Depends}, polkitd | policykit-1
 Conflicts: tde-ubuntu-integration
 Description: TDE dialogs for PolicyKit
  PolicyKit is an application-level toolkit for defining and handling the policy
  that allows unprivileged processes to speak to privileged processes.
  .
  It is a framework for centralizing the decision making process with respect to
- granting access to privileged operations for unprivileged (desktop) applications.
+ granting access to privileged operations for unprivileged (desktop)
+ applications.
  .
  PolicyKit-agent-tde provides a D-Bus session bus service that is used to
  bring up authentication dialogs used for obtaining privileges.
diff --git a/debian/_base/applications/system/polkit-agent-tde/debian/copyright b/debian/_base/applications/system/polkit-agent-tde/debian/copyright
index a9cebd94f..d0af6604a 100644
--- a/debian/_base/applications/system/polkit-agent-tde/debian/copyright
+++ b/debian/_base/applications/system/polkit-agent-tde/debian/copyright
@@ -38,8 +38,7 @@ License:
     GNU General Public License for more details.
 
     You should have received a copy of the GNU General Public License
-    along with this package; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+    along with this program. If not, see <https://www.gnu.org/licenses/>.
 
 On Debian systems, the complete text of the GNU General
 Public License can be found in `/usr/share/common-licenses/GPL-2' and
diff --git a/debian/_base/applications/system/polkit-agent-tde/debian/lintian-overrides b/debian/_base/applications/system/polkit-agent-tde/debian/lintian-overrides
new file mode 100644
index 000000000..50a77738f
--- /dev/null
+++ b/debian/_base/applications/system/polkit-agent-tde/debian/lintian-overrides
@@ -0,0 +1,5 @@
+# We are intentionally installing to /opt, so we have to live with that for now.
+polkit-agent-tde:  dir-or-file-in-opt
+
+# We keep it for historical reasons.
+polkit-agent-tde: unknown-field Original-Maintainer
diff --git a/debian/_base/applications/system/polkit-agent-tde/debian/source/lintian-overrides b/debian/_base/applications/system/polkit-agent-tde/debian/source/lintian-overrides
new file mode 100644
index 000000000..911102935
--- /dev/null
+++ b/debian/_base/applications/system/polkit-agent-tde/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.
+polkit-agent-tde source: source-nmu-has-incorrect-version-number
+polkit-agent-tde source: binary-nmu-debian-revision-in-source
+polkit-agent-tde source: no-nmu-in-changelog
+
+# We want XZ regardless of the default compression.
+polkit-agent-tde source: custom-compression-in-debian-source-options
+
+# We keep it for historical reasons.
+polkit-agent-tde source: unknown-field Original-Maintainer
diff --git a/ubuntu/_base/applications/system/polkit-agent-tde/debian/changelog b/ubuntu/_base/applications/system/polkit-agent-tde/debian/changelog
index 434ce69fc..31abd3767 100644
--- a/ubuntu/_base/applications/system/polkit-agent-tde/debian/changelog
+++ b/ubuntu/_base/applications/system/polkit-agent-tde/debian/changelog
@@ -1,3 +1,9 @@
+polkit-agent-tde (4:14.1.6~pre0-0) forky; urgency=low
+
+  * The epoch change is for historical reasons from the KDE3 era.
+
+ -- Slávek Banko <slavek.banko@axis.cz>  Fri, 27 Feb 2026 14:55:40 +0100
+
 polkit-agent-tde (0.99.1-2) unstable; urgency=low
 
   * Port to TDE and package renaming
diff --git a/ubuntu/_base/applications/system/polkit-agent-tde/debian/control b/ubuntu/_base/applications/system/polkit-agent-tde/debian/control
index e0f772f46..887fec1d6 100644
--- a/ubuntu/_base/applications/system/polkit-agent-tde/debian/control
+++ b/ubuntu/_base/applications/system/polkit-agent-tde/debian/control
@@ -3,7 +3,7 @@ Priority: optional
 Maintainer: TDE Debian Team <team-debian@trinitydesktop.org>
 XSBC-Original-Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
 Uploaders: Fathi Boudra <fabo@debian.org>
-Build-Depends: tde-cdbs, debhelper (>= 10~), quilt, tde-cmake, ninja-build, tdelibs14-trinity-dev, libpolkit-tqt-dev
+Build-Depends: cdbs, tde-cdbs, debhelper (>= 10~), quilt, tde-cmake, ninja-build, tdelibs14-trinity-dev, libpolkit-tqt-dev
 Standards-Version: 3.9.4
 Section: libs
 
@@ -12,14 +12,15 @@ Architecture: any
 Provides: polkit-1-auth-agent
 Replaces: tde-ubuntu-integration
 Breaks: tde-ubuntu-integration
-Depends: ${shlibs:Depends}, ${misc:Depends}, policykit-1 | polkitd
+Depends: ${shlibs:Depends}, ${misc:Depends}, polkitd | policykit-1
 Conflicts: tde-ubuntu-integration
 Description: TDE dialogs for PolicyKit
  PolicyKit is an application-level toolkit for defining and handling the policy
  that allows unprivileged processes to speak to privileged processes.
  .
  It is a framework for centralizing the decision making process with respect to
- granting access to privileged operations for unprivileged (desktop) applications.
+ granting access to privileged operations for unprivileged (desktop)
+ applications.
  .
  PolicyKit-agent-tde provides a D-Bus session bus service that is used to
  bring up authentication dialogs used for obtaining privileges.
diff --git a/ubuntu/_base/applications/system/polkit-agent-tde/debian/copyright b/ubuntu/_base/applications/system/polkit-agent-tde/debian/copyright
index a9cebd94f..d0af6604a 100644
--- a/ubuntu/_base/applications/system/polkit-agent-tde/debian/copyright
+++ b/ubuntu/_base/applications/system/polkit-agent-tde/debian/copyright
@@ -38,8 +38,7 @@ License:
     GNU General Public License for more details.
 
     You should have received a copy of the GNU General Public License
-    along with this package; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+    along with this program. If not, see <https://www.gnu.org/licenses/>.
 
 On Debian systems, the complete text of the GNU General
 Public License can be found in `/usr/share/common-licenses/GPL-2' and
diff --git a/ubuntu/_base/applications/system/polkit-agent-tde/debian/lintian-overrides b/ubuntu/_base/applications/system/polkit-agent-tde/debian/lintian-overrides
new file mode 100644
index 000000000..50a77738f
--- /dev/null
+++ b/ubuntu/_base/applications/system/polkit-agent-tde/debian/lintian-overrides
@@ -0,0 +1,5 @@
+# We are intentionally installing to /opt, so we have to live with that for now.
+polkit-agent-tde:  dir-or-file-in-opt
+
+# We keep it for historical reasons.
+polkit-agent-tde: unknown-field Original-Maintainer
diff --git a/ubuntu/_base/applications/system/polkit-agent-tde/debian/source/lintian-overrides b/ubuntu/_base/applications/system/polkit-agent-tde/debian/source/lintian-overrides
new file mode 100644
index 000000000..911102935
--- /dev/null
+++ b/ubuntu/_base/applications/system/polkit-agent-tde/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.
+polkit-agent-tde source: source-nmu-has-incorrect-version-number
+polkit-agent-tde source: binary-nmu-debian-revision-in-source
+polkit-agent-tde source: no-nmu-in-changelog
+
+# We want XZ regardless of the default compression.
+polkit-agent-tde source: custom-compression-in-debian-source-options
+
+# We keep it for historical reasons.
+polkit-agent-tde source: unknown-field Original-Maintainer
-- 
cgit v1.2.3

