Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasmtime: add version 25.0.2 #24714

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions recipes/wasmtime/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,34 @@
sources:
"25.0.2":
Windows:
"x86_64":
url: "https://github.com/bytecodealliance/wasmtime/releases/download/v25.0.2/wasmtime-v25.0.2-x86_64-windows-c-api.zip"
sha256: "fdd457be3dd3e0a7c923f92fe91dd1b892f15450a64cd17ad8433eb097c6988e"
MinGW:
"x86_64":
url: "https://github.com/bytecodealliance/wasmtime/releases/download/v25.0.2/wasmtime-v25.0.2-x86_64-mingw-c-api.zip"
sha256: "8385665e53340ca3c5c883e4f2874b6c5564a592ed3cbe4f1a6d077e416df2ab"
Linux:
"x86_64":
url: "https://github.com/bytecodealliance/wasmtime/releases/download/v25.0.2/wasmtime-v25.0.2-x86_64-linux-c-api.tar.xz"
sha256: "73aade8ed52a07bbc07c4286f1249e82f7b2d9764e97dc4b7c1c5be02b354ee7"
"armv8":
url: "https://github.com/bytecodealliance/wasmtime/releases/download/v25.0.2/wasmtime-v25.0.2-aarch64-linux-c-api.tar.xz"
sha256: "678bf7212f4f97e7b751b0630e0fb6b2e3f9169bc12f7732b83a4b0a0403d596"
"s390x":
url: "https://github.com/bytecodealliance/wasmtime/releases/download/v25.0.2/wasmtime-v25.0.2-s390x-linux-c-api.tar.xz"
sha256: "91be4ca268830798d29704b5f32521c70ba3aa1a1d4d078c96b36105f76e7bbe"
Macos:
"x86_64":
url: "https://github.com/bytecodealliance/wasmtime/releases/download/v25.0.2/wasmtime-v25.0.2-x86_64-macos-c-api.tar.xz"
sha256: "a0b33054fd3b5cf9707d1a39a68a80d11600e2fcdf6074ba4263b9c339bfe64b"
"armv8":
url: "https://github.com/bytecodealliance/wasmtime/releases/download/v25.0.2/wasmtime-v25.0.2-aarch64-macos-c-api.tar.xz"
sha256: "8cc68c43559c78e103bebf63ba16b768f7bb9c0ba164649279c1a09be690b416"
Android:
"armv8":
url: "https://github.com/bytecodealliance/wasmtime/releases/download/v25.0.2/wasmtime-v25.0.2-aarch64-linux-c-api.tar.xz"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the linux release, but there seems to be a typo? The release contains Android files. Is this duplicatin in pourpose?

sha256: "678bf7212f4f97e7b751b0630e0fb6b2e3f9169bc12f7732b83a4b0a0403d596"
"21.0.0":
Windows:
"x86_64":
Expand Down
11 changes: 11 additions & 0 deletions recipes/wasmtime/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import os
import platform

from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.files import copy, get
from conan.tools.microsoft import is_msvc
from conan.tools.apple import is_apple_os
from conan.tools.scm import Version

required_conan_version = ">=1.53.0"
Expand Down Expand Up @@ -57,6 +59,11 @@ def package_id(self):
if self.info.settings.compiler == "clang":
self.info.settings.compiler = "gcc"

@property
def _is_glibc_older_than_2_28(self):
libver = platform.libc_ver()
return self.settings.os == 'Linux' and libver[0] == 'glibc' and Version(libver[1]) < "2.28"

def validate(self):
try:
self.conan_data["sources"][self.version][self._sources_os_key][str(self.settings.arch)]
Expand All @@ -68,6 +75,8 @@ def validate(self):
raise ConanInvalidConfiguration(
f"{self.ref} requires C++{self._min_cppstd}, which your compiler does not support."
)
if Version(self.version) >= "23.0.0" and self._is_glibc_older_than_2_28:
raise ConanInvalidConfiguration(f"{self.ref} requires glibc 2.28 or later.")
toge marked this conversation as resolved.
Show resolved Hide resolved

def build(self):
# This is packaging binaries so the download needs to be in build
Expand Down Expand Up @@ -107,3 +116,5 @@ def package_info(self):
self.cpp_info.system_libs = ["ws2_32", "bcrypt", "advapi32", "userenv", "ntdll", "shell32", "ole32"]
if self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.system_libs = ["pthread", "dl", "m", "rt"]
if is_apple_os(self):
self.cpp_info.frameworks.append("CoreFoundation")
4 changes: 2 additions & 2 deletions recipes/wasmtime/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"25.0.2":
folder: all
"21.0.0":
folder: all
"20.0.1":
Expand All @@ -15,5 +17,3 @@ versions:
folder: all
"7.0.0":
folder: all
"6.0.1":
folder: all
Loading