Revert "provision: Binary-patch OpenSSL ARM64 assembly bug."

This reverts commit 924df5aaf5.

The fix was released in Ubuntu 20.04 and Debian 11.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-08-05 19:55:07 -07:00 committed by Anders Kaseorg
parent 87ba3c1549
commit 707ae0e7c1
1 changed files with 0 additions and 18 deletions

View File

@ -394,24 +394,6 @@ def main(options: argparse.Namespace) -> NoReturn:
else:
print("No changes to apt dependencies, so skipping apt operations.")
# Binary-patch ARM64 assembly bug in OpenSSL 1.1.1b through 1.1.1h.
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989604
# https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1951279
try:
with open("/usr/lib/aarch64-linux-gnu/libcrypto.so.1.1", "rb") as fb:
if b"\xbf#\x03\xd5\xfd\x07E\xf8" in fb.read():
run_as_root(
[
"sed",
"-i",
r"s/\(\xbf#\x03\xd5\)\(\xfd\x07E\xf8\)/\2\1/",
"/usr/lib/aarch64-linux-gnu/libcrypto.so.1.1",
],
env={**os.environ, "LC_ALL": "C"},
)
except FileNotFoundError:
pass
# Here we install node.
proxy_env = [
"env",