File system-protobuf.patch of Package nodejs-signal-ringrtc

--- webrtc-6478b/build_overrides/build.gni.orig
+++ webrtc-6478b/build_overrides/build.gni
@@ -71,3 +71,4 @@ declare_args() {
   # dependency for googletest.
   gtest_enable_absl_printers = true
 }
+perfetto_protobuf_gni="//third_party/perfetto/gn/standalone/proto_library.gni"
--- webrtc-6478b/third_party/perfetto/gn/standalone/proto_library.gni.orig
+++ webrtc-6478b/third_party/perfetto/gn/standalone/proto_library.gni
@@ -149,12 +149,12 @@ template("proto_library") {
     if (perfetto_use_system_protobuf) {
       protoc_rebased_path = "protoc" + _host_executable_suffix  # from PATH
     } else {
-      protoc_label = "//gn:protoc($host_toolchain)"
+      protoc_label = "//third_party/perfetto/gn:protoc($host_toolchain)"
       protoc_path = get_label_info(protoc_label, "root_out_dir") + "/protoc" +
                     _host_executable_suffix
       protoc_rebased_path = "./" + rebase_path(protoc_path, root_build_dir)
     }
-    script = "//gn/standalone/protoc.py"
+    script = "//third_party/perfetto/gn/standalone/protoc.py"
     args = [
       # Path should be rebased because |root_build_dir| for current toolchain
       # may be different from |root_out_dir| of protoc built on host toolchain.
@@ -256,7 +256,6 @@ template("proto_library") {
 
       sources = get_target_outputs(":$action_name")
 
-      configs -= [ "//gn/standalone:extra_warnings" ]
       if (defined(invoker.extra_configs)) {
         configs += invoker.extra_configs
       }
@@ -270,7 +269,7 @@ template("proto_library") {
       # Only include the protobuf_gen_config when generating .pb.cc files.
       # Note that |generate_cc| is false for .{pbzero,ipc,gen etc.}.cc
       if (generate_cc) {
-        public_configs += [ "//gn:protobuf_gen_config" ]
+        public_configs += [ "//third_party/perfetto/gn:protobuf_gen_config" ]
       }
 
       # By default, propagate the config for |include_dirs| to dependent
@@ -288,9 +287,9 @@ template("proto_library") {
       # Use protobuf_full only for tests.
       if (defined(invoker.use_protobuf_full) &&
           invoker.use_protobuf_full == true) {
-        deps = [ "//gn:protobuf_full" ]
+        deps = [ "//third_party/perfetto/gn:protobuf_full" ]
       } else if (generate_cc) {
-        deps = [ "//gn:protobuf_lite" ]
+        deps = [ "//third_party/perfetto/gn:protobuf_lite" ]
       } else {
         deps = []
       }
openSUSE Build Service is sponsored by