Skip to content

Commit

Permalink
package/rockchip-mali: fix hash of generated archive
Browse files Browse the repository at this point in the history
The "official" repository we used to reference disapeared quite some
time ago, so in commit 8c25838 (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 <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
  • Loading branch information
yann-morin-1998 committed Sep 30, 2023
1 parent d41386a commit f7f2de3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/rockchip-mali/rockchip-mali.hash
Original file line number Diff line number Diff line change
@@ -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
10 changes: 9 additions & 1 deletion package/rockchip-mali/rockchip-mali.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7f2de3

Please sign in to comment.