From f7f2de3da7e1a5af4e2773ff6bb9e528159be7d3 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sun, 1 Oct 2023 00:07:18 +0200 Subject: [PATCH] package/rockchip-mali: fix hash of generated archive The "official" repository we used to reference disapeared quite some time ago, so in commit 8c25838b53e6 (package/rockchip-mali: fix build failure due to missing URL) we switched to using a mirror. The tarballs generated on the Github side have a top-level directory that is named "repo-name-HASH", so when we switched to a repository named "libmali" to one named "mirrors", the content of the generated tarball changed, even though the content of the files did not. We can't just change the hash to the new value, or that would conflict with thecopy on s.b.o and older versions of Buildroot. So, we drop one cahr from the commit hash, which eans the tarball name changes, and thus we can calculate a new hash for that tarball, and there will be no conflict with any existing tarball on s.b.o. Reported-by: Thomas Petazzoni Signed-off-by: Yann E. MORIN --- package/rockchip-mali/rockchip-mali.hash | 2 +- package/rockchip-mali/rockchip-mali.mk | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package/rockchip-mali/rockchip-mali.hash b/package/rockchip-mali/rockchip-mali.hash index 446bf9ac65..b19937fa07 100644 --- a/package/rockchip-mali/rockchip-mali.hash +++ b/package/rockchip-mali/rockchip-mali.hash @@ -1,2 +1,2 @@ -sha256 ee440d859e9d7dfdf29b9a00c7a633337913c407be567d3651c29c12eb75fd9c rockchip-mali-721653b5b3b525a4f80d15aa7e2f9df7b7e60427.tar.gz +sha256 1a291bbd75f317ee9205eb356aed617ac269db166ad6528a1734361cc08f8f7c rockchip-mali-721653b5b3b525a4f80d15aa7e2f9df7b7e6042.tar.gz sha256 a78acc73de9909efb879800d4daa4640c4aaa55cd751238a133954aba15e4285 END_USER_LICENCE_AGREEMENT.txt diff --git a/package/rockchip-mali/rockchip-mali.mk b/package/rockchip-mali/rockchip-mali.mk index 5c8e554346..125b1c61fd 100644 --- a/package/rockchip-mali/rockchip-mali.mk +++ b/package/rockchip-mali/rockchip-mali.mk @@ -4,7 +4,15 @@ # ################################################################################ -ROCKCHIP_MALI_VERSION = 721653b5b3b525a4f80d15aa7e2f9df7b7e60427 +# Full sha1 is 721653b5b3b525a4f80d15aa7e2f9df7b7e60427, but we use the +# "mirrors" repository, which names the top-level directory "mirrors-VERSION" +# while the original was the "libmali" repository which named the top-level +# directory "libmali-VERSION". Hence the content changes, and thus the hash +# changes. +# To avoid conflict with the old tarball on s.b.o. used by older versions of +# Buildroot, we can't use the same filename for the generated archive, so we +# drop the last char in the commit hash. +ROCKCHIP_MALI_VERSION = 721653b5b3b525a4f80d15aa7e2f9df7b7e6042 ROCKCHIP_MALI_SITE = $(call github,JeffyCN,mirrors,$(ROCKCHIP_MALI_VERSION)) ROCKCHIP_MALI_LICENSE = Proprietary ROCKCHIP_MALI_LICENSE_FILES = END_USER_LICENCE_AGREEMENT.txt