[elbe-devel] [PATCH v2] debian: Update debhelper compat to level 12

Bastian Germann bage at linutronix.de
Wed Mar 29 14:09:51 CEST 2023


The elbe debian package is only built for buster and later, so update the
level to 12. The .service files are now installed with dh_installsystemd
instead of dh_installinit, which gets rid of one debian/rules override.

Prevent dh_installsystemd from enabling/starting elbe.service because its
environment refers to a non-existing file.

Signed-off-by: Bastian Germann <bage at linutronix.de>
---
 debian/compat  | 1 -
 debian/control | 2 +-
 debian/rules   | 5 +++--
 3 files changed, 4 insertions(+), 4 deletions(-)
 delete mode 100644 debian/compat

diff --git a/debian/compat b/debian/compat
deleted file mode 100644
index f599e28b8a..0000000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-10
diff --git a/debian/control b/debian/control
index 47bb65280f..7b11d83dab 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: elbe
 Section: misc
 Priority: optional
 Maintainer: Linutronix GmbH <info at linutronix.de>
-Build-Depends: debhelper (>= 10),
+Build-Depends: debhelper-compat (= 12),
   dh-python,
   bash-completion,
   python3,
diff --git a/debian/rules b/debian/rules
index af8a050127..454f3455d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,8 +18,9 @@ override_dh_clean:
 override_dh_compress:
 	dh_compress -X.xml
 
-override_dh_installinit:
-	dh_installinit --no-package=elbe
+override_dh_installsystemd:
+	dh_installsystemd -Nelbe
+	dh_installsystemd -pelbe --no-enable --no-start
 
 override_dh_install:
 	dh_install
-- 
2.39.2



More information about the elbe-devel mailing list