diff options
| author | Sven Eden <sven.eden@prydeworx.com> | 2020-12-14 21:10:07 +0100 |
|---|---|---|
| committer | Joonas Niilola <juippis@gentoo.org> | 2021-01-05 11:06:29 +0200 |
| commit | 0e81304b543febf538717b560e6cd821c6131a3e (patch) | |
| tree | 873c18b24c17cdd5818a8c7eae7d403aa3d571c0 /dev-libs/aws-c-io/aws-c-io-0.7.0-r1.ebuild | |
| parent | 5b5c8fdad10547ad4a8740aaa7dfad92d46d9c35 (diff) | |
| download | gentoo-0e81304b543febf538717b560e6cd821c6131a3e.tar.gz gentoo-0e81304b543febf538717b560e6cd821c6131a3e.tar.bz2 gentoo-0e81304b543febf538717b560e6cd821c6131a3e.zip | |
dev-libs/aws-c-io: Disable tests requiring an internet connection
Some of the tests require internet connectivity. On an offline
machine these tests will therefore fail.
As network sandboxing is enabled by default for years now, it is
very unlikely that anybody would perform these tests anyway.
Closes: https://bugs.gentoo.org/759802
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
Closes: https://github.com/gentoo/gentoo/pull/18656
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/aws-c-io/aws-c-io-0.7.0-r1.ebuild')
| -rw-r--r-- | dev-libs/aws-c-io/aws-c-io-0.7.0-r1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/aws-c-io/aws-c-io-0.7.0-r1.ebuild b/dev-libs/aws-c-io/aws-c-io-0.7.0-r1.ebuild new file mode 100644 index 000000000000..3bae4a9f0357 --- /dev/null +++ b/dev-libs/aws-c-io/aws-c-io-0.7.0-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="AWS SDK for C module, handles IO and TLS work for application protocols" +HOMEPAGE="https://github.com/awslabs/aws-c-io" +SRC_URI="https://github.com/awslabs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs test" + +RESTRICT="!test? ( test )" + +BDEPEND=" + || ( + >dev-util/cmake-3.19.1 + <dev-util/cmake-3.19.0 + ) +" + +DEPEND=" + >=dev-libs/aws-c-cal-0.4.5:=[static-libs=] + >=dev-libs/aws-c-common-0.4.62:=[static-libs=] + >=dev-libs/s2n-0.10.21:=[static-libs=] +" + +PATCHES=( + "${FILESDIR}"/${P}-cmake-prefix.patch +) + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=$(usex !static-libs) + -DBUILD_TESTING=$(usex test) + ) + + if use test; then + # (#759802) Due to network sandboxing of portage, internet connectivity + # tests will always fail. If you need a USE flag, because you want/need + # to perform these tests manually, please open a bug report for it. + mycmakeargs+=( + -DENABLE_NET_TESTS=OFF + ) + fi + + cmake_src_configure +} |
