Update default of install-umask to 022

And, with that, update the test cases that checked that preserving the
original permissions worked to set install_umask=preserve explicitly in
those projects' default_options.

Tested: ./run_tests.py
pull/3225/head
Filipe Brandenburger 7 years ago
parent 8651d55c6a
commit b0382733d8
  1. 2
      mesonbuild/coredata.py
  2. 3
      test cases/common/12 data/meson.build
  3. 3
      test cases/common/66 install subdir/meson.build

@ -456,7 +456,7 @@ builtin_options = {
'backend': [UserComboOption, 'Backend to use.', backendlist, 'ninja'],
'stdsplit': [UserBooleanOption, 'Split stdout and stderr in test logs.', True],
'errorlogs': [UserBooleanOption, "Whether to print the logs from failing tests.", True],
'install_umask': [UserUmaskOption, 'Default umask to apply on permissions of installed files.', None],
'install_umask': [UserUmaskOption, 'Default umask to apply on permissions of installed files.', '022'],
}
# Special prefix-dependent defaults for installation directories that reside in

@ -1,4 +1,5 @@
project('data install test', 'c')
project('data install test', 'c',
default_options : ['install_umask=preserve'])
install_data(sources : 'datafile.dat', install_dir : 'share/progname')
# Some file in /etc that is only read-write by root; add a sticky bit for testing
install_data(sources : 'etcfile.dat', install_dir : '/etc', install_mode : 'rw------T')

@ -1,4 +1,5 @@
project('install a whole subdir', 'c')
project('install a whole subdir', 'c',
default_options : ['install_umask=preserve'])
# A subdir with an exclusion:
install_subdir('sub2',

Loading…
Cancel
Save