[pkg-go] Bug#1070727: reportbug: podman does not run wasm/wasi images because of missing crun-wasm - easy fix

Eugen Stan eugen.stan at netdava.com
Sat May 11 15:49:08 BST 2024


Hi,

I tried to configure podman to use crun-wasm and failed.

There seems to be 11 references in the org 
https://github.com/search?q=org%3Acontainers%20crun-wasm&type=code .

So the safer option would be to package crun-wasm IMO.

Asked for more information in the issue 
https://github.com/containers/crun/issues/1468 .

I would add the symlink. Other programs might look for the binary.
Looking at the references to crun-wasm I think having a crun-wasm 
package that:
- depends on crun and wasmedge
- creates a symlink to crun

does not sond so bad.
On the other hand, maintaining an extra package does not sound that nice 
either.


Regards,
Eugen

La 11.05.2024 12:55, Faidon Liambotis a scris:
> Control: tags -1 confirmed
> 
> On Wed, May 08, 2024 at 03:10:40AM +0300, Eugen Stan wrote:
>> I followed the guide to run wasm images on my system and it failed with
>> errors.
>>
>> I believe the issue is that podman looks for crun-wasm binary by default.
>> I failed to configure podman to use crun instead of crun-wasm.
>> I created a simbolic link named crun-wasm:
>>
>> sudo ln -s /usr/bin/crun /usr/local/bin/crun-wasm
> 
> Ouch! You're right. This worked when I enabled WasmEdge in crun, but
> was changed upstream at some point since.
> 
> Apparently Fedora/RedHat ship a "crun-wasm" package, which contains a) this
> symlink, b) a dependency on WasmEdge.
> 
> In Debian, the main "crun" package has a Suggests on libwasmedge0.
> 
> I see three paths forward:
> 1) We do the same, creating a new (almost) empty package.
> 2) We ship a /usr/bin/crun-wasm symlink in the crun package.
> 3) We patch podman to use /usr/bin/crun instead of, or in addition to,
> /usr/bin/crun-wasm.
> 
> I don't particularly love option (1). I'm split between options (2) and
> (3), not loving either.
> 
> Thoughts?
> 
> Faidon

-- 
Eugen Stan

+40770 941 271  / https://www.netdava.com



More information about the Pkg-go-maintainers mailing list