From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KOSzAwwH8GNixQAAbAwnHQ (envelope-from ) for ; Sat, 18 Feb 2023 00:00:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yIDhAgwH8GO3VQAAG6o9tA (envelope-from ) for ; Sat, 18 Feb 2023 00:00:28 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B66981E1DC for ; Sat, 18 Feb 2023 00:00:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT9i1-0000BM-9u; Fri, 17 Feb 2023 18:00:05 -0500 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 1pT9hz-0000Aq-JY for guix-patches@gnu.org; Fri, 17 Feb 2023 18:00:03 -0500 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 1pT9hz-0001qc-A1 for guix-patches@gnu.org; Fri, 17 Feb 2023 18:00:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pT9hz-0005Dr-6L for guix-patches@gnu.org; Fri, 17 Feb 2023 18:00:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61586] [PATCH RFC 2/2] gnu: Add binaryen. References: <2cc4a1091e54c0fec082de4ce2789dfc42470e54.camel@gmail.com> In-Reply-To: <2cc4a1091e54c0fec082de4ce2789dfc42470e54.camel@gmail.com> Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 Feb 2023 23:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61586 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61586@debbugs.gnu.org Received: via spool by 61586-submit@debbugs.gnu.org id=B61586.167667477720002 (code B ref 61586); Fri, 17 Feb 2023 23:00:03 +0000 Received: (at 61586) by debbugs.gnu.org; 17 Feb 2023 22:59:37 +0000 Received: from localhost ([127.0.0.1]:41824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT9hZ-0005CT-C3 for submit@debbugs.gnu.org; Fri, 17 Feb 2023 17:59:37 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT9hT-0005C3-NV for 61586@debbugs.gnu.org; Fri, 17 Feb 2023 17:59:32 -0500 Received: by mail-wr1-f68.google.com with SMTP id l8so2459214wrv.2 for <61586@debbugs.gnu.org>; Fri, 17 Feb 2023 14:59:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:to:subject:date:from:from:to:cc:subject :date:message-id:reply-to; bh=/x1BxP+rrkxWO0duuEP/nVeMGsu0IGaUnnLBNTw+4cg=; b=exFbv2WsRTigwgaKi7Y67yeROm/F8arSZlpz2TMn48IcKREWw5SMiYbC44PCNRbzhG lxBdP2xtDjha5a42sCbdPfULXgdCd/au/rxHWAbRFVkg8n8QLerUonrU5F+DaCIDRYmH EMI4f0K7V5qqn7KuwPrmRXbzrK+m/gZXjotZNcuL192dnGk95rlwfhyct017SakJBB3u BwuSiQSgHYCBbiZmM8y25P6sMOsUh/Xv7WxvZHe+3depAqKFj9tve+HQfPUPT9yvcjKJ vKDFYqEDli1RWI1JSimADqHOCWFhDBEXwZISUwZUOMbiZLxqKkLLuzOaOWLerYz0MjlI P4lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:to:subject:date:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/x1BxP+rrkxWO0duuEP/nVeMGsu0IGaUnnLBNTw+4cg=; b=xyS0zH/RovD5aBFs9h7TusBF6gpFha2PTggGQmRg6hcWf6aESSfLBOHGwAYfHU4XwP LT75O9XBHIN+ZfM1ivcKS0DFnHlU0hM2myBJZydvFmXSwAso70dQZUEC+vNao+h8QwvN uLui/shvXWjvohzEF9S53d3jGE29uyo2vLFjLG04B0jaTqXrQZWkvGYBg69yiIpT75VF 9aCmzL8fa7aqHEusaHPr5hR0Dx0X+dgWkzDyzMkIs+gcEVffgsP0kEGPZ+QMQJhchBUh UDV5AFj7q68QfeSk5jspbr7rCXkgrW/XgA3VZ2L+dTUeAk1W4QdOVdjpB9AQXHyfgBnt do0Q== X-Gm-Message-State: AO0yUKX9Bw0JxGebGfHddtiQfDEZRal7Zsey0mNM7hEvjeJn689VZ6aY St043hWnNVHVTWh3PyTv8fI+WLQU/LrFFw== X-Google-Smtp-Source: AK7set+piKC/tXmgKdioRY8EgSq6jpAY3C41smYshhLMmMKovB9ykZZ8zPV8s/l9PfWA3yebp6vIQw== X-Received: by 2002:a5d:6301:0:b0:2c3:e868:cf54 with SMTP id i1-20020a5d6301000000b002c3e868cf54mr1828931wru.13.1676674766032; Fri, 17 Feb 2023 14:59:26 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id w12-20020adff9cc000000b002c55b0e6ef1sm5409663wrr.4.2023.02.17.14.59.25 for <61586@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 14:59:25 -0800 (PST) From: Liliana Marie Prikler Date: Fri, 17 Feb 2023 21:28:10 +0100 Message-ID: <5be345282b038321a7f3c1f5fb2df8560ceb653c.camel@gmail.com> MIME-Version: 1.0 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676674827; a=rsa-sha256; cv=none; b=TPmSZNc/6k63PhhNWRxJTu0iIouDMMYmdcQzti0yD0H0nGQ1pAUuIOfs5Qy7E87HB0gh7F bG7xIggAleKZka1pkLSwxs7nZQWpgpUg9KvhNWIXO1xSTi6dAdiJPGMSR1ENpsLJ9HBmjk yZ2/zo5FjhiYGubcHWzeCASxSVk9QfsNjWIoNlPBZ+bnfmwoRTrY4KEuQj04AzYASuahZr c0dlshJ2WKKjZ6fj6VpH0UPXckj5lzZfClgE1Hdc/i8Q9CJcmNWzE4tvCa/FmGKSda1mhJ rO67OIPMJrmLlTlNH1CxAdptSNNDf3V62aXpTuKTfUBKFHbVRfhrCreH42NRVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=exFbv2Ws; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676674827; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/x1BxP+rrkxWO0duuEP/nVeMGsu0IGaUnnLBNTw+4cg=; b=STjtoNc7Idl1XsG8yoD15sRI1NuSqoXmzBEpNGvhmKs2hseQhy/emKNCLiWe7Ysq5y7N2v ebxNkOIND91Et3VXZb4YmDSi37HpZvGTPltenQ1a638gjuRCumpe2fikj54VODAXuYEMwh W/g16XgXveTEXwstNMfiozcAMrrJT8eVBmlFoLCYubyoEjKQoWq8p+2fUAqPALfrx/3jkr rUu/5sZ/u2ki+e8h3MHb9ytuKnfCFU21SsCSLkwttFIRM0mlq8NnlJOY5eKmuyGSKjh1S+ utUor2q+t/NtYE2p70AFAHD7luUeIUbUbQWXKkbNNBAUuzFrj9c9sJuLBaosWw== X-Migadu-Spam-Score: -2.03 X-Spam-Score: -2.03 X-Migadu-Queue-Id: B66981E1DC Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=exFbv2Ws; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Scanner: scn1.migadu.com X-TUID: frEgqQ9bOhhG * gnu/packages/web.scm (binaryen): New variable. --- gnu/packages/web.scm | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 7e49f798ea..0b509fa34c 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -1558,6 +1558,51 @@ (define-public wabt other systems that want to manipulate WebAssembly files.") (license license:asl2.0))) +(define-public binaryen + (package + (name "binaryen") + (version "112") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/WebAssembly/binaryen") + (commit (string-append "version_" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0970iz22yjxgi27d67kwmrx4zq7hig3i6b92vmlp4c4bd1bacny5")) + (modules '((guix build utils))) + (snippet #~(begin + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(third_party\\)") + "find_package(GTest)")) + (substitute* "test/gtest/CMakeLists.txt" + (("include_directory\\(.*third_pary.*\\)") "")) + (delete-file-recursively "third_party"))))) + (build-system cmake-build-system) + (arguments + (list #:out-of-source? #f ; for tests + #:configure-flags #~(list "-DBUILD_LLVM_DWARF=OFF") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'delete-failing-tests + (lambda _ + ;; DWARF support relies on bundling LLVM, so don't + (for-each delete-file + (find-files "test/passes" + ".*dwarf.*\\.(bin\\.txt\|wasm)")) + (delete-file "test/unit/test_dwarf.py"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (invoke "python" "check.py")))))) + (native-inputs (list googletest node-lts python-wrapper + python-lit python-filecheck)) + (home-page "https://github.com/WebAssembly/binaryen") + (synopsis "WebAssembly compiler") + (description "Binaryen is a compiler and toolchain infrastructure library +written in C++, with a single-header C API as well as a Javascript API.") + (license license:asl2.0))) + (define-public wasm3 (package (name "wasm3") -- 2.39.1