[Bug 246529] devel/binaryen: Update 90 -> 93
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun May 17 18:50:53 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246529
Bug ID: 246529
Summary: devel/binaryen: Update 90 -> 93
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: bethanylong.x90 at gmail.com
CC: greg at unrelenting.technology
Flags: maintainer-feedback?(greg at unrelenting.technology)
CC: greg at unrelenting.technology
Really we just need 91+. Current emscripten expects a new wasm-opt --version
format, which prevents new users (like me) from building their hello worlds:
% emcc -o hello.html hello.c
cache:INFO: generating system asset: generated_struct_info.json... (this will
be cached in "/home/username/.emscripten_cache/wasm/generated_struct_info.json"
for subsequent builds)
shared:ERROR: error parsing binaryen version (wasm-opt 90). Please check your
binaryen installation (/usr/local/bin/wasm-opt)
FAIL: Compilation failed!
% wasm-opt --version
wasm-opt 90
This is the format it expects:
% wasm-opt --version
wasm-opt version 93
This is where upstream binaryen changed the --version format:
https://github.com/WebAssembly/binaryen/commit/4953bcc59085c49343c334ccc852fc5c0339c938#diff-0cdf1402e4de0d0e0a450c4f5558d589
This is where emscripten started expecting three tokens in wasm-opt's --version
output:
https://github.com/emscripten-core/emscripten/commit/4fdb3053690170362c5f7c83a553149c8956d3c2#diff-b97059c38de7432017d59dee3e87bc72
---
Using previous upgrades (bug 238994, bug 243308) as a cheat sheet, to install
version 93 locally I updated DISTVERSION in the Makefile and distinfo, and
removed the patch in files/. Upstream version 93 seems to gate the git check
natively now, so I don't think our patch is required anymore.
% grep 93 *
distinfo:SHA256 (WebAssembly-binaryen-version_93_GH0.tar.gz) =
a770a26dea4da4b33eee4a020f054196e9530cceeeff17b977e2bc6e4fd2dd7f
distinfo:SIZE (WebAssembly-binaryen-version_93_GH0.tar.gz) = 4244359
Makefile:DISTVERSION= 93
% ls files
%
Also, it doesn't look like there need to be any pkg-plist changes:
/usr/ports/devel/binaryen/work/.build% diff -u ../../pkg-plist <(find bin lib
-type f | sort)
--- ../../pkg-plist 2019-07-06 11:08:27.000000000 -0700
+++ /tmp/zshrTNFvh 2020-05-17 11:40:41.263302000 -0700
@@ -8,5 +8,4 @@
bin/wasm-reduce
bin/wasm-shell
bin/wasm2js
-include/binaryen-c.h
lib/libbinaryen.so
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list