From patchwork Tue Jun 27 19:23:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Lechner X-Patchwork-Id: 51387 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2F87527BBE2; Tue, 27 Jun 2023 20:25:22 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3F2BA27BBE9 for ; Tue, 27 Jun 2023 20:25:17 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEEJG-0007or-Gk; Tue, 27 Jun 2023 15:25:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEEJE-0007oc-14 for guix-patches@gnu.org; Tue, 27 Jun 2023 15:25:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEEJC-0005Xr-QK for guix-patches@gnu.org; Tue, 27 Jun 2023 15:25:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qEEJC-000156-3c for guix-patches@gnu.org; Tue, 27 Jun 2023 15:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64319] [PATCH] gnu: Add wasmedge. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Jun 2023 19:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64319 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64319@debbugs.gnu.org Cc: Felix Lechner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16878938434069 (code B ref -1); Tue, 27 Jun 2023 19:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jun 2023 19:24:03 +0000 Received: from localhost ([127.0.0.1]:49542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEEIE-00013Z-Pu for submit@debbugs.gnu.org; Tue, 27 Jun 2023 15:24:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:42988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEEI9-000135-FU for submit@debbugs.gnu.org; Tue, 27 Jun 2023 15:24:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEEI9-0007iw-9G for guix-patches@gnu.org; Tue, 27 Jun 2023 15:23:57 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qEEI6-0005IZ-GS for guix-patches@gnu.org; Tue, 27 Jun 2023 15:23:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=vUfsgvQm2OJgrem rhv8R4wX0vYjB+QCtBpPX1wJ4zic=; h=date:subject:cc:to:from; d=lease-up.com; b=JtoRFJpavcxQ9wRGmeJIIF4PZGCpW9in4Rm15+9cIEXfakvSfFSP n5ygDfUC+KpVltG6qkaJggFkceXpQLBG8PGGSpHvyBPdfUrHHRYb0lJ3DXhJo+nYvyVif4 GHzOwiWxma37qNUR7B5rMUSpKfKBUZDWhF34jcDkk10Vq4Lks= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 0706f49b (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Tue, 27 Jun 2023 19:23:48 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id f097ed88; Tue, 27 Jun 2023 19:23:47 +0000 (UTC) Date: Tue, 27 Jun 2023 12:23:43 -0700 Message-Id: <676b37f167fe09ae7c6834629bd3cc1ad0811a49.1687893815.git.felix.lechner@lease-up.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@us-core.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches X-Patchwork-Original-From: Felix Lechner via Guix-patches via From: Felix Lechner Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This is a project of the Linux Foundation. * gnu/packages/web.scm (wasmedge): New variable. --- gnu/packages/web.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) base-commit: ac86174e22fcd762893bd4515786b1376af9397b diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 3c50864cf4..156a0f0cd7 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -156,6 +156,8 @@ (define-module (gnu packages web) #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) #:use-module (gnu packages lisp-xyz) + #:use-module (gnu packages llvm) + #:use-module (gnu packages logging) #:use-module (gnu packages lsof) #:use-module (gnu packages lua) #:use-module (gnu packages mail) @@ -1593,6 +1595,42 @@ (define-public wabt other systems that want to manipulate WebAssembly files.") (license license:asl2.0))) +(define-public wasmedge + (package + (name "wasmedge") + (version "0.12.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/WasmEdge/WasmEdge") + (commit version))) + (file-name (git-file-name "WasmEdge" version)) + (sha256 + (base32 + "0h3m60gk02a9ws6x96f1b7wkcihi9r1690akh55qnizg93vrl5m4")))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:configure-flags + ;; our LLVM version seems to cause: compiler.cpp:4919:3: + ;; error: too few arguments to function call, expected 5, have 4 + #~(list "-DWASMEDGE_BUILD_AOT_RUNTIME=OFF"))) + (native-inputs (list + boost + clang + lld + spdlog)) + (home-page "https://wasmedge.org/") + (synopsis "Cloud Native Computing Foundations's WebAssembly runtime") + (description "WasmEdge is a lightweight, high-performance, and extensible +WebAssembly runtime for cloud native, edge, and decentralized applications. +It powers serverless apps, embedded functions, microservices, smart contracts, +and IoT devices. + +This is a Linux Foundation project, via the Cloud Native Computing Foundation.") + (license license:asl2.0))) + (define-public wasm3 (package (name "wasm3")