| |
@@ -19,6 +19,14 @@
|
| |
# We'd like to always have this on.
|
| |
%global use_vaapi 1
|
| |
|
| |
+ # gold on i686 runs out of 32-bit address space.
|
| |
+ %ifarch x86_64 aarch64
|
| |
+ # It must be set to value 2.
|
| |
+ %global use_debuginfo 2
|
| |
+ %else
|
| |
+ %global use_debuginfo 0
|
| |
+ %endif
|
| |
+
|
| |
# Since no one liked replacing just the media components, we do not build shared anymore.
|
| |
%global shared 0
|
| |
|
| |
@@ -45,9 +53,13 @@
|
| |
%global headlessbuilddir out/Headless
|
| |
%global remotingbuilddir out/Remoting
|
| |
|
| |
- # Debuginfo packages aren't very useful here. If you need to debug
|
| |
- # you should do a proper debug build (not implemented in this spec yet)
|
| |
+ %if %{use_debuginfo}
|
| |
+ # Debuginfo would run out of 32-bit 4GB DWARF so use -fdebug-types-section.
|
| |
+ %global _find_debuginfo_dwz_opts %{nil}
|
| |
+ %else
|
| |
+ # Disable generating *-debuginfo.rpm
|
| |
%global debug_package %{nil}
|
| |
+ %endif
|
| |
|
| |
# %%{nil} for Stable; -beta for Beta; -dev for Devel
|
| |
# dash in -beta and -dev is intentional !
|
| |
@@ -163,7 +175,7 @@
|
| |
Name: chromium%{chromium_channel}
|
| |
%endif
|
| |
Version: %{majorversion}.0.4103.116
|
| |
- Release: 3%{?dist}
|
| |
+ Release: 3debugtypes%{?dist}
|
| |
%if %{?freeworld}
|
| |
%if %{?shared}
|
| |
# chromium-libs-media-freeworld
|
| |
@@ -287,6 +299,9 @@
|
| |
# Apply these patches to work around EPEL8 issues
|
| |
Patch300: chromium-76.0.3809.132-rhel8-force-disable-use_gnome_keyring.patch
|
| |
|
| |
+ # Enable chromium-debuginfo.rpm
|
| |
+ Patch301: chromium-debuginfo.patch
|
| |
+
|
| |
# Use chromium-latest.py to generate clean tarball from released build tarballs, found here:
|
| |
# http://build.chromium.org/buildbot/official/
|
| |
# For Chromium Fedora use chromium-latest.py --stable --ffmpegclean --ffmpegarm
|
| |
@@ -877,6 +892,9 @@
|
| |
%if 0%{?rhel} == 8
|
| |
%patch300 -p1 -b .disblegnomekeyring
|
| |
%endif
|
| |
+ %if %{use_debuginfo}
|
| |
+ %patch301 -p1 -b .debuginfo
|
| |
+ %endif
|
| |
|
| |
# Change shebang in all relevant files in this directory and all subdirectories
|
| |
# See `man find` for how the `-exec command {} +` syntax works
|
| |
@@ -959,12 +977,14 @@
|
| |
|
| |
# Core defines are flags that are true for both the browser and headless.
|
| |
CHROMIUM_CORE_GN_DEFINES=""
|
| |
- CHROMIUM_CORE_GN_DEFINES+=' is_debug=false'
|
| |
+ CHROMIUM_CORE_GN_DEFINES+=' is_debug=false symbol_level=%{use_debuginfo}'
|
| |
%ifarch x86_64 aarch64
|
| |
CHROMIUM_CORE_GN_DEFINES+=' system_libdir="lib64"'
|
| |
%endif
|
| |
CHROMIUM_CORE_GN_DEFINES+=' google_api_key="%{api_key}" google_default_client_id="%{default_client_id}" google_default_client_secret="%{default_client_secret}"'
|
| |
- CHROMIUM_CORE_GN_DEFINES+=' is_clang=false use_sysroot=false use_gold=false fieldtrial_testing_like_official_build=true use_lld=false rtc_enable_symbol_export=true'
|
| |
+ CHROMIUM_CORE_GN_DEFINES+=' is_clang=false use_sysroot=false fieldtrial_testing_like_official_build=true use_lld=false rtc_enable_symbol_export=true'
|
| |
+ # With use_debuginfo GNU ld would run out of memory.
|
| |
+ CHROMIUM_CORE_GN_DEFINES+=' use_gold=true'
|
| |
%if %{freeworld}
|
| |
CHROMIUM_CORE_GN_DEFINES+=' ffmpeg_branding="ChromeOS" proprietary_codecs=true'
|
| |
%else
|
| |
@@ -992,7 +1012,7 @@
|
| |
%else
|
| |
CHROMIUM_BROWSER_GN_DEFINES+=' is_component_ffmpeg=false is_component_build=false'
|
| |
%endif
|
| |
- CHROMIUM_BROWSER_GN_DEFINES+=' blink_symbol_level=0 enable_hangout_services_extension=true'
|
| |
+ CHROMIUM_BROWSER_GN_DEFINES+=' blink_symbol_level=%{use_debuginfo} enable_hangout_services_extension=true'
|
| |
CHROMIUM_BROWSER_GN_DEFINES+=' use_aura=true'
|
| |
CHROMIUM_BROWSER_GN_DEFINES+=' enable_widevine=true'
|
| |
%if %{use_vaapi}
|
| |
@@ -1379,11 +1399,6 @@
|
| |
. /opt/rh/devtoolset-%{dts_version}/enable
|
| |
%endif
|
| |
|
| |
- # Decrease the debuginfo verbosity, so it compiles in koji
|
| |
- %ifarch %{ix86}
|
| |
- %global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
| |
- %endif
|
| |
-
|
| |
export PYTHONPATH="../../third_party/pyjson5/src:../../third_party/catapult/third_party/google-endpoints"
|
| |
|
| |
echo
|
| |
Is this on purpose or some left over?