[neon/kde/drkonqi/Neon/unstable] debian: enable systemd/coredumpd support

Harald Sitter null at kde.org
Wed May 19 17:19:00 BST 2021


Git commit 793aef177e56e7e93d372a30435f06507ad1b6ef by Harald Sitter.
Committed on 19/05/2021 at 16:17.
Pushed by sitter into branch 'Neon/unstable'.

enable systemd/coredumpd support

newly available in master. requires a hack to actually enable a very
specific template chaining type of unit. we install a global enabler for
it in lieu of being able to handle it via systemctl

M  +1    -0    debian/control
M  +9    -0    debian/rules

https://invent.kde.org/neon/kde/drkonqi/commit/793aef177e56e7e93d372a30435f06507ad1b6ef

diff --git a/debian/control b/debian/control
index cb3a0a4..ac27472 100644
--- a/debian/control
+++ b/debian/control
@@ -25,6 +25,7 @@ Build-Depends: cmake (>= 3.0~),
                libkf5widgetsaddons-dev (>= 5.78~),
                libkf5windowsystem-dev (>= 5.78~),
                libqt5x11extras5-dev (>= 5.15.0~),
+               libsystemd-dev,
                pkg-kde-tools (>= 0.15.18~),
                qtbase5-dev (>= 5.15.0~),
                zlib1g-dev
diff --git a/debian/rules b/debian/rules
index 044cdd3..fc7f6dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,9 @@
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
+SYSTEMD_DIR=/usr/lib/systemd
+SYSTEMD_COREDUMP_WANTS=debian/drkonqi/$(SYSTEMD_DIR)/system/systemd-coredump at .service.wants/
+
 %:
 	dh $@ --with kf5,pkgkde_symbolshelper --buildsystem kf5 --without build_stamp
 
@@ -10,3 +13,9 @@ override_dh_auto_configure:
 	dh_auto_configure -Skf5 -- -DBUILD_TESTING=OFF
 
 override_dh_auto_test:
+
+override_dh_auto_install:
+	dh_auto_install
+	# systemctl fails to enable units that are wanted by templates (without instance) https://github.com/systemd/systemd/issues/19437
+	mkdir -p $(SYSTEMD_COREDUMP_WANTS)
+	ln -s $(SYSTEMD_DIR)/system/drkonqi-coredump-processor at .service $(SYSTEMD_COREDUMP_WANTS)


More information about the Neon-commits mailing list