Browse Source

upgrading package: wasmtime 0.26.0 -> 0.29.0

master
parent
commit
4831bc70a4
  1. 20
      wasmtime/wasmtime.patch
  2. 9
      wasmtime/wasmtime.spec

20
wasmtime/wasmtime.patch

@ -0,0 +1,20 @@
Index: .cargo/registry/src/github.com-1ecc6299db9ec823/openvino-finder-0.3.1/src/lib.rs
--- .cargo/registry/src/github.com-1ecc6299db9ec823/openvino-finder-0.3.1/src/lib.rs.orig 1970-01-01 01:00:01.000000000 +0100
+++ .cargo/registry/src/github.com-1ecc6299db9ec823/openvino-finder-0.3.1/src/lib.rs 2021-08-06 21:47:34.751066000 +0200
@@ -71,14 +71,14 @@
const ENV_INTEL_OPENVINO_DIR: &'static str = "INTEL_OPENVINO_DIR";
-#[cfg(target_os = "linux")]
+#[cfg(any(target_os = "linux", target_os = "freebsd"))]
const ENV_LIBRARY_PATH: &'static str = "LD_LIBRARY_PATH";
#[cfg(target_os = "macos")]
const ENV_LIBRARY_PATH: &'static str = "DYLD_LIBRARY_PATH";
#[cfg(target_os = "windows")]
const ENV_LIBRARY_PATH: &'static str = "PATH";
-#[cfg(any(target_os = "linux", target_os = "macos"))]
+#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))]
const DEFAULT_INSTALLATION_DIRECTORIES: &'static [&'static str] =
&["/opt/intel/openvino", "/opt/intel/openvino_2021"];
#[cfg(target_os = "windows")]

9
wasmtime/wasmtime.spec

@ -22,8 +22,8 @@
## ##
# package version # package version
%define V_base 0.26.0 %define V_base 0.29.0
%define V_snap 20210418 %define V_snap 20210805
# package information # package information
Name: wasmtime Name: wasmtime
@ -36,10 +36,11 @@ Class: EVAL
Group: Web Group: Web
License: MIT License: MIT
Version: %{V_base} Version: %{V_base}
Release: 20210418 Release: 20210806
# list of sources # list of sources
Source0: http://download.openpkg.org/components/versioned/wasmtime/wasmtime-%{V_snap}.tar.xz Source0: http://download.openpkg.org/components/versioned/wasmtime/wasmtime-%{V_snap}.tar.xz
Patch0: wasmtime.patch
# build information # build information
BuildPreReq: OpenPKG, openpkg >= 20160101, rust BuildPreReq: OpenPKG, openpkg >= 20160101, rust
@ -61,6 +62,8 @@ PreReq: OpenPKG, openpkg >= 20160101
%build %build
HOME=`pwd` HOME=`pwd`
cargo fetch
%{l_patch} -p0 <%{PATCH0}
cargo build --release cargo build --release
cargo build --release --manifest-path crates/c-api/Cargo.toml cargo build --release --manifest-path crates/c-api/Cargo.toml

Loading…
Cancel
Save