@@ -79,33 +79,13 @@ MODULE_PREBUILD_ruby ?= /bin/true
79
79
80
80
VERSIONS_wasm ?=
81
81
CONTAINER_wasm ?= debian:$(VARIANT ) -slim
82
- CONFIGURE_wasm ?= wasm --include-path=\` pwd\` /pkg/contrib/wasmtime/crates/c-api /include --lib-path=/usr/lib/\$ $( dpkg-architecture -q DEB_HOST_MULTIARCH) / \&\& ./configure wasm-wasi-component
82
+ CONFIGURE_wasm ?= wasm --include-path=\` pwd\` /pkg/contrib/wasmtime/artifacts /include --lib-path=/usr/lib/\$ $( dpkg-architecture -q DEB_HOST_MULTIARCH) / \&\& ./configure wasm-wasi-component
83
83
INSTALL_wasm ? = wasm-install wasm-wasi-component-install
84
84
RUN_wasm ? = /bin/true
85
85
86
86
define MODULE_PREBUILD_wasm
87
- apt-get install --no-install-recommends --no-install-suggests -y libclang-dev \\\n \
88
- \ \ \ \&\& export RUST_VERSION=1.80.1 \\\n \
89
- \ \ \ \&\& export RUSTUP_HOME=/usr/src/unit/rustup \\\n \
90
- \ \ \ \&\& export CARGO_HOME=/usr/src/unit/cargo \\\n \
91
- \ \ \ \&\& export PATH=/usr/src/unit/cargo/bin:\$ $PATH \\\n \
92
- \ \ \ \&\& dpkgArch=" \$ $\(dpkg --print-architecture\)" \\\n \
93
- \ \ \ \&\& case " \$ ${dpkgArch##* -} " in \\\n \
94
- \ \ \ \ \ \ amd64\) rustArch=" x86_64-unknown-linux-gnu" ; rustupSha256=" 6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d" ;; \\\n \
95
- \ \ \ \ \ \ arm64\) rustArch=" aarch64-unknown-linux-gnu" ; rustupSha256=" 1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2" ;; \\\n \
96
- \ \ \ \ \ \ * \) echo \>\& 2 " unsupported architecture: \$ ${dpkgArch} " ; exit 1 ;; \\\n \
97
- \ \ \ \e sac \\\n \
98
- \ \ \ \&\& url=" https://static.rust-lang.org/rustup/archive/1.27.1/\$ ${rustArch} /rustup-init" \\\n \
99
- \ \ \ \&\& curl -L -O " \$ $url " \\\n \
100
- \ \ \ \&\& echo " \$ ${rustupSha256} *rustup-init" | sha256sum -c - \\\n \
101
- \ \ \ \&\& chmod +x rustup-init \\\n \
102
- \ \ \ \&\& ./rustup-init -y --no-modify-path --profile minimal --default-toolchain \$ $RUST_VERSION --default-host \$ ${rustArch} \\\n \
103
- \ \ \ \&\& rm rustup-init \\\n \
104
- \ \ \ \&\& rustup --version \\\n \
105
- \ \ \ \&\& cargo --version \\\n \
106
- \ \ \ \&\& rustc --version \\\n \
107
- \ \ \ \&\& make -C pkg/contrib .wasmtime \\\n \
108
- \ \ \ \&\& install -pm 755 pkg/contrib/wasmtime/target/release/libwasmtime.so /usr/lib/\$ $\( dpkg-architecture -q DEB_HOST_MULTIARCH\) /
87
+ make -C pkg/contrib .wasmtime \\\n \
88
+ \ \ \ \&\& install -pm 755 pkg/contrib/wasmtime/artifacts/lib/libwasmtime.so /usr/lib/\$ $\( dpkg-architecture -q DEB_HOST_MULTIARCH\) /
109
89
endef
110
90
111
91
default:
0 commit comments