File shim_headers-fix-ninja.patch of Package nodejs-signal-ringrtc

From 1ac9aff49b2f5c71ad6cba87ebce571f851b106e Mon Sep 17 00:00:00 2001
From: Bruno Pitrus <brunopitrus@hotmail.com>
Date: Tue, 3 Jan 2023 17:30:35 +0000
Subject: [PATCH] Correct shim_headers ninja rule outputs

This makes the rule match the actual paths to files generated
by generate_shim_headers.py. This error likely went unnoticed for
so long because the main users of this rule (linux distros)
always build from a clean chroot in production.

Change-Id: I90dcc74c98479d608b269d149b8bee9e858bf058
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4130283
Auto-Submit: Bruno Pitrus <brunopitrus@hotmail.com>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1088275}
---
 build/shim_headers.gni | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/build/shim_headers.gni b/build/shim_headers.gni
index 104b2d7824777..3bef6c0de6eef 100644
--- a/build/shim_headers.gni
+++ b/build/shim_headers.gni
@@ -28,8 +28,10 @@ template("shim_headers") {
     }
     args += invoker.headers
 
-    outputs = process_file_template(invoker.headers,
-                                    "${shim_headers_path}/{{source_file_part}}")
+    outputs = []
+    foreach(h, invoker.headers) {
+      outputs += [ shim_headers_path + "/" + rebase_path(invoker.root_path,"//") + "/" + h ]
+    }
   }
 
   group(target_name) {
openSUSE Build Service is sponsored by