i9e
Arkady L. Shane 3 months ago
parent 41be0fb9bc
commit a98e67db69
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

File diff suppressed because it is too large Load Diff

@ -1,13 +0,0 @@
diff -up chromium-91.0.4472.77/third_party/closure_compiler/compiler.py.java-allowed chromium-91.0.4472.77/third_party/closure_compiler/compiler.py
--- chromium-91.0.4472.77/third_party/closure_compiler/compiler.py.java-allowed 2021-06-02 17:14:48.445064647 +0000
+++ chromium-91.0.4472.77/third_party/closure_compiler/compiler.py 2021-06-02 17:15:12.994836949 +0000
@@ -13,8 +13,7 @@ import subprocess
_CURRENT_DIR = os.path.join(os.path.dirname(__file__))
-_JAVA_PATH = os.path.join(_CURRENT_DIR, "..", "jdk", "current", "bin", "java")
-assert os.path.isfile(_JAVA_PATH), "java only allowed in android builds"
+_JAVA_PATH = "java"
class Compiler(object):
"""Runs the Closure compiler on given source files to typecheck them

@ -76,14 +76,6 @@
# set esbuild_version # set esbuild_version
%global esbuild_version 0.19.2 %global esbuild_version 0.19.2
# set latest version for devtoolset and gcc-toolset
%global dts_version 12
%if 0%{?rhel} == 8 || 0%{?rhel} == 9
%global dts_version 13
%endif
%global toolset gcc-toolset
%if 0%{?rhel} == 8 %if 0%{?rhel} == 8
%global chromium_pybin /usr/bin/python3.9 %global chromium_pybin /usr/bin/python3.9
%else %else
@ -176,31 +168,17 @@
# enable|disable use_custom_libcxx # enable|disable use_custom_libcxx
%global use_custom_libcxx 1 %global use_custom_libcxx 1
# enable clang by default
%global clang 1
# enable|disable control flow integrity support # enable|disable control flow integrity support
%global cfi 0 %global cfi 0
%ifarch x86_64 aarch64 %ifarch x86_64 aarch64
%if %{clang}
%if 0%{?fedora} || 0%{?rhel} > 7
%global cfi 1 %global cfi 1
%endif %endif
%endif
%endif
%ifarch ppc64le %ifarch ppc64le
# workaround for a bug in new llvm on f40/rawhide (ppc64le) # workaround for a bug in new llvm on f40/rawhide (ppc64le)
%global cfi 0 %global cfi 0
%endif %endif
# set correct toolchain
%if %{clang}
%global toolchain clang
%else
%global toolchain gcc
%endif
# enable qt backend # enable qt backend
%global use_qt6 0 %global use_qt6 0
%global use_qt 0 %global use_qt 0
@ -353,13 +331,6 @@ Patch20: chromium-disable-font-tests.patch
# don't download binary blob # don't download binary blob
Patch21: chromium-123-screen-ai-service.patch Patch21: chromium-123-screen-ai-service.patch
# Fix issue where closure_compiler thinks java is only allowed in android builds
# https://bugs.chromium.org/p/chromium/issues/detail?id=1192875
Patch65: chromium-91.0.4472.77-java-only-allowed-in-android-builds.patch
# Update rjsmin to 1.2.0
Patch69: chromium-103.0.5060.53-update-rjsmin-to-1.2.0.patch
# Disable tests on remoting build # Disable tests on remoting build
Patch82: chromium-98.0.4758.102-remoting-no-tests.patch Patch82: chromium-98.0.4758.102-remoting-no-tests.patch
@ -556,25 +527,10 @@ Source102: https://github.com/deemru/msspi/archive/%{msspi_commit}.tar.gz#/msspi
Source103: chromium-browser-gost-icons.tar.xz Source103: chromium-browser-gost-icons.tar.xz
%endif %endif
%if %{clang}
BuildRequires: clang BuildRequires: clang
BuildRequires: clang-tools-extra BuildRequires: clang-tools-extra
BuildRequires: llvm BuildRequires: llvm
BuildRequires: lld BuildRequires: lld
# needs for libatomic
%if 0%{?rhel} >= 8
BuildRequires: %{toolset}-%{dts_version}-libatomic-devel
%endif
%else
%if 0%{?rhel} == 8
BuildRequires: %{toolset}-%{dts_version}-binutils, %{toolset}-%{dts_version}-libatomic-devel
%endif
%if 0%{?fedora} || 0%{?rhel} > 8
BuildRequires: gcc-c++
BuildRequires: gcc
BuildRequires: binutils
%endif
%endif
BuildRequires: rustc BuildRequires: rustc
@ -1179,8 +1135,6 @@ sed -i 's/std::string data_dir_basename = "chromium"/std::string data_dir_basena
%patch -P20 -p1 -b .disable-font-test %patch -P20 -p1 -b .disable-font-test
%patch -P21 -p1 -b .screen-ai-service %patch -P21 -p1 -b .screen-ai-service
%patch -P65 -p1 -b .java-only-allowed
%patch -P69 -p1 -b .update-rjsmin-to-1.2.0
%patch -P82 -p1 -b .remoting-no-tests %patch -P82 -p1 -b .remoting-no-tests
%if ! %{bundlebrotli} %if ! %{bundlebrotli}
@ -1404,11 +1358,9 @@ cp -a third_party/dav1d/version/version.h third_party/dav1d/libdav1d/include/dav
%build %build
# reduce warnings # reduce warnings
%if %{clang}
FLAGS=' -Wno-deprecated-declarations -Wno-unknown-warning-option -Wno-unused-command-line-argument' FLAGS=' -Wno-deprecated-declarations -Wno-unknown-warning-option -Wno-unused-command-line-argument'
FLAGS+=' -Wno-unused-but-set-variable -Wno-unused-result -Wno-unused-function -Wno-unused-variable' FLAGS+=' -Wno-unused-but-set-variable -Wno-unused-result -Wno-unused-function -Wno-unused-variable'
FLAGS+=' -Wno-unused-const-variable -Wno-unneeded-internal-declaration -Wno-unknown-attributes -Wno-unknown-pragmas' FLAGS+=' -Wno-unused-const-variable -Wno-unneeded-internal-declaration -Wno-unknown-attributes -Wno-unknown-pragmas'
%endif
%if %{system_build_flags} %if %{system_build_flags}
CFLAGS=${CFLAGS/-g } CFLAGS=${CFLAGS/-g }
@ -1442,29 +1394,16 @@ RUSTFLAGS=${RUSTFLAGS/debuginfo=?/debuginfo=0}
%endif %endif
%endif %endif
%if %{clang}
export CC=clang export CC=clang
export CXX=clang++ export CXX=clang++
export AR=llvm-ar export AR=llvm-ar
export NM=llvm-nm export NM=llvm-nm
export READELF=llvm-readelf export READELF=llvm-readelf
%else
export CC=gcc
export CXX=g++
export AR=ar
export NM=nm
export READELF=readelf
%endif
export CFLAGS export CFLAGS
export CXXFLAGS export CXXFLAGS
export LDFLAGS export LDFLAGS
export RUSTFLAGS export RUSTFLAGS
# enable gcc toolset on el8
%if 0%{?rhel} == 8 && ! %{clang}
. /opt/rh/%{toolset}-%{dts_version}/enable
%endif
# need for error: the option `Z` is only accepted on the nightly compiler # need for error: the option `Z` is only accepted on the nightly compiler
export RUSTC_BOOTSTRAP=1 export RUSTC_BOOTSTRAP=1
@ -1512,16 +1451,11 @@ CHROMIUM_CORE_GN_DEFINES+=' google_default_client_id="%{default_client_id}"'
CHROMIUM_CORE_GN_DEFINES+=' google_default_client_secret="%{default_client_secret}"' CHROMIUM_CORE_GN_DEFINES+=' google_default_client_secret="%{default_client_secret}"'
%endif %endif
%if %{clang}
CHROMIUM_CORE_GN_DEFINES+=' is_clang=true' CHROMIUM_CORE_GN_DEFINES+=' is_clang=true'
CHROMIUM_CORE_GN_DEFINES+=" clang_base_path=\"$clang_base_path\"" CHROMIUM_CORE_GN_DEFINES+=" clang_base_path=\"$clang_base_path\""
CHROMIUM_CORE_GN_DEFINES+=" clang_version=\"$clang_version\"" CHROMIUM_CORE_GN_DEFINES+=" clang_version=\"$clang_version\""
CHROMIUM_CORE_GN_DEFINES+=' clang_use_chrome_plugins=false' CHROMIUM_CORE_GN_DEFINES+=' clang_use_chrome_plugins=false'
CHROMIUM_CORE_GN_DEFINES+=' use_lld=true' CHROMIUM_CORE_GN_DEFINES+=' use_lld=true'
%else
CHROMIUM_CORE_GN_DEFINES+=' is_clang=false'
CHROMIUM_CORE_GN_DEFINES+=' use_lld=false'
%endif
# enable system rust # enable system rust
CHROMIUM_CORE_GN_DEFINES+=' rust_sysroot_absolute="%{_prefix}"' CHROMIUM_CORE_GN_DEFINES+=' rust_sysroot_absolute="%{_prefix}"'

Loading…
Cancel
Save