aboutsummaryrefslogtreecommitdiffstats
path: root/community/chromium/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/chromium/APKBUILD')
-rw-r--r--community/chromium/APKBUILD237
1 files changed, 191 insertions, 46 deletions
diff --git a/community/chromium/APKBUILD b/community/chromium/APKBUILD
index a407b300bb..a9fecfb561 100644
--- a/community/chromium/APKBUILD
+++ b/community/chromium/APKBUILD
@@ -1,23 +1,22 @@
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=chromium
-pkgver=88.0.4324.182
+pkgver=91.0.4472.101
pkgrel=0
pkgdesc="Chromium web browser"
url="https://www.chromium.org/Home"
-arch="x86_64 aarch64" # x86: ./v8_context_snapshot_generator segfaults
- # armv7: /usr/bin/ld: final link failed: memory exhausted when linking chrome
+arch="aarch64 x86_64" # x86: ./v8_context_snapshot_generator segfaults
license="BSD-3-Clause"
makedepends="
alsa-lib-dev
bash
- binutils-gold
bison flex
bsd-compat-headers
bzip2-dev
cairo-dev
clang-dev
cups-dev
+ curl-dev
dbus-glib-dev
elfutils-dev
eudev-dev
@@ -55,12 +54,13 @@ makedepends="
libxscrnsaver-dev
libxslt-dev
linux-headers
+ lld
mesa-dev
minizip-dev
ninja
nodejs
nss-dev
- openjdk8
+ java-jdk
opus-dev
pciutils-dev
perl
@@ -77,7 +77,7 @@ makedepends="
# explicit depends for --headless
depends="xdg-utils eudev-libs ttf-opensans"
options="suid"
-subpackages="$pkgname-chromedriver"
+subpackages="$pkgname-chromedriver $pkgname-lang $pkgname-swiftshader $pkgname-angle"
source="https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz
pstables-2.8.h::https://git.savannah.gnu.org/cgit/freetype/freetype2.git/plain/src/psnames/pstables.h?h=VER-2-8
chromium-launcher.sh
@@ -107,12 +107,116 @@ source="https://commondatastorage.googleapis.com/chromium-browser-official/chrom
aarch64-fixes.patch
elf-arm.patch
- broken-dcheck.patch
- llvm10-compat.patch
- missing-includes.patch
+ remove-unsupported-attribute.patch
+ fix-missing-includes.patch
+ revert-2778794.patch
+
+ disable-floc-component.patch
"
# secfixes:
+# 91.0.4472.101-r0:
+# - CVE-2021-30544
+# - CVE-2021-30545
+# - CVE-2021-30546
+# - CVE-2021-30547
+# - CVE-2021-30548
+# - CVE-2021-30549
+# - CVE-2021-30550
+# - CVE-2021-30551
+# - CVE-2021-30552
+# - CVE-2021-30553
+# 91.0.4472.77-r0:
+# - CVE-2021-30521
+# - CVE-2021-30522
+# - CVE-2021-30523
+# - CVE-2021-30524
+# - CVE-2021-30525
+# - CVE-2021-30526
+# - CVE-2021-30527
+# - CVE-2021-30528
+# - CVE-2021-30529
+# - CVE-2021-30530
+# - CVE-2021-30531
+# - CVE-2021-30532
+# - CVE-2021-30533
+# - CVE-2021-30534
+# - CVE-2021-30535
+# - CVE-2021-21212
+# - CVE-2021-30536
+# - CVE-2021-30537
+# - CVE-2021-30538
+# - CVE-2021-30539
+# - CVE-2021-30540
+# 90.0.4430.72-r0:
+# - CVE-2021-21201
+# - CVE-2021-21202
+# - CVE-2021-21203
+# - CVE-2021-21204
+# - CVE-2021-21205
+# - CVE-2021-21221
+# - CVE-2021-21207
+# - CVE-2021-21208
+# - CVE-2021-21209
+# - CVE-2021-21210
+# - CVE-2021-21211
+# - CVE-2021-21212
+# - CVE-2021-21213
+# - CVE-2021-21214
+# - CVE-2021-21215
+# - CVE-2021-21216
+# - CVE-2021-21217
+# - CVE-2021-21218
+# - CVE-2021-21219
+# 89.0.4389.128-r0:
+# - CVE-2021-21206
+# - CVE-2021-21220
+# 89.0.4389.114-r0:
+# - CVE-2021-21194
+# - CVE-2021-21195
+# - CVE-2021-21196
+# - CVE-2021-21197
+# - CVE-2021-21198
+# - CVE-2021-21199
+# 89.0.4389.90-r0:
+# - CVE-2021-21191
+# - CVE-2021-21192
+# - CVE-2021-21193
+# 89.0.4389.72-r0:
+# - CVE-2021-21158
+# - CVE-2021-21159
+# - CVE-2021-21160
+# - CVE-2021-21161
+# - CVE-2021-21162
+# - CVE-2021-21163
+# - CVE-2021-21164
+# - CVE-2021-21165
+# - CVE-2021-21166
+# - CVE-2021-21167
+# - CVE-2021-21168
+# - CVE-2021-21169
+# - CVE-2021-21170
+# - CVE-2021-21171
+# - CVE-2021-21172
+# - CVE-2021-21173
+# - CVE-2021-21174
+# - CVE-2021-21175
+# - CVE-2021-21176
+# - CVE-2021-21177
+# - CVE-2021-21178
+# - CVE-2021-21179
+# - CVE-2021-21180
+# - CVE-2020-27844
+# - CVE-2021-21181
+# - CVE-2021-21182
+# - CVE-2021-21183
+# - CVE-2021-21184
+# - CVE-2021-21185
+# - CVE-2021-21186
+# - CVE-2021-21187
+# - CVE-2021-21188
+# - CVE-2021-21189
+# - CVE-2021-21190
# 83.0.4103.116-r0:
# - CVE-2020-6505
# - CVE-2020-6506
@@ -130,7 +234,6 @@ else
fi
prepare() {
- cd "$srcdir"
patch_args="-p0"
default_prepare
@@ -196,22 +299,14 @@ build() {
eval "$(base64 -d < $srcdir/google-api.keys)"
msg "Bootstrapping GN"
- local _c=$(_gn_flags is_clang=true \
- use_sysroot=false \
- treat_warnings_as_errors=false \
- fatal_linker_warnings=false \
- use_custom_libcxx=false \
- use_gold=false \
- use_allocator=\"none\" \
- use_allocator_shim=false \
- use_vaapi=true \
- )
# AR="ar" CC="${CC:-gcc}" CXX="${CXX:-g++}" LD="${CXX:-g++}" \
CC="${CC:-clang}" CXX="${CXX:-clang++}" LD="${CXX:-clang++}" \
- python2 tools/gn/bootstrap/bootstrap.py -s -v --gn-gen-args "$_c"
+ python2 tools/gn/bootstrap/bootstrap.py -s -v --skip-generate-buildfiles
msg "Configuring build"
+
+ local _c _ca
_c=$(_gn_flags \
blink_symbol_level=0 \
clang_use_chrome_plugins=false \
@@ -241,7 +336,7 @@ build() {
use_custom_libcxx=false \
use_gnome_keyring=false \
use_gold=false \
- use_lld=false \
+ use_lld=true \
use_pulseaudio=false \
use_sysroot=false \
use_system_harfbuzz=true \
@@ -252,8 +347,15 @@ build() {
use_system_libpng=true \
use_system_lcms2=true \
use_system_zlib=true \
+ build_with_tflite_lib=false \
+ enable_vr=false \
)
+ case $CARCH in
+ x86*|aarch64) _ca="use_vaapi=true" ;;
+ *) _ca="concurrent_links=1" ;;
+ esac
+
AR="ar" CC="clang" CXX="clang++" LD="clang++" NM=/usr/bin/nm \
out/Release/gn gen out/$_buildtype --args="$_c $_ca"
@@ -280,21 +382,22 @@ build() {
}
package() {
- cd out/$_buildtype
- local bin pak
- for bin in chrome chromedriver *.bin; do
- install -Dm755 $bin "$pkgdir"/usr/lib/$pkgname/$bin
- done
-
- install -Dm755 swiftshader/libEGL.so "$pkgdir"/usr/lib/$pkgname/swiftshader/libEGL.so
- install -Dm755 swiftshader/libGLESv2.so "$pkgdir"/usr/lib/$pkgname/swiftshader/libGLESv2.so
+ cd "$builddir"/out/$_buildtype
+ # binaries
+ install -Dm755 chrome "$pkgdir"/usr/lib/$pkgname/chrome
install -Dm4755 chrome_sandbox "$pkgdir"/usr/lib/$pkgname/chrome-sandbox
+
+ # resources
+ install -Dm644 snapshot_blob.bin "$pkgdir"/usr/lib/$pkgname/
+ install -Dm644 v8_context_snapshot.bin "$pkgdir"/usr/lib/$pkgname/
+
install -m644 icudtl.dat "$pkgdir"/usr/lib/$pkgname/icudtl.dat
install -Dm755 xdg-mime "$pkgdir"/usr/lib/$pkgname/xdg-mime
install -Dm755 xdg-settings "$pkgdir"/usr/lib/$pkgname/xdg-settings
+ local pak
for pak in *.pak; do
install -Dm644 $pak "$pkgdir"/usr/lib/$pkgname/$pak
done
@@ -302,15 +405,15 @@ package() {
install -Dm755 "$srcdir"/chromium-launcher.sh \
"$pkgdir"/usr/lib/$pkgname/chromium-launcher.sh
- cp -a locales "$pkgdir"/usr/lib/$pkgname/
cp -a MEIPreload "$pkgdir"/usr/lib/$pkgname/
+ # Default to en-us and provide everything else through the chromium-lang package
+ install -Dm644 locales/en-US.pak "$pkgdir"/usr/lib/$pkgname/locales/en-US.pak
+
# It is important that we name the target "chromium-browser",
# xdg-utils expect it; bug #355517.
mkdir -p "$pkgdir"/usr/bin
- cd "$pkgdir"/usr/bin
- ln -sf /usr/lib/$pkgname/chromium-launcher.sh chromium-browser
- ln -sf /usr/lib/$pkgname/chromedriver "$pkgdir"/usr/bin/
+ ln -sf /usr/lib/$pkgname/chromium-launcher.sh "$pkgdir"/usr/bin/chromium-browser
install -Dm644 "$srcdir"/chromium.conf \
"$pkgdir"/etc/chromium/chromium.conf
@@ -332,27 +435,67 @@ package() {
chromedriver() {
pkgdesc="WebDriver driver for the Chromium Browser"
+ depends="$pkgname=$pkgver-r$pkgrel"
+
+ cd "$builddir"/out/$_buildtype
+
mkdir -p "$subpkgdir"/usr/lib/$pkgname "$subpkgdir"/usr/bin
- mv "$pkgdir"/usr/lib/$pkgname/chromedriver \
- "$subpkgdir"/usr/lib/$pkgname/
- mv "$pkgdir"/usr/bin/chromedriver "$subpkgdir"/usr/bin
+
+ install -Dm755 chromedriver "$subpkgdir"/usr/lib/$pkgname/chromedriver
+ ln -sf /usr/lib/$pkgname/chromedriver "$subpkgdir"/usr/bin/
+}
+
+lang() {
+ pkgdesc="Languages for package $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel lang"
+
+ cd "$builddir"/out/$_buildtype
+
+ for pak in locales/*.pak; do
+ install -Dm644 "$pak" "$subpkgdir"/usr/lib/$pkgname/"$pak"
+ done;
+
+ rm "$subpkgdir"/usr/lib/$pkgname/locales/en-US.pak
+}
+
+swiftshader() {
+ pkgdesc="Chromium web browser: CPU-based implementation of the Vulkan graphics API"
+ depends="$pkgname-angle=$pkgver-r$pkgrel"
+
+ cd "$builddir"/out/$_buildtype
+
+ install -Dm755 swiftshader/libEGL.so \
+ "$subpkgdir"/usr/lib/$pkgname/swiftshader/libEGL.so
+ install -Dm755 swiftshader/libGLESv2.so \
+ "$subpkgdir"/usr/lib/$pkgname/swiftshader/libGLESv2.so
+}
+
+angle() {
+ pkgdesc="Chromium web browser: ANGLE based hardware acceleration"
+ depends=""
+
+ cd "$builddir"/out/$_buildtype
+
+ install -Dm755 libEGL.so "$subpkgdir"/usr/lib/$pkgname/libEGL.so
+ install -Dm755 libGLESv2.so "$subpkgdir"/usr/lib/$pkgname/libGLESv2.so
}
-sha512sums="ce8d507645e937107847199b55287ec5522e778851367a19c4cfa4ff5fae18e7c7ea999aa7b0ad0758fab68a003f201bf38ae51e3642388705de2ada9be87730 chromium-88.0.4324.182.tar.xz
+sha512sums="
+d779888d4b6e16c2dcdc18d008d3a5ed755926e9ab2ad1586167c45200d4074b74ab19258c2f6d7515d705cd51815a7601feb0bfab133b4b40d062fd1697525a chromium-91.0.4472.101.tar.xz
a3bb959c65944ae2fb765725cedcffd743a58bc0c2cd1f1999d15fe79801d00f3474b08b4ed7b48859ed921eb57093d0ad09d90f201d729ed9b8a419a591ed29 pstables-2.8.h
b9a810416dd7a8ffc3a5ced85ad9acebda1665bd08a57eec7b189698cc5f74d2c3fd69044e20fcb83297a43214b2772a1312b2c6122ea0eb716abacf39524d60 chromium-launcher.sh
f6d962b9e4c22dd42183df3db5d3202dab33eccecafb1bf63ca678147289581262db1e5e64cbe8f9c212beefb0a6717bb8d311e497f56b55fe95b8bab2db493f chromium.conf
-be4cf2c37fe0ae7bbab53aacb1d3956c22f2b94671879ff4a6c9fa65e021345f168befe3e159704c0c2d281de5c66859d24be4016beec3090f7ef752a93376f3 chromium.desktop
+e182c998a43d22d1c76a86c561619afd1fca8c2be668265ad5e2f81a3806f7a154272cc027a2f8b370fb69446892c69e5967a4be76082325c14245ee7915234c chromium.desktop
2d8237a940ea691bd10b08315429677a587f7ef9692a0cca53bfd066eae82998a6c71f402a8669e9de39f94d7f3280745d1628ea6eac5d76ca7116844d4e0dac google-api.keys
b726ef2ecfe7d471e60d67de1e05847d214df6093b41bb2055652a9028327af19a8b10e7175467240f4dfec9e3ae97a6c4666bfd2cd6cb436c54656a085653ae default-pthread-stacksize.patch
-a5969b1e71d141521fe2b9848660580ce93f6b5d51271bc287e6f98ea8bf55501d73e01b1adc9327d316498d4e7f82f53eda67a2561a59e5c26388957904f1e7 musl-fixes.patch
+03ae8061f092159fd6c0f0baa2ba88fb5b18e218bdb10aa8fe359023cde13dd218ce18b86fe06cfcc2c48021ecba8c67db7ba5f3bc479245a29c90ee036dceca musl-fixes.patch
e8675aff9fccd8b58cc839ef1d9e0e022d66aa94f72baa72e7acf92ceb2691f6a7907cc60ec3a87f894efdd639a3dec7fe702c97d446fcdea99452caec57e002 musl-fixes-breakpad.patch
2d27aa2ee872fb9667215e0bbf0b0c7714d87cf632ca888926765509c3a5cfc5a615cc8a39cdb47b2928a2734dc16cccbbf8f83b95f72e05dfc034dbf08db9e9 musl-hacks.patch
919f13a2cd65673f267321cf95c5410e65bc5264d6704d0791b25d39111282bedb425bd9824dde3b67422cfb874c86a9383ded686e39cfd4aac239edaf41cfc8 musl-libc++.patch
ef43fa90b05e2407b6daa822193121cdeef6ee9068175572f0928f156f186be9c77539dfa06863adfaa25afd498ec1b5081f9e476543616f9472b9033fd921dc musl-sandbox.patch
-883dfae96f42a4b4182e280dfb3309faabd3c593aaa4e0814d887b585024e00a49b20fc8268f482a44ec7f524005796542aacb5fdeff8ede2f9a1f738d2dd4f2 no-execinfo.patch
-f4b3f8bf93201f6053cae2a824d011c205e8882c9ef560b5ed4b727c2fc27e8e38aa18f606308f09b1dc14ee4b6e9fecdde728c20a5796a4fc7c77c214d636a3 no-mallinfo.patch
-f60c89076bbc458e2e38d9dad26027f9604179fd59e0c2b988a86340b9ef78a4c346c84ac3e7e4e70badaff69d71edf49d7b9030e5fadb96afde4f977a98c412 resolver.patch
+7c40818a919d0dd0fe57c3af3be59ad8b2726167b4f6bca152c24a5c2bf8fe8a063dcb63cc6685a8f38eea4a2e8c5fe9170150fcb9875c116fa975838cc9593c no-execinfo.patch
+55d396e02bbbff5f63c9737988758af50a2525cebbacccdbe882d0c657fc010284688d7954679af79da0284e77a21d9c98c548a50952b06e499c03f0f0a50465 no-mallinfo.patch
+377ff1b38f1a6d723e9d26417a4a929b404c38791ed0c95abffd05917685f667c3ed75709f086e11434e3c76c4ec7360ed6692c9dbd4e8e6d5c7848dc9d08de5 resolver.patch
f4265df7532625070c51ac43466e3e0f21e696f90c3b6040ef62a21defa7666203ff8219d9c9a5bebc011024aff300fbcbd941cebd0df59c4bc068d8f290221e swiftshader.patch
cf9970ef403ff7a68bf08c0ba5e681eec459fcb1afb6859e5a80f4874f1b9a656377b4540eeb5208ddec570efa206f147e32718c687fa29ca3acc4fde6e8cbe8 chromium-use-alpine-target.patch
599f5ef338b5797e04436bdc88921c31365d2dea2613d40053be6e774f654e2889efb0c0bd55c2c5044a6805510fbc337da555971169a75d584fac93e18256ac media-base.patch
@@ -363,6 +506,8 @@ cf9970ef403ff7a68bf08c0ba5e681eec459fcb1afb6859e5a80f4874f1b9a656377b4540eeb5208
ad4ddc25df7aa1de2038b7adb86d27679ecdb7e3e16c0eec994e947a08c41504b6fb41166f7868ff5f58ce8191c78800cbb91d259c864840fa5af1d7ba5d43a1 gcc-arm.patch
cc67d2a77910663e5a1ad5f66606ee2544867aa1fef25e1a1bc355a8db765d5928edb72f158e6a2ece4195c9b62b875dcdcab4e4055e7611edab405e8cfd658e aarch64-fixes.patch
9b1441fe42421ef9ead86a5143bf997d989bd53a8969cdfdf4e0c45f847efc8c1d127e15fb05e2ef5dbefbb228cbdc2849404d74997ca56265599e12e5efd6e4 elf-arm.patch
-e54adfc8c48a47591cf329882167d16180701ec0703162c8691378d59199364b1cdcf9248f1ebd33d4873dd15bda44eeb67c20185b6fd0e9d4c9b08152ad912a broken-dcheck.patch
-f53d955ef5035012801bd8706b05385de1bc5f3ee56878951583c6af688c2ecd9411dd6bf91e648ab0a1ce7fe6429afb0be1a3c2fee6dc29fa8b499c65276fba llvm10-compat.patch
-765337d20fc6d805df896ec49c26c63b9d97810b474514c7c9d67739441fc57d5376f71338dac124e1fc7fc7d9fc8d2fff63bfebad8a6ed99d8e5991da7ea1a1 missing-includes.patch"
+51fabfc4725ab13f626653c1cc91a70df5e60477351ac1fe7f94bc9f1b1f8fb32d984ba4657f0384f53de620b7dd4aa154c6f2f104c4c42fcfe2f9721ba5ea1f remove-unsupported-attribute.patch
+f924539cd1bb8ee87f5dfb5acc6dc33a653b58d96d3b581dc7ab76489775ce0c39a2c9c541d25c6df142225344fe7932c81ec8d015e21eac03658abf7838fae4 fix-missing-includes.patch
+2f976087c7f9b685d7526c6ccfe662ba642189b5044224e662e6965d9dfa5ba5b96f8bb7ebef1cb225356e7f63427288b42f12e9842d432164de9ac74642805a revert-2778794.patch
+f2291a1fb233615cf0eb2e1fac61307a8e6dc1981eb60f3f4f91e4318dfbc2ce8d96660cd355d397882b06fe4d66a091247c9affc30e19d17190cfe3ac155352 disable-floc-component.patch
+"