Package Details: ungoogled-chromium 131.0.6778.85-1

Git Clone URL: https://aur.archlinux.org/ungoogled-chromium.git (read-only, click to copy)
Package Base: ungoogled-chromium
Description: A lightweight approach to removing Google web service dependency
Upstream URL: https://github.com/ungoogled-software/ungoogled-chromium
Keywords: blink browser privacy web
Licenses: BSD-3-Clause
Conflicts: chromedriver, chromium
Provides: chromedriver, chromium
Submitter: ilikenwf
Maintainer: JstKddng (networkException)
Last Packager: networkException
Votes: 350
Popularity: 3.50
First Submitted: 2016-12-19 08:08 (UTC)
Last Updated: 2024-11-20 21:14 (UTC)

Required by (137)

Sources (14)

Pinned Comments

JstKddng commented on 2022-05-06 14:37 (UTC) (edited on 2022-06-27 13:48 (UTC) by JstKddng)

A new va-api patch for wayland has been added. Required flags for it to work are the following, thanks to @acidunit

--disable-features=UseChromeOSDirectVideoDecoder
--enable-hardware-overlays

JstKddng commented on 2020-07-19 06:34 (UTC)

You can get prebuilt binaries here:

https://github.com/ungoogled-software/ungoogled-chromium-archlinux#binary-downloads

seppia commented on 2018-12-12 21:34 (UTC)

Please do NOT flag this package as out of date in relation to official chromium releases.

This is NOT Google Chromium and new releases come after additional work of the ungoogled-chromium contributors, so they may not be ready, nor available for days or even weeks after a new version of official chromium is released.

Please refer to https://github.com/Eloston/ungoogled-chromium/tags for ungoogled-chromium releases. Use those and please flag this package as out of date only if a newer release is present there. I will update the PKGBUILD as soon as I can every time a new release comes out.

Thanks

Latest Comments

« First ‹ Previous 1 .. 12 13 14 15 16 17 18 19 20 21 22 .. 66 Next › Last »

DAC324 commented on 2021-11-19 16:53 (UTC) (edited on 2021-11-19 16:55 (UTC) by DAC324)

@IEPforAUR As monarc99 already commented, the Chromium development versions (which ungoogled-Chromium is based on) are originally developed with clang 13 (trunk versions) in mind.

So in Manjaro, you have two options:

1) Set the source to compile using the toolchain supplied by the Chromium developers, which includes clang 13 trunk. To achieve this, you will have to make the following modifications to PKGBUILD (taken from the chromium-dev AUR package):

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

export CC="${_clang_path}clang"
export CXX="${_clang_path}clang++"
export AR="${_clang_path}llvm-ar"
export NM=nm
export RANLIB=/usr/bin/true
_lld="ld.lld"                  

  msg2 "Download prebuilt clang from Google"
  tools/clang/scripts/update.py

2) You can try to compile the sources with clang 12 but they must be patched:

--- a/build/config/compiler/BUILD.gn    2021-08-04 15:33:17.770055119 +0200
+++ b/build/config/compiler/BUILD.gn    2021-08-04 15:33:58.576421902 +0200
@@ -1228,7 +1228,9 @@
     } else {
       # -ffile-compilation-dir is an alias for both -fdebug-compilation-dir=
       # and -fcoverage-compilation-dir=.
-      cflags += [ "-ffile-compilation-dir=." ]
+      # recognized by clang > 14 only
+      # cflags += [ "-ffile-compilation-dir=." ]
+      cflags += [ "-fdebug-compilation-dir=." ]
     }
     if (!is_win) {
       # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
--- a/build/config/sanitizers/BUILD.gn  2021-08-20 16:26:39.534393242 +0200
+++ b/build/config/sanitizers/BUILD.gn  2021-08-20 16:30:43.165895367 +0200
@@ -276,7 +276,7 @@
         asan_win_blocklist_path =
             rebase_path("//tools/memory/asan/blocklist_win.txt", root_build_dir)
       }
-      cflags += [ "-fsanitize-ignorelist=$asan_win_blocklist_path" ]
+      cflags += [ "-fsanitize-blacklist=$asan_win_blocklist_path" ]
     }
   }
 }
@@ -312,7 +312,7 @@
     }
     cflags += [
       "-fsanitize=cfi-vcall",
-      "-fsanitize-ignorelist=$cfi_ignorelist_path",
+      "-fsanitize-blacklist=$cfi_ignorelist_path",
     ]

     if (use_cfi_cast) {
@@ -416,7 +416,7 @@
     cflags = [
       "-fsanitize=memory",
       "-fsanitize-memory-track-origins=$msan_track_origins",
-      "-fsanitize-ignorelist=$msan_ignorelist_path",
+      "-fsanitize-blacklist=$msan_ignorelist_path",
     ]
   }
 }
@@ -430,7 +430,7 @@
     }
     cflags = [
       "-fsanitize=thread",
-      "-fsanitize-ignorelist=$tsan_ignorelist_path",
+      "-fsanitize-blacklist=$tsan_ignorelist_path",
     ]
   }
 }
@@ -456,7 +456,7 @@
       "-fsanitize=signed-integer-overflow",
       "-fsanitize=unreachable",
       "-fsanitize=vla-bound",
-      "-fsanitize-ignorelist=$ubsan_ignorelist_path",
+      "-fsanitize-blacklist=$ubsan_ignorelist_path",
     ]

     # Chromecast ubsan builds fail to compile with these
@@ -495,7 +495,7 @@
       "-fsanitize=shift",
       "-fsanitize=signed-integer-overflow",
       "-fsanitize=vla-bound",
-      "-fsanitize-ignorelist=$ubsan_security_ignorelist_path",
+      "-fsanitize-blacklist=$ubsan_security_ignorelist_path",
     ]
   }
 }
@@ -514,7 +514,7 @@
     }
     cflags = [
       "-fsanitize=vptr",
-      "-fsanitize-ignorelist=$ubsan_vptr_ignorelist_path",
+      "-fsanitize-blacklist=$ubsan_vptr_ignorelist_path",
     ]
   }
 }                                                        
--- a/build/config/sanitizers/sanitizers.gni    2021-08-20 13:32:46.380117649 +0200
+++ b/build/config/sanitizers/sanitizers.gni    2021-08-20 14:04:17.785744980 +0200
@@ -55,10 +55,11 @@
   # crbug.com/1033839. Similarly, don't use this on ARC builds.
   #
   # TODO(crbug.com/1159424): Reassess the validity of the next expression.
-  is_cfi =
-      is_official_build &&
-      (((target_os == "linux" || is_chromeos_lacros) && target_cpu == "x64") ||
-       ((is_chromeos_ash || is_chromeos_lacros) && is_chromeos_device))
+  is_cfi = false
+  # is_cfi =
+  #    is_official_build &&
+  #    (((target_os == "linux" || is_chromeos_lacros) && target_cpu == "x64") ||
+  #     ((is_chromeos_ash || is_chromeos_lacros) && is_chromeos_device))

   # Enable checks for indirect function calls via a function pointer.
   # TODO(pcc): remove this when we're ready to add these checks by default.

monarc99 commented on 2021-11-19 01:53 (UTC)

@IEPforAUR you need clang 13. Manjaro stable branch has only clang 12 atm.

missingSleepDeps commented on 2021-11-18 19:13 (UTC)

Building on Manjaro is having a ton of errors like this one:

[164/49551] CXX obj/base/third_party/double_conversion/double_conversion/double-to-string.o
FAILED: obj/base/third_party/double_conversion/double_conversion/double-to-string.o 
clang++ -MMD -MF obj/base/third_party/double_conversion/double_conversion/double-to-string.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-14-init-5759-g02895eed-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -flto=thin -fsplit-lto-unit -fwhole-program-vtables -m64 -march=x86-64 -msse3 -ffile-compilation-dir=. -no-canonical-prefixes -Wall -Wextra -Wimplicit-fallthrough -Wunreachable-code-aggressive -Wthread-safety -Wextra-semi -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 -Wno-bitwise-instead-of-logical -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -ftrivial-auto-var-init=pattern -fsanitize=cfi-vcall -fsanitize-ignorelist=../../tools/cfi/ignores.txt -fsanitize=cfi-icall -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-unused-const-variable -Wno-unused-function -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -fvisibility-inlines-hidden  -D__DATE__=  -D__TIME__=  -D__TIMESTAMP__= -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wno-builtin-macro-redefined -Wno-unknown-warning-option -c ../../base/third_party/double_conversion/double-conversion/double-to-string.cc -o obj/base/third_party/double_conversion/double_conversion/double-to-string.o
clang++: error: unknown argument: '-ffile-compilation-dir=.'
clang++: error: unknown argument: '-fsanitize-ignorelist=../../tools/cfi/ignores.txt'

JstKddng commented on 2021-11-18 17:22 (UTC)

@followait

You can try updating and checking if that error persists, though, I think that error is on the window manager side, not chromium's. Under awesomewm it does remember the size before closing.

@aemonge

Clean the srcdir

followait commented on 2021-11-05 22:11 (UTC) (edited on 2021-11-06 13:15 (UTC) by followait)

Env
  • manjaro: x86-64 2021/11/05
  • ungoogled-chromium: 95.0.4638.69
Reproduce
  1. lauch chromium, let the window be in non-maximum and non-minimum mode, close the window, so chromium will remember the size of the window as default
  2. lauch chromium again, the size of the window is obviously smaller than the size it remembers

aemonge commented on 2021-11-05 14:07 (UTC)

Any idea how to fix this issue?

Traceback (most recent call last):
  File "/home/aemonge/lib/ungoogled-chromium/src/ungoogled-chromium-95.0.4638.69-1/utils/patches.py", line 250, in <module>
    main()
  File "/home/aemonge/lib/ungoogled-chromium/src/ungoogled-chromium-95.0.4638.69-1/utils/patches.py", line 246, in main
    args.callback(args, parser.error)
  File "/home/aemonge/lib/ungoogled-chromium/src/ungoogled-chromium-95.0.4638.69-1/utils/patches.py", line 198, in _apply_callback
    apply_patches(
  File "/home/aemonge/lib/ungoogled-chromium/src/ungoogled-chromium-95.0.4638.69-1/utils/patches.py", line 132, in apply_patches
    subprocess.run(cmd, check=True)
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,

followait commented on 2021-10-31 12:56 (UTC)

@monarc99

"using AVX instructions infrequently could degrade performance or power efficiency"

https://stackoverflow.com/questions/52653025/why-is-march-native-used-so-rarely

monarc99 commented on 2021-10-31 10:33 (UTC)

i use for my private builds on my newer notebook (with avx2 support):

CFLAGS="-march=native -mtune=native -O3 -pipe -fno-plt"

for my old desktop (pre AVX2) pc, i had to switch back to

CFLAGS="-march=x86-64-v2 -mtune=native -O3 -pipe -fno-plt"

there a avx2 instructions in tensorflow (to test, if the cpu support avx2), and the compiler is confused, to compile avx2 instructions, when -march=native disables avx2.

and i enable PGO: in PKGBUILD before the CFLAGS settings:

# enable pgo
_linux_pgo_file=$(cat chrome/build/linux.pgo.txt)
if [ ! -f "chrome/build/pgo_profiles/${_linux_pgo_file}" ]; then
  msg2 'Downloading pgo_profiles data'
  curl "https://storage.googleapis.com/chromium-optimization-profiles/pgo_profiles/${_linux_pgo_file}" --output "chrome/build/pgo_profiles/${_linux_pgo_file}"
fi
_flags+=(
  'chrome_pgo_phase=2'
  'is_clang=true'
  'use_lld=true'
)

lahwaacz commented on 2021-10-31 07:05 (UTC)

and that could hurt performance on intel cpus.

Not only that, it would most likely segfault on other (micro)architectures due to unknown instructions.

JstKddng commented on 2021-10-31 03:26 (UTC)

@followait

you can certainly try adding it to your builds but I wouldn't add it here as the repo builds would be optimized for the architecture the OBS uses for compiling (amd epyc iirc) and that could hurt performance on intel cpus.