Apply hack to fix Chromium GOST patch

i8e
Arkady L. Shane 9 months ago
parent 46d02e04af
commit 49d2af1588
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -596,6 +596,8 @@ Patch600: 0001-Yandex-as-default-search-engine.patch
Patch601: 0001-Added-Russian-description-and-summary-for-gnome-soft.patch Patch601: 0001-Added-Russian-description-and-summary-for-gnome-soft.patch
# Yandex Search by default # Yandex Search by default
Patch602: 0001-Added-Yandex-search-bar-as-default-on-newtab-and-new.patch Patch602: 0001-Added-Yandex-search-bar-as-default-on-newtab-and-new.patch
# Addon to GOST patch
Patch603: 0001-Addon-To-GOST-patch.patch
# upstream patches # upstream patches
@ -1208,6 +1210,11 @@ for i in \
do do
cp $i $i.saved cp $i $i.saved
done done
# FIX PATCH
sed -i '/diff --git a\/net\/ssl\/ssl_platform_key_util.h/,/const X509Certificate* certificate);/d' \
%{chromium_path_gost}/patch/chromium.patch
patch -p1 < %{chromium_path_gost}/patch/chromium.patch patch -p1 < %{chromium_path_gost}/patch/chromium.patch
patch -p1 -d third_party/boringssl/src < %{chromium_path_gost}/patch/boringssl.patch patch -p1 -d third_party/boringssl/src < %{chromium_path_gost}/patch/boringssl.patch
# rollback backups after GOST patching # rollback backups after GOST patching
@ -1430,6 +1437,7 @@ sed -i 's/std::string data_dir_basename = "chromium"/std::string data_dir_basena
%patch -P602 -p1 -b .Yandex-as-default-search-engine %patch -P602 -p1 -b .Yandex-as-default-search-engine
%else %else
%patch -P600 -p1 -b .Yandex-as-default-search-engine %patch -P600 -p1 -b .Yandex-as-default-search-engine
%patch -P603 -p1 -b .Addon-to-gost-patch
%endif %endif
# We patch Chromium to open chrome://new-tab-page even with non-Google search engines # We patch Chromium to open chrome://new-tab-page even with non-Google search engines

Loading…
Cancel
Save