public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/linux-sgx-enclaves-prebuilt] rawhide: Update to sgx 2.30 / dcap 1.27
@ 2026-11-10 16:45
0 siblings, 0 replies; only message in thread
From: @ 2026-11-10 16:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/linux-sgx-enclaves-prebuilt
Branch : rawhide
Commit : 4bd43b0383db52bf01d454b28b6abe1d7fdf65e6
Author : Daniel P. Berrangé <berrange@redhat.com>
Date : 2026-11-10T16:45:05+00:00
Stats : +54/-13 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/linux-sgx-enclaves-prebuilt/c/4bd43b0383db52bf01d454b28b6abe1d7fdf65e6?branch=rawhide
Log:
Update to sgx 2.30 / dcap 1.27
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
diff --git a/download.sh b/download.sh
new file mode 100755
index 0000000..33be980
--- /dev/null
+++ b/download.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+spec=linux-sgx-enclaves-prebuilt.spec
+
+dver=$(grep 'global dcap_version' ${spec} | awk '{print $3}')
+
+function urls
+{
+ rpmspec -P ${spec} 2>/dev/null | grep Source | grep http | awk '{print $2}'
+
+ grep "https.*prebuilt_dcap" ${spec} | awk '{print $2}' | sed -e "s/%{dcap_version}/$dver/g"
+}
+
+for url in $(urls)
+do
+ tarball=$(basename ${url})
+ echo "Check $tarball"
+ if ! test -f ${tarball}
+ then
+ echo "Downloading $url"
+ curl --silent --fail -L --output "$tarball" "${url}"
+ if test $? != 0
+ then
+ echo "ERROR: download failed"
+ exit 1
+ fi
+ fi
+done
+
+./repack.sh
diff --git a/linux-sgx-enclaves-prebuilt.spec b/linux-sgx-enclaves-prebuilt.spec
index e54df18..fad9f49 100644
--- a/linux-sgx-enclaves-prebuilt.spec
+++ b/linux-sgx-enclaves-prebuilt.spec
@@ -2,8 +2,9 @@
# There's no concept of debuginfo for SGX enclaves
%global debug_package %{nil}
-%global linux_sgx_version 2.28
-%global dcap_version 1.25
+%global linux_sgx_version 2.30
+%global sgx_sdk_version 2.30
+%global dcap_version 1.27
# If setting any of these to 0, modify repack.sh to strip
# the binary from the prebuilt_dcap tarball to prevent src.rpm
@@ -101,26 +102,29 @@ License: %{shrink:
LicenseRef-Fedora-Public-Domain
}
-URL: https://github.com/intel/linux-sgx
+URL: https://github.com/intel/confidential-computing.sgx
# The sources are needed so we can determine the ELF so version
# symlinks that the loader code will expect to find
-Source0: https://github.com/intel/linux-sgx/archive/refs/tags/sgx_%{linux_sgx_version}_reproducible.tar.gz#/linux-sgx-%{linux_sgx_version}-reproducible.tar.gz
+Source0: https://github.com/intel/confidential-computing.sgx/archive/refs/tags/sgx_%{linux_sgx_version}_reproducible.tar.gz#/linux-sgx-%{linux_sgx_version}-reproducible.tar.gz
+
+Source1: https://github.com/intel/confidential-computing.sgx.sdk/archive/refs/tags/sgx_%{sgx_sdk_version}.tar.gz#/sgx-sdk-%{sgx_sdk_version}.tar.gz
+
+Source2: https://github.com/intel/confidential-computing.tee.dcap/archive/refs/tags/dcap_%{dcap_version}_reproducible.tar.gz
-Source1: https://github.com/intel/SGXDataCenterAttestationPrimitives/archive/refs/tags/dcap_%{dcap_version}_reproducible.tar.gz
# repack.sh purges AE's that we do not want to (& are forbidden to)
# ship, as well as 'prebuilt/' content (openssl / OPA binaries) that
# we must not distribute
-Source2: repack.sh
+Source3: repack.sh
# Upload tarball is:
#
# https://download.01.org/intel-sgx/sgx-dcap/%{dcap_version}/linux/prebuilt_dcap_%{dcap_version}.tar.gz
#
# but is then post-processed using repack.sh to create this
-Source3: prebuilt_dcap_%{dcap_version}-repacked.tar.gz
+Source4: prebuilt_dcap_%{dcap_version}-repacked.tar.gz
BuildRequires: sgx-rpm-macros
@@ -161,16 +165,23 @@ prebuilt by Intel. \
%prep
%autosetup -n confidential-computing.sgx-sgx_%{linux_sgx_version}_reproducible
+# sdk
+(
+ cd sdk
+ tar zxf %{SOURCE1} --strip 1
+)
+
+
# dcap
(
cd external/dcap_source
- tar zxf %{SOURCE1} --strip 1
+ tar zxf %{SOURCE2} --strip 1
)
(
cd external/dcap_source/QuoteGeneration
- tar zxf %{SOURCE3}
+ tar zxf %{SOURCE4}
)
%build
@@ -187,10 +198,10 @@ prebuilt by Intel. \
# that is known to be built into the enclaves
mkdir licenses
for f in License.txt \
- sdk/compiler-rt/LICENSE.TXT \
- sdk/cpprt/linux/libunwind/LICENSE \
- sdk/gperftools/gperftools-2.7/COPYING \
- sdk/tlibcxx/LICENSE.TXT \
+ sdk/sdk/compiler-rt/LICENSE.TXT \
+ sdk/sdk/cpprt/linux/libunwind/LICENSE \
+ sdk/sdk/gperftools/gperftools-2.7/COPYING \
+ sdk/sdk/tlibcxx/LICENSE.TXT \
external/dcap_source/License.txt \
external/dcap_source/QuoteGeneration/ThirdPartyLicenses.txt
do
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-10 16:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10 16:45 [rpms/linux-sgx-enclaves-prebuilt] rawhide: Update to sgx 2.30 / dcap 1.27
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox