blob: 172f47825fa4250df78b11c5642ddec363a4731e [file] [log] [blame]
Andrew Geisslerd159c7f2021-09-02 21:05:58 -05001From c7183b2cc4a42f6ca7c2dc687ee7881efe9aeb73 Mon Sep 17 00:00:00 2001
2From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
3Date: Sat, 28 Aug 2021 14:22:02 +0200
4Subject: [PATCH] SConscript: Correct the installation of gpsd.hotplug
5
6Without this, `scons systemd=false && scons udev-install` fails with:
7
8 cp .../gpsd/gpsd-3.23.1~dev/gpsd.hotplug /home/pkj/gpsd/foobar/lib/udev
9 cp: cannot stat '.../gpsd/gpsd-3.23.1~dev/gpsd.hotplug': No such file or directory
10
11Upstream-Status: Submitted [https://gitlab.com/gpsd/gpsd/-/merge_requests/277]
12Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
13---
14 SConscript | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/SConscript b/SConscript
18index 1cd3354e1..e578012f5 100644
19--- a/SConscript
20+++ b/SConscript
21@@ -3060,7 +3060,7 @@ if env['systemd']:
22 hotplug_wrapper_install = []
23 else:
24 hotplug_wrapper_install = [
25- 'cp $SRCDIR/gpsd.hotplug ' + DESTDIR + env['udevdir'],
26+ 'cp $SRCDIR/../gpsd.hotplug ' + DESTDIR + env['udevdir'],
27 'chmod a+x ' + DESTDIR + env['udevdir'] + '/gpsd.hotplug'
28 ]
29