From: Carl Hetherington Date: Sat, 18 Jun 2022 18:21:06 +0000 (+0200) Subject: Set up dcpomatic2_disk_writer capability on install. X-Git-Tag: v2.16.15~10 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=6fe11fc6d50bdcd913d92601567aece6716c7112;ds=sidebyside Set up dcpomatic2_disk_writer capability on install. This might mean we can remove the same setup from the cscript, but I'm not sure. --- diff --git a/wscript b/wscript index e30727c8c..d66aba335 100644 --- 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')