summaryrefslogtreecommitdiffstats
path: root/package/samba4
diff options
context:
space:
mode:
authorDanomi Manchego <danomimanchego123@gmail.com>2017-11-28 21:55:24 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-11-29 21:22:21 +0100
commit832b2de3ba82d8b51c393f743ee86ad530829607 (patch)
tree0bfd0e3edc0ac367f5d31382a27b69381de656cb /package/samba4
parenta49c69862a617617d05c23e5c64ddea1c665174f (diff)
downloadbuildroot-832b2de3ba82d8b51c393f743ee86ad530829607.tar.gz
buildroot-832b2de3ba82d8b51c393f743ee86ad530829607.zip
samba4: ensure that copied cache.txt is writable
If the Buildroot tree is read-only, then cache.txt is copied read-only into the build directory, and the configuration step fails. Fix this in the same way we do in other places, by opening permissions as we copy the file using $(INSTALL). Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/samba4')
-rw-r--r--package/samba4/samba4.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/samba4/samba4.mk b/package/samba4/samba4.mk
index 7836df5beb..ade9add347 100644
--- a/package/samba4/samba4.mk
+++ b/package/samba4/samba4.mk
@@ -86,7 +86,7 @@ endef
SAMBA4_POST_INSTALL_TARGET_HOOKS += SAMBA4_REMOVE_CTDB_TESTS
define SAMBA4_CONFIGURE_CMDS
- cp package/samba4/samba4-cache.txt $(@D)/cache.txt;
+ $(INSTALL) -m 0644 package/samba4/samba4-cache.txt $(@D)/cache.txt;
echo 'Checking uname machine type: $(BR2_ARCH)' >>$(@D)/cache.txt;
(cd $(@D); \
PYTHON_CONFIG="$(STAGING_DIR)/usr/bin/python-config" \
OpenPOWER on IntegriCloud