From fa23d8063b0ad207bec5dc0ba16d798ce5822532 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Tue, 11 Mar 2025 19:50:54 -0700 Subject: [PATCH] chore: regen chromium manifests to hash ebuilds --- www-client/chromium/.update.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www-client/chromium/.update.sh b/www-client/chromium/.update.sh index c4a4342..27b74ac 100755 --- a/www-client/chromium/.update.sh +++ b/www-client/chromium/.update.sh @@ -26,7 +26,7 @@ cp -r "${tempDir}"/www-client/chromium/* "${DIR}"/ for ebuild in *.ebuild; do # Add our patch. patches_end_ln=$(cat -n "$ebuild" | sed -e '/local PATCHES=(/,/)/!d' | tail -n1 | awk '{ print $1 }') - sed -i.bak "$((patches_end_ln+1))i\ \n if use widevine; then\n PATCHES+=("\${FILESDIR}/chromium-001-widevine-support-for-arm.patch")\n fi\n" "$ebuild" + sed -i.bak "$((patches_end_ln + 1))i\ \n if use widevine; then\n PATCHES+=("\${FILESDIR}/chromium-001-widevine-support-for-arm.patch")\n fi\n" "$ebuild" # Mutate KEYWORDS to only be scoped to arm64. Determine if stable or # not based on the amd64 keyword. @@ -44,3 +44,8 @@ cp -r .patches/files/* files/ find . -name '*.orig' -delete find . -name '*.bak' -delete find . -name '*.tmp' -delete + +# Regenerate the manifests to include the ebuild hashes. +for ebuild in *.ebuild; do + ebuild "$ebuild" manifest +done