install internal libEGL.so and libGLESv2.so to fix gpu acceleration support [release 86.0.4240.193-2mamba;Fri Nov 13 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 21:13:36 +01:00
parent 8062fb069a
commit fb68b83622

View File

@ -2,8 +2,8 @@
%define gcc_patchset 2 %define gcc_patchset 2
Name: chromium Name: chromium
Epoch: 3 Epoch: 3
Version: 85.0.4183.83 Version: 86.0.4240.193
Release: 1mamba Release: 2mamba
Summary: An open-source browser project that aims to build a safer, faster, and more stable way to experience the web Summary: An open-source browser project that aims to build a safer, faster, and more stable way to experience the web
Group: Graphical Desktop/Applications/Internet Group: Graphical Desktop/Applications/Internet
Vendor: openmamba Vendor: openmamba
@ -110,7 +110,6 @@ BuildRequires: llvm-tools
BuildRequires: gn BuildRequires: gn
BuildRequires: clang BuildRequires: clang
BuildRequires: compiler-rt BuildRequires: compiler-rt
BuildRequires: libpipewire02-devel
Requires(post): %{__install_info} Requires(post): %{__install_info}
Requires: xdg-utils Requires: xdg-utils
Requires: libvdpau-Mesa Requires: libvdpau-Mesa
@ -130,10 +129,38 @@ Chromium is an open-source browser project that aims to build a safer, faster, a
%prep %prep
%setup -q -a2 %setup -q -a2
#-D -T #-D -T
#:<< _EOF
%define _use_internal_dependency_generator 0
%define __find_provides %{_builddir}/%{name}-%{version}/find_provides.sh
cat > %{_builddir}/%{name}-%{version}/find_provides.sh <<_EOF
#! /bin/sh
grep -v %{buildroot}%{_libdir}/chromium | \
%{_prefix}/lib/rpm/find-provides %{buildroot} %{_target_cpu}
_EOF
chmod +x %{_builddir}/%{name}-%{version}/find_provides.sh
%define __find_requires %{_builddir}/%{name}-%{version}/find_requires.sh
cat > %{_builddir}/%{name}-%{version}/find_requires.sh <<_EOF
#! /bin/sh
%{_prefix}/lib/rpm/find-requires %{buildroot} %{_target_cpu} 2>/dev/null |
while read line; do
echo "\$line"
done
_EOF
chmod +x %{_builddir}/%{name}-%{version}/find_requires.sh
:<< _EOF
# Allow building against system libraries in official builds
sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \
tools/generate_shim_headers/generate_shim_headers.py
# Apply gcc patches for liststdc++ # Apply gcc patches for liststdc++
mv chromium-patches-%{version} patches mv chromium-patches-%{version} patches
cat patches/chromium-85-*.patch |patch -p1 #cat patches/chromium-86-*.patch |patch -p1
# Fixes for building with libstdc++ instead of libc++
patch -Np1 -i patches/chromium-86-nearby-include.patch
%patch19 -p1 %patch19 -p1
%patch28 -p1 %patch28 -p1
@ -150,7 +177,7 @@ cat patches/chromium-85-*.patch |patch -p1
#%patch63 -p1 -d v8 #%patch63 -p1 -d v8
#%patch64 -p1 #%patch64 -p1
#%patch65 -p1 #%patch65 -p1
%patch66 -p1 #%patch66 -p1
#%patch67 -p1 #%patch67 -p1
#%patch68 -p1 #%patch68 -p1
#%patch69 -p1 #%patch69 -p1
@ -196,7 +223,7 @@ declare -rgA _system_libs=(
[opus]=opus [opus]=opus
[re2]=re2 [re2]=re2
[snappy]=snappy [snappy]=snappy
[zlib]=libminizip [zlib]=libminizip1
) )
_unwanted_bundled_libs=( _unwanted_bundled_libs=(
@ -305,6 +332,8 @@ install -d -m0755 %{buildroot}%{_libdir}/chromium/ %{buildroot}%{_bindir}
install -m0755 out/Release/chrome %{buildroot}%{_libdir}/chromium/chromium install -m0755 out/Release/chrome %{buildroot}%{_libdir}/chromium/chromium
install -m0755 out/Release/chrome_sandbox %{buildroot}%{_libdir}/chromium/chrome-sandbox install -m0755 out/Release/chrome_sandbox %{buildroot}%{_libdir}/chromium/chrome-sandbox
install -m0755 out/Release/chromedriver %{buildroot}%{_libdir}/chromium/chromedriver install -m0755 out/Release/chromedriver %{buildroot}%{_libdir}/chromium/chromedriver
install -m0755 out/Release/libEGL.so %{buildroot}%{_libdir}/chromium/libEGL.so
install -m0755 out/Release/libGLESv2.so %{buildroot}%{_libdir}/chromium/libGLESv2.so
#install -m0755 out/Release/libwidevinecdm.so %{buildroot}%{_libdir}/chromium/libwidevinecdm.so #install -m0755 out/Release/libwidevinecdm.so %{buildroot}%{_libdir}/chromium/libwidevinecdm.so
#install -m0755 out/Release/libwidevinecdmadapter.so %{buildroot}%{_libdir}/chromium/libwidevinecdmadapter.so #install -m0755 out/Release/libwidevinecdmadapter.so %{buildroot}%{_libdir}/chromium/libwidevinecdmadapter.so
cp out/Release/*.bin %{buildroot}%{_libdir}/chromium/ cp out/Release/*.bin %{buildroot}%{_libdir}/chromium/
@ -416,6 +445,8 @@ ln -s %{_libdir}/chromium/chromedriver %{buildroot}%{_bindir}/chromedriver
%{_libdir}/chromium/chrome-wrapper %{_libdir}/chromium/chrome-wrapper
%attr(4755,root,root) %{_libdir}/chromium/chrome-sandbox %attr(4755,root,root) %{_libdir}/chromium/chrome-sandbox
#%{_libdir}/chromium/icudtl.dat #%{_libdir}/chromium/icudtl.dat
%{_libdir}/chromium/libEGL.so
%{_libdir}/chromium/libGLESv2.so
#%{_libdir}/chromium/libwidevinecdm.so #%{_libdir}/chromium/libwidevinecdm.so
#%{_libdir}/chromium/libwidevinecdmadapter.so #%{_libdir}/chromium/libwidevinecdmadapter.so
%{_libdir}/chromium/master_preferences %{_libdir}/chromium/master_preferences
@ -428,6 +459,12 @@ ln -s %{_libdir}/chromium/chromedriver %{buildroot}%{_bindir}/chromedriver
%{_mandir}/man1/chromium.1* %{_mandir}/man1/chromium.1*
%changelog %changelog
* Fri Nov 13 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 86.0.4240.193-2mamba
- install internal libEGL.so and libGLESv2.so to fix gpu acceleration support
* Wed Nov 11 2020 Automatic Build System <autodist@mambasoft.it> 86.0.4240.193-1mamba
- automatic version update by autodist
* Tue Sep 01 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 85.0.4183.83-1mamba * Tue Sep 01 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 85.0.4183.83-1mamba
- update to 85.0.4183.83 - update to 85.0.4183.83