pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/tlsh Replace patch with correct upstream fix.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/14bc7a159529
branches:  trunk
changeset: 367410:14bc7a159529
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Sep 01 07:52:02 2017 +0000

description:
Replace patch with correct upstream fix.

Bump PKGREVISION.

diffstat:

 devel/tlsh/Makefile                           |  3 ++-
 devel/tlsh/distinfo                           |  4 ++--
 devel/tlsh/patches/patch-utils_rand__tags.cpp |  6 +++---
 3 files changed, 7 insertions(+), 6 deletions(-)

diffs (45 lines):

diff -r f143bc7da7b8 -r 14bc7a159529 devel/tlsh/Makefile
--- a/devel/tlsh/Makefile       Fri Sep 01 07:09:56 2017 +0000
+++ b/devel/tlsh/Makefile       Fri Sep 01 07:52:02 2017 +0000
@@ -1,5 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2015/12/02 17:22:18 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2017/09/01 07:52:02 wiz Exp $
 
+PKGREVISION=   1
 USE_CMAKE=     yes
 CONFIGURE_DIRS=        build/release
 CMAKE_ARG_PATH=        ../..
diff -r f143bc7da7b8 -r 14bc7a159529 devel/tlsh/distinfo
--- a/devel/tlsh/distinfo       Fri Sep 01 07:09:56 2017 +0000
+++ b/devel/tlsh/distinfo       Fri Sep 01 07:52:02 2017 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.4 2016/12/17 14:18:32 joerg Exp $
+$NetBSD: distinfo,v 1.5 2017/09/01 07:52:02 wiz Exp $
 
 SHA1 (tlsh-3.4.5.tar.gz) = 2d50b1e66ffbfd215f36648258d28be4171015c0
 RMD160 (tlsh-3.4.5.tar.gz) = a7f5f94d8113a6d6e24a84fe86b3d9dc93609757
 SHA512 (tlsh-3.4.5.tar.gz) = 039f9fb9fb467a9b22f85a621c46069bac1745da039657840e1ff1a53901392fcf29d3c953b0f47d831d022a5e2594925c726d4ff921614418a3bb023a4ebbdc
 Size (tlsh-3.4.5.tar.gz) = 1914815 bytes
-SHA1 (patch-utils_rand__tags.cpp) = 084f910f41e04aa214e62c3b2e430e27d0e14920
+SHA1 (patch-utils_rand__tags.cpp) = 024d61efd590d5e16b20100eac729276fc996ee6
diff -r f143bc7da7b8 -r 14bc7a159529 devel/tlsh/patches/patch-utils_rand__tags.cpp
--- a/devel/tlsh/patches/patch-utils_rand__tags.cpp     Fri Sep 01 07:09:56 2017 +0000
+++ b/devel/tlsh/patches/patch-utils_rand__tags.cpp     Fri Sep 01 07:52:02 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-utils_rand__tags.cpp,v 1.1 2016/12/17 14:18:32 joerg Exp $
+$NetBSD: patch-utils_rand__tags.cpp,v 1.2 2017/09/01 07:52:02 wiz Exp $
 
-Checking for negative pointers doesn't make sense.
+https://github.com/trendmicro/tlsh/commit/fb076b0f62b620e0de4cf95a5ccb81f21d4abc24#diff-02ad04ab1753a2119772311c29f24d23
 
 --- utils/rand_tags.cpp.orig   2016-12-16 17:30:02.495417195 +0000
 +++ utils/rand_tags.cpp
@@ -9,7 +9,7 @@
  static void rhtml_contents(std::string &htmls, int *ntags, int *ndistinct_tags)
  {
 -      if ((*ntags <= 0) && (ndistinct_tags <= 0))
-+      if ((*ntags <= 0) && (ndistinct_tags == 0))
++      if ((*ntags <= 0) && (*ndistinct_tags <= 0))
                return; 
        if (random() % 10 == 1) {
                anchor(htmls);



Home | Main Index | Thread Index | Old Index