$ rpm -ql chromium-browser-stable | grep TOC
/usr/lib64/chromium-browser/libEGL.so.TOC
/usr/lib64/chromium-browser/libGLESv2.so.TOC
/usr/lib64/chromium-browser/swiftshader/libEGL.so.TOC
/usr/lib64/chromium-browser/swiftshader/libGLESv2.so.TOC
strace confirmed that they are not used.
```
DEBUG: [194/194] LINK gn
DEBUG: WARNING at the command-line "--args":24:85: Build argument has no effect.
DEBUG: rtc_use_pipewire=true rtc_link_pipewire=true rtc_pipewire_version="0.3"
DEBUG: ^----
DEBUG: The variable "rtc_pipewire_version" was set as a build argument
DEBUG: but never appeared in a declare_args() block in any buildfile.
```
It was needed only to check bundled javascript, it does not make sense during package building
(because we will not try to fix any issues found by it, Chromium developers do a great job themselves).
Libraries are unbundled bellow removed code:
<...> build/linux/unbundle/replace_gn_files.py --system-libraries \
freetype \
fontconfig \
libdrm
But settings were set to use bundled ones.
Make it installable as chromium-browser intuitively.
Also, there was a dummy package chromium-browser in rosa2016.1,
but it was removed then, but is still present in main/release there
and can be installed instead.
https://bugzilla.rosalinux.ru/show_bug.cgi?id=11682#c2
Chromium has been segfaulting on i686 (i586) for many months and versions,
nobody complained about it, so nobody is using it there,
let's just same machine time by not building it there.
```
[1467/49932] ACTION //gpu/config:process_json(//build/toolchain/linux:clang_x64)
FAILED: gen/gpu/config/gpu_driver_bug_list_arrays_and_structs_autogen.h gen/gpu/config/gpu_driver_bug_list_autogen.cc gen/gpu/config/gpu_driver_bug_list_autogen.h gen/gpu/config/gpu_driver_bug_list_exceptions_autogen.h gen/gpu/config/software_rendering_list_arrays_and_structs_autogen.h gen/gpu/config/software_rendering_list_autogen.cc gen/gpu/config/software_rendering_list_autogen.h gen/gpu/config/software_rendering_list_exceptions_autogen.h
/usr/bin/python3 ../../gpu/config/process_json.py --output-dir gen/gpu/config --skip-testing-data --os-filter linux
Traceback (most recent call last):
File "../../gpu/config/process_json.py", line 1066, in <module>
sys.exit(main(sys.argv[1:]))
File "../../gpu/config/process_json.py", line 1041, in main
script_dir, options.output_dir, options.os_filter)
File "../../gpu/config/process_json.py", line 930, in process_software_rendering_list
'Software')
File "../../gpu/config/process_json.py", line 837, in process_json_file
json_data = json.load(json_file)
File "/usr/lib64/python3.5/json/__init__.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.5/json/__init__.py", line 312, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'
```
- build internal ffmpeg to avoid dependency on system one (we have dropped restricted in rosa2021.1 and have merged it into main and contrib)
- clean up build dependencies a bit (more clean up is required)
- remove not used if-else and patches
- drop patches for VA-API, upstream has VA-API support now, it is enabled, it is enough, I am fed up with different patches here
- drop patch for scripts generating installtion packages which are not used by us
- rename master_prefenrecnes to master_prefenrences.json to make "abf put" not upload it to filestore.
- cherry-pick upstream fixes for statx() in new glibc
- switch to internal libsecret backend instead of the no more maintained gnome-keyring
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1828192
libsecret should handle passwords previously saved via gnome-keyring
- use system fontconfig and freetype (maybe it will help to make fonts better, maybe not, but there is no sense in using bundled ones), use system libdrm
- remove odd metadata in new platforms
- enable Vulkan (RB#11463), keleg@ noted disabled Vulkan in chrome://gpu despite hardware supporting it
https://bugzilla.rosalinux.ru/show_bug.cgi?id=11463
- disable Control Flow Integrity (is_cfi) to avoid depending on too new clang, CFI amkes no sense for us
- install crashpad_handler (chromium tries to execve() it)