diff options
Diffstat (limited to 'devel/electron38/files/patch-tools_protoc__wrapper_protoc__wrapper.py')
| -rw-r--r-- | devel/electron38/files/patch-tools_protoc__wrapper_protoc__wrapper.py | 24 | 
1 files changed, 24 insertions, 0 deletions
| diff --git a/devel/electron38/files/patch-tools_protoc__wrapper_protoc__wrapper.py b/devel/electron38/files/patch-tools_protoc__wrapper_protoc__wrapper.py new file mode 100644 index 000000000000..40c4d36356b0 --- /dev/null +++ b/devel/electron38/files/patch-tools_protoc__wrapper_protoc__wrapper.py @@ -0,0 +1,24 @@ +--- tools/protoc_wrapper/protoc_wrapper.py.orig	2025-08-26 20:49:50 UTC ++++ tools/protoc_wrapper/protoc_wrapper.py +@@ -227,15 +227,19 @@ def main(argv): +     if not options.exclude_imports: +       protoc_cmd += ["--include_imports"] +  ++  nenv = os.environ.copy() ++  nenv["PATH"] = "${WRKOBJDIR}/bin:" + nenv["PATH"] ++  nenv["LD_LIBRARY_PATH"] = "${WRKSRC}/out/Release" ++ +   dependency_file_data = None +   if options.descriptor_set_out and options.descriptor_set_dependency_file: +     protoc_cmd += ['--dependency_out', options.descriptor_set_dependency_file] +-    ret = subprocess.call(protoc_cmd) ++    ret = subprocess.call(protoc_cmd, env=nenv) +  +     with open(options.descriptor_set_dependency_file, 'rb') as f: +       dependency_file_data = f.read().decode('utf-8') +  +-  ret = subprocess.call(protoc_cmd) ++  ret = subprocess.call(protoc_cmd, env=nenv) +   if ret != 0: +     if ret <= -100: +       # Windows error codes such as 0xC0000005 and 0xC0000409 are much easier to | 
