./lang/wasi-libc, libc for WebAssembly programs built on top of WASI

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.0.0pre20210923, Package name: wasi-libc-0.0.0pre20210923, Maintainer: ryoon

WASI Libc is a libc for WebAssembly programs built on top of WASI
system calls. It provides a wide array of POSIX-compatible C APIs,
including support for standard I/O, file I/O, filesystem manipulation,
memory management, time, string, environment variables, program
startup, and many other APIs.

WASI Libc is sufficiently stable and usable for many purposes, as
most of the POSIX-compatible APIs are stable, though it is continuing
to evolve to better align with wasm and WASI.


Master sites:


Version history: (Expand)


CVS history: (Expand)


   2022-01-10 01:00:05 by Tobias Nygren | Files touched by this commit (1)
Log message:
wasi-libc: fix build on SunOS
   2022-01-10 00:42:03 by Tobias Nygren | Files touched by this commit (5)
Log message:
Fix packages that use GITSUB_MODULES on SunOS and possibly others

This is annoying, but for now we must always explicitly combine
GITHUB_SUBMODULES with EXTRACT_USING+=bsdtar.

This is because mk/fetch/github.mk uses OPTS_TAR=--strip-components=1
and that is not supported by nbtar(pax), which is the default pkgsrc
tar on some platforms. We cannot override EXTRACT_USING in github.mk
because that is too late.

We should switch all platforms to bsdtar and retire pax.
   2022-01-07 16:49:53 by Tobias Nygren | Files touched by this commit (3)
Log message:
wasi-*: eliminate -march and/or -mcpu CFLAGS user might have set

Random CFLAGS from mk.conf are not a good idea in a cross compile scenario.
Also reset ABI to empty string since -m32 can break some native CMake tests.
   2022-01-07 14:32:48 by Tobias Nygren | Files touched by this commit (3)
Log message:
wasi-*: force ABI=32

These packages were failing when ABI=64 in mk.conf, because then -m64 is
passed down to clang and WebAssembly currently only supports -m32.
   2021-12-22 17:09:45 by Ryo ONODERA | Files touched by this commit (1)
Log message:
wasi-libc: Disable SSP explicitly and disable stack check too

Fix build when PKGSRC_USE_SSP=all and PKGSRC_USE_STACK_CHECK=yes
are defined. Reported by wiz@.
   2021-12-22 13:47:20 by Tobias Nygren | Files touched by this commit (1)
Log message:
wasi-libc: set CLANGBASE instead of PKG_CC/CXX

Otherwise it breaks when user has CLANGBASE=/usr in mk.conf.
Also set PKG_FAIL_REASON when llvm doesn't have llvm-target-webassembly.
   2021-12-19 14:38:56 by Ryo ONODERA | Files touched by this commit (6)
Log message:
lang/wasi-libc: import wasi-libc-0.0.0pre20210923

WASI Libc is a libc for WebAssembly programs built on top of WASI
system calls. It provides a wide array of POSIX-compatible C APIs,
including support for standard I/O, file I/O, filesystem manipulation,
memory management, time, string, environment variables, program
startup, and many other APIs.

WASI Libc is sufficiently stable and usable for many purposes, as
most of the POSIX-compatible APIs are stable, though it is continuing
to evolve to better align with wasm and WASI.