diff options
author | Robert Nagy <robert@openbsd.org> | 2022-03-30 17:18:34 +0200 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2022-03-30 17:20:38 +0200 |
commit | 06a832ee8dc55cc8d53f0e49272f33594e941784 (patch) | |
tree | 3b8c776119586dfb47bd4f99190cd3ee2127445f /www/iridium/files/patch-net_BUILD.gn | |
parent | www/flexget: update to 3.3.6 (diff) |
www/iridium: resurrect, update to 2022.03.99.1
Sync the port to www/chromium and the shared *BSD patchset
This port no longer uses Python 2.7
Diffstat (limited to 'www/iridium/files/patch-net_BUILD.gn')
-rw-r--r-- | www/iridium/files/patch-net_BUILD.gn | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/www/iridium/files/patch-net_BUILD.gn b/www/iridium/files/patch-net_BUILD.gn new file mode 100644 index 000000000000..1c6d1f869e04 --- /dev/null +++ b/www/iridium/files/patch-net_BUILD.gn @@ -0,0 +1,92 @@ +--- net/BUILD.gn.orig 2022-03-28 18:11:04 UTC ++++ net/BUILD.gn +@@ -100,7 +100,7 @@ net_configs = [ + "//build/config/compiler:wexit_time_destructors", + ] + +-if (is_linux || is_chromeos) { ++if ((is_linux || is_chromeos) && !is_bsd) { + net_configs += [ "//build/config/linux:libresolv" ] + } + +@@ -1215,6 +1215,15 @@ component("net") { + ] + } + ++ if (is_bsd) { ++ sources -= [ ++ "base/address_tracker_linux.cc", ++ "base/address_tracker_linux.h", ++ "base/network_change_notifier_linux.cc", ++ "base/network_interfaces_linux.cc", ++ ] ++ } ++ + if (is_mac) { + sources += [ + "base/network_notification_thread_mac.cc", +@@ -1347,7 +1356,7 @@ component("net") { + } + } + +- if (is_android || is_chromeos_ash) { ++ if (is_android || is_chromeos_ash || is_bsd) { + sources += [ + "base/network_change_notifier_posix.cc", + "base/network_change_notifier_posix.h", +@@ -1380,7 +1389,7 @@ component("net") { + } + + # Use getifaddrs() on POSIX platforms, except Linux. +- if (is_posix && !is_linux && !is_chromeos) { ++ if ((is_posix && !is_linux && !is_chromeos) || is_bsd) { + sources += [ + "base/network_interfaces_getifaddrs.cc", + "base/network_interfaces_getifaddrs.h", +@@ -2451,7 +2460,7 @@ if (is_linux || is_chromeos || is_mac) { + } + } + +-if (is_linux || is_chromeos) { ++if ((is_linux || is_chromeos) && !is_bsd) { + static_library("epoll_server") { + sources = [ + "tools/epoll_server/platform/impl/epoll_bug_impl.h", +@@ -4445,7 +4454,7 @@ test("net_unittests") { + ] + } + +- if (is_linux || is_chromeos) { ++ if ((is_linux || is_chromeos) && !is_bsd) { + sources += [ + "base/address_tracker_linux_unittest.cc", + "base/network_interfaces_linux_unittest.cc", +@@ -4519,6 +4528,10 @@ test("net_unittests") { + "//url:buildflags", + ] + ++ if (is_bsd) { ++ deps += [ "//sandbox/policy" ] ++ } ++ + allow_circular_includes_from = [ "//net/third_party/quiche:quiche_tests" ] + + if (enable_websockets) { +@@ -4566,7 +4579,7 @@ test("net_unittests") { + ] + } + +- if (is_linux || is_chromeos) { ++ if ((is_linux || is_chromeos) && !is_bsd) { + sources += [ + "quic/platform/impl/quic_epoll_clock_test.cc", + "quic/platform/impl/quic_flags_test.cc", +@@ -4712,7 +4725,7 @@ test("net_unittests") { + } + + # Use getifaddrs() on POSIX platforms, except Linux. +- if (is_posix && !is_linux && !is_chromeos) { ++ if (is_posix && !is_linux && !is_chromeos && !is_bsd) { + sources += [ "base/network_interfaces_getifaddrs_unittest.cc" ] + } + |