Recently meson version has been upgraded to v1.3.0, due to which gsc v1.5 build fails with error Cannot link_whole a custom or Rust target 'curl' into a static library 'sgx_util'.
Currently meson version has been restricted to meson>=0.56,!=1.2.*
Steps to reproduce
Clone GSC Repo, checkout tag v1.5
Build any test workloads
Expected results
The build should be successful
Actual results
tools/sgx/common/meson.build:1:11: ERROR: Cannot link_whole a custom or Rust target 'curl' into a static library 'sgx_util'. Instead, pass individual object files with the "objects:" keyword argument if possible. Meson had to promote link to link_whole because 'sgx_util' is installed but not 'curl', and thus has to include objects from 'curl' to be usable.
Fix
+++ b/templates/debian/Dockerfile.compile.template
@@ -31,7 +31,7 @@ RUN env DEBIAN_FRONTEND=noninteractive apt-get update \
python3-tomli-w
{%- else %}
python3-pip \
- && /usr/bin/python3 -B -m pip install 'tomli>=1.1.0' 'tomli-w>=0.4.0' 'meson>=0.56,!=1.2.*'
+ && /usr/bin/python3 -B -m pip install 'tomli>=1.1.0' 'tomli-w>=0.4.0' 'meson>=0.56,<1.2.*'
{%- endif %}
<!-- ## Additional information -->
<!-- if applicable, uncomment and fill this section -->
Description of the problem
Recently meson version has been upgraded to v1.3.0, due to which gsc v1.5 build fails with error
Cannot link_whole a custom or Rust target 'curl' into a static library 'sgx_util'
.Currently meson version has been restricted to meson>=0.56,!=1.2.*
Steps to reproduce
Expected results
The build should be successful
Actual results
Fix