pkgsrc-WIP-changes archive

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

zoneminder: Add patch for perl language issue



Module Name:	pkgsrc-wip
Committed By:	Greg Troxel <gdt%lexort.com@localhost>
Pushed By:	gdt
Date:		Mon Aug 24 19:37:46 2020 -0400
Changeset:	574ef326a2e5f8010ae251370db38efc21b51bca

Modified Files:
	zoneminder/Makefile
	zoneminder/distinfo
Added Files:
	zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_Memory_Shared.pm

Log Message:
zoneminder: Add patch for perl language issue

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=574ef326a2e5f8010ae251370db38efc21b51bca

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 zoneminder/Makefile                                     |  2 +-
 zoneminder/distinfo                                     |  1 +
 ...h-scripts_ZoneMinder_lib_ZoneMinder_Memory_Shared.pm | 17 +++++++++++++++++
 3 files changed, 19 insertions(+), 1 deletion(-)

diffs:
diff --git a/zoneminder/Makefile b/zoneminder/Makefile
index c8afcd35c6..a3385cd067 100644
--- a/zoneminder/Makefile
+++ b/zoneminder/Makefile
@@ -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}
diff --git a/zoneminder/distinfo b/zoneminder/distinfo
index eb64b197ae..4a83733534 100644
--- a/zoneminder/distinfo
+++ b/zoneminder/distinfo
@@ -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
diff --git a/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_Memory_Shared.pm b/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_Memory_Shared.pm
new file mode 100644
index 0000000000..ea78920c07
--- /dev/null
+++ b/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_Memory_Shared.pm
@@ -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> )
+     {


Home | Main Index | Thread Index | Old Index