zoneminder: Add patch for perl language issue

This commit is contained in:
Greg Troxel 2020-08-24 19:37:46 -04:00
parent 48afb00b7a
commit 574ef326a2
3 changed files with 19 additions and 1 deletions

View File

@ -4,7 +4,7 @@ VERSION= 1.29.0
# Sometimes the distfile unpacks to ZoneMinder and sometimes zoneminder.
NAME_DIST= ZoneMinder
NAME_LOWER= zoneminder
PKGREVISION= 1
PKGREVISION= 2
PKGNAME= ${DISTNAME:S/${NAME_DIST}-/${NAME_LOWER}-/}
DISTNAME= ${NAME_DIST}-${VERSION}

View File

@ -7,6 +7,7 @@ Size (ZoneMinder-1.29.0.tar.gz) = 9302624 bytes
SHA1 (patch-Makefile_am) = d3b66d8d741b739e2e6b354cef29881d8bcde31c
SHA1 (patch-configure_ac) = 689230f4d7526ab3d47142b111102b9bc4ff409c
SHA1 (patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm) = 841d897662958698a4dfcb95dd5bc43bb5fed568
SHA1 (patch-scripts_ZoneMinder_lib_ZoneMinder_Memory_Shared.pm) = b97c104f6ac102fc4510eb0977169375cdd97197
SHA1 (patch-scripts_zm_in) = a05727261bb8be6b707e9a14ae4ff52ea3770d51
SHA1 (patch-src_Makefile_am) = 0f6571c9d5a3e688544f93d687d266e1b71f0f43
SHA1 (patch-src_zm__event.cpp) = 83d0d3f5de5d3a7b1ea81917bd9c5264c8129637

View File

@ -0,0 +1,17 @@
$NetBSD$
Adjust for (more) modern perl.
Not submitted upstream because pkgsrc is woefully out of date.
--- scripts/ZoneMinder/lib/ZoneMinder/Memory/Shared.pm.orig 2016-02-03 18:40:30.000000000 +0000
+++ scripts/ZoneMinder/lib/ZoneMinder/Memory/Shared.pm
@@ -158,7 +158,7 @@ sub zmMemClean
."'"
;
Debug( "Checking for shared memory with '$command'\n" );
- open( my $CMD, '<', "$command |" )
+ open( my $CMD, '-|', "$command" )
or Fatal( "Can't execute '$command': $!" );
while( <$CMD> )
{