diff options
author | Sam James <sam@gentoo.org> | 2021-10-29 13:16:04 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-10-29 13:16:48 +0100 |
commit | 42fbb2f03e8fd683dbfe06719229ff3959dd9bc9 (patch) | |
tree | efa5d4924681b5b6144937994745839e42313050 /dev-vcs/rcs | |
parent | dev-vcs/rcs: backport test fixes for 5.10.0 (diff) | |
download | gentoo-42fbb2f03e8fd683dbfe06719229ff3959dd9bc9.tar.gz gentoo-42fbb2f03e8fd683dbfe06719229ff3959dd9bc9.tar.bz2 gentoo-42fbb2f03e8fd683dbfe06719229ff3959dd9bc9.zip |
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@gentoo.org>
Diffstat (limited to 'dev-vcs/rcs')
-rw-r--r-- | dev-vcs/rcs/files/rcs-5.9.4-test-t810.patch | 24 | ||||
-rw-r--r-- | dev-vcs/rcs/rcs-5.9.4.ebuild | 4 |
2 files changed, 27 insertions, 1 deletions
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 000000000000..568731e1903f --- /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 b5cd95399632..ee7d184c6b6c 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 } |