diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-24 18:51:21 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-24 18:51:21 +0000 |
| commit | 113cfe590b0e78a327c802e3465cb3b134257877 (patch) | |
| tree | 4d1a948d22e6ce469de7c3c2695d1708c9be1202 /wscript | |
| parent | 39d2b12b7186a5fe195b4f42ae476eda5ca101f2 (diff) | |
swaroop: fix setuid on dcpomatic2_uuid.v2.13.91
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -621,7 +621,14 @@ def create_version_cc(version, cxx_flags): def post(ctx): if ctx.cmd == 'install' and ctx.env.TARGET_LINUX: ctx.exec_command('/sbin/ldconfig') - os.chmod(os.path.join(ctx.options.prefix, 'bin/dcpomatic2_uuid'), 0o4755) + # I can't find anything which tells me where things have been installed to, + # so here's some nasty hacks to guess. + debian = os.path.join(ctx.out_dir, '../debian/dcpomatic/usr/bin/dcpomatic2_uuid') + prefix = os.path.join(ctx.env['INSTALL_PREFIX'], 'bin/dcpomatic2_uuid') + if os.path.exists(debian): + os.chmod(debian, 0o4755) + if os.path.exists(prefix): + os.chmod(prefix, 0o4755) def pot(bld): bld.recurse('src') |
