diff options
Diffstat (limited to 'www/chromium-uc/patches/patch-tools_protoc_wrapper_protoc_wrapper_py')
| -rw-r--r-- | www/chromium-uc/patches/patch-tools_protoc_wrapper_protoc_wrapper_py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/www/chromium-uc/patches/patch-tools_protoc_wrapper_protoc_wrapper_py b/www/chromium-uc/patches/patch-tools_protoc_wrapper_protoc_wrapper_py deleted file mode 100644 index 6201816..0000000 --- a/www/chromium-uc/patches/patch-tools_protoc_wrapper_protoc_wrapper_py +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | $OpenBSD: patch-tools_protoc_wrapper_protoc_wrapper_py,v 1.16 2021/11/08 12:53:49 robert Exp $ | ||
| 2 | |||
| 3 | Index: tools/protoc_wrapper/protoc_wrapper.py | ||
| 4 | --- tools/protoc_wrapper/protoc_wrapper.py.orig | ||
| 5 | +++ tools/protoc_wrapper/protoc_wrapper.py | ||
| 6 | @@ -190,7 +190,11 @@ def main(argv): | ||
| 7 | with open(options.descriptor_set_dependency_file, 'rb') as f: | ||
| 8 | dependency_file_data = f.read().decode('utf-8') | ||
| 9 | |||
| 10 | - ret = subprocess.call(protoc_cmd) | ||
| 11 | + nenv = os.environ.copy() | ||
| 12 | + nenv["PATH"] = "${WRKOBJDIR}/bin:" + nenv["PATH"] | ||
| 13 | + nenv["LD_LIBRARY_PATH"] = "${WRKSRC}/out/Release" | ||
| 14 | + | ||
| 15 | + ret = subprocess.call(protoc_cmd, env=nenv) | ||
| 16 | if ret != 0: | ||
| 17 | if ret <= -100: | ||
| 18 | # Windows error codes such as 0xC0000005 and 0xC0000409 are much easier to | ||
