diff --git a/config_bundles/macos/bundlemeta.ini b/config_bundles/macos/bundlemeta.ini index 61ff0476..cf5492cc 100644 --- a/config_bundles/macos/bundlemeta.ini +++ b/config_bundles/macos/bundlemeta.ini @@ -1,4 +1,3 @@ [bundle] display_name = macOS depends = common -patches_outdated = true diff --git a/config_bundles/macos/patch_order.list b/config_bundles/macos/patch_order.list index 6f5330af..3bd66480 100644 --- a/config_bundles/macos/patch_order.list +++ b/config_bundles/macos/patch_order.list @@ -1,6 +1,5 @@ ungoogled-chromium/macos/disable-symbol-order-verification.patch ungoogled-chromium/macos/disable-crashpad-handler.patch -ungoogled-chromium/macos/fix-gn-bootstrap.patch ungoogled-chromium/macos/fix-gn-safe_browsing.patch ungoogled-chromium/macos/fix-mapped_file.patch ungoogled-chromium/macos/fix-visibility.patch diff --git a/packaging/macos/build.sh.ungoogin b/packaging/macos/build.sh.ungoogin index 26222e91..49b33f8e 100755 --- a/packaging/macos/build.sh.ungoogin +++ b/packaging/macos/build.sh.ungoogin @@ -22,7 +22,7 @@ mkdir out/Default DOWNLOAD_CACHE="$packaging_dir/../../download_cache" pushd ungoogled_packaging -mkdir "$DOWNLOAD_CACHE" +mkdir -p "$DOWNLOAD_CACHE" python3 -m buildkit downloads retrieve -b config_bundles/macos -c "$DOWNLOAD_CACHE" python3 -m buildkit downloads unpack -b config_bundles/macos -c "$DOWNLOAD_CACHE" ../ python3 -m buildkit prune -b config_bundles/macos ../ diff --git a/patches/ungoogled-chromium/macos/fix-gn-bootstrap.patch b/patches/ungoogled-chromium/macos/fix-gn-bootstrap.patch deleted file mode 100644 index 96cc3975..00000000 --- a/patches/ungoogled-chromium/macos/fix-gn-bootstrap.patch +++ /dev/null @@ -1,23 +0,0 @@ -# Fix GN bootstrap.py script on macOS - ---- a/tools/gn/bootstrap/bootstrap.py -+++ b/tools/gn/bootstrap/bootstrap.py -@@ -886,6 +886,10 @@ def write_gn_ninja(path, root_gen_dir, o - 'base/time/time_exploded_posix.cc', - 'base/time/time_mac.cc', - 'base/threading/platform_thread_mac.mm', -+ 'base/mac/dispatch_source_mach.cc', -+ 'base/mac/mac_util.mm', -+ 'base/mac/scoped_nsobject.mm', -+ 'base/mac/mac_logging.mm' - ]) - static_libraries['libevent']['include_dirs'].extend([ - os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'mac') -@@ -899,6 +903,7 @@ def write_gn_ninja(path, root_gen_dir, o - '-framework', 'CoreFoundation', - '-framework', 'Foundation', - '-framework', 'Security', -+ '-framework', 'IOKit', - ]) - - if is_win: diff --git a/patches/ungoogled-chromium/macos/fix-gn-safe_browsing.patch b/patches/ungoogled-chromium/macos/fix-gn-safe_browsing.patch index 2177082d..a927dc83 100644 --- a/patches/ungoogled-chromium/macos/fix-gn-safe_browsing.patch +++ b/patches/ungoogled-chromium/macos/fix-gn-safe_browsing.patch @@ -2,38 +2,38 @@ --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn -@@ -1413,7 +1413,7 @@ config("default_warnings") { - "-Wno-user-defined-warnings", - - # TODO(thakis): https://crbug.com/753973 -- "-Wno-enum-compare-switch", -+ # "-Wno-enum-compare-switch", - - # TODO(hans): https://crbug.com/766891 - "-Wno-null-pointer-arithmetic", +@@ -1478,7 +1478,7 @@ config("default_warnings") { + # recognize. + cflags += [ + # TODO(thakis): https://crbug.com/753973 +- "-Wno-enum-compare-switch", ++ # "-Wno-enum-compare-switch", + ] + } + } --- a/chrome/browser/BUILD.gn +++ b/chrome/browser/BUILD.gn -@@ -1626,7 +1626,6 @@ jumbo_split_static_library("browser") { - "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory", +@@ -1674,7 +1674,6 @@ jumbo_split_static_library("browser") { "//chrome/browser/net:probe_message_proto", "//chrome/browser/profiling_host", + "//chrome/browser/resource_coordinator:mojo_bindings", - "//chrome/browser/safe_browsing", "//chrome/browser/ssl:proto", "//chrome/browser/ui", "//chrome/browser/ui/webui/bluetooth_internals", --- a/chrome/browser/extensions/BUILD.gn +++ b/chrome/browser/extensions/BUILD.gn -@@ -803,7 +803,6 @@ static_library("extensions") { - "//chrome/browser/devtools", +@@ -800,7 +800,6 @@ jumbo_static_library("extensions") { "//chrome/browser/media/router", "//chrome/browser/media/router/discovery", + "//chrome/browser/resource_coordinator:mojo_bindings", - "//chrome/browser/safe_browsing", + "//chrome/browser/web_applications/extensions", "//chrome/common", "//chrome/common/extensions:mojo_bindings", - "//chrome/common/extensions/api:api_registration", --- a/chrome/browser/ui/BUILD.gn +++ b/chrome/browser/ui/BUILD.gn -@@ -903,7 +903,6 @@ split_static_library("ui") { +@@ -910,7 +910,6 @@ split_static_library("ui") { "//chrome/browser/engagement:mojo_bindings", "//chrome/browser/media:mojo_bindings", "//chrome/browser/profiling_host", diff --git a/patches/ungoogled-chromium/macos/fix-visibility.patch b/patches/ungoogled-chromium/macos/fix-visibility.patch index bc9c8973..32b76301 100644 --- a/patches/ungoogled-chromium/macos/fix-visibility.patch +++ b/patches/ungoogled-chromium/macos/fix-visibility.patch @@ -1,7 +1,7 @@ # Fix compiling on macOS ---- a/tools/gn/visibility.h -+++ b/tools/gn/visibility.h +--- a/tools/gn/tools/gn/visibility.h ++++ b/tools/gn/tools/gn/visibility.h @@ -9,6 +9,7 @@ #include @@ -19,9 +19,9 @@ // Helper function to check visibility between the given two items. If // to is invisible to from, returns false and sets the error. ---- a/tools/gn/visibility.cc -+++ b/tools/gn/visibility.cc -@@ -80,7 +80,7 @@ std::string Visibility::Describe(int ind +--- a/tools/gn/tools/gn/visibility.cc ++++ b/tools/gn/tools/gn/visibility.cc +@@ -78,7 +78,7 @@ std::string Visibility::Describe(int ind return result; }