[Buildroot] [PATCH] gpsd: update systemd service file binary path

Robert Hancock hancock at sedsystems.ca
Tue May 28 23:25:57 UTC 2019


The systemd gpsd.service file supplied by gpsd specifies a binary path
of /usr/local/sbin/gpsd, while Buildroot installs the binary in
/usr/sbin/gpsd. Update the path to match the actual binary location.

Signed-off-by: Robert Hancock <hancock at sedsystems.ca>
---
 ...3-update-systemd-service-file-binary-path.patch | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/gpsd/0003-update-systemd-service-file-binary-path.patch

diff --git a/package/gpsd/0003-update-systemd-service-file-binary-path.patch b/package/gpsd/0003-update-systemd-service-file-binary-path.patch
new file mode 100644
index 0000000..32feb18
--- /dev/null
+++ b/package/gpsd/0003-update-systemd-service-file-binary-path.patch
@@ -0,0 +1,30 @@
+From c4c314f23bc6fec8d3ddadb49090eb3a2e84881d Mon Sep 17 00:00:00 2001
+From: Robert Hancock <hancock at sedsystems.ca>
+Date: Tue, 28 May 2019 17:13:25 -0600
+Subject: [PATCH] Update systemd service file binary path
+
+The systemd gpsd.service file supplied by gpsd specifies a binary path
+of /usr/local/sbin/gpsd, while Buildroot installs the binary in
+/usr/sbin/gpsd. Update the path to match the actual binary location.
+
+Signed-off-by: Robert Hancock <hancock at sedsystems.ca>
+---
+ systemd/gpsd.service | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/systemd/gpsd.service b/systemd/gpsd.service
+index c1f193c..2707ff9 100644
+--- a/systemd/gpsd.service
++++ b/systemd/gpsd.service
+@@ -8,7 +8,7 @@ After=chronyd.service
+ Type=forking
+ EnvironmentFile=-/etc/default/gpsd
+ EnvironmentFile=-/etc/sysconfig/gpsd
+-ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES
++ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES
+ 
+ [Install]
+ WantedBy=multi-user.target
+-- 
+1.8.3.1
+
-- 
1.8.3.1



More information about the buildroot mailing list