public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/mc/, app-misc/mc/files/
Date: Tue,  5 Apr 2022 15:25:30 +0000 (UTC)	[thread overview]
Message-ID: <1649172322.8a4b991f7876da3e73a53e78c097d2cd91ba2fae.polynomial-c@gentoo> (raw)

commit:     8a4b991f7876da3e73a53e78c097d2cd91ba2fae
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  5 15:22:50 2022 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Apr  5 15:25:22 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a4b991f

app-misc/mc: Fixed tests

Closes: https://bugs.gentoo.org/836812
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 app-misc/mc/files/mc-4.8.28-tests.patch | 35 +++++++++++++++++++++++++++++++++
 app-misc/mc/mc-4.8.28.ebuild            |  1 +
 2 files changed, 36 insertions(+)

diff --git a/app-misc/mc/files/mc-4.8.28-tests.patch b/app-misc/mc/files/mc-4.8.28-tests.patch
new file mode 100644
index 000000000000..ccd9dc1addc9
--- /dev/null
+++ b/app-misc/mc/files/mc-4.8.28-tests.patch
@@ -0,0 +1,35 @@
+START_TEST uses the variable name _i, so GCC complains about redefining it with
+a different type here.
+
+--- mc-4.8.28/tests/lib/strutil/filevercmp.c	2022-03-20 10:02:47.000000000 +0000
++++ mc-4.8.28/tests/lib/strutil/filevercmp.c	2022-03-27 15:31:19.812120141 +0100
+@@ -353,20 +353,20 @@
+ START_TEST (filevercmp_test5)
+ /* *INDENT-ON* */
+ {
+-    size_t _i;
++    size_t ii;
+ 
+-    for (_i = 0; _i < filevercmp_test_ds5_len; _i++)
+-        for (; filevercmp_test_ds5[_i] != NULL; _i++)
++    for (ii = 0; ii < filevercmp_test_ds5_len; ii++)
++        for (; filevercmp_test_ds5[ii] != NULL; ii++)
+         {
+-            const char *i = filevercmp_test_ds5[_i];
+-            size_t _j;
++            const char *i = filevercmp_test_ds5[ii];
++            size_t jj;
+ 
+-            for (_j = _i; filevercmp_test_ds5[_j] != NULL; _j++)
++            for (jj = ii; filevercmp_test_ds5[jj] != NULL; jj++)
+             {
+-                const char *j = filevercmp_test_ds5[_j];
++                const char *j = filevercmp_test_ds5[jj];
+ 
+-                ck_assert_int_eq (test_filevercmp (i, j), 0);
+-                ck_assert_int_eq (test_filevercmp (j, i), 0);
++                ck_assert_int_eq (test_filevercmp (i, j), 0);
++                ck_assert_int_eq (test_filevercmp (j, i), 0);
+             }
+         }
+ }

diff --git a/app-misc/mc/mc-4.8.28.ebuild b/app-misc/mc/mc-4.8.28.ebuild
index 3b62f454f445..c9ccfbc6bf8b 100644
--- a/app-misc/mc/mc-4.8.28.ebuild
+++ b/app-misc/mc/mc-4.8.28.ebuild
@@ -48,6 +48,7 @@ S="${WORKDIR}/${MY_P}"
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-4.8.26-ncurses-mouse.patch
+	"${FILESDIR}"/${P}-tests.patch #836812
 )
 
 pkg_pretend() {


             reply	other threads:[~2022-04-05 15:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-05 15:25 Lars Wendler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-16  9:10 [gentoo-commits] repo/gentoo:master commit in: app-misc/mc/, app-misc/mc/files/ Viorel Munteanu
2023-10-22 10:04 Marek Szuba
2023-08-19 11:15 Marek Szuba
2023-03-22 23:43 Marek Szuba
2023-01-24 11:01 Marek Szuba
2021-10-01  9:43 Lars Wendler
2021-03-31 22:17 Sergei Trofimovich
2021-02-03  8:09 Sergei Trofimovich
2020-11-27 10:54 Sergei Trofimovich
2020-03-03  9:42 Sergei Trofimovich
2019-03-10 17:43 Lars Wendler
2017-12-02 12:12 Sergei Trofimovich
2016-04-13 22:47 Sergei Trofimovich
2015-12-23  8:33 Lars Wendler

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=1649172322.8a4b991f7876da3e73a53e78c097d2cd91ba2fae.polynomial-c@gentoo \
    --to=polynomial-c@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