[6/7] meta: optee-client: Replace debian/compat by debhelper-compat

Message ID 20250314-flo-remove-compat-files-v1-6-fab2d8b18266@siemens.com
State Accepted, archived
Headers show
Series Replace debian/compat files by a build dependency to debhelper-compat | expand

Commit Message

Florian Bezdeka March 14, 2025, 7:33 p.m. UTC
According to
https://lintian.debian.org/tags/uses-debhelper-compat-file.html
compat files should be replaced by a build dependency to the
debhelper-compat virtual package.

Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
---
 meta/recipes-bsp/optee-client/files/debian/compat       | 1 -
 meta/recipes-bsp/optee-client/files/debian/control.tmpl | 2 +-
 meta/recipes-bsp/optee-client/optee-client-custom.inc   | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

Patch

diff --git a/meta/recipes-bsp/optee-client/files/debian/compat b/meta/recipes-bsp/optee-client/files/debian/compat
deleted file mode 100644
index f599e28b8ab0d8c9c57a486c89c4a5132dcbd3b2..0000000000000000000000000000000000000000
--- a/meta/recipes-bsp/optee-client/files/debian/compat
+++ /dev/null
@@ -1 +0,0 @@ 
-10
diff --git a/meta/recipes-bsp/optee-client/files/debian/control.tmpl b/meta/recipes-bsp/optee-client/files/debian/control.tmpl
index d3669d50627b3f88d475f38abebbd41070dd2b10..4cf11231ddf871d71c4ef665d71708fa31014f55 100644
--- a/meta/recipes-bsp/optee-client/files/debian/control.tmpl
+++ b/meta/recipes-bsp/optee-client/files/debian/control.tmpl
@@ -1,7 +1,7 @@ 
 Source: ${PN}
 Priority: optional
 Maintainer: Unknown maintainer <unknown@example.com>
-Build-Depends: debhelper-compat (= 12),
+Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}),
                docbook-xml,
                docbook-xsl,
                pkg-config,
diff --git a/meta/recipes-bsp/optee-client/optee-client-custom.inc b/meta/recipes-bsp/optee-client/optee-client-custom.inc
index a87863f90bd10f82c6e360288c97b00d83989c4c..8a97af584c63fd579d3ab76272294a7fd6e14a33 100644
--- a/meta/recipes-bsp/optee-client/optee-client-custom.inc
+++ b/meta/recipes-bsp/optee-client/optee-client-custom.inc
@@ -23,7 +23,7 @@  TEE_FS_PARENT_PATH ?= "/var/lib/optee-client/data/tee"
 RPMB_EMU ?= "0"
 
 TEMPLATE_FILES = "debian/rules.tmpl debian/control.tmpl"
-TEMPLATE_VARS += "TEE_FS_PARENT_PATH RPMB_EMU"
+TEMPLATE_VARS += "DEBIAN_COMPAT TEE_FS_PARENT_PATH RPMB_EMU"
 
 do_prepare_build[cleandirs] += "${S}/debian"
 do_prepare_build() {