From 5be76a39d3a0c21d6f3ceeab0889edc3cec9f2f3 Mon Sep 17 00:00:00 2001 From: Arnout Vandecappelle Date: Mon, 6 Feb 2023 10:48:04 +0100 Subject: [PATCH] package/yajl: explicitly request a tag in _SITE The yajl repository has both a branch and a tag names 2.1.0. Because of this, when we use the usual github URL [1], github doesn't return a tarball but rather an ASCII string: the given path has multiple possibilities: #, # This obviously (and fortunately) leads to a hash check failure. To make sure we get the tag and not the branch, we should use a URL that explicitly asks for refs/tags/2.1.0 [2]. We can't change VERSION to include refs/tags, because that also affects the _SOURCE default, the contents of the tarball, the CPE ID and the release-monitoring access. Therefore, add the refs/tags/ prefix to the github helper call. [1] https://github.com/lloyd/yajl/archive/2.1.0/yajl-2.1.0.tar.gz [1] https://github.com/lloyd/yajl/archive/refs/tags/2.1.0/yajl-2.1.0.tar.gz Signed-off-by: Arnout Vandecappelle --- package/yajl/yajl.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/yajl/yajl.mk b/package/yajl/yajl.mk index 1fb16f50e9..d14a68b402 100644 --- a/package/yajl/yajl.mk +++ b/package/yajl/yajl.mk @@ -5,7 +5,7 @@ ################################################################################ YAJL_VERSION = 2.1.0 -YAJL_SITE = $(call github,lloyd,yajl,$(YAJL_VERSION)) +YAJL_SITE = $(call github,lloyd,yajl,refs/tags/$(YAJL_VERSION)) YAJL_INSTALL_STAGING = YES YAJL_LICENSE = ISC YAJL_LICENSE_FILES = COPYING