From 88443b7bc2c29eb97a394d133cae896c478c513f Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 13 Jun 2025 01:58:35 +0100 Subject: [PATCH] media-libs/libcddb: unrestrict tests Skip tests that require network. Only one test gets run but it's better than nothing, innit. Bug: https://bugs.gentoo.org/157213 Signed-off-by: Sam James --- media-libs/libcddb/libcddb-1.3.2-r2.ebuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/media-libs/libcddb/libcddb-1.3.2-r2.ebuild b/media-libs/libcddb/libcddb-1.3.2-r2.ebuild index e64afadf6a5d4..2e020c2f2f62b 100644 --- a/media-libs/libcddb/libcddb-1.3.2-r2.ebuild +++ b/media-libs/libcddb/libcddb-1.3.2-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -18,8 +18,6 @@ RDEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]" DEPEND="${RDEPEND}" BDEPEND="doc? ( app-text/doxygen )" -RESTRICT="test" - DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) MULTILIB_WRAPPED_HEADERS=( /usr/include/cddb/version.h ) @@ -30,6 +28,17 @@ PATCHES=( src_prepare() { default + + # Need ntwork access + local file + for file in tests/check_{cache,discid,server,charset}.sh ; do + cat <<-EOF > "${file}" + #!/bin/sh + exit 77 + EOF + chmod +x "${file}" || die + done + # Required for CONFIG_SHELL != bash (bug #528012) eautoreconf }