File: install-wrapper-to-pkgdatadir.patch

package info (click to toggle)
rauc 1.13-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,224 kB
  • sloc: ansic: 34,866; python: 2,435; sh: 1,364; xml: 53; makefile: 41
file content (40 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date: Tue, 10 Oct 2023 12:05:10 +0200
Subject: Install dbus wrapper script to /usr/share/rauc instead of /usr/libexec
Origin: vendor, Debian
Forwarded: not-needed, Debian-specific

According to the FHS /usr/libexec is for binaries only, so /usr/share/rauc
seems to be better suited for a shell script.

--- a/data/de.pengutronix.rauc.service.in
+++ b/data/de.pengutronix.rauc.service.in
@@ -1,5 +1,5 @@
 [D-BUS Service]
 Name=de.pengutronix.rauc
-Exec=@libexecdir@/rauc-service.sh
+Exec=@pkgdatadir@/rauc-service.sh
 User=root
 SystemdService=rauc.service
--- a/meson.build
+++ b/meson.build
@@ -22,8 +22,8 @@ if not prefixdir.startswith('/')
 endif
 bindir = join_paths(prefixdir, get_option('bindir'))
 conf.set('bindir', bindir)
-libexecdir = join_paths(prefixdir, get_option('libexecdir'))
-conf.set('libexecdir', libexecdir)
+pkgdatadir = join_paths(prefixdir, get_option('datadir'), 'rauc')
+conf.set('pkgdatadir', pkgdatadir)
 
 glibdep = dependency('glib-2.0', version : '>=2.56')
 
@@ -244,7 +244,7 @@ if dbusinterfacesdir == ''
   endif
 endif
 
-dbuswrapperdir = get_option('libexecdir')
+dbuswrapperdir = conf.get('pkgdatadir')
 
 install_data('src/de.pengutronix.rauc.Installer.xml', install_dir : dbusinterfacesdir)