sys-libs/wasi-libc - 27 (lanodanOverlay)

Search

Install

Install this version:

emerge -a =sys-libs/wasi-libc-27

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-libs/wasi-libc-27

Or alternatively:

emerge --autounmask-write -a =sys-libs/wasi-libc-27

Package Information

Description:
WASI libc implementation for WebAssembly
Homepage:
https://github.com/WebAssembly/wasi-libc
License:
Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT CC0-1.0 BSD-2 MIT BSD

Ebuild Details

Version EAPI Keywords Slot
27 8 ~amd64 ~wasm32 0
View Raw Ebuild
# Copyright 2024 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

MY_P="wasi-libc-wasi-sdk-${PV}"

DESCRIPTION="WASI libc implementation for WebAssembly"
HOMEPAGE="https://github.com/WebAssembly/wasi-libc"
SRC_URI="https://github.com/WebAssembly/wasi-libc/archive/refs/tags/wasi-sdk-${PV}.tar.gz -> ${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}/"
LICENSE="Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT CC0-1.0 BSD-2 MIT BSD"
SLOT="0"

KEYWORDS="~amd64 ~wasm32"

DEPEND="
	llvm-core/clang
	llvm-core/llvm
"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/wasi-libc-24-no-double-build.patch"
)

src_prepare() {
	default
	rm libc-bottom-half/sources/wasip2_component_type.o || die
}

src_configure() {
	tc-export CC NM AR

	tc-is-clang || die "Compiler isn't clang"
}

src_compile() {
	# gentoo defines SYSROOT
	emake SYSROOT="${S}/sysroot/"
}

src_install() {
	emake SYSROOT="${S}/sysroot/" INSTALL_DIR="${ED}/usr/share/wasi-sysroot" install
}

Inherited Eclasses

Dependencies

DEPEND

	llvm-core/clang
	llvm-core/llvm

RDEPEND

	llvm-core/clang
	llvm-core/llvm

Manifest for 27

Type File Size Source URLs
DIST wasi-libc-wasi-sdk-27.tar.gz 1472362 bytes https://github.com/WebAssembly/wasi-libc/archive/refs/tags/wasi-sdk-27.tar.gz