aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bartosz Bilas <b.bilas@grinn-global.com>2021-01-03 09:35:26 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2021-01-05 23:07:20 +0100
commit08a3583c4d04ea9d2375c0119b565a99f15ef2d4 (patch)
treefe0a57032948935db6fd38ac941019042417fe78
parent05224503fa23ebe8fe17a0a1f587087c5377db65 (diff)
downloadbuildroot-08a3583c4d04ea9d2375c0119b565a99f15ef2d4.tar.gz
buildroot-08a3583c4d04ea9d2375c0119b565a99f15ef2d4.tar.bz2
package/luarocks: fix copying our custom command if dest dir exists
Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com> [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 <yann.morin.1998@free.fr> (cherry picked from commit 25bd8ba6907f49d8ce54a6066b5e893416e7aea6) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/luarocks/luarocks.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/luarocks/luarocks.mk b/package/luarocks/luarocks.mk
index 123f8c0734..a5329735c4 100644
--- a/package/luarocks/luarocks.mk
+++ b/package/luarocks/luarocks.mk
@@ -19,8 +19,7 @@ LUAROCKS_CFLAGS += -DLUA_COMPAT_5_2
endif
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