Package: gammu-smsd Version: 1.41.0-1 Severity: grave Tags: patch Dear maintainer,
The current version (1.41.0-1) of gammu-smsd cannot start the service because the systemd service file installed in the package uses cmake substitutions, so instead of "/usr/bin", the service file has "${CMAKE_INSTALL_FULL_BINDIR}". This variable is supposed to be substituted during package build, but currently it's not, because the configure script does not find systemd and thus, does not install the modified file; also, dh-install is instructed to take the unmodified file from sources. The correct way to fix this is to make systemd detectable by the configure script, and use the modified file installed by the build system instead of the unmodified file from sources. Here is a patch that does this: it adds systemd to the build dependencies so that the configure script can detect it, and instructs dh-install to use the file installed by the build system instead of the one from sources. Regards, -- Raphaël Halimi
From 7073610f61db4309df5102536320a52a72f2c948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Halimi?= <raphael.hal...@gmail.com> Date: Thu, 30 Apr 2020 11:20:21 +0200 Subject: [PATCH] Fix systemd service file --- debian/control | 3 ++- debian/gammu-smsd.install | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 24a16f8..ac2fab8 100644 --- a/debian/control +++ b/debian/control @@ -19,7 +19,8 @@ Build-Depends: debhelper (>= 9.20160709), libdbi-dev, libbluetooth-dev [linux-any], libgudev-1.0-dev [linux-any], - libglib2.0-dev + libglib2.0-dev, + systemd Standards-Version: 4.5.0 Vcs-Browser: https://salsa.debian.org/debian/gammu Vcs-Git: https://salsa.debian.org/debian/gammu.git diff --git a/debian/gammu-smsd.install b/debian/gammu-smsd.install index 4abdaeb..1dd92a7 100644 --- a/debian/gammu-smsd.install +++ b/debian/gammu-smsd.install @@ -5,4 +5,4 @@ usr/share/man/man1/gammu-smsd* usr/share/man/man7/gammu-smsd* usr/share/man/man5/gammu-smsd* debian/gammu-smsdrc /etc/ -contrib/init/gammu-smsd.service lib/systemd/system/ +lib/systemd/system/gammu-smsd.service -- 2.26.2
signature.asc
Description: OpenPGP digital signature