linux-sgx/SOURCES/0201-Workaround-missing-output-directory.patch

33 lines
1.3 KiB
Diff

From 63f4368171ee5bf78f956c429c37d43618a881e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= <berrange@redhat.com>
Date: Thu, 29 Aug 2024 12:50:32 +0100
Subject: [PATCH 201/201] Workaround missing output directory
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Something is causing the output directory to be unexpectedly deleted.
Until the root cause is identified, workaround this by creating the
required directory again.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
Linux/build_openssl.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/Linux/build_openssl.sh b/Linux/build_openssl.sh
index f1c39b6..f2cf0b1 100755
--- a/Linux/build_openssl.sh
+++ b/Linux/build_openssl.sh
@@ -168,6 +168,7 @@ fi
make libcrypto.a || exit 1
cp libcrypto.a $SGXSSL_ROOT/package/lib64/$OUTPUT_LIB || exit 1
objcopy --rename-section .init=Q6A8dc14f40efc4288a03b32cba4e $SGXSSL_ROOT/package/lib64/$OUTPUT_LIB || exit 1
+mkdir -p $SGXSSL_ROOT/package/include/openssl/
cp include/openssl/* $SGXSSL_ROOT/package/include/openssl/ || exit 1
grep OPENSSL_VERSION_STR include/openssl/opensslv.h > $SGXSSL_ROOT/sgx/osslverstr.h || exit 1
cp -r include/crypto $SGXSSL_ROOT/sgx/test_app/enclave/ || exit 1
--
2.46.0