Install this version:
emerge -a =dev-libs/aws-lc-5.1.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/aws-lc-5.1.0
Or alternatively:
emerge --autounmask-write -a =dev-libs/aws-lc-5.1.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 5.1.0 | 8 | ~amd64 | 0 |
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
RUST_MIN_VER=1.70
RUST_OPTIONAL=1
RUST_REQ_USE="rustfmt"
inherit cmake multiprocessing rust
DESCRIPTION="General-purpose cryptographic library maintained by the AWS Cryptography team"
HOMEPAGE="https://github.com/aws/aws-lc"
SRC_URI="
https://github.com/aws/aws-lc/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz
test? (
https://gitlab.com/api/v4/projects/32909921/packages/generic/${PN}/${PV}/${P}-vendor.tar.xz
)
"
LICENSE="Apache-2.0 BSD CC0-1.0 MIT ISC"
SLOT="0" # ABI_VERSION
KEYWORDS="~amd64"
IUSE="rust test tools"
RESTRICT="test !test? ( test )"
PROPERTIES="test_network" # some tests like to test with amazon.com
DEPEND="test? ( kernel_linux? ( sys-libs/libunwind ) )"
BDEPEND="
dev-lang/go
dev-lang/perl
rust? (
${RUST_DEPEND}
>=dev-util/bindgen-0.69.5
)
test? ( virtual/pkgconfig )
"
pkg_setup() {
use rust && rust_pkg_setup
}
src_configure() {
local mycmakeargs=(
-DBUILD_TESTING=$(usex test)
-DBUILD_LIBSSL=ON
-DBUILD_TOOL=$(usex tools)
-DGENERATE_RUST_BINDINGS=$(usex rust)
# don't conflict with dev-libs/openssl
-DENABLE_DIST_PKG=ON
-DENABLE_DIST_PKG_OPENSSL_SHIM=OFF
)
cmake_src_configure
}
src_test() {
if use !tools; then
# noop test that requires USE="tools"
mkdir -p "${BUILD_DIR}"/tool-openssl || die
cat > "${BUILD_DIR}"/tool-openssl/tool_openssl_test <<- EOF || die
#!/bin/sh
# Exit code 89 is used for skipped tests, see util/all_tests.go
exit 89
EOF
chmod +x "${BUILD_DIR}"/tool-openssl/tool_openssl_test || die
fi
local -x AWS_LC_NUM_TEST_WORKERS="${AWS_LC_NUM_TEST_WORKERS:-$(get_makeopts_jobs)}"
cmake_build run_tests
}
Manage flags for this package:
euse -i <flag> -p dev-libs/aws-lc |
euse -E <flag> -p dev-libs/aws-lc |
euse -D <flag> -p dev-libs/aws-lc
test? ( kernel_linux? ( sys-libs/libunwind ) )
dev-lang/go dev-lang/perl rust? ( >=dev-util/bindgen-0.69.5 ) test? ( virtual/pkgconfig )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | aws-lc-5.1.0-vendor.tar.xz | 552128 bytes | https://gitlab.com/api/v4/projects/32909921/packages/generic/aws-lc/5.1.0/aws-lc-5.1.0-vendor.tar.xz |
| DIST | aws-lc-5.1.0.tar.gz | 145542555 bytes | https://github.com/aws/aws-lc/archive/refs/tags/v5.1.0.tar.gz |