Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/rhash/, app-crypt/rhash/files/
Date: Thu, 02 Jan 2020 20:39:19
Message-Id: 1577997518.b29a8eee6d90f689232342e632c2418421217649.chewi@gentoo
1 commit: b29a8eee6d90f689232342e632c2418421217649
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 2 20:38:38 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 2 20:38:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b29a8eee
7
8 app-crypt/rhash: Apply upstream patch to fix 1.3.9 -rc segfault
9
10 Bug: https://github.com/rhash/RHash/issues/104
11 Package-Manager: Portage-2.3.84, Repoman-2.3.20
12 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
13
14 .../rhash/files/rhash-1.3.9-rc-segfault.patch | 25 ++++++++++++++++++++++
15 .../{rhash-1.3.9.ebuild => rhash-1.3.9-r1.ebuild} | 3 ++-
16 2 files changed, 27 insertions(+), 1 deletion(-)
17
18 diff --git a/app-crypt/rhash/files/rhash-1.3.9-rc-segfault.patch b/app-crypt/rhash/files/rhash-1.3.9-rc-segfault.patch
19 new file mode 100644
20 index 00000000000..90a1efecbb1
21 --- /dev/null
22 +++ b/app-crypt/rhash/files/rhash-1.3.9-rc-segfault.patch
23 @@ -0,0 +1,25 @@
24 +From 198e62063ed817357204284a15f95ffc7230044c Mon Sep 17 00:00:00 2001
25 +From: Aleksey <rhash.admin@×××××.com>
26 +Date: Thu, 2 Jan 2020 21:16:51 +0300
27 +Subject: [PATCH] fix segfault on rhash -rc
28 +
29 +---
30 + file.c | 5 +++--
31 + 1 file changed, 3 insertions(+), 2 deletions(-)
32 +
33 +diff --git a/file.c b/file.c
34 +index 6f593f9..0d18f45 100644
35 +--- a/file.c
36 ++++ b/file.c
37 +@@ -361,8 +361,9 @@ int file_init_by_print_path(file_t* file, file_t* prepend_dir, const char* print
38 + const char* path = make_path(prepend_dir->real_path, print_path, 0);
39 + file_init(file, path, init_flags & ~FileInitReusePath);
40 + }
41 +- if (!prepend_dir || IS_DOT_STR(prepend_dir->print_path) ||
42 +- (!prepend_dir->print_path && opt.path_separator != ALIEN_PATH_SEPARATOR)) {
43 ++ if (!prepend_dir || (prepend_dir->print_path ?
44 ++ IS_DOT_STR(prepend_dir->print_path) :
45 ++ opt.path_separator != ALIEN_PATH_SEPARATOR)) {
46 + if ((init_flags & FileInitReusePath) != 0) {
47 + file->print_path = print_path;
48 + file->mode |= FileDontFreePrintPath;
49
50 diff --git a/app-crypt/rhash/rhash-1.3.9.ebuild b/app-crypt/rhash/rhash-1.3.9-r1.ebuild
51 similarity index 95%
52 rename from app-crypt/rhash/rhash-1.3.9.ebuild
53 rename to app-crypt/rhash/rhash-1.3.9-r1.ebuild
54 index 2d4c3303cd5..e203d68814e 100644
55 --- a/app-crypt/rhash/rhash-1.3.9.ebuild
56 +++ b/app-crypt/rhash/rhash-1.3.9-r1.ebuild
57 @@ -1,4 +1,4 @@
58 -# Copyright 1999-2019 Gentoo Authors
59 +# Copyright 1999-2020 Gentoo Authors
60 # Distributed under the terms of the GNU General Public License v2
61
62 EAPI=7
63 @@ -32,6 +32,7 @@ S="${WORKDIR}/RHash-${PV}"
64
65 PATCHES=(
66 "${FILESDIR}"/${P}-nls.patch
67 + "${FILESDIR}"/${P}-rc-segfault.patch
68 )
69
70 src_prepare() {