In the last week or so I've had an issue rebuilding this package after the first build/attempt. I can remove the folder and clone the repository again and the issue goes away.
Shortly after the build starts I see this error:
patching file url/url_util.cc
Traceback (most recent call last):
File "/home/ejsav/AUR/ungoogled-chromium/src/ungoogled-chromium-87.0.4280.88-1/utils/patches.py", line 250, in <module>
main()
File "/home/ejsav/AUR/ungoogled-chromium/src/ungoogled-chromium-87.0.4280.88-1/utils/patches.py", line 246, in main
args.callback(args, parser.error)
File "/home/ejsav/AUR/ungoogled-chromium/src/ungoogled-chromium-87.0.4280.88-1/utils/patches.py", line 198, in _apply_callback
apply_patches(
File "/home/ejsav/AUR/ungoogled-chromium/src/ungoogled-chromium-87.0.4280.88-1/utils/patches.py", line 132, in apply_patches
subprocess.run(cmd, check=True)
File "/usr/lib/python3.9/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/patch', '-p1', '--ignore-whitespace', '-i', '/home/ejsav/AUR/ungoogled-chromium/src/ungoogled-chromium-87.0.4280.88-1/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch', '-d', '.', '--no-backup-if-mismatch', '--forward']' returned non-zero exit status 1.
==> ERROR: A failure occurred in prepare().
Aborting...
I've been able to reproduce this from a fresh pull, starting a build and aborting with Ctrl+C a few minutes in, but this also was happening after fully completed builds. Interestingly, if I cd into the chromium folder and try the patch command, it succeeds.
$ patch --dry-run -p1 --ignore-whitespace -i /home/ejsav/AUR/ungoogled-chromium/src/ungoogled-chromium-87.0.4280.88-1/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch -d . --no-backup-if-mismatch --forward
checking file chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
checking file chrome/browser/history/history_utils.cc
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
checking file chrome/browser/ui/singleton_tabs.cc
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
checking file components/omnibox/browser/autocomplete_input.cc
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored
checking file components/url_formatter/url_fixer.cc
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
checking file content/browser/child_process_security_policy_impl.cc
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
checking file net/BUILD.gn
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file net/url_request/trk_protocol_handler.cc, which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file net/url_request/trk_protocol_handler.h, which already exists! Skipping patch.
1 out of 1 hunk ignored
checking file net/url_request/url_request.cc
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored
checking file net/url_request/url_request_context_builder.cc
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored
checking file url/url_constants.cc
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
checking file url/url_constants.h
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored
checking file url/url_util.cc
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored
I suspect this may be an upstream issue and if so, sorry for wasting your time.
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
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