From d72007256de106b8ebefe2f300fa0652729675cc41dfaf75ff1ffcffb0187db2 Mon Sep 17 00:00:00 2001 From: Dario Faggioli Date: Thu, 7 Sep 2023 12:59:30 +0000 Subject: [PATCH] Accepting request 1109036 from home:avicenzi:wasm Enable WasmEdge OBS-URL: https://build.opensuse.org/request/show/1109036 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=29 --- crun.changes | 5 +++++ crun.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/crun.changes b/crun.changes index 2588e2a..e2701cd 100644 --- a/crun.changes +++ b/crun.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 5 11:41:14 UTC 2023 - Alexandre Vicenzi + +- Enable WasmEdge support to run Wasm compat containers. + ------------------------------------------------------------------- Mon Aug 14 12:55:14 UTC 2023 - Danish Prakash diff --git a/crun.spec b/crun.spec index a7b2615..7d9c893 100644 --- a/crun.spec +++ b/crun.spec @@ -16,6 +16,8 @@ # +%define with_wasmedge 1 + Name: crun Version: 1.8.6 Release: 0 @@ -48,6 +50,9 @@ BuildRequires: criu-devel >= 3.15 BuildRequires: libkrun-devel Requires: libkrun1 %endif +%if %with_wasmedge +BuildRequires: wasmedge-devel +%endif %description crun is a runtime for running OCI containers. It is built with libkrun support @@ -59,8 +64,12 @@ crun is a runtime for running OCI containers. It is built with libkrun support %ifarch x86_64 aarch64 export LIBKRUN="--with-libkrun" %endif +%if %with_wasmedge +export WASMEDGE="--with-wasmedge" +%endif + ./autogen.sh -%configure --disable-silent-rules $LIBKRUN CFLAGS='-I %{_includedir}/libseccomp' +%configure --disable-silent-rules $LIBKRUN $WASMEDGE CFLAGS='-I %{_includedir}/libseccomp' %make_build # TODO: