From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Dec 20 16:50:01 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EAAF16A421 for ; Thu, 20 Dec 2007 16:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5B99013C459 for ; Thu, 20 Dec 2007 16:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lBKGo1Je092874 for ; Thu, 20 Dec 2007 16:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lBKGo10e092873; Thu, 20 Dec 2007 16:50:01 GMT (envelope-from gnats) Resent-Date: Thu, 20 Dec 2007 16:50:01 GMT Resent-Message-Id: <200712201650.lBKGo10e092873@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Naram Qashat Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5665E16A41A for ; Thu, 20 Dec 2007 16:45:23 +0000 (UTC) (envelope-from root@cyberbotx.com) Received: from QMTA03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id ACDBA13C455 for ; Thu, 20 Dec 2007 16:45:22 +0000 (UTC) (envelope-from root@cyberbotx.com) Received: from OMTA02.westchester.pa.mail.comcast.net ([76.96.62.19]) by QMTA03.westchester.pa.mail.comcast.net with comcast id T3jt1Y00J0QuhwU0505b00; Thu, 20 Dec 2007 16:45:21 +0000 Received: from samus.cyberbotx.com ([68.43.195.82]) by OMTA02.westchester.pa.mail.comcast.net with comcast id T4lL1Y0061n8LeU3N00000; Thu, 20 Dec 2007 16:45:21 +0000 Received: from localhost (localhost.cyberbotx.com [127.0.0.1]) by samus.cyberbotx.com (Postfix) with ESMTP id CE794172ED for ; Thu, 20 Dec 2007 11:45:19 -0500 (EST) Received: from samus.cyberbotx.com ([127.0.0.1]) by localhost (samus.cyberbotx.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ToRqqQlvCtmD for ; Thu, 20 Dec 2007 11:44:55 -0500 (EST) Received: from kirby.cyberbotx.com (unknown [192.168.2.2]) by samus.cyberbotx.com (Postfix) with ESMTP id 6B578170C4 for ; Thu, 20 Dec 2007 11:44:55 -0500 (EST) Received: by kirby.cyberbotx.com (Postfix, from userid 0) id 44F59C1D0; Thu, 20 Dec 2007 11:44:55 -0500 (EST) Message-Id: <20071220164455.44F59C1D0@kirby.cyberbotx.com> Date: Thu, 20 Dec 2007 11:44:55 -0500 (EST) From: Naram Qashat To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/118892: [MAINTAINER] textproc/p5-SGML-Parser-OpenSP: update to 0.991 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 16:50:01 -0000 >Number: 118892 >Category: ports >Synopsis: [MAINTAINER] textproc/p5-SGML-Parser-OpenSP: update to 0.991 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Dec 20 16:50:00 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Naram Qashat >Release: FreeBSD 6.2-RELEASE-p8 i386 >Organization: >Environment: System: FreeBSD kirby.cyberbotx.com 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #12: Sun Oct 14 16:14:35 EDT 2007 >Description: - Update to 0.991 Removed file(s): - files/patch-MANIFEST - files/patch-OpenSP.xs - files/patch-t-20passfd.t - files/patch-t-21parsestring.t - files/patch-t-22mwarnings.t Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- p5-SGML-Parser-OpenSP-0.991.patch begins here --- diff -ruN --exclude=CVS /usr/ports/textproc/p5-SGML-Parser-OpenSP/Makefile /kirby/shared/ports/p5-SGML-Parser-OpenSP/Makefile --- /usr/ports/textproc/p5-SGML-Parser-OpenSP/Makefile Sat Jul 28 15:31:50 2007 +++ /kirby/shared/ports/p5-SGML-Parser-OpenSP/Makefile Thu Dec 20 11:44:16 2007 @@ -6,12 +6,11 @@ # PORTNAME= SGML-Parser-OpenSP -PORTVERSION= 0.100r1 +PORTVERSION= 0.991 CATEGORIES= textproc perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= SGML PKGNAMEPREFIX= p5- -DISTNAME= ${PORTNAME}-0.99 MAINTAINER= cyberbotx@cyberbotx.com COMMENT= Parse SGML documents using OpenSP diff -ruN --exclude=CVS /usr/ports/textproc/p5-SGML-Parser-OpenSP/distinfo /kirby/shared/ports/p5-SGML-Parser-OpenSP/distinfo --- /usr/ports/textproc/p5-SGML-Parser-OpenSP/distinfo Sat Jul 28 15:31:50 2007 +++ /kirby/shared/ports/p5-SGML-Parser-OpenSP/distinfo Thu Dec 20 11:40:14 2007 @@ -1,3 +1,3 @@ -MD5 (SGML-Parser-OpenSP-0.99.tar.gz) = cb08669ed566ef4070671cf57aa749e3 -SHA256 (SGML-Parser-OpenSP-0.99.tar.gz) = 4822da26240b6feb2e435d84053377eb421afda584439b16da0f31f8fcfddc1b -SIZE (SGML-Parser-OpenSP-0.99.tar.gz) = 33761 +MD5 (SGML-Parser-OpenSP-0.991.tar.gz) = 9a4513ee2a42458a083f20a36f0373a4 +SHA256 (SGML-Parser-OpenSP-0.991.tar.gz) = d37b7f7c0de6b315a2057e57e923e1f7a9a0aa858af9b3c47c074e3d3e2d0fc7 +SIZE (SGML-Parser-OpenSP-0.991.tar.gz) = 34783 diff -ruN --exclude=CVS /usr/ports/textproc/p5-SGML-Parser-OpenSP/files/patch-MANIFEST /kirby/shared/ports/p5-SGML-Parser-OpenSP/files/patch-MANIFEST --- /usr/ports/textproc/p5-SGML-Parser-OpenSP/files/patch-MANIFEST Sat Jul 28 15:31:51 2007 +++ /kirby/shared/ports/p5-SGML-Parser-OpenSP/files/patch-MANIFEST Wed Dec 31 19:00:00 1969 @@ -1,12 +0,0 @@ ---- MANIFEST.orig 2007-07-29 03:17:26.000000000 +0800 -+++ MANIFEST 2007-07-29 03:17:35.000000000 +0800 -@@ -23,6 +23,9 @@ - t/17splitmessage.t - t/18halt.t - t/19refcounting.t -+t/20passfd.t -+t/21parsestring.t -+t/22mwarnings.t - t/98podsyn.t - t/99podcov.t - lib/SGML/Parser/OpenSP.pm diff -ruN --exclude=CVS /usr/ports/textproc/p5-SGML-Parser-OpenSP/files/patch-OpenSP.xs /kirby/shared/ports/p5-SGML-Parser-OpenSP/files/patch-OpenSP.xs --- /usr/ports/textproc/p5-SGML-Parser-OpenSP/files/patch-OpenSP.xs Sat Jul 28 15:31:51 2007 +++ /kirby/shared/ports/p5-SGML-Parser-OpenSP/files/patch-OpenSP.xs Wed Dec 31 19:00:00 1969 @@ -1,11 +0,0 @@ ---- OpenSP.xs.orig 2007-07-29 02:53:09.000000000 +0800 -+++ OpenSP.xs 2007-07-29 02:53:39.000000000 +0800 -@@ -445,7 +445,7 @@ - AV* av = (AV*)rv; - I32 len = av_len(av); - -- for (I32 i = 0; i < len; ++i) -+ for (I32 i = 0; i <= len; ++i) - { - SV** svp = av_fetch(av, i, 0); - diff -ruN --exclude=CVS /usr/ports/textproc/p5-SGML-Parser-OpenSP/files/patch-t-20passfd.t /kirby/shared/ports/p5-SGML-Parser-OpenSP/files/patch-t-20passfd.t --- /usr/ports/textproc/p5-SGML-Parser-OpenSP/files/patch-t-20passfd.t Sat Jul 28 15:31:51 2007 +++ /kirby/shared/ports/p5-SGML-Parser-OpenSP/files/patch-t-20passfd.t Wed Dec 31 19:00:00 1969 @@ -1,50 +0,0 @@ ---- /dev/null Fri Jul 27 20:05:08 2007 -+++ t/20passfd.t Fri Jul 27 20:06:50 2007 -X@@ -0,0 +1,46 @@ -+# 20passfd.t -- ... -+# -+# $Id: 20passfd.t,v 1.4 2005/08/14 18:07:19 hoehrmann Exp $ -+ -+use strict; -+use warnings; -+use Test::More tests => 7; -+use Test::Exception; -+use File::Spec qw(); -+ -+use constant NO_DOCTYPE => File::Spec->catfile('samples', 'no-doctype.xml'); -+use constant TEST_CATALOG => File::Spec->catfile('samples', 'test.soc'); -+ -+BEGIN { use_ok('SGML::Parser::OpenSP') }; -+require_ok('SGML::Parser::OpenSP'); -+my $p = SGML::Parser::OpenSP->new; -+isa_ok($p, 'SGML::Parser::OpenSP'); -+ -+sub TestHandler20::new { bless{ok1=>0},shift } -+sub TestHandler20::start_element { shift->{ok1}++ } -+ -+sub TestHandler21::new { bless{ok1=>0},shift } -+sub TestHandler21::start_element { shift->{ok1}++ } -+ -+# -+# Check pass as filename (should work on all platforms). -+$p = SGML::Parser::OpenSP->new; -+my $h1 = TestHandler20->new; -+$p->handler($h1); -+$p->pass_file_descriptor(0); -+lives_ok { $p->parse_string("") } 'parse_string with temp file name'; -+is($h1->{ok1}, 1, "temp file name handler called"); -+undef $p; -+ -+# -+# Check pass as file descriptor (not on Win32). -+SKIP: { -+ skip 'passing fds for temp files not supported on Win32', 2 if $^O eq 'MSWin32'; -+ $p = SGML::Parser::OpenSP->new; -+ my $h2 = TestHandler21->new; -+ $p->handler($h2); -+ $p->pass_file_descriptor(1); -+ lives_ok { $p->parse_string("") } 'parse by fd'; -+ is($h2->{ok1}, 1, "temp file descriptor handler called"); -+ undef $p; -+} - diff -ruN --exclude=CVS /usr/ports/textproc/p5-SGML-Parser-OpenSP/files/patch-t-21parsestring.t /kirby/shared/ports/p5-SGML-Parser-OpenSP/files/patch-t-21parsestring.t --- /usr/ports/textproc/p5-SGML-Parser-OpenSP/files/patch-t-21parsestring.t Sat Jul 28 15:31:51 2007 +++ /kirby/shared/ports/p5-SGML-Parser-OpenSP/files/patch-t-21parsestring.t Wed Dec 31 19:00:00 1969 @@ -1,69 +0,0 @@ ---- /dev/null Fri Jul 27 20:05:08 2007 -+++ t/21parsestring.t Fri Jul 27 20:06:55 2007 -X@@ -0,0 +1,65 @@ -+# 06parseliteral.t -- ... -+# -+# $Id: 21parsestring.t,v 1.1 2006/03/06 08:51:59 tbe Exp $ -+ -+use strict; -+use warnings; -+use Test::More tests => 13; -+use Test::Exception; -+use File::Spec qw(); -+ -+use constant NO_DOCTYPE => File::Spec->catfile('samples', 'no-doctype.xml'); -+use constant TEST_CATALOG => File::Spec->catfile('samples', 'test.soc'); -+ -+BEGIN { use_ok('SGML::Parser::OpenSP') }; -+require_ok('SGML::Parser::OpenSP'); -+my $p = SGML::Parser::OpenSP->new; -+isa_ok($p, 'SGML::Parser::OpenSP'); -+ -+######################################################### -+## Parse using ->parse_string(). -+######################################################### -+ -+sub TestHandler1::new { bless{ok1=>0,ok2=>0,ok3=>0,ok4=>0,ok5=>0, -+ ok6=>0,ok7=>0,ok8=>0,ok9=>0,oka=>0},shift } -+sub TestHandler1::start_element { -+ my $s = shift; -+ my $e = shift; -+ -+ return unless defined $s; -+ return unless defined $e; -+ -+ $s->{ok1}++ if UNIVERSAL::isa($s, 'TestHandler1'); -+ -+ # Name -+ $s->{ok2}++ if exists $e->{Name}; -+ $s->{ok3}++ if $e->{Name} =~ /no-doctype/i; -+ -+ # Attributes -+ $s->{ok4}++ if exists $e->{Attributes}; -+ $s->{ok5}++ if UNIVERSAL::isa($e->{Attributes}, "HASH"); -+ $s->{ok6}++ if scalar(keys(%{$_[1]->{Attributes}})) == 0; -+ -+ # Included -+ $s->{ok7}++ if exists $e->{Included}; -+ $s->{ok8}++ if $e->{Included} == 0; -+ -+ # ContentType -+ $s->{ok9}++ if exists $e->{ContentType}; -+} -+ -+my $h1 = TestHandler1->new; -+ -+$p->handler($h1); -+lives_ok { $p->parse_string("") } -+ 'parsing with parse_string()'; -+ -+ok($h1->{ok1}, 'self to handler'); -+ok($h1->{ok2}, 'has name'); -+ok($h1->{ok3}, 'proper name'); -+ok($h1->{ok4}, 'has attrs'); -+ok($h1->{ok5}, 'attrs hash ref'); -+ok($h1->{ok6}, 'proper attrs'); -+ok($h1->{ok7}, 'has included'); -+ok($h1->{ok8}, 'included == 0'); -+ok($h1->{ok9}, 'has content type'); - diff -ruN --exclude=CVS /usr/ports/textproc/p5-SGML-Parser-OpenSP/files/patch-t-22mwarnings.t /kirby/shared/ports/p5-SGML-Parser-OpenSP/files/patch-t-22mwarnings.t --- /usr/ports/textproc/p5-SGML-Parser-OpenSP/files/patch-t-22mwarnings.t Sat Jul 28 15:31:51 2007 +++ /kirby/shared/ports/p5-SGML-Parser-OpenSP/files/patch-t-22mwarnings.t Wed Dec 31 19:00:00 1969 @@ -1,71 +0,0 @@ ---- /dev/null Fri Jul 27 20:05:08 2007 -+++ t/22mwarnings.t Fri Jul 27 20:06:59 2007 -@@ -0,0 +1,67 @@ -+# 10errors.t -- ... -+# -+# $Id: 22mwarnings.t,v 1.1 2006/11/07 11:14:13 hoehrmann Exp $ -+ -+use strict; -+use warnings; -+use Test::More tests => 7; -+use Test::Exception; -+use File::Spec qw(); -+ -+use constant NO_DOCTYPE => File::Spec->catfile('samples', 'no-doctype.xml'); -+use constant TEST_CATALOG => File::Spec->catfile('samples', 'test.soc'); -+ -+BEGIN { use_ok('SGML::Parser::OpenSP') }; -+require_ok('SGML::Parser::OpenSP'); -+my $p = SGML::Parser::OpenSP->new; -+isa_ok($p, 'SGML::Parser::OpenSP'); -+ -+######################################################### -+## Error reporting -+######################################################### -+ -+sub TestHandler5::new { bless{ok=>0},shift } -+sub TestHandler5::error -+{ -+ return unless @_ == 2; -+ $_[0]->{ok}++ if $_[1]->{Message} =~ /:8:7:W:/; -+} -+ -+my $h5 = TestHandler5->new; -+$p->catalogs(TEST_CATALOG); -+$p->warnings('xml'); -+$p->handler($h5); -+lives_ok { $p->parse("" . <<"__DOC__"); -+ -+ -+ -+ -+ -+ -+

foo & bar

-+ -+ -+__DOC__ -+} 'ampersand as data'; -+ -+is($h5->{ok}, 1, 'ampersand as data generates warning'); -+ -+# special case -+$p->warnings(qw/non-sgml-char-ref valid no-duplicate xml/); -+ -+lives_ok { $p->parse("" . <<"__DOC__"); -+ -+ -+ -+ -+ -+ -+

foo & bar

-+ -+ -+__DOC__ -+} 'ampersand as data'; -+ -+is($h5->{ok}, 2, 'ampersand as data generates warning'); - --- p5-SGML-Parser-OpenSP-0.991.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: