pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/zoneminder Fix conflict with <version>. Resol...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5963d875e6aa
branches:  trunk
changeset: 414497:5963d875e6aa
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Mar 29 01:06:11 2020 +0000

description:
Fix conflict with <version>. Resolve argument type of std::abs.

diffstat:

 security/zoneminder/Makefile                        |   3 ++-
 security/zoneminder/distinfo                        |   3 ++-
 security/zoneminder/patches/patch-src_zm__image.cpp |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)

diffs (53 lines):

diff -r c7e4af9ff91b -r 5963d875e6aa security/zoneminder/Makefile
--- a/security/zoneminder/Makefile      Sun Mar 29 01:05:18 2020 +0000
+++ b/security/zoneminder/Makefile      Sun Mar 29 01:06:11 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2020/01/18 21:50:50 jperkin Exp $
+# $NetBSD: Makefile,v 1.48 2020/03/29 01:06:11 joerg Exp $
 
 # See wip/zoneminder for a draft update to 1.29.0.
 PKGNAME=       ${DISTNAME:S/ZoneMinder-/zoneminder-/}
@@ -218,6 +218,7 @@
 
 post-extract:
        ${CP} ${FILESDIR}/zoneminder.conf ${WRKSRC}/zoneminder.conf
+       ${RM} ${WRKSRC}/version
 
 pre-configure:
        set -e; cd ${WRKSRC}; \
diff -r c7e4af9ff91b -r 5963d875e6aa security/zoneminder/distinfo
--- a/security/zoneminder/distinfo      Sun Mar 29 01:05:18 2020 +0000
+++ b/security/zoneminder/distinfo      Sun Mar 29 01:06:11 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2019/12/19 22:23:19 joerg Exp $
+$NetBSD: distinfo,v 1.14 2020/03/29 01:06:11 joerg Exp $
 
 SHA1 (ZoneMinder-1.28.1.tar.gz) = 3e173ae1aac529b60d79a5fc668c107f0679d0a2
 RMD160 (ZoneMinder-1.28.1.tar.gz) = b3cc305656cb5b73d4ac0e21fe937c237467cdd1
@@ -10,6 +10,7 @@
 SHA1 (patch-scripts_zm_in) = 8f59085bb9293afa7aeb268000c75988e5371c66
 SHA1 (patch-src_Makefile_am) = 0f6571c9d5a3e688544f93d687d266e1b71f0f43
 SHA1 (patch-src_zm__event.cpp) = 5258e89486b1152f0ddcac9b0a6fd68b70f24256
+SHA1 (patch-src_zm__image.cpp) = 0cb4f56bdf2f4fb99ec673b5a4f81589a7bdfdb0
 SHA1 (patch-src_zm__monitor.cpp) = dcc3816686a6a7c375d4716d3663b4c922c90439
 SHA1 (patch-src_zm__rtp__source.cpp) = 5341938eefe5def49dc8f3e3b760d86cabd17772
 SHA1 (patch-src_zm__sdp.cpp) = ed89bc14ae557281bb43baca9c90b78d801d8eb1
diff -r c7e4af9ff91b -r 5963d875e6aa security/zoneminder/patches/patch-src_zm__image.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/zoneminder/patches/patch-src_zm__image.cpp       Sun Mar 29 01:06:11 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_zm__image.cpp,v 1.1 2020/03/29 01:06:11 joerg Exp $
+
+std::abs works better with a signed argument.
+
+--- src/zm_image.cpp.orig      2020-03-28 21:54:25.650909348 +0000
++++ src/zm_image.cpp
+@@ -1580,7 +1580,7 @@ Image *Image::Highlight( unsigned int n_
+                       {
+                               uint8_t *psrc = images[j]->buffer+c;
+ 
+-                              if ( (unsigned)abs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) )
++                              if ( (unsigned)abs(int(*psrc)-int(RGB_VAL(ref_colour,c))) >= RGB_VAL(threshold,c) )
+                               {
+                                       count++;
+                               }



Home | Main Index | Thread Index | Old Index