Package Details: brave-beta-bin 1.74.6-1

Git Clone URL: https://aur.archlinux.org/brave-beta-bin.git (read-only, click to copy)
Package Base: brave-beta-bin
Description: Web browser that blocks ads and trackers by default (beta binary release).
Upstream URL: https://brave.com/download-beta
Licenses: MPL2
Provides: brave-beta-bin, brave-beta-browser
Submitter: originof
Maintainer: gregbunk
Last Packager: gregbunk
Votes: 41
Popularity: 0.057637
First Submitted: 2018-09-28 15:42 (UTC)
Last Updated: 2024-11-15 11:36 (UTC)

Dependencies (9)

Required by (0)

Sources (3)

Latest Comments

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

gregbunk commented on 2023-09-11 14:18 (UTC) (edited on 2023-09-11 14:32 (UTC) by gregbunk)

Yes, the solution is to split this into two packages, one for intel and one for arm, until such time as AUR supports this kind of split packaging -or- upstream builds. That would mean dropping arm support here, and then someone else could create an arm package.

That is getting more and more appealing as I continue to field complaints about arm, when I don't even have a way to test the arm package.

wknapik commented on 2023-09-11 12:22 (UTC)

@grebunk I'm not sure how well this would work, but here's an idea. Let's say there's a version available for both x64 and arm64, then Brave releases another version, which can be available for either x64 and arm64, or just x64, or just arm64. In the first case, everything would work as it does now. In the second and third, the PKGBUILD would be updated to only contain the one architecture available.

Now that I've written it down, I realize that at least new installations for the missing architecture probably wouldn't work (?), not sure about update behavior.

It would be good to get some advice from the distro/AUR folks - this can't be the first package with this problem.

The obvious solution that comes to mind would be for AUR to support pkgver split by architecture, the way other parameters can be split (source, shasums).

gregbunk commented on 2023-09-10 14:50 (UTC)

Not that I can see. Right now, the best option seems to be to remove support and let someone who actually has an ARM device to test this with create a new one. At some point, one assumes that upstream will build consistently, but right now it basically an annoyance.

hamza72x commented on 2023-09-10 02:00 (UTC)

Based on architecture, You can do some conditional check maybe (setting up proper version)? Because for arm64, it's always failing unless manual changes.

gregbunk commented on 2023-09-09 12:53 (UTC) (edited on 2023-09-09 12:54 (UTC) by gregbunk)

Correct. This is an issue somewhere between Brave upstrean and Arch. Brave's ARM packages fail to build quite often, while the Intel versions work. Arch doesn't allow split package versions by architecture. The choice I face is to either wait to upgrade intel until Arm is fixed (a very poor choice - almost everybody uses intel), drop ARM support (or maybe create a brand new package for it - and since I have no way to test this package, not a great choice), or just ignore Arm fails and move forward, thus keeping Intel up to date.

For now, I chose the latter.

I'm sure that at some point, the Brave ARM builds will build consistently, at which point this will be a non-issue.

hamza72x commented on 2023-09-09 08:17 (UTC)

  -> Downloading brave-browser-beta_1.59.79_arm64.deb...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     9    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://github.com/brave/brave-browser/releases/download/v1.59.79/brave-browser-beta_1.59.79_arm64.deb

The solution is to downgrade the version, as I did locally:

diff --git a/PKGBUILD b/PKGBUILD
index f02d67f..e9d43e0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Greg White <gwhite@kupulau.com>

 pkgname=brave-beta-bin
-pkgver=1.59.79
+pkgver=1.59.78
 pkgrel=1
 pkgdesc='Web browser that blocks ads and trackers by default (beta binary release).'
 arch=(x86_64 aarch64)

hamza72x commented on 2023-08-19 06:09 (UTC) (edited on 2023-08-19 06:09 (UTC) by hamza72x)

==> Validating source_aarch64 files with sha512sums...
    brave-browser-beta_1.58.91_arm64.deb ... FAILED
==> ERROR: One or more files did not pass the validity check!
 -> error downloading sources: /home/<user>/.cache/yay/brave-beta-bin 
         context: exit status 1 


:: (1/1) Parsing SRCINFO: brave-beta-bin
==> Making package: brave-beta-bin 1.58.91-2 (Sat 19 Aug 2023 10:07:48 AM +04)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found brave-beta-bin.sh
  -> Found brave-browser-beta_1.58.91_arm64.deb
==> Validating source files with sha512sums...
    brave-beta-bin.sh ... Passed
==> Validating source_aarch64 files with sha512sums...
    brave-browser-beta_1.58.91_arm64.deb ... FAILED
==> ERROR: One or more files did not pass the validity check!
 -> error making: brave-beta-bin-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
brave-beta-bin - exit status 1

gregbunk commented on 2023-08-02 14:25 (UTC)

Thanks. I'm using the github API to pull the actual builds as they occur.

wknapik commented on 2023-08-02 14:07 (UTC)

hey @gregbunk. please take a look at https://versions.brave.com/ - it's an overview of Brave versions, including links to individual endpoints returning a version for a given platform/architecture, that can be used in automation - e.g. https://versions.brave.com/latest/beta-linux-x64.version and https://versions.brave.com/latest/beta-linux-arm64.version.

gregbunk commented on 2023-08-01 08:46 (UTC)

Sorry for the long update interval; missed that the script had broken.