pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/kirigami2 kirigami2: std::log compat.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ba6bff736673
branches:  trunk
changeset: 444811:ba6bff736673
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Jan 13 10:57:48 2021 +0000

description:
kirigami2: std::log compat.

diffstat:

 x11/kirigami2/distinfo                   |   3 ++-
 x11/kirigami2/patches/patch-src_icon.cpp |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 9087e924f803 -r ba6bff736673 x11/kirigami2/distinfo
--- a/x11/kirigami2/distinfo    Wed Jan 13 10:47:05 2021 +0000
+++ b/x11/kirigami2/distinfo    Wed Jan 13 10:57:48 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2020/06/07 12:43:11 markd Exp $
+$NetBSD: distinfo,v 1.9 2021/01/13 10:57:48 jperkin Exp $
 
 SHA1 (kirigami2-5.70.0.tar.xz) = 91dc0ae7e993be7a861001c08bdf42a5e0db1f41
 RMD160 (kirigami2-5.70.0.tar.xz) = 5e325227b0afd56ee3518d77404cb0581b136277
 SHA512 (kirigami2-5.70.0.tar.xz) = 45c582110cc4d7595c6d467f16f77aba6d66ba0701fea2d1049e7c6af8a73376c0521126031cd1748a8735b0ea75917a8ba1c6f6f72497778d8a883671ef0afb
 Size (kirigami2-5.70.0.tar.xz) = 257720 bytes
+SHA1 (patch-src_icon.cpp) = 5d1e8ffe75903807f8404685cbee9c435be123bb
diff -r 9087e924f803 -r ba6bff736673 x11/kirigami2/patches/patch-src_icon.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/kirigami2/patches/patch-src_icon.cpp  Wed Jan 13 10:57:48 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_icon.cpp,v 1.1 2021/01/13 10:57:48 jperkin Exp $
+
+Explicitly use std::log.
+
+--- src/icon.cpp.orig  2020-05-02 22:20:13.000000000 +0000
++++ src/icon.cpp
+@@ -563,7 +563,7 @@ bool Icon::guessMonochrome(const QImage
+     while (it != dist.constEnd()) {
+         reverseDist.insert(it.value(), it.key());
+         qreal probability = qreal(it.value()) / qreal(img.size().width() * img.size().height() - transparentPixels);
+-        entropy -= probability * log(probability) / log(255);
++        entropy -= probability * std::log(probability) / std::log(255);
+         ++it;
+     }
+ 



Home | Main Index | Thread Index | Old Index