[Buildroot] [git commit branch/2017.08.x] package/urg: fix extraction commands

Peter Korsgaard peter at korsgaard.com
Tue Oct 17 08:38:13 UTC 2017


commit: https://git.buildroot.net/buildroot/commit/?id=bd9760be5ad8047a5d5caa2ef127fa8c6b3317ba
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2017.08.x

Currently, the extraction commands entirely remove the urg directory,
which means the downloaded stamp will get removed, and thus a subsequent
build would try to re-download it.

It turns out that the directory extracted by urg is already correctly
named, so we just need to extract out of the build directory. This
highly simplifies the command.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Cc: Samuel Martin <s.martin49 at gmail.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 9e943e852286d1f3f14b7f55e96c1e550affe571)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/urg/urg.mk | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/package/urg/urg.mk b/package/urg/urg.mk
index 4a41779..966627f 100644
--- a/package/urg/urg.mk
+++ b/package/urg/urg.mk
@@ -25,10 +25,7 @@ endif
 URG_CONFIG_SCRIPTS = c_urg-config urg-config
 
 define URG_EXTRACT_CMDS
-	$(RM) -rf $(URG_DIR)
-	$(UNZIP) -d $(BUILD_DIR)/ $(DL_DIR)/$(URG_SOURCE)
-	test -d $(URG_DIR) || \
-		mv $(BUILD_DIR)/$(subst .zip,,$(URG_SOURCE)) $(URG_DIR)
+	$(UNZIP) -d $(BUILD_DIR) $(DL_DIR)/$(URG_SOURCE)
 endef
 
 $(eval $(autotools-package))


More information about the buildroot mailing list