From: Bartosz Bilas Date: Sun, 3 Jan 2021 08:35:26 +0000 (+0100) Subject: package/luarocks: fix copying our custom command if dest dir exists X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25bd8ba6907f49d8ce54a6066b5e893416e7aea6;p=buildroot.git package/luarocks: fix copying our custom command if dest dir exists Signed-off-by: Bartosz Bilas [yann.morin.1998@free.fr: - use $(INSTALL), not "mkdir -p + cp" - split to its own patch - rewrite commit title ] Signed-off-by: Yann E. MORIN --- diff --git a/package/luarocks/luarocks.mk b/package/luarocks/luarocks.mk index 42966ea639..dd11b738ad 100644 --- a/package/luarocks/luarocks.mk +++ b/package/luarocks/luarocks.mk @@ -17,8 +17,7 @@ LUAROCKS_CONFIG_FILE = $(LUAROCKS_CONFIG_DIR)/luarocks/config.lua HOST_LUAROCKS_CONFIG_FILE = $(LUAROCKS_CONFIG_DIR)/luarocks/host-config.lua define LUAROCKS_ADDON_EXTRACT - mkdir $(@D)/src/luarocks/cmd/external - cp package/luarocks/buildroot.lua $(@D)/src/luarocks/cmd/external/buildroot.lua + $(INSTALL) -D -m 0644 package/luarocks/buildroot.lua $(@D)/src/luarocks/cmd/external/buildroot.lua endef HOST_LUAROCKS_POST_EXTRACT_HOOKS += LUAROCKS_ADDON_EXTRACT