head 1.3; access; symbols pkgsrc-2026Q1:1.3.0.2 pkgsrc-2026Q1-base:1.3 pkgsrc-2020Q2:1.1.0.4 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.2 pkgsrc-2020Q1-base:1.1; locks; strict; comment @// @; 1.3 date 2026.01.07.01.03.59; author gdt; state Exp; branches; next 1.2; commitid yVhtSCB2BR9NGopG; 1.2 date 2020.08.25.16.42.21; author gdt; state dead; branches; next 1.1; commitid AWi8aZUk2bUCTslC; 1.1 date 2020.03.29.01.06.11; author joerg; state Exp; branches; next ; commitid qYyMs0xyUinTwe2C; desc @@ 1.3 log @security/zoneminder: Patch mismatches between format specifier and types Variously the issues are time_t, size_t, suseconds_t. With this, there are no format warnings on amd64 or i386. @ text @$NetBSD$ --- src/zm_image.cpp.orig 2026-01-07 00:13:06.515742101 +0000 +++ src/zm_image.cpp @@@@ -917,7 +917,7 @@@@ bool Image::ReadRaw(const char *filename if ( (unsigned int)statbuf.st_size != size ) { fclose(infile); - Error("Raw file size mismatch, expected %d bytes, found %ld", size, statbuf.st_size); + Error("Raw file size mismatch, expected %d bytes, found %jd", size, static_cast(statbuf.st_size)); return false; } @ 1.2 log @security/zoneminder: Update to 1.29.0 This is the last version that supports autoconf, and this update is only because it's a reasonable benefit/cost tradeoff as an intermediaate step. Tested on netbsd-9/earmv7hf-el. Upstream chanages: many bug fixes and improvements zoneminder API Multiserver limted ONVIF support See more at https://github.com/ZoneMinder/zoneminder/releases/tag/v1.29.0-rc2 and before and after. Note that when updating, one must run zmupdate to modify the db schema. @ text @d1 1 a1 1 $NetBSD: patch-src_zm__image.cpp,v 1.1 2020/03/29 01:06:11 joerg Exp $ d3 1 a3 3 std::abs works better with a signed argument. --- src/zm_image.cpp.orig 2020-03-28 21:54:25.650909348 +0000 d5 8 a12 3 @@@@ -1580,7 +1580,7 @@@@ Image *Image::Highlight( unsigned int n_ { uint8_t *psrc = images[j]->buffer+c; a13 5 - 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++; } @ 1.1 log @Fix conflict with . Resolve argument type of std::abs. @ text @d1 1 a1 1 $NetBSD$ @