Don't try to call setcap on a non-existant disk writer binary.
authorCarl Hetherington <cth@carlh.net>
Fri, 31 Dec 2021 21:14:14 +0000 (21:14 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 31 Dec 2021 21:14:14 +0000 (21:14 +0000)
wscript

diff --git a/wscript b/wscript
index af6d66b507e4c3eb7905c8d3d8224b06b67abff7..ce24e866684620109f1b3e1e047762c9b8f8ae20 100644 (file)
--- a/wscript
+++ b/wscript
@@ -676,7 +676,8 @@ def create_version_cc(version, cxx_flags):
 def post(ctx):
     if ctx.cmd == 'install' and ctx.env.TARGET_LINUX:
         ctx.exec_command('/sbin/ldconfig')
-        ctx.exec_command('setcap "cap_dac_override+ep cap_sys_admin+ep" %s/bin/dcpomatic2_disk_writer' % ctx.options.prefix)
+        if ctx.env.ENABLE_DISK:
+            ctx.exec_command('setcap "cap_dac_override+ep cap_sys_admin+ep" %s/bin/dcpomatic2_disk_writer' % ctx.options.prefix)
 
 def pot(bld):
     bld.recurse('src')