Package Details: brave 1.52.129-1

Git Clone URL: https://aur.archlinux.org/brave.git (read-only, click to copy)
Package Base: brave
Description: Web browser that blocks ads and trackers by default
Upstream URL: https://www.brave.com/download
Licenses: BSD, MPL, custom:chromium
Submitter: maximbaz
Maintainer: alerque
Last Packager: alerque
Votes: 145
Popularity: 0.53
First Submitted: 2019-07-10 11:14 (UTC)
Last Updated: 2023-06-30 22:45 (UTC)

Sources (26)

Pinned Comments

alerque commented on 2023-01-26 13:53 (UTC)

Current status:

Thanks to lots of persistent work from @ceasarw, this package now builds in a clean chroot, and with LLVM 15 now in [community] everything is pretty hunky dory.

Moving it to [community] is currently held up waiting for permission from upstream for distribution of distro compiled binaries.

Latest Comments

1 2 3 4 5 6 .. 29 Next › Last »

agowa commented on 2023-11-22 10:30 (UTC) (edited on 2023-11-28 00:45 (UTC) by agowa)

doesn't build in a clean environment makechrootpkg -u -T -U makepkgbuilduser -n -C -r /srv/aur/chroot. Multiple errors.

1: This one is always missing:
/build/brave/src/brave-browser/src
> git log -n 1 --pretty=format:%h%d
Chromium repo needs sync.
  target is refs/tags/114.0.5735.198 at commit [missing]
  current commit is 911554e83 (HEAD -> makepkg, tag: v1.52.129) at commit 911554e83d9b16ff7a6dde53046920f4537d4b44
  latest successful sync is {}
2:
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress file:///build/brave/src/chromium-mirror /build/brave/src/brave-browser/_gclient_src_879ae1y4' in '/build/brave/src/brave-browser'
Cloning into '/build/brave/src/brave-browser/_gclient_src_879ae1y4'...
remote: free(): invalid pointer              
error: pack-objects died of signal 6
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
1>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "file:///build/brave/src/chromium-mirror" "/build/brave/src/brave-browser/_gclient_src_879ae1y4"' in /build/brave/src/brave-browser failed; will retry after a short nap...
3:
[16642/57972] AR obj/components/feedback/redaction_tool/libredaction_tool.a
FAILED: obj/components/feedback/redaction_tool/libredaction_tool.a 
rm -f obj/components/feedback/redaction_tool/libredaction_tool.a && "llvm-ar" -T -r -c -s -D obj/components/feedback/redaction_tool/libredaction_tool.a @"obj/components/feedback/redaction_tool/libredaction_tool.a.rsp"
llvm-ar: error: obj/components/feedback/redaction_tool/redaction_tool/redaction_tool.o: No such file or directory

Edit: When rerunning with infinite screen buffer I also see this one, it probably should have failed the build here already instead of continuing and thereby hiding the error.

4:
[16047/57972] CXX obj/components/feedback/redaction_tool/redaction_tool/redaction_tool.o
../../components/feedback/redaction_tool/redaction_tool.cc:639:13: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
    skipped.AppendToString(&result);
    ~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:643:8: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
  text.AppendToString(&result);
  ~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:671:13: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
    skipped.AppendToString(&result);
    ~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:672:20: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
    pre_whitespace.AppendToString(&result);
    ~~~~~~~~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:680:19: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
      hash_prefix.AppendToString(&result);
      ~~~~~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:681:19: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
      hash_suffix.AppendToString(&result);
      ~~~~~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:704:8: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
  text.AppendToString(&result);
  ~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:845:13: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
    skipped.AppendToString(&result);
    ~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:846:20: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
    pre_matched_id.AppendToString(&result);
    ~~~~~~~~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:848:21: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
    post_matched_id.AppendToString(&result);
    ~~~~~~~~~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:850:8: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
  text.AppendToString(&result);
  ~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:863:11: error: no member named 'contains' in 'std::basic_string_view<char>'
  if (url.contains("?")) {
      ~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:934:15: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
      skipped.AppendToString(&result);
      ~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:935:18: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
      matched_id.AppendToString(&result);
      ~~~~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:946:19: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
          skipped.AppendToString(&result);
          ~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:947:22: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
          matched_id.AppendToString(&result);
          ~~~~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:969:13: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
    skipped.AppendToString(&result);
    ~~~~~~~ ^
../../components/feedback/redaction_tool/redaction_tool.cc:972:8: error: no member named 'AppendToString' in 'std::basic_string_view<char>'
  text.AppendToString(&result);
  ~~~~ ^
18 errors generated.

Edit2: The chroot was created using these commands:

mkdir -p /srv/aur/chroot/
/usr/bin/mkarchroot /srv/aur/chroot/root base base-devel sudo
/usr/bin/arch-nspawn /srv/aur/chroot/root pacman -Syu --needed --noconfirm --noprogressbar

Bachsau commented on 2023-09-30 16:48 (UTC)

It should be noted that the official build is in "brave-bin". This source package lacks the API keys needed for Brave's privacy features to work.

alerque commented on 2023-06-14 09:25 (UTC)

As @caesarw notes upstream Brave folks have been so unresponsive to allowing distro packages that the thread there got automatically closed. If anybody wants to keep persuing them feel free to link progress in here.

In me mean time @yakoyakoyokuyoku has contributed quite a bit of effort towards an updated build that works again. This package has been updated with his work and my user repository has the prebuilt package as usual for those without 50Gb of disk space and a days worth of CPU time to throw at a build!

caesarw commented on 2023-04-28 11:32 (UTC) (edited on 2023-04-29 06:27 (UTC) by caesarw)

Due to upstream developers being not responsive to the thread and also changes in the build system and its build process, I need much more time to figure out a proper build for Arch Linux. If you need the latest release, please use brave-bin for the time being.

As always, any help is appreciated.

caesarw commented on 2023-01-29 10:18 (UTC)

@Bitals you can try edit the PKGBUILD file and switch the git upstream of chromium to the Chromium GitHub mirror (https://github.com/chromium/chromium.git). Fresh clone from googlesource are prone to issues. Alternatively, you can try the pre-built binaries of this package hosted by the maintainer, alerque. His repo is listed in the unofficial repos in Arch Wiki.

Bitals commented on 2023-01-28 12:54 (UTC)

Am I the only one consistently unable to dowload chromium source via this pkgbuild specifically? It clones fine manually from the same url, but then makepkg complaints it's not the repo it needs for some reason.

Does anyone have any idea how to tackle this?

18:33:00   -> Cloning chromium git repo...
18:33:00 Cloning into bare repository '/home/builder/.cache/aurutils/sync/brave/chromium'...
19:45:26 error: RPC failed; curl 16 Error in the HTTP2 framing layer
19:45:26 error: 6 bytes of body are still expected
19:45:26 fatal: the remote end hung up unexpectedly

alerque commented on 2023-01-26 13:53 (UTC)

Current status:

Thanks to lots of persistent work from @ceasarw, this package now builds in a clean chroot, and with LLVM 15 now in [community] everything is pretty hunky dory.

Moving it to [community] is currently held up waiting for permission from upstream for distribution of distro compiled binaries.

alerque commented on 2023-01-11 08:16 (UTC)

@coxackie No. If you want prebuilt binaries for now use the brave-bin package. I don't host binaries for AUR stuff if they don't build in a clean chroot. If and when that gets fixed this would be in my personal package repository. When the LLVM issue also gets resolved and can use a stable release then this should make it into [community].

coxackie commented on 2022-12-20 10:42 (UTC)

@alerque is there a place where pre-built binaries can be found?