git: edf393254355 - main - www/iridium: Fix build with ninja 1.13.1

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Fri, 29 Aug 2025 08:11:18 UTC
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=edf3932543559a2aadca6336de039ef7c7b936c8

commit edf3932543559a2aadca6336de039ef7c7b936c8
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-08-29 07:44:35 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-08-29 08:11:05 +0000

    www/iridium: Fix build with ninja 1.13.1
    
    Fix race conditions where generated headers are not created before they
    are needed in the build.
    
    PR:             279187
    Exp-run-by:     antoine
---
 www/iridium/files/patch-content_browser_BUILD.gn | 14 +++++++++++---
 www/iridium/files/patch-net_BUILD.gn             | 24 ++++++++++++++++--------
 2 files changed, 27 insertions(+), 11 deletions(-)

diff --git a/www/iridium/files/patch-content_browser_BUILD.gn b/www/iridium/files/patch-content_browser_BUILD.gn
index e8240806ac8c..477ca0ded3bb 100644
--- a/www/iridium/files/patch-content_browser_BUILD.gn
+++ b/www/iridium/files/patch-content_browser_BUILD.gn
@@ -1,6 +1,14 @@
---- content/browser/BUILD.gn.orig	2025-06-19 07:37:57 UTC
+--- content/browser/BUILD.gn.orig	2025-06-18 12:17:42 UTC
 +++ content/browser/BUILD.gn
-@@ -2571,6 +2571,14 @@ source_set("browser") {
+@@ -125,6 +125,7 @@ source_set("browser") {
+     "//components/optimization_guide/core:features",
+     "//components/optimization_guide/public/mojom",
+     "//components/os_crypt/sync",
++    "//components/paint_preview/buildflags:buildflags",
+     "//components/payments/content/icon",
+     "//components/payments/mojom",
+     "//components/performance_manager/scenario_api",
+@@ -2571,6 +2572,14 @@ source_set("browser") {
      ]
    }
  
@@ -15,7 +23,7 @@
    if (is_linux || is_chromeos) {
      sources -=
          [ "file_system_access/file_path_watcher/file_path_watcher_stub.cc" ]
-@@ -2616,6 +2624,15 @@ source_set("browser") {
+@@ -2616,6 +2625,15 @@ source_set("browser") {
    if (allow_oop_video_decoder) {
      sources += [ "media/oop_video_decoder_factory.cc" ]
      deps += [ "//media/mojo/mojom" ]
diff --git a/www/iridium/files/patch-net_BUILD.gn b/www/iridium/files/patch-net_BUILD.gn
index cd6138a37fae..d30dac474cef 100644
--- a/www/iridium/files/patch-net_BUILD.gn
+++ b/www/iridium/files/patch-net_BUILD.gn
@@ -1,4 +1,4 @@
---- net/BUILD.gn.orig	2025-06-19 07:37:57 UTC
+--- net/BUILD.gn.orig	2025-06-18 12:17:42 UTC
 +++ net/BUILD.gn
 @@ -126,7 +126,7 @@ net_configs = [
    "//build/config/compiler:wexit_time_destructors",
@@ -9,7 +9,15 @@
    net_configs += [ "//build/config/linux:libresolv" ]
  }
  
-@@ -1334,6 +1334,19 @@ component("net") {
+@@ -1138,6 +1138,7 @@ component("net") {
+     ":net_deps",
+     "//components/miracle_parameter/common",
+     "//components/network_time/time_tracker",
++    "//content/public/common:buildflags",
+     "//net/http:transport_security_state_generated_files",
+     "//third_party/simdutf:simdutf",
+   ]
+@@ -1334,6 +1335,19 @@ component("net") {
      ]
    }
  
@@ -29,7 +37,7 @@
    if (is_mac) {
      sources += [
        "base/network_notification_thread_mac.cc",
-@@ -1497,7 +1510,7 @@ component("net") {
+@@ -1497,7 +1511,7 @@ component("net") {
    }
  
    # Use getifaddrs() on POSIX platforms, except Linux.
@@ -38,7 +46,7 @@
      sources += [
        "base/network_interfaces_getifaddrs.cc",
        "base/network_interfaces_getifaddrs.h",
-@@ -2207,7 +2220,7 @@ static_library("test_support") {
+@@ -2207,7 +2221,7 @@ static_library("test_support") {
      ]
    }
  
@@ -47,7 +55,7 @@
      sources += [
        "base/address_tracker_linux_test_util.cc",
        "base/address_tracker_linux_test_util.h",
-@@ -3030,14 +3043,14 @@ target(_test_target_type, "net_unittests") {
+@@ -3030,14 +3044,14 @@ target(_test_target_type, "net_unittests") {
      ]
    }
  
@@ -64,7 +72,7 @@
      sources += [
        "base/address_tracker_linux_unittest.cc",
        "base/network_interfaces_linux_unittest.cc",
-@@ -3135,6 +3148,10 @@ target(_test_target_type, "net_unittests") {
+@@ -3135,6 +3149,10 @@ target(_test_target_type, "net_unittests") {
      ]
    }
  
@@ -75,7 +83,7 @@
    if (enable_websockets) {
      sources += [
        "server/http_connection_unittest.cc",
-@@ -3200,7 +3217,7 @@ target(_test_target_type, "net_unittests") {
+@@ -3200,7 +3218,7 @@ target(_test_target_type, "net_unittests") {
      ]
    }
  
@@ -84,7 +92,7 @@
      sources += [ "tools/quic/quic_simple_server_test.cc" ]
    }
  
-@@ -3339,7 +3356,7 @@ target(_test_target_type, "net_unittests") {
+@@ -3339,7 +3357,7 @@ target(_test_target_type, "net_unittests") {
    }
  
    # Use getifaddrs() on POSIX platforms, except Linux.