crun: update to use SOURCE_VERSION for submodule download
authorChristian Marangi <[email protected]>
Wed, 5 Mar 2025 14:18:46 +0000 (15:18 +0100)
committerTianling Shen <[email protected]>
Sun, 6 Apr 2025 00:44:43 +0000 (08:44 +0800)
Commit 9fc79e2e2622 ("download: don't overwrite VERSION variable")
changed the variable for direct download call from VERSION to
SOURCE_VERSION.

This cause the dl_github_archive script to pass empty value for
--version arg making it always clone HEAD.

Correctly update the variable to SOURCE_VERSION to actually clone the
expected commit HASH.

Signed-off-by: Christian Marangi <[email protected]>
utils/crun/Makefile

index 86e2d9df5f438900422178e58bf3fa03756732af..29ac65cba214d1265d73df9efbc9b4832ed94fd2 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=crun
 PKG_VERSION:=1.17
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/containers/crun/tar.gz/$(PKG_VERSION)?
@@ -37,7 +37,7 @@ LIBOCISPEC_COMMIT:=68211ccc41201c45ad276b04c7f67d61e80b1f7a
 define Download/libocispec
   PROTO:=git
   URL:=https://github.com/containers/libocispec.git
-  VERSION:=$(LIBOCISPEC_COMMIT)
+  SOURCE_VERSION:=$(LIBOCISPEC_COMMIT)
   MIRROR_HASH:=688d00600dbdf46d4b52acc8e43313b14471026ccff8c3cc5983e2f5dfd15571
   FILE:=libocispec-$(LIBOCISPEC_COMMIT).tar.xz
   SUBDIR:=libocispec