Package Details: chromium-dev 126.0.6423.2-1

Git Clone URL: https://aur.archlinux.org/chromium-dev.git (read-only, click to copy)
Package Base: chromium-dev
Description: The open-source project behind Google Chrome (Dev Channel)
Upstream URL: http://www.chromium.org
Keywords: browser web
Licenses: BSD
Submitter: None
Maintainer: sl1pkn07
Last Packager: sl1pkn07
Votes: 158
Popularity: 0.005340
First Submitted: 2010-05-17 09:04 (UTC)
Last Updated: 2024-04-21 19:18 (UTC)

Required by (0)

Sources (13)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 152 Next › Last »

alex19EP commented on 2022-01-07 01:07 (UTC)

fails to build if lto is enabled. to fix I advise to synchronize with chromium from extra

DAC324 commented on 2021-11-02 17:17 (UTC) (edited on 2021-11-02 17:18 (UTC) by DAC324)

Hardware accelerated video decoding using vaapi currently does not seem to work (see log from chromium-dev, on the chrome://gpu page):

[4210:4961:1102/135750.651953:FATAL:vaapi_wrapper.cc(2358)] : Check failed: sequence_checker_.CalledOnValidSequence(). 
#0 0x7f8c160035fe base::debug::CollectStackTrace() 
#1 0x7f8c15f30efb base::debug::StackTrace::StackTrace() 
#2 0x7f8c15f4c0ea logging::LogMessage::~LogMessage() 
#3 0x7f8c15f4cc85 logging::LogMessage::~LogMessage() 
#4 0x7f8c064c84fa media::VaapiWrapper::SubmitBuffers() 
#5 0x7f8c064a038f (/usr/lib/chromium-dev/libservice.so+0x23238e) 
#6 0x7f8c064d4fa4 media::H264Decoder::StartNewFrame() 
#7 0x7f8c064d7904 media::H264Decoder::Decode() 
#8 0x7f8c064aa50f media::VaapiVideoDecodeAccelerator::DecodeTask() 
#9 0x7f8c15fb30bc base::TaskAnnotator::RunTask() 
#10 0x7f8c15fc95be base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl() 
#11 0x7f8c15fc92fc base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() 
#12 0x7f8c15fc9989 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() 
#13 0x7f8c15f569db base::MessagePumpDefault::Run() 
#14 0x7f8c15fc9c26 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run() 
#15 0x7f8c15f89061 base::RunLoop::Run() 
#16 0x7f8c15fea29b base::Thread::Run() 
#17 0x7f8c15fea451 base::Thread::ThreadMain() 
#18 0x7f8c1601894c (/usr/lib/chromium-dev/libbase.so+0x22294b) 
#19 0x7f8c0700b259 start_thread 
#20 0x7f8c069f25e3 __GI___clone Task trace: 
#0 0x7f8c064ac67e media::VaapiVideoDecodeAccelerator::AssignPictureBuffers() 
#1 0x7f8c0d82075a (/usr/lib/chromium-dev/libmedia_mojo_services.so+0x9f759) 
#2 0x7f8c064ab814 media::VaapiVideoDecodeAccelerator::TryFinishSurfaceSetChange() 
#3 0x7f8c064aa80b media::VaapiVideoDecodeAccelerator::DecodeTask() 
#4 0x7f8c064aa01b media::VaapiVideoDecodeAccelerator::QueueInputBuffer() Task trace buffer limit hit, update PendingTask::kTaskBacktraceLength to increase. Crash keys: "last-video-decoder" = "name=VDAVideoDecoder:codec=h264:profile=3:size=1280x720:cs=[1,1,2,1]:hdrm=0" "num-video-decoders" = "1"
GpuProcessHost: The GPU process crashed!

DAC324 commented on 2021-09-28 10:13 (UTC) (edited on 2021-09-28 11:24 (UTC) by DAC324)

This package does not compile if -march is set to something different than -march=x86-64 in CCFLAGS in /etc/makepkg.conf. If you encounter errors like below, you will have to check if that flag is set to the generic -march=x86-64.

[3293/56075] /var/tmp/pamac-build-gerd/chromium-dev/src/chromium-96.0.4651.0/third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/skia/skia_core_and_effects/SkOpts.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-14-init-3940-gafc45ff0-2\" -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=79a2e924d96e2fc1e4b937c42efd08898fa472d7 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DSK_UNTIL_CRBUG_1187654_IS_FIXED -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_ENABLE_SKSL -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_HAS_WUFFS_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSKIA_DLL -DSKCMS_API=__attribute__\(\(visibility\(\"default\"\)\)\) -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_USE_PLATFORM_XCB_KHR -DSKIA_IMPLEMENTATION=1 -DSK_GAMMA_EXPONENT=1.2 -DSK_GAMMA_CONTRAST=0.2 -DSK_DEFAULT_FONT_CACHE_LIMIT=20971520 -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/skia -I../../third_party/wuffs/src/release/c -I../../third_party/vulkan/include -I../../third_party/vulkan-deps/vulkan-headers/src/include -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -ffp-contract=off -fcomplete-member-pointers -m64 -march=x86-64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -fno-omit-frame-pointer -g0 -ftrivial-auto-var-init=pattern -fvisibility=hidden -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -Wno-builtin-assume-aligned-alignment -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -std=c++17 -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include -fvisibility-inlines-hidden -std=c++17 -march=native -mtune=native -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -I/usr/include -D__DATE__=  -D__TIME__=  -D__TIMESTAMP__= -march=native -mtune=native -O2 -pipe -fstack-protector-strong -fno-plt  -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -I/usr/include -Wp,-D_GLIBCXX_ASSERTIONS -Wno-builtin-macro-redefined -c ../../third_party/skia/src/core/SkOpts.cpp -o obj/skia/skia_core_and_effects/SkOpts.o
FAILED: obj/skia/skia_core_and_effects/SkOpts.o 
/var/tmp/pamac-build-gerd/chromium-dev/src/chromium-96.0.4651.0/third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/skia/skia_core_and_effects/SkOpts.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-14-init-3940-gafc45ff0-2\" -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=79a2e924d96e2fc1e4b937c42efd08898fa472d7 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DSK_UNTIL_CRBUG_1187654_IS_FIXED -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_ENABLE_SKSL -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_HAS_WUFFS_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSKIA_DLL -DSKCMS_API=__attribute__\(\(visibility\(\"default\"\)\)\) -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_USE_PLATFORM_XCB_KHR -DSKIA_IMPLEMENTATION=1 -DSK_GAMMA_EXPONENT=1.2 -DSK_GAMMA_CONTRAST=0.2 -DSK_DEFAULT_FONT_CACHE_LIMIT=20971520 -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/skia -I../../third_party/wuffs/src/release/c -I../../third_party/vulkan/include -I../../third_party/vulkan-deps/vulkan-headers/src/include -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -ffp-contract=off -fcomplete-member-pointers -m64 -march=x86-64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -fno-omit-frame-pointer -g0 -ftrivial-auto-var-init=pattern -fvisibility=hidden -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -Wno-builtin-assume-aligned-alignment -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -std=c++17 -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include -fvisibility-inlines-hidden -std=c++17 -march=native -mtune=native -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -I/usr/include -D__DATE__=  -D__TIME__=  -D__TIMESTAMP__= -march=native -mtune=native -O2 -pipe -fstack-protector-strong -fno-plt  -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -I/usr/include -Wp,-D_GLIBCXX_ASSERTIONS -Wno-builtin-macro-redefined -c ../../third_party/skia/src/core/SkOpts.cpp -o obj/skia/skia_core_and_effects/SkOpts.o
In file included from ../../third_party/skia/src/core/SkOpts.cpp:46:
../../third_party/skia/src/opts/SkRasterPipeline_opts.h:3137:44: error: cannot initialize a parameter of type 'avx::F' (aka 'V<float>') with an lvalue of type '__m128' (vector of 4 'float' values)
    return join<F>(SK_OPTS_NS::rcp_precise(lo), SK_OPTS_NS::rcp_precise(hi));
                                           ^~
../../third_party/skia/src/opts/SkRasterPipeline_opts.h:369:25: note: passing argument to parameter 'v' here
    SI F rcp_precise (F v) {
                        ^
../../third_party/skia/src/opts/SkRasterPipeline_opts.h:3137:73: error: cannot initialize a parameter of type 'avx::F' (aka 'V<float>') with an lvalue of type '__m128' (vector of 4 'float' values)
    return join<F>(SK_OPTS_NS::rcp_precise(lo), SK_OPTS_NS::rcp_precise(hi));
                                                                        ^~
../../third_party/skia/src/opts/SkRasterPipeline_opts.h:369:25: note: passing argument to parameter 'v' here
    SI F rcp_precise (F v) {
                        ^
2 errors generated.

gnaggnoyil commented on 2021-07-28 14:09 (UTC) (edited on 2021-07-28 17:40 (UTC) by gnaggnoyil)

Official Gentoo ebuild repository has updated filename of their patches in www-client/chromium/files. Please update corresponding src items in PKGBUILD.

DAC324 commented on 2021-04-26 12:32 (UTC)

Starting with v91, chromium-dev does not display the default font correctly in the UI and in web pages. In order to circumvent that, chromium-dev has to be started with the --no-sandbox -test-type command line options.

Already filed an issue (https://bugs.chromium.org/p/chromium/issues/detail?id=1193445) but it looks like there is no solution yet.

DAC324 commented on 2021-04-26 09:07 (UTC) (edited on 2021-04-28 13:25 (UTC) by DAC324)

If anybody wants to use Chromium Dev in the version 92.0.4487.7 - here's a patch to PKGBUILD to enable this version:

--- PKGBUILD_91.0.4472.10   2021-04-26 10:55:51.019695028 +0200
+++ PKGBUILD    2021-04-28 15:08:05.278179868 +0200
@@ -15,7 +15,7 @@
 ## -- Package and components information -- ##
 ##############################################
 pkgname=chromium-dev
-pkgver=91.0.4472.10
+pkgver=92.0.4484.7
 pkgrel=1
 pkgdesc="The open-source project behind Google Chrome (Dev Channel)"
 arch=('x86_64')
@@ -28,7 +28,7 @@
 #          'minizip'
          'nss'
          'pciutils'
-#          're2'
+         're2'
          'snappy'
          'xdg-utils'
 #          'protobuf'
@@ -76,17 +76,15 @@
 source=(
         #"https://gsdview.appspot.com/chromium-browser-official/chromium-${pkgver}.tar.xz"
         "https://commondatastorage.googleapis.com/chromium-browser-official/chromium-${pkgver}.tar.xz"
+        # "chromium-browser-official/chromium-${pkgver}.tar.xz"
         'git+https://github.com/foutrelis/chromium-launcher.git'
         'chromium-dev.svg'
-        # Patch form Gentoo.
+        # Patch from Gentoo.
         'https://raw.githubusercontent.com/gentoo/gentoo/master/www-client/chromium/files/chromium-89-EnumTable-crash.patch'
         'https://raw.githubusercontent.com/gentoo/gentoo/master/www-client/chromium/files/chromium-shim_headers.patch'
-        'https://raw.githubusercontent.com/gentoo/gentoo/master/www-client/chromium/files/chromium-91-system-icu.patch'
-        'https://raw.githubusercontent.com/gentoo/gentoo/master/www-client/chromium/files/chromium-91-ThemeService-crash.patch'
         # Misc Patches.
         'fix_hevc_in_non_cromeos_r1.patch'
         # Patch from crbug.com (chromium bugtracker), chromium-review.googlesource.com / Gerrit or Arch chromium package.
-        'https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/chromium/trunk/chromium-glibc-2.33.patch'
         'https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/chromium/trunk/use-oauth2-client-switches-as-default.patch'
         )
 sha256sums=(
@@ -94,15 +92,13 @@
             "$(curl -sL https://commondatastorage.googleapis.com/chromium-browser-official/chromium-${pkgver}.tar.xz.hashes | grep sha256 | cut -d ' ' -f3)"
             'SKIP'
             'dd2b5c4191e468972b5ea8ddb4fa2e2fa3c2c94c79fc06645d0efc0e63ce7ee1'
-            # Patch form Gentoo
+            # Patch from Gentoo
             '61066e638ee795e888d12cc2c4af42c8cf3fe9f473b1dc0b78c9e87faf5eacda'
             'fabf66cfb15449011a20e377d600573b6338cc4c52e3f28f80e0541772659e8b'
-            '1276018471004688356ef70be708ce96a816ffca6625ed7cc99cb985b6e15559'
-            '26cc77232d06e55b50a253617fb87218b0058ba2b0271fef5845bcc474f6a117'
             # Misc Patches
-            '70f7a1736aabd63bbdf5060c015b220ede7d5d19837408eb4a5172099aecd862'
+             '70f7a1736aabd63bbdf5060c015b220ede7d5d19837408eb4a5172099aecd862'
+            # 9d685d75c9384ebd4a0976796db607b36d8500c97fb5f1fb572b0356a3b39987
             # Patch from crbug (chromium bugtracker) or Arch chromium package
-            '2fccecdcd4509d4c36af873988ca9dbcba7fdb95122894a9fdf502c33a1d7a4b'
             'e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711'
             )
 install=chromium-dev.install
@@ -119,7 +115,7 @@
 #_google_default_client_id="413772536636.apps.googleusercontent.com"
 #_google_default_client_secret="0ZChLK6AxeA3Isu96MkwqDR4"

-# List of third-party components needed for build chromium. The rest is remove by remove_bundled_libraries srcipt in prepare().
+# List of third-party components needed for build chromium. The rest is removed by remove_bundled_libraries srcipt in prepare().
 _keeplibs=(
            'base/third_party/cityhash'
            'base/third_party/double_conversion'
@@ -183,6 +179,7 @@
            'third_party/dav1d'
            'third_party/dawn'
            'third_party/dawn/third_party/khronos'
+           'third_party/dawn/third_party/tint'  # new in Chromium 92
            'third_party/depot_tools'
            'third_party/devscripts'
            'third_party/devtools-frontend'
@@ -190,6 +187,7 @@
            'third_party/devtools-frontend/src/front_end/third_party/axe-core'
            'third_party/devtools-frontend/src/front_end/third_party/chromium'
            'third_party/devtools-frontend/src/front_end/third_party/codemirror'
+           'third_party/devtools-frontend/src/front_end/third_party/diff' # new in Chromium 92
            'third_party/devtools-frontend/src/front_end/third_party/fabricjs'
            'third_party/devtools-frontend/src/front_end/third_party/i18n'
            'third_party/devtools-frontend/src/front_end/third_party/intl-messageformat'
@@ -198,8 +196,10 @@
            'third_party/devtools-frontend/src/front_end/third_party/lodash-isequal'
            'third_party/devtools-frontend/src/front_end/third_party/marked'
            'third_party/devtools-frontend/src/front_end/third_party/puppeteer'
+           'third_party/devtools-frontend/src/third_party/typescript' # new in Chromium 92
            'third_party/devtools-frontend/src/front_end/third_party/wasmparser'
            'third_party/devtools-frontend/src/third_party'
+           'third_party/devtools-frontend/src/inspector_overlay' # new in Chromium 92
            'third_party/dom_distiller_js'
            'third_party/eigen3'
            'third_party/emoji-segmenter'
@@ -317,7 +317,7 @@
            'third_party/tflite/src/third_party/fft2d'
            'third_party/tflite-support'
            'third_party/tcmalloc'
-           'third_party/tint'
+#           'third_party/tint'
            'third_party/ruy'
            'third_party/ukey2'
            'third_party/unrar'
@@ -356,19 +356,26 @@
            'third_party/speech-dispatcher'
            'third_party/usb_ids'
            'third_party/xdg-utils'
+#           'third_party/xstream'
            )

 _keeplibs+=(
             'third_party/icu' # https://crbug.com/678661.
             )

+if [ "${_use_wayland}" = "1" ]; then
+  _keeplibs+=(
+              'third_party/minigbm'
+             )
+fi
+
 # Set build flags.
 _flags=(
         "custom_toolchain=\"//build/toolchain/linux/unbundle:default\""
         "host_toolchain=\"//build/toolchain/linux/unbundle:default\""
+        "target_os=\"linux\""
         'is_debug=false'
         'is_official_build=false'
-        'chrome_pgo_phase=0' # unsupported instrumentation profile format version
         'is_component_build=true'
         'enable_widevine=true'
         'enable_hangout_services_extension=true'
@@ -387,7 +394,10 @@
         'treat_warnings_as_errors=false'
         'enable_nacl=true'
         'enable_nacl_nonsfi=true'
-        'use_custom_libcxx=true' # use true if you want use bundled RE2
+# Most developers don't normally need to test Native Client capabilities and can speed up the build by disabling it.
+#        'enable_nacl=false'
+#        'enable_nacl_nonsfi=false'
+        'use_custom_libcxx=false' # use true if you want use bundled RE2
         'use_vaapi=true'
         'enable_platform_hevc=true'
         'enable_platform_ac3_eac3_audio=true'
@@ -406,13 +416,13 @@
 if [ "${_use_wayland}" = "1" ]; then
   _flags+=(
            'ozone_platform_wayland=true'
+           'use_xkbcommon=true'
            'use_system_libdrm=true'
-           'use_system_minigbm=true'
            'use_system_libwayland=true'
            'use_v4l2_codec=true'
-           'use_xkbcommon=true'
-           "ozone_platform=\"wayland"\"
+           "ozone_platform=\"wayland\""
            'rtc_use_pipewire=true'
+           'rtc_link_pipewire=true'
            'rtc_pipewire_version="0.3"' # will be the default in Chromium 90
            )
 fi
@@ -420,23 +430,23 @@
 # Set the bundled/external components.
 # TODO: need ported to GN as GYP doing before. see status page: https://crbug.com/551343.
 _use_system=(
-#              'ffmpeg'       # I'm not sure why, but all videos stop playback if use system ffmpeg.
+             'ffmpeg'       # I'm not sure why, but all videos stop playback if use system ffmpeg.
              'flac'
              'fontconfig'
              'freetype'
              'harfbuzz-ng'
-#              'icu'          # https://crbug.com/678661.
+             'icu'          # use bundled version if compile fails: https://crbug.com/678661.
              'libdrm'
-#              'libevent'     # Get segfaults and other problems https://bugs.gentoo.org/593458.
+             'libevent'     # Use the bundled version if there are segfaults and other problems https://bugs.gentoo.org/593458.
              'libjpeg'
              'libpng'
-#              'libvpx'
+             'libvpx'       # Use bundled version in case of compile errors
              'libwebp'
              'libxml'
              'libxslt'
              'openh264'
              'opus'
-#              're2'
+             're2'
              'snappy'
 #              'yasm'
 #              'zlib'         # NaCL needs it
@@ -466,6 +476,8 @@

 _clang_path="${BUILDDIR}${_builddir}/src/chromium-${pkgver}/third_party/llvm-build/Release+Asserts/bin/"

+export FC_CONFIG_FILE="/etc/fonts/fonts.conf"
+export FC_CONFIG_DIR="/etc/fonts"
 export CC="${_clang_path}clang"
 export CXX="${_clang_path}clang++"
 export AR="${_clang_path}llvm-ar"
@@ -473,6 +485,7 @@
 export RANLIB=/usr/bin/true
 _lld="ld.lld"

+
 ################################################

 prepare() {
@@ -489,7 +502,7 @@
   2to3 -w --no-diff third_party/ffmpeg/chromium/scripts/build_ffmpeg.py

   # Remove most bundled libraries. Some are still needed.
-  msg2 "Removing unnecessary components to save disk space."
+  msg2 "Removing unnecessary components to save disk space: "
   build/linux/unbundle/remove_bundled_libraries.py ${_keeplibs[@]} --do-remove

   msg2 "Changing bundle libraries to system ones."
@@ -523,9 +536,9 @@
       -e "s|'app_name': 'Chromium|&-dev|g" \
       -i components/policy/tools/template_writers/writer_configuration.py

-  # Fix(?) the name of the sandbox.
-  sed -e 's|chrome-sandbox|chrome_sandbox|g'\
-      -i sandbox/linux/suid/client/setuid_sandbox_host.cc
+# Fix(?) the name of the sandbox.
+#  sed -e 's|chrome-sandbox|chrome_sandbox|g'\
+#      -i sandbox/linux/suid/client/setuid_sandbox_host.cc

   # If use ccache, set it.
   if check_buildoption ccache y; then
@@ -549,31 +562,28 @@
       -i third_party/blink/renderer/core/xml/*.cc \
       -i third_party/blink/renderer/core/xml/parser/xml_document_parser.cc \
       -i third_party/libxml/chromium/libxml_utils.cc
-
+  # Fix Java assertion (https://groups.google.com/a/chromium.org/g/chromium-checkins/c/gEBqCY8Bqrc?pli=1)
   ln -s /usr/bin/java third_party/jdk/current/bin/java
+  # patch -p1 -i "${srcdir}/java-assertion.patch"

   # Fix build if enable HEVC in non-chromeOS system
+  msg2 "Fix HEVC in non-ChromeOS"
   patch -p1 -i "${srcdir}/fix_hevc_in_non_cromeos_r1.patch"

   # # Patch from Gentoo
+  msg2 "Patches from Gentoo:"
+  msg2 "1. EnumTable Crash"
   patch -p1 -i "${srcdir}/chromium-89-EnumTable-crash.patch"
+  msg2 "2. Shim Headers"
   patch -p1 -i "${srcdir}/chromium-shim_headers.patch"
-  patch -p1 -i "${srcdir}/chromium-91-ThemeService-crash.patch"
-  patch -p1 -i "${srcdir}/chromium-91-system-icu.patch"

   # # Patch from crbug.com (chromium bugtracker), chromium-review.googlesource.com / Gerrit or Arch chromium package.
-
   # Use the --oauth2-client-id= and --oauth2-client-secret= switches for
   # setting GOOGLE_DEFAULT_CLIENT_ID and GOOGLE_DEFAULT_CLIENT_SECRET at
   # runtime -- this allows signing into Chromium without baked-in values
+  msg2 "Use OAuth2 client switches as default"
   patch -p1 -i "${srcdir}/use-oauth2-client-switches-as-default.patch"

-  # https://crbug.com/1164975
-  patch -p1 -i "${srcdir}/chromium-glibc-2.33.patch"
-  sed '34i#define AT_EMPTY_PATH 0x1000' -i sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
-
-  # Upstream fixes
-
   # Setup nodejs dependency.
   mkdir -p third_party/node/linux/node-linux-x64/bin/
   ln -sf /usr/bin/node third_party/node/linux/node-linux-x64/bin/node

sl1pkn07 commented on 2021-04-22 13:49 (UTC)

thanks @hexhu

switch to bundled SPIRV headers

greetings

hexhu commented on 2021-04-22 04:30 (UTC) (edited on 2021-04-22 04:30 (UTC) by hexhu)

@sl1pkn07 worked like a charm:

using spirv-headers-git: compiles

only appending to _keeplibs: compiles

with both: compiles

sl1pkn07 commented on 2021-04-21 13:50 (UTC)

try to use spirv-headers-git in [AUR], or add this line in the _keeplibs array

'third_party/swiftshader/third_party/SPIRV-Headers/include/spirv/unified1'

greetings

hexhu commented on 2021-04-21 01:00 (UTC)

@sl1pkn07 somehow the error persists: https://pastebin.aosc.io/paste/Ygt6e8sGQpiYV6qgK6LOWg

thanks for the help!