runc: fix incomplete cleanup in Build/InstallDev
authorTexot Qi <redacted>
Wed, 26 Feb 2020 17:05:45 +0000 (01:05 +0800)
committerTexot Qi <redacted>
Thu, 27 Feb 2020 02:23:33 +0000 (10:23 +0800)
Currently it only cleans up binaries when executing
Build/InstallDev without deleting .built stamp file.

This leads to wrong information about existence of
built runc binaries and causes error when executing
package/runc/install twice.

Signed-off-by: Texot Qi <redacted>
utils/runc/Makefile

index e4c2756d76869a8632e62a64d6bb2a94db7df2b4..e8cb4140a8b4e1973ee14bdd7680b0d93deb829b 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=runc
 PKG_VERSION:=1.0.0-rc8+91-3e425f80
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 
@@ -72,6 +72,7 @@ endef
 # Avoid installing binaries
 define Build/InstallDev
        $(call Build/Compile/Default,clean)
+       rm -f $(STAMP_BUILT)
        $(call GoPackage/Build/InstallDev,$(1))
 endef
 
git clone https://git.99rst.org/PROJECT