pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/x11/kirigami2
Module Name: pkgsrc
Committed By: jperkin
Date: Wed Jan 13 10:57:48 UTC 2021
Modified Files:
pkgsrc/x11/kirigami2: distinfo
Added Files:
pkgsrc/x11/kirigami2/patches: patch-src_icon.cpp
Log Message:
kirigami2: std::log compat.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/x11/kirigami2/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/kirigami2/patches/patch-src_icon.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/x11/kirigami2/distinfo
diff -u pkgsrc/x11/kirigami2/distinfo:1.8 pkgsrc/x11/kirigami2/distinfo:1.9
--- pkgsrc/x11/kirigami2/distinfo:1.8 Sun Jun 7 12:43:11 2020
+++ pkgsrc/x11/kirigami2/distinfo Wed Jan 13 10:57:48 2021
@@ -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
Added files:
Index: pkgsrc/x11/kirigami2/patches/patch-src_icon.cpp
diff -u /dev/null pkgsrc/x11/kirigami2/patches/patch-src_icon.cpp:1.1
--- /dev/null Wed Jan 13 10:57:48 2021
+++ pkgsrc/x11/kirigami2/patches/patch-src_icon.cpp Wed Jan 13 10:57:48 2021
@@ -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