Skip to content

addpkg(x11/brave): 1.100.60 - #33705

Draft
GourangaDasSamrat wants to merge 1 commit into
termux:masterfrom
GourangaDasSamrat:addpkg-brave
Draft

GourangaDasSamrat wants to merge 1 commit into
termux:masterfrom
GourangaDasSamrat:addpkg-brave

Conversation

@GourangaDasSamrat

Copy link
Copy Markdown
Contributor

still in draft. so it would be better if maintainers and community contributor will review it after i make it ready for review.

@GourangaDasSamrat
GourangaDasSamrat force-pushed the addpkg-brave branch 15 times, most recently from dca74b6 to e1eaa30 Compare November 28, 2026 13:49
@GourangaDasSamrat

Copy link
Copy Markdown
Contributor Author

Hey @licy183, could you please see and let me know that is this oom or similar issue which I can't fix?

@licy183

licy183 commented Nov 28, 2026

Copy link
Copy Markdown
Member

@thunder-coding

Copy link
Copy Markdown
Member

I don't want to act salty. But I believe we already have firefox, zen-browser, chromium. Adding brave on top ain't adding much of value when it's just another chromium fork. How many people are actually going to use it? I believe it belongs in TUR unless enough people want it in our repos.

will let other maintainers decide whether it should be included. But I am against adding this

@TomJo2000

Copy link
Copy Markdown
Member

This is gonna be much easier to keep building as updates continue if we keep in in the main (x11) repository.
The brave package maps closely onto the specifics of the chromium package build and scattering them over the TUR and X11 repos would unnecessarily increase the complexity of maintaining the brave package.

I get the argument for being hesitent about adding "yet another browser fork" package, but I think that boat sailed with Zen or Librewolf, both of which closely map onto the Firefox build.

If we move one browser fork to the TUR, why not the others.
That being said, I do not believe we need to add more Chromium forks.
Ungoogled Chromium might be interesting as an analogue for Librewolf, but there isn't any existing requests for it as opposed to Brave, which has two separate open requests for packaging.

Another issue entirely might be getting Brave built within the CI time limit in the first place, this has been a problem for Chromium as well, so I expect it to pop up here again.


tl;dr
I would prefer to have brave in the X11 repo for pragmatic reasons.
Treating it differently to Librewolf and Zen doesn't feel productive to me.

@GourangaDasSamrat

Copy link
Copy Markdown
Contributor Author

Hey @licy183,

There's a time related problem with this PR. The build is almost done, but the aarch64 and x86_64 jobs get cancelled by the 360 minutes job limit (no compile errors at all):

  • aarch64: cancelled at step 29788/31140
  • x86_64: cancelled at step 30565/31594
  • Average speed is ~86 steps/min, but the last ~2000 steps are slower (~34 steps/min). After ninja there are still linking chrome, make_install and packaging, so I estimate ~7 hours in total.

I pinged you because you maintain chromium here. Any suggestion to make brave fit within 360 minutes, or another way to get it built?

Logs: https://github.com/termux/termux-packages/actions/runs/46159964802?pr=33705

@GourangaDasSamrat
GourangaDasSamrat force-pushed the addpkg-brave branch 2 times, most recently from 40c0717 to 5e49c7a Compare November 29, 2026 04:19
@licy183

licy183 commented Nov 29, 2026

Copy link
Copy Markdown
Member

This is why I haven’t added brave. Even without compiling the additional rust targets required for brave, plain chromium build already takes about 5 hours. And since compiling rust is well-known quite time-consuming, it seems highly unlikely that the brave build could be completed within 6 hours...

I’m not certain I can fully resolve this issue, and I likely won’t have time to look into it anytime soon, but I can offer some common suggestions for reducing build times:

  1. Enable more jumbo build. Currently, chromium uses jumbo build extensively within //chrome and //components, but it is not yet fully enabled across other folders. This is actually a trade-off between maintenance costs and build time costs.
  2. Split brave into brave-chromium and brave-components. This follows a logic similar to the current chromium-host-tools approach, which is, compiling the more time-consuming components independently.

@GourangaDasSamrat
GourangaDasSamrat force-pushed the addpkg-brave branch 6 times, most recently from 8d27bd6 to e77a1e8 Compare November 29, 2026 16:03
@GourangaDasSamrat
GourangaDasSamrat force-pushed the addpkg-brave branch 7 times, most recently from 4ac83c6 to 03da99f Compare December 1, 2026 09:32
@GourangaDasSamrat

Copy link
Copy Markdown
Contributor Author

Hey @licy183,

Thanks for your earlier suggestions. I enabled more jumbo build for brave, though x86_64 and arm's build time decrease and seems to fit within 6-hour CI limot, the aarch64 build still doesn't fit in the 6-hour CI limit.

Because of that, I'm planning to add aarch64 to TERMUX_PKG_EXCLUDED_ARCHES for now.

My question is whether the PR could still be accepted this way. I'm worried you might want aarch64 in the first version, since it's the most widely used architecture. If you do, do you have any suggestion for getting it under 6 hours? I'm happy to try other approaches too.

@TomJo2000

Copy link
Copy Markdown
Member

As far as I know we have no package in the repos that is unable to build for aarch64, having brave unavailable for the most common architecture we serve from our repos would substantially decrease the value of adding the package as a whole.

@GourangaDasSamrat
GourangaDasSamrat force-pushed the addpkg-brave branch 2 times, most recently from de8fce9 to fe45851 Compare December 2, 2026 20:20
@licy183

licy183 commented Dec 3, 2026

Copy link
Copy Markdown
Member

It seems that brave is reusing snapshot.bin from chromium-host-tools. This makes no sense, given that brave’s source files differ significantly from those of chromium.
I’m not even sure if brave can function correctly under this condition, but regardless, this approach is unacceptable. The dedicated brave-host-tools should be built and it should generate the snapshot file.

@GourangaDasSamrat
GourangaDasSamrat force-pushed the addpkg-brave branch 2 times, most recently from b9e29d1 to dfaef47 Compare December 3, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Package]: brave-browser [Package]: Brave Browser

4 participants