commit:     fcfd8fb969592b609506b667aa63bb6c1cd8f178
Author:     Sven Eden <sven.eden <AT> prydeworx <DOT> com>
AuthorDate: Fri Dec 18 14:45:30 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Jan  5 09:06:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcfd8fb9

dev-libs/aws-c-event-stream: Disable internet requiring tests

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/760585
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sven Eden <sven.eden <AT> prydeworx.com>
Closes: https://github.com/gentoo/gentoo/pull/18706
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../aws-c-event-stream/aws-c-event-stream-0.2.5-r1.ebuild    | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/dev-libs/aws-c-event-stream/aws-c-event-stream-0.2.5-r1.ebuild 
b/dev-libs/aws-c-event-stream/aws-c-event-stream-0.2.5-r1.ebuild
index 8aada917d7d..229b574ddd7 100644
--- a/dev-libs/aws-c-event-stream/aws-c-event-stream-0.2.5-r1.ebuild
+++ b/dev-libs/aws-c-event-stream/aws-c-event-stream-0.2.5-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -38,5 +38,15 @@ src_configure() {
                -DBUILD_SHARED_LIBS=$(usex !static-libs)
                -DBUILD_TESTING=$(usex test)
        )
+
+       if use test; then
+               # (#760585) 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
 }

Reply via email to