]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
build: Don't assume we can set permissions on a directory
authorSimon McVittie <smcv@collabora.com>
Wed, 17 Apr 2019 15:32:01 +0000 (16:32 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 17 Apr 2019 15:32:01 +0000 (16:32 +0100)
MSYS2 has enough of a Unixish environment to run Autotools, but
apparently not enough of a Unixish environment to have functional
permissions.

Closes: dbus#216
test/Makefile.am

index 27d19460e08f41c6e1b97f6e8d2c52bbfe5958fc..559590b237b083b67d9f928d891c9919ca5785e5 100644 (file)
@@ -706,8 +706,11 @@ EXTRA_DIST += $(static_data)
 
 ## copy tests to builddir so that generated tests and static tests
 ## are all in one place.
+## Note that we can't create the XDG_RUNTIME_DIR with permissions 0700
+## on MSYS2, which rejects attempts to change permissions, hence "|| true".
 all-local: copy-config-local uninstalled-config-local
-       $(AM_V_at)$(MKDIR_P) -m 700 XDG_RUNTIME_DIR
+       $(AM_V_at)$(MKDIR_P) XDG_RUNTIME_DIR
+       $(AM_V_at)chmod 0700 XDG_RUNTIME_DIR || true
 
 copy-config-local:
        $(AM_V_at)$(MKDIR_P) data/valid-config-files/session.d