1 |
commit: 42fbb2f03e8fd683dbfe06719229ff3959dd9bc9 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 29 12:16:04 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 29 12:16:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42fbb2f0 |
7 |
|
8 |
dev-vcs/rcs: backport t810 test fix for 5.9.4 |
9 |
|
10 |
Note that these are purely test fixes, not changes |
11 |
in the logic of the program (=> no need to revbump). |
12 |
|
13 |
Closes: https://bugs.gentoo.org/820230 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
dev-vcs/rcs/files/rcs-5.9.4-test-t810.patch | 24 ++++++++++++++++++++++++ |
17 |
dev-vcs/rcs/rcs-5.9.4.ebuild | 4 +++- |
18 |
2 files changed, 27 insertions(+), 1 deletion(-) |
19 |
|
20 |
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 |
21 |
new file mode 100644 |
22 |
index 00000000000..568731e1903 |
23 |
--- /dev/null |
24 |
+++ b/dev-vcs/rcs/files/rcs-5.9.4-test-t810.patch |
25 |
@@ -0,0 +1,24 @@ |
26 |
+https://git.savannah.gnu.org/cgit/rcs.git/commit/?h=p&id=f2330a6268d244e97f47a97f4767736fc3b31455 |
27 |
+https://bugs.gentoo.org/820230 |
28 |
+ |
29 |
+From: Thien-Thi Nguyen <ttn@×××.org> |
30 |
+Date: Thu, 5 Apr 2018 16:20:35 +0200 |
31 |
+Subject: [v] Avoid "test FILE1 -nt FILE2". |
32 |
+ |
33 |
+* tests/t810: Use "btdt mtimecmp" instead of "test -nt". |
34 |
+Thanks to both sergio and Xose Vazquez Perez |
35 |
+for indirectly signalling this problem. See 2018-04-05, |
36 |
+"Add support for "btdt mtimecmp FILE1 FILE2"" for details. |
37 |
+--- a/tests/t810 |
38 |
++++ b/tests/t810 |
39 |
+@@ -27,7 +27,8 @@ split_std_out_err no |
40 |
+ |
41 |
+ must 'echo new line >> $w' |
42 |
+ must 'ci -mm -l -d -T $w' |
43 |
+-test $w -nt $v && problem "$w newer than $v" |
44 |
++test 1 = `./btdt mtimecmp $w $v` \ |
45 |
++ && problem "$w newer than $v" |
46 |
+ |
47 |
+ exit 0 |
48 |
+ |
49 |
+cgit v1.2.1 |
50 |
|
51 |
diff --git a/dev-vcs/rcs/rcs-5.9.4.ebuild b/dev-vcs/rcs/rcs-5.9.4.ebuild |
52 |
index b5cd9539963..ee7d184c6b6 100644 |
53 |
--- a/dev-vcs/rcs/rcs-5.9.4.ebuild |
54 |
+++ b/dev-vcs/rcs/rcs-5.9.4.ebuild |
55 |
@@ -3,7 +3,7 @@ |
56 |
|
57 |
EAPI="5" |
58 |
|
59 |
-inherit flag-o-matic |
60 |
+inherit epatch flag-o-matic |
61 |
|
62 |
DESCRIPTION="Revision Control System" |
63 |
HOMEPAGE="https://www.gnu.org/software/rcs/" |
64 |
@@ -20,6 +20,8 @@ RDEPEND=" |
65 |
DEPEND="${RDEPEND}" |
66 |
|
67 |
src_prepare() { |
68 |
+ epatch "${FILESDIR}"/${P}-test-t810.patch |
69 |
+ |
70 |
sed -i -e '/gets is a security hole/d' \ |
71 |
lib/stdio.in.h || die |
72 |
} |