projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
280454a
)
Set up dcpomatic2_disk_writer capability on install.
author
Carl Hetherington
<cth@carlh.net>
Sat, 18 Jun 2022 18:21:06 +0000
(20:21 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 20 Jun 2022 22:45:46 +0000
(
00:45
+0200)
This might mean we can remove the same setup from the cscript, but
I'm not sure.
wscript
patch
|
blob
|
history
diff --git
a/wscript
b/wscript
index e30727c8cfceba81d7e9a4b4ce99faf0562c7caf..d66aba33526fb72695dc97b831411cda9ee750a2 100644
(file)
--- a/
wscript
+++ b/
wscript
@@
-680,6
+680,9
@@
def create_version_cc(version, cxx_flags):
def post(ctx):
if ctx.cmd == 'install' and ctx.env.TARGET_LINUX:
ctx.exec_command('/sbin/ldconfig')
+ exe = os.path.join(ctx.env['INSTALL_PREFIX'], 'bin/dcpomatic2_disk_writer')
+ if os.path.exists(exe):
+ os.system('setcap "cap_dac_override+ep cap_sys_admin+ep" %s' % exe)
def pot(bld):
bld.recurse('src')