From 6d127920f84a63a55d299e014b8c0796ddb6babc Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Mon, 29 Aug 2022 18:22:25 -0500 Subject: No Issue - Fix building on MacOS Big Sur. The python binary copied reports a valid signature on Big Sur and thus codesign fails. Add the -f option so it overwrites the supposedly valid signature. Other versions are either already unsigned or the install_name_tool invalidates the signature. --- python/virtualenv/virtualenv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/virtualenv/virtualenv.py b/python/virtualenv/virtualenv.py index d22207e257..60a42e4dcb 100755 --- a/python/virtualenv/virtualenv.py +++ b/python/virtualenv/virtualenv.py @@ -1346,7 +1346,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy raise # Resign the executable, since install_name_tool invalidates the signature - call_subprocess(["codesign", "-s", "-", py_executable]) + call_subprocess(["codesign", "-fs", "-", py_executable]) if not is_win: # Ensure that 'python', 'pythonX' and 'pythonX.Y' all exist -- cgit v1.2.3 From 5f1ef110ffbde5923503a706a81456d869ede81b Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Mon, 29 Aug 2022 18:30:39 -0500 Subject: No Issue - Fix building with WebRTC enabled on non-Intel Macs. int3 is Intel only, so don't use it on ARM, use __builtin_trap() instead. --- media/webrtc/trunk/webrtc/system_wrappers/source/tick_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/webrtc/trunk/webrtc/system_wrappers/source/tick_util.cc b/media/webrtc/trunk/webrtc/system_wrappers/source/tick_util.cc index 4b5f71aa37..cfd26497ae 100644 --- a/media/webrtc/trunk/webrtc/system_wrappers/source/tick_util.cc +++ b/media/webrtc/trunk/webrtc/system_wrappers/source/tick_util.cc @@ -77,7 +77,7 @@ int64_t TickTime::QueryOsForTicks() { if (retval != KERN_SUCCESS) { // TODO(wu): Implement CHECK similar to chrome for all the platforms. // Then replace this with a CHECK(retval == KERN_SUCCESS); -#ifndef WEBRTC_IOS +#if !defined(WEBRTC_IOS) && !defined(__aarch64__) asm("int3"); #else __builtin_trap(); -- cgit v1.2.3