public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/rcs/, dev-vcs/rcs/files/
Date: Fri, 29 Oct 2021 12:16:56 +0000 (UTC)	[thread overview]
Message-ID: <1635509808.42fbb2f03e8fd683dbfe06719229ff3959dd9bc9.sam@gentoo> (raw)

commit:     42fbb2f03e8fd683dbfe06719229ff3959dd9bc9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 29 12:16:04 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 29 12:16:48 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42fbb2f0

dev-vcs/rcs: backport t810 test fix for 5.9.4

Note that these are purely test	fixes, not changes
in the logic of	the program (=>	no need	to revbump).

Closes: https://bugs.gentoo.org/820230
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-vcs/rcs/files/rcs-5.9.4-test-t810.patch | 24 ++++++++++++++++++++++++
 dev-vcs/rcs/rcs-5.9.4.ebuild                |  4 +++-
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/dev-vcs/rcs/files/rcs-5.9.4-test-t810.patch b/dev-vcs/rcs/files/rcs-5.9.4-test-t810.patch
new file mode 100644
index 00000000000..568731e1903
--- /dev/null
+++ b/dev-vcs/rcs/files/rcs-5.9.4-test-t810.patch
@@ -0,0 +1,24 @@
+https://git.savannah.gnu.org/cgit/rcs.git/commit/?h=p&id=f2330a6268d244e97f47a97f4767736fc3b31455
+https://bugs.gentoo.org/820230
+
+From: Thien-Thi Nguyen <ttn@gnu.org>
+Date: Thu, 5 Apr 2018 16:20:35 +0200
+Subject: [v] Avoid "test FILE1 -nt FILE2".
+
+* tests/t810: Use "btdt mtimecmp" instead of "test -nt".
+Thanks to both sergio and Xose Vazquez Perez
+for indirectly signalling this problem.  See 2018-04-05,
+"Add support for "btdt mtimecmp FILE1 FILE2"" for details.
+--- a/tests/t810
++++ b/tests/t810
+@@ -27,7 +27,8 @@ split_std_out_err no
+ 
+ must 'echo new line >> $w'
+ must 'ci -mm -l -d -T $w'
+-test $w -nt $v && problem "$w newer than $v"
++test 1 = `./btdt mtimecmp $w $v` \
++    && problem "$w newer than $v"
+ 
+ exit 0
+ 
+cgit v1.2.1

diff --git a/dev-vcs/rcs/rcs-5.9.4.ebuild b/dev-vcs/rcs/rcs-5.9.4.ebuild
index b5cd9539963..ee7d184c6b6 100644
--- a/dev-vcs/rcs/rcs-5.9.4.ebuild
+++ b/dev-vcs/rcs/rcs-5.9.4.ebuild
@@ -3,7 +3,7 @@
 
 EAPI="5"
 
-inherit flag-o-matic
+inherit epatch flag-o-matic
 
 DESCRIPTION="Revision Control System"
 HOMEPAGE="https://www.gnu.org/software/rcs/"
@@ -20,6 +20,8 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 
 src_prepare() {
+	epatch "${FILESDIR}"/${P}-test-t810.patch
+
 	sed -i -e '/gets is a security hole/d' \
 		lib/stdio.in.h || die
 }


             reply	other threads:[~2021-10-29 12:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-29 12:16 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-10-29 12:16 [gentoo-commits] repo/gentoo:master commit in: dev-vcs/rcs/, dev-vcs/rcs/files/ Sam James
2022-01-29  3:56 Sam James
2024-11-11  0:57 Andreas K. Hüttel

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=1635509808.42fbb2f03e8fd683dbfe06719229ff3959dd9bc9.sam@gentoo \
    --to=sam@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