Skip to content

Commit 832b2de

Browse files
danomimanchego123tpetazzoni
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Petazzoni <[email protected]>
1 parent a49c698 commit 832b2de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/samba4/samba4.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ endef
8686
SAMBA4_POST_INSTALL_TARGET_HOOKS += SAMBA4_REMOVE_CTDB_TESTS
8787

8888
define SAMBA4_CONFIGURE_CMDS
89-
cp package/samba4/samba4-cache.txt $(@D)/cache.txt;
89+
$(INSTALL) -m 0644 package/samba4/samba4-cache.txt $(@D)/cache.txt;
9090
echo 'Checking uname machine type: $(BR2_ARCH)' >>$(@D)/cache.txt;
9191
(cd $(@D); \
9292
PYTHON_CONFIG="$(STAGING_DIR)/usr/bin/python-config" \

0 commit comments

Comments
 (0)