unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#68910] [PATCH] gnu: Add wasmedge.
@ 2024-02-03 17:26 Zheng Junjie
  2024-02-19 19:44 ` Sharlatan Hellseher
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Zheng Junjie @ 2024-02-03 17:26 UTC (permalink / raw)
  To: 68910

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 2319 bytes --]

* gnu/packages/web.scm (wasmedge): New variable.

Change-Id: I62a5bbe0e228f0b743bee4d55c4948c61bbfc969
---
 gnu/packages/web.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 1a97dd8dec..194b7ac02a 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2023 Felix Lechner <felix.lechner@lease-up.com>
 ;;; Copyright © 2023 Evgeny Pisemsky <evgeny@pisemsky.com>
 ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
+;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -165,6 +166,8 @@ (define-module (gnu packages web)
   #:use-module (gnu packages lisp-xyz)
   #:use-module (gnu packages lsof)
   #:use-module (gnu packages lua)
+  #:use-module (gnu packages llvm)
+  #:use-module (gnu packages logging)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages man)
   #:use-module (gnu packages markup)
@@ -1774,6 +1777,37 @@ (define-public wasm-micro-runtime
 features.")
     (license license:asl2.0)))
 
+
+(define-public wasmedge
+  (package
+    (name "wasmedge")
+    (version "0.13.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/WasmEdge/WasmEdge")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1l5rr0rma6n17d2khgac79azqjc9sl3r0vljjzc1aw9hhalmm895"))))
+    (build-system cmake-build-system)
+    (native-inputs (list googletest))
+    (inputs (list llvm-17 lld-17 spdlog))
+    (arguments
+     (list
+      ;; TODO: enable test
+      ;; #:configure-flags #~(list "-DWASMEDGE_BUILD_TESTS=ON")
+      #:tests? #f))
+    (home-page "https://wasmedge.org/")
+    (synopsis "High performance WebAssembly Virtual Machine")
+    (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.")
+    (license (list license:asl2.0 license:cc0))))
+
 (define-public websocketpp
   (package
     (name "websocketpp")

base-commit: 179bb57d2532ee6b81791e078b0f782cbf88cb84
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#68910] [PATCH] gnu: Add wasmedge.
  2024-02-03 17:26 [bug#68910] [PATCH] gnu: Add wasmedge Zheng Junjie
@ 2024-02-19 19:44 ` Sharlatan Hellseher
  2024-02-19 19:48   ` Sharlatan Hellseher
  2024-03-01 14:04 ` [bug#68910] [PATCH v2] " Zheng Junjie via Guix-patches
  2024-03-02 10:12 ` [bug#68910] [PATCH] " Zheng Junjie
  2 siblings, 1 reply; 5+ messages in thread
From: Sharlatan Hellseher @ 2024-02-19 19:44 UTC (permalink / raw)
  To: 68910

[-- Attachment #1: Type: text/plain, Size: 153 bytes --]

Hi,

Thank you for the patch.

QA is green.

May you provide more info if you try to enable tests and which
 issues you could not resolve?

Thanks,
Oleg

[-- Attachment #2: Type: text/html, Size: 405 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#68910] [PATCH] gnu: Add wasmedge.
  2024-02-19 19:44 ` Sharlatan Hellseher
@ 2024-02-19 19:48   ` Sharlatan Hellseher
  0 siblings, 0 replies; 5+ messages in thread
From: Sharlatan Hellseher @ 2024-02-19 19:48 UTC (permalink / raw)
  To: 68910

[-- Attachment #1: Type: text/plain, Size: 123 bytes --]

There is some documentation on how to build/run tests
https://wasmedge.org/docs/contribute/source/build_from_src#run-tests

[-- Attachment #2: Type: text/html, Size: 253 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#68910] [PATCH v2] gnu: Add wasmedge.
  2024-02-03 17:26 [bug#68910] [PATCH] gnu: Add wasmedge Zheng Junjie
  2024-02-19 19:44 ` Sharlatan Hellseher
@ 2024-03-01 14:04 ` Zheng Junjie via Guix-patches
  2024-03-02 10:12 ` [bug#68910] [PATCH] " Zheng Junjie
  2 siblings, 0 replies; 5+ messages in thread
From: Zheng Junjie via Guix-patches @ 2024-03-01 14:04 UTC (permalink / raw)
  To: 68910

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 3308 bytes --]

* gnu/packages/web.scm (wasmedge): New variable.

Change-Id: I62a5bbe0e228f0b743bee4d55c4948c61bbfc969
---
 gnu/packages/web.scm | 58 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 9ded719e71..fae562d3e8 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2023 Felix Lechner <felix.lechner@lease-up.com>
 ;;; Copyright © 2023 Evgeny Pisemsky <evgeny@pisemsky.com>
 ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
+;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -171,6 +172,8 @@ (define-module (gnu packages web)
   #:use-module (gnu packages lisp-xyz)
   #:use-module (gnu packages lsof)
   #:use-module (gnu packages lua)
+  #:use-module (gnu packages llvm)
+  #:use-module (gnu packages logging)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages man)
   #:use-module (gnu packages markup)
@@ -1782,6 +1785,61 @@ (define-public wasm-micro-runtime
 features.")
     (license license:asl2.0)))
 
+
+(define wasmedge-unittest
+  (origin
+    (method git-fetch)
+    (uri (git-reference
+          (url "https://github.com/second-state/WasmEdge-unittest")
+          (commit "wasm-dev-0.13.0")))
+    (file-name
+     (git-file-name "WasmEdge-unittest" "wasm-dev-0.13.0"))
+    (sha256
+     (base32
+      "05nbwci836g0fr7p90v0p94166j7hbxhcw996xv20pywwblf73vl"))))
+
+(define-public wasmedge
+  (package
+    (name "wasmedge")
+    (version "0.13.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/WasmEdge/WasmEdge")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1l5rr0rma6n17d2khgac79azqjc9sl3r0vljjzc1aw9hhalmm895"))))
+    (build-system cmake-build-system)
+    (native-inputs (list googletest simdjson))
+    (inputs (list llvm-17 lld-17 spdlog))
+    (arguments
+     (list
+      #:configure-flags #~(list "-DWASMEDGE_BUILD_TESTS=ON")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'configure 'unpack-unittest
+            (lambda _
+              (substitute* "test/spec/CMakeLists.txt"
+                (("GIT_REPOSITORY https://github.com/second-state/WasmEdge-unittest")
+                 (string-append "URL file://" #$wasmedge-unittest))
+                (("GIT_TAG.*") ""))))
+          (add-before 'configure 'disable-test
+            (lambda _
+              ;; this test require network
+              (substitute* "test/host/socket/CMakeLists.txt"
+                (("add_test\\(wasiSocketTests wasiSocketTests\\)")
+                 "")))))))
+    (home-page "https://wasmedge.org/")
+    (synopsis "High performance WebAssembly Virtual Machine")
+    (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.")
+    (license (list license:asl2.0 license:cc0))))
+
 (define-public websocketpp
   (package
     (name "websocketpp")

base-commit: aeaa390b71a15335bef03f83bd9dc946fa535398
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#68910] [PATCH] gnu: Add wasmedge.
  2024-02-03 17:26 [bug#68910] [PATCH] gnu: Add wasmedge Zheng Junjie
  2024-02-19 19:44 ` Sharlatan Hellseher
  2024-03-01 14:04 ` [bug#68910] [PATCH v2] " Zheng Junjie via Guix-patches
@ 2024-03-02 10:12 ` Zheng Junjie
  2 siblings, 0 replies; 5+ messages in thread
From: Zheng Junjie @ 2024-03-02 10:12 UTC (permalink / raw)
  To: 68910

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 3857 bytes --]

* gnu/packages/web.scm (wasmedge): New variable.

Change-Id: I62a5bbe0e228f0b743bee4d55c4948c61bbfc969
---
 gnu/packages/web.scm | 64 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 9ded719e71..24947e2ee6 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2023 Felix Lechner <felix.lechner@lease-up.com>
 ;;; Copyright © 2023 Evgeny Pisemsky <evgeny@pisemsky.com>
 ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
+;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -164,6 +165,7 @@ (define-module (gnu packages web)
   #:use-module (gnu packages kerberos)
   #:use-module (gnu packages libbsd)
   #:use-module (gnu packages libevent)
+  #:use-module (gnu packages libffi)
   #:use-module (gnu packages libidn)
   #:use-module (gnu packages libunistring)
   #:use-module (gnu packages libunwind)
@@ -171,6 +173,8 @@ (define-module (gnu packages web)
   #:use-module (gnu packages lisp-xyz)
   #:use-module (gnu packages lsof)
   #:use-module (gnu packages lua)
+  #:use-module (gnu packages llvm)
+  #:use-module (gnu packages logging)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages man)
   #:use-module (gnu packages markup)
@@ -1782,6 +1786,66 @@ (define-public wasm-micro-runtime
 features.")
     (license license:asl2.0)))
 
+
+(define wasmedge-unittest
+  (origin
+    (method git-fetch)
+    (uri (git-reference
+          (url "https://github.com/second-state/WasmEdge-unittest")
+          (commit "wasm-dev-0.13.0")))
+    (file-name
+     (git-file-name "WasmEdge-unittest" "wasm-dev-0.13.0"))
+    (sha256
+     (base32
+      "05nbwci836g0fr7p90v0p94166j7hbxhcw996xv20pywwblf73vl"))))
+
+(define-public wasmedge
+  (package
+    (name "wasmedge")
+    (version "0.13.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/WasmEdge/WasmEdge")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1l5rr0rma6n17d2khgac79azqjc9sl3r0vljjzc1aw9hhalmm895"))))
+    (build-system cmake-build-system)
+    (native-inputs (list googletest simdjson pkg-config))
+    (inputs (list llvm-17 lld-17 spdlog libffi))
+    (arguments
+     (list
+      #:configure-flags #~(list "-DWASMEDGE_BUILD_TESTS=ON")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'set-VERSION
+            (lambda _
+              (call-with-output-file "VERSION"
+                (lambda (port)
+                  (format port "~a" #$version)))))
+          (add-before 'configure 'unpack-unittest
+            (lambda _
+              (substitute* "test/spec/CMakeLists.txt"
+                (("GIT_REPOSITORY https://github.com/second-state/WasmEdge-unittest")
+                 (string-append "URL file://" #$wasmedge-unittest))
+                (("GIT_TAG.*") ""))))
+          (add-before 'configure 'disable-test
+            (lambda _
+              ;; this test require network
+              (substitute* "test/host/socket/CMakeLists.txt"
+                (("add_test\\(wasiSocketTests wasiSocketTests\\)")
+                 "")))))))
+    (home-page "https://wasmedge.org/")
+    (synopsis "High performance WebAssembly Virtual Machine")
+    (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.")
+    (license (list license:asl2.0 license:cc0))))
+
 (define-public websocketpp
   (package
     (name "websocketpp")

base-commit: aeaa390b71a15335bef03f83bd9dc946fa535398
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-02 10:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-03 17:26 [bug#68910] [PATCH] gnu: Add wasmedge Zheng Junjie
2024-02-19 19:44 ` Sharlatan Hellseher
2024-02-19 19:48   ` Sharlatan Hellseher
2024-03-01 14:04 ` [bug#68910] [PATCH v2] " Zheng Junjie via Guix-patches
2024-03-02 10:12 ` [bug#68910] [PATCH] " Zheng Junjie

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).