From 5c60407085649178c6bbbc4f8667e5894d9dd824 Mon Sep 17 00:00:00 2001 From: Saltama <44767529+saltama@users.noreply.github.com> Date: Mon, 19 Nov 2018 12:52:06 +0100 Subject: [PATCH 1/3] Added no-sysroot patch --- config_bundles/common/patch_order.list | 1 + 1 file changed, 1 insertion(+) diff --git a/config_bundles/common/patch_order.list b/config_bundles/common/patch_order.list index 057de3ad..cfbe39a8 100644 --- a/config_bundles/common/patch_order.list +++ b/config_bundles/common/patch_order.list @@ -112,6 +112,7 @@ ungoogled-chromium/remove-third-party-analytics.patch ungoogled-chromium/gn-bootstrap-remove-gn-gen.patch ungoogled-chromium/disable-webgl-renderer-info.patch ungoogled-chromium/add-flag-to-show-avatar-button.patch +ungoogled-chromium/no-such-option-no-sysroot.patch bromite/fingerprinting-flags-client-rects-and-measuretext.patch bromite/flag-max-connections-per-host.patch From 5acb05eac521f15732061f2032c279eaa881df98 Mon Sep 17 00:00:00 2001 From: Saltama <44767529+saltama@users.noreply.github.com> Date: Mon, 19 Nov 2018 13:05:12 +0100 Subject: [PATCH 2/3] Create no-such-option-no-sysroot.patch --- .../no-such-option-no-sysroot.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 patches/ungoogled-chromium/no-such-option-no-sysroot.patch diff --git a/patches/ungoogled-chromium/no-such-option-no-sysroot.patch b/patches/ungoogled-chromium/no-such-option-no-sysroot.patch new file mode 100644 index 00000000..b1c3d74e --- /dev/null +++ b/patches/ungoogled-chromium/no-such-option-no-sysroot.patch @@ -0,0 +1,24 @@ +# Removes the --no-sysroot option, not a valid option anymore + +--- a/tools/gn/bootstrap/bootstrap.py ++++ b/tools/gn/bootstrap/bootstrap.py +@@ -46,10 +46,6 @@ + '--build-path', + help='The directory in which to build gn, ' + 'relative to the src directory. (eg. out/Release)') +- parser.add_option( +- '--with-sysroot', +- action='store_true', +- help='Download and build with the Debian sysroot.') + parser.add_option('-v', '--verbose', help='ignored') + parser.add_option( + '--skip-generate-buildfiles', +@@ -76,8 +72,6 @@ + '--no-last-commit-position', + '--out-path=' + gn_build_dir, + ] +- if not options.with_sysroot: +- cmd.append('--no-sysroot') + if options.debug: + cmd.append('--debug') + subprocess.check_call(cmd) From e2365cf13412638e2f8d20a68ba576770a4b60ce Mon Sep 17 00:00:00 2001 From: Eloston Date: Mon, 19 Nov 2018 22:32:10 +0000 Subject: [PATCH 3/3] Fix patch offsets due to no-such-option-no-sysroot.patch --- patches/ubuntu/no-new-ninja-flag.patch | 2 +- .../ungoogled-chromium/no-such-option-no-sysroot.patch | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/patches/ubuntu/no-new-ninja-flag.patch b/patches/ubuntu/no-new-ninja-flag.patch index 14d7e0f7..392c152e 100644 --- a/patches/ubuntu/no-new-ninja-flag.patch +++ b/patches/ubuntu/no-new-ninja-flag.patch @@ -3,7 +3,7 @@ Author: Olivier Tilloy --- a/tools/gn/bootstrap/bootstrap.py +++ b/tools/gn/bootstrap/bootstrap.py -@@ -81,10 +81,10 @@ def main(argv): +@@ -75,10 +75,10 @@ def main(argv): os.path.join(BOOTSTRAP_DIR, 'last_commit_position.h'), gn_build_dir) if options.jobs: subprocess.check_call( diff --git a/patches/ungoogled-chromium/no-such-option-no-sysroot.patch b/patches/ungoogled-chromium/no-such-option-no-sysroot.patch index b1c3d74e..e5337aeb 100644 --- a/patches/ungoogled-chromium/no-such-option-no-sysroot.patch +++ b/patches/ungoogled-chromium/no-such-option-no-sysroot.patch @@ -2,7 +2,7 @@ --- a/tools/gn/bootstrap/bootstrap.py +++ b/tools/gn/bootstrap/bootstrap.py -@@ -46,10 +46,6 @@ +@@ -45,10 +45,6 @@ def main(argv): '--build-path', help='The directory in which to build gn, ' 'relative to the src directory. (eg. out/Release)') @@ -11,9 +11,9 @@ - action='store_true', - help='Download and build with the Debian sysroot.') parser.add_option('-v', '--verbose', help='ignored') - parser.add_option( - '--skip-generate-buildfiles', -@@ -76,8 +72,6 @@ + parser.add_option('-j', '--jobs', help='Number of jobs') + options, args = parser.parse_args(argv) +@@ -71,8 +67,6 @@ def main(argv): '--no-last-commit-position', '--out-path=' + gn_build_dir, ]