public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/bglibs/
Date: Sat, 08 Feb 2025 23:37:39 +0000 (UTC)	[thread overview]
Message-ID: <1739057604.b2147e61a6255b4ee2ae85bad142aa9d2c2d5f17.mjo@gentoo> (raw)

commit:     b2147e61a6255b4ee2ae85bad142aa9d2c2d5f17
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  8 23:33:24 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Feb  8 23:33:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2147e61

dev-libs/bglibs: disable the one failing network test

Closes: https://bugs.gentoo.org/687390
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 dev-libs/bglibs/bglibs-2.04-r3.ebuild | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/dev-libs/bglibs/bglibs-2.04-r3.ebuild b/dev-libs/bglibs/bglibs-2.04-r3.ebuild
index cf69431cce50..1327b6161114 100644
--- a/dev-libs/bglibs/bglibs-2.04-r3.ebuild
+++ b/dev-libs/bglibs/bglibs-2.04-r3.ebuild
@@ -34,9 +34,22 @@ PATCHES=(
 
 src_prepare() {
 	default
-	# disable tests as we want them manually
+
+	# Remove the tests from the default target so that we can run
+	# them only when the user has enabled them.
 	sed -i '/^all:/s|selftests||' Makefile || die
 	sed -i '/selftests/d' TARGETS || die
+
+	# The selftests.sh script collects the list of tests to run by
+	# grepping for "#ifdef SELFTEST_MAIN", which is defined in each *.c
+	# file to be tested. We can therefore disable individual tests by
+	# clobbering that line. (This should be safe; the contents of that
+	# ifdef are the test program, which we are disabling anyway.)
+	#
+	# This test requires network access, and currently fails even
+	# if you have it (https://github.com/bruceg/bglibs/issues/5).
+	sed -e 's/#ifdef SELFTEST_MAIN/#ifdef UNDEFINED/' \
+		-i net/resolve_ipv4addr.c || die
 }
 
 src_configure() {


             reply	other threads:[~2025-02-08 23:37 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-08 23:37 Michael Orlitzky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-22 16:49 [gentoo-commits] repo/gentoo:master commit in: dev-libs/bglibs/ Sam James
2024-06-28 13:42 Arthur Zamarin
2022-10-28  7:17 Sam James
2022-08-28  6:30 WANG Xuerui
2021-07-21  2:22 Yixun Lan
2020-05-21 12:08 Pacho Ramos
2020-04-08  9:53 Agostino Sarubbo
2019-11-04 12:19 Mikle Kolyada
2019-06-27  9:20 Agostino Sarubbo
2019-06-21 11:07 Agostino Sarubbo
2019-06-20  9:31 Mikle Kolyada
2019-06-18 11:43 Agostino Sarubbo
2019-06-06  1:41 Andreas K. Hüttel
2019-05-17 15:29 Stefan Strogin
2019-05-17 11:46 Stefan Strogin
2019-05-17 11:43 Stefan Strogin
2019-05-17  1:01 Stefan Strogin
2019-05-17  0:46 Stefan Strogin
2019-05-02 20:54 Mikle Kolyada
2019-03-17 10:29 Sergei Trofimovich
2019-03-16 20:14 Sergei Trofimovich
2016-06-13 12:27 Agostino Sarubbo
2016-06-13 12:26 Agostino Sarubbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1739057604.b2147e61a6255b4ee2ae85bad142aa9d2c2d5f17.mjo@gentoo \
    --to=mjo@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox