-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bromite Builder] [Prepare] Use ungoogled-chromium for domain substitutions #9
Conversation
…utions Note: Python 3 is now a required dependency
|
It used to be much bigger (~92MB) because it included tests, I have excluded them since then.
Yes, I even started to upstream them in https://github.com/wchen342/ungoogled-chromium-android I could release them but I also modified the script, see ungoogled-software/ungoogled-chromium#1026 So the patch is the most convenient way for now. The rejections and patch issues are there simply because I have uncommitted changes due to text replacements (Chromium -> Bromite); I have now started creating the patch (see bromite/bromite@4c4dd71) before applying the text replacements so there should not be anymore issues with this patch as it will be equal to any other. |
Thanks for the input @csagan5! I'll leave this open and revisit after a few more releases. |
…allback Always attempt to use `Automated-domain-substituion.patch` first, but if it fails automatically fallback to Ungoogled's utility
Merging this PR after revising the initial feature. We'll only use Ungoogled's domain substition utility as a fallback when |
@nikolowry some bugs can be introduced when applying the default lists because not all files are skipped. Another common reason for failure to apply has been the Chromium version, I have thought to put that in some file perhaps to avoid using tags alone. |
@csagan5 understood on bug possibilities -- I'll keep an eye on it and add a way to opt out of the fallback. Love the idea of a |
FYI I have added the version file a couple weeks ago as |
@csagan5 dope! I'll be looking in to how I can integrate that into |
@csagan5 the
Automated-domain-substitutions.patch
patch file has the potential of being a source of constant failures -- it's a lot to manage, especially when just one hunk of its 4mb contents could cause rejections.So this branch was created to explore using ungoogled-chromium's
domain_substitution.py
to dynamically apply the substitutions before builds.Do you use a custom
domain_regex.list
ordomain_substitution.list
? If you do, is there anyway you'd be able to start checking those in?I might revert this feature (or turn this into a user option), if the next few releases the patch applies cleanly.
If you don't feel like maintaining such a patch file, there's always other routes you could take in the Bromite repo:
README
explaining how to use ungoogled-chromium'sdomain-substitution.py
when building locallyutils/domain-substitution.py
,domain_regex.list
anddomain_substitution.list
Thanks in advance for any insights!