1 |
commit: 54fb35c25f20b7dd790c415b604a9163fe80db04 |
2 |
Author: Johannes Huber <johu <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 27 11:50:10 2016 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 27 11:51:08 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54fb35c2 |
7 |
|
8 |
kde-frameworks/kcoreaddons: Fix weak random number generator |
9 |
|
10 |
Revision bump adds upstream patch to fix a regression introduced in 5.21.0. |
11 |
See https://mail.kde.org/pipermail/kde-distro-packagers/2016-April/000157.html. |
12 |
|
13 |
Gentoo-bug: 581352 |
14 |
|
15 |
Package-Manager: portage-2.2.28 |
16 |
|
17 |
.../files/kcoreaddons-5.21.0-random.patch | 25 ++++++++++++++++ |
18 |
.../kcoreaddons/kcoreaddons-5.21.0-r1.ebuild | 33 ++++++++++++++++++++++ |
19 |
2 files changed, 58 insertions(+) |
20 |
|
21 |
diff --git a/kde-frameworks/kcoreaddons/files/kcoreaddons-5.21.0-random.patch b/kde-frameworks/kcoreaddons/files/kcoreaddons-5.21.0-random.patch |
22 |
new file mode 100644 |
23 |
index 0000000..6aa913a |
24 |
--- /dev/null |
25 |
+++ b/kde-frameworks/kcoreaddons/files/kcoreaddons-5.21.0-random.patch |
26 |
@@ -0,0 +1,25 @@ |
27 |
+commit 78212436643af95779facd9593c82fb149c2213d |
28 |
+Author: Albert Astals Cid <aacid@×××.org> |
29 |
+Date: Tue Apr 26 23:41:27 2016 +0200 |
30 |
+ |
31 |
+ Missing rand() -> qrand |
32 |
+ |
33 |
+ Fixes regression introduced in 9ae6d765b37135bbfe3a8b936e5a88b8a435e424 |
34 |
+ |
35 |
+ Reviewed by Aleix |
36 |
+ |
37 |
+ BUGS: 362161 |
38 |
+ |
39 |
+diff --git a/src/lib/randomness/krandom.cpp b/src/lib/randomness/krandom.cpp |
40 |
+index eef6bf6..eaff71f 100644 |
41 |
+--- a/src/lib/randomness/krandom.cpp |
42 |
++++ b/src/lib/randomness/krandom.cpp |
43 |
+@@ -51,7 +51,7 @@ int KRandom::random() |
44 |
+ } |
45 |
+ qsrand(seed); |
46 |
+ } |
47 |
+- return rand(); |
48 |
++ return qrand(); |
49 |
+ } |
50 |
+ |
51 |
+ QString KRandom::randomString(int length) |
52 |
|
53 |
diff --git a/kde-frameworks/kcoreaddons/kcoreaddons-5.21.0-r1.ebuild b/kde-frameworks/kcoreaddons/kcoreaddons-5.21.0-r1.ebuild |
54 |
new file mode 100644 |
55 |
index 0000000..fb0cc78 |
56 |
--- /dev/null |
57 |
+++ b/kde-frameworks/kcoreaddons/kcoreaddons-5.21.0-r1.ebuild |
58 |
@@ -0,0 +1,33 @@ |
59 |
+# Copyright 1999-2016 Gentoo Foundation |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+# $Id$ |
62 |
+ |
63 |
+EAPI=6 |
64 |
+ |
65 |
+inherit kde5 |
66 |
+ |
67 |
+DESCRIPTION="Framework for solving common problems such as caching, randomisation, and more" |
68 |
+LICENSE="LGPL-2+" |
69 |
+KEYWORDS="~amd64 ~arm ~x86" |
70 |
+IUSE="fam nls" |
71 |
+ |
72 |
+RDEPEND=" |
73 |
+ $(add_qt_dep qtcore 'icu') |
74 |
+ fam? ( virtual/fam ) |
75 |
+ !<kde-frameworks/kservice-5.2.0:5 |
76 |
+" |
77 |
+DEPEND="${RDEPEND} |
78 |
+ x11-misc/shared-mime-info |
79 |
+ nls? ( $(add_qt_dep linguist-tools) ) |
80 |
+" |
81 |
+ |
82 |
+PATCHES=( "${FILESDIR}/${P}-random.patch" ) |
83 |
+ |
84 |
+src_configure() { |
85 |
+ local mycmakeargs=( |
86 |
+ -D_KDE4_DEFAULT_HOME_POSTFIX=4 |
87 |
+ $(cmake-utils_use_find_package fam FAM) |
88 |
+ ) |
89 |
+ |
90 |
+ kde5_src_configure |
91 |
+} |