[32566] trunk/dports/perl/p5-file-mmagic

ricci at macports.org ricci at macports.org
Mon Jan 7 18:30:03 PST 2008


Revision: 32566
          http://trac.macosforge.org/projects/macports/changeset/32566
Author:   ricci at macports.org
Date:     2008-01-07 18:30:02 -0800 (Mon, 07 Jan 2008)

Log Message:
-----------
add patch to error check the result of readMagicLine()
bumped revision

Modified Paths:
--------------
    trunk/dports/perl/p5-file-mmagic/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-file-mmagic/files/
    trunk/dports/perl/p5-file-mmagic/files/patch-MMagic.pm

Modified: trunk/dports/perl/p5-file-mmagic/Portfile
===================================================================
--- trunk/dports/perl/p5-file-mmagic/Portfile	2008-01-08 02:24:01 UTC (rev 32565)
+++ trunk/dports/perl/p5-file-mmagic/Portfile	2008-01-08 02:30:02 UTC (rev 32566)
@@ -3,9 +3,13 @@
 PortGroup		perl5 1.0
 
 perl5.setup		File-MMagic 1.27
+revision		1
 maintainers		ricci
 description		This is a Perl extension for determining file types.
 long_description	${description}
 
 checksums		md5 4ffb13b6587888e6e455c22988abce5e
 platforms		darwin
+
+patchfiles		patch-MMagic.pm
+

Added: trunk/dports/perl/p5-file-mmagic/files/patch-MMagic.pm
===================================================================
--- trunk/dports/perl/p5-file-mmagic/files/patch-MMagic.pm	                        (rev 0)
+++ trunk/dports/perl/p5-file-mmagic/files/patch-MMagic.pm	2008-01-08 02:30:02 UTC (rev 32566)
@@ -0,0 +1,14 @@
+--- MMagic.pm.orig	2006-05-22 22:55:27.000000000 -0700
++++ MMagic.pm	2007-09-10 10:57:21.000000000 -0700
+@@ -764,6 +764,11 @@
+     # this saves time otherwise wasted parsing unused subtests.
+     if (@$item == 3){
+         my $tmp = readMagicLine(@$item);
++	if (!defined($tmp)) {
++		# $tmp could be undef if we ran into troubles while reading
++		#  the entry.
++		return;
++	}
+         @$item = @$tmp;
+     }
+ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080107/77a42e24/attachment.html


More information about the macports-changes mailing list