ports/devel/electron28/files/patch-net_dns_BUILD.gn
Jason E. Hale 4dc1764a37 devel/electron28: Fix build with ninja 1.12.0
Fix race conditions where generated headers are not created before they
are needed in the build.

Ninja 1.12.0 removed the `-w dupbuild` option and the default behavior
is now equivalent to passing `-w dupbuild=err` in previous versions.

PR:		278693
Approved by:	portmgr (blanket)
2024-05-15 00:11:18 -04:00

41 lines
1.1 KiB
Text

--- net/dns/BUILD.gn.orig 2024-05-15 03:51:14 UTC
+++ net/dns/BUILD.gn
@@ -128,7 +128,7 @@ source_set("dns") {
"dns_config_service_android.cc",
"dns_config_service_android.h",
]
- } else if (is_linux) {
+ } else if (is_linux && !is_bsd) {
sources += [
"dns_config_service_linux.cc",
"dns_config_service_linux.h",
@@ -162,6 +162,9 @@ source_set("dns") {
}
deps = [ "//net:net_deps" ]
+ if (is_bsd) {
+ deps += [ "//components/services/screen_ai/buildflags" ]
+ }
public_deps = [
":dns_client",
@@ -169,6 +172,7 @@ source_set("dns") {
":host_resolver_manager",
":mdns_client",
"//net:net_public_deps",
+ "//printing/buildflags",
]
allow_circular_includes_from = [
@@ -436,9 +440,9 @@ source_set("tests") {
if (is_android) {
sources += [ "dns_config_service_android_unittest.cc" ]
- } else if (is_linux) {
+ } else if (is_linux && !is_bsd) {
sources += [ "dns_config_service_linux_unittest.cc" ]
- } else if (is_posix) {
+ } else if (is_posix && !is_bsd) {
sources += [ "dns_config_service_posix_unittest.cc" ]
}