From vvelox@vvelox.net  Thu Jan 15 00:45:31 2009
Return-Path: <vvelox@vvelox.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 78C85106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Jan 2009 00:45:31 +0000 (UTC)
	(envelope-from vvelox@vvelox.net)
Received: from vulpes.vvelox.net (vulpes.vvelox.NET [74.200.198.26])
	by mx1.freebsd.org (Postfix) with ESMTP id 40FAE8FC0A
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Jan 2009 00:45:31 +0000 (UTC)
	(envelope-from vvelox@vvelox.net)
Received: from vixen42.vulpes (c-67-176-214-76.hsd1.il.comcast.net [67.176.214.76])
	(Authenticated sender: vvelox)
	by vulpes.vvelox.net (Postfix) with ESMTP id 409E2B83B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 Jan 2009 18:52:50 -0600 (CST)
Message-Id: <1231980569.41163@vixen42.vulpes>
Date: Wed, 14 Jan 2009 18:49:29 -0600
From: "Zane C.B." <vvelox@vvelox.net>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: New port: devel/p5-IO-MultiPipe  Check for errors when running a command through multiple pipes
X-Send-Pr-Version: gtk-send-pr 0.4.9 
X-GNATS-Notify:

>Number:         130563
>Category:       ports
>Synopsis:       New port: devel/p5-IO-MultiPipe  Check for errors when running a command through multiple pipes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 15 00:50:03 UTC 2009
>Closed-Date:    Mon Jan 26 17:51:46 UTC 2009
>Last-Modified:  Mon Jan 26 17:51:46 UTC 2009
>Originator:     Zane C.B.
>Release:        FreeBSD 6.4-PRERELEASE i386
>Organization:
>Environment:


System: FreeBSD 6.4-PRERELEASE #2: Thu Nov 20 15:59:23 CST 2008
    root@vixen42.vulpes:/usr/obj/usr/src/sys/vixen42



>Description:


Normally if a part of a pipe fails, depending on the location, it won't
be detected. This breaks down a command involving pipes and runs each
command seperately.

It uses open3 to run each chunk of the pipe.

    use IO::MultiPipe;
    
    my $pipes = IO::MultiPipe->new();
            
    #This sets the pipe that will be run.
    $pipes->set('sed s/-// | sed s/123/abc/ | sed s/ABC/abc/');
    if ($pipes->{error}){
        print "Error!\n";
    }

    #'123-ABCxyz' through the command set above.
    my $returned=$pipes->run('123-ABCxyz');

WWW: http://search.cpan.org/~vvelox/IO-MultiPipe/



>How-To-Repeat:


1: unshar
2:
3: install and enjoy


>Fix:


--- devel_p5-IO-MultiPipe.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	devel/p5-IO-MultiPipe/
#	devel/p5-IO-MultiPipe/pkg-descr
#	devel/p5-IO-MultiPipe/Makefile
#	devel/p5-IO-MultiPipe/pkg-plist
#	devel/p5-IO-MultiPipe/distinfo
#
echo c - devel/p5-IO-MultiPipe/
mkdir -p devel/p5-IO-MultiPipe/ > /dev/null 2>&1
echo x - devel/p5-IO-MultiPipe/pkg-descr
sed 's/^X//' >devel/p5-IO-MultiPipe/pkg-descr << 'bbb7b222dc2b28ef7bbb3fbf2223d7cd'
XNormally if a part of a pipe fails, depending on the location, it won't
Xbe detected. This breaks down a command involving pipes and runs each
Xcommand seperately.
X
XIt uses open3 to run each chunk of the pipe.
X
X    use IO::MultiPipe;
X    
X    my $pipes = IO::MultiPipe->new();
X	    
X    #This sets the pipe that will be run.
X    $pipes->set('sed s/-// | sed s/123/abc/ | sed s/ABC/abc/');
X    if ($pipes->{error}){
X        print "Error!\n";
X    }
X
X    #'123-ABCxyz' through the command set above.
X    my $returned=$pipes->run('123-ABCxyz');
X
XWWW: http://search.cpan.org/~vvelox/IO-MultiPipe/
bbb7b222dc2b28ef7bbb3fbf2223d7cd
echo x - devel/p5-IO-MultiPipe/Makefile
sed 's/^X//' >devel/p5-IO-MultiPipe/Makefile << '4ee16c1a444daaac727e5fedb5420388'
X# New ports collection makefile for:	p5-IO-MultiPipe
X# Date created:		2009-01-14
X# Whom:			Zane C, Bowers <vvelox@vvelox.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	IO-MultiPipe
XPORTVERSION=	0.0.0
XCATEGORIES=	net perl5
XMASTER_SITES=	CPAN
XMASTER_SITE_SUBDIR=	../../authors/id/V/VV/VVELOX
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	vvelox@vvelox.net
XCOMMENT=	Check for errors when running a command through multiple pipes
X
XPERL_CONFIGURE=	yes
X
XMAN3=		IO::MultiPipe.3
X
X.include <bsd.port.mk>
4ee16c1a444daaac727e5fedb5420388
echo x - devel/p5-IO-MultiPipe/pkg-plist
sed 's/^X//' >devel/p5-IO-MultiPipe/pkg-plist << '29f134516e396ee5d615d26168c13dbf'
X%%SITE_PERL%%/IO/MultiPipe.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/IO/MultiPipe/.packlist
X@dirrmtry %%SITE_PERL%%/IO
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/IO/MultiPipe
29f134516e396ee5d615d26168c13dbf
echo x - devel/p5-IO-MultiPipe/distinfo
sed 's/^X//' >devel/p5-IO-MultiPipe/distinfo << '1b07cbcdf6de7d140684be2f0df30a3e'
XMD5 (IO-MultiPipe-0.0.0.tar.gz) = 7f311e9405adcb12ddee1edb5f869ade
XSHA256 (IO-MultiPipe-0.0.0.tar.gz) = e300e5ca4c8a80d563b6b75191bdb37bd0833d2d14b7ed6c970cee6a8c0dd17c
XSIZE (IO-MultiPipe-0.0.0.tar.gz) = 3877
1b07cbcdf6de7d140684be2f0df30a3e
exit

--- devel_p5-IO-MultiPipe.shar ends here ---



>Release-Note:
>Audit-Trail:

From: "Zane C.B." <vvelox@vvelox.net>
To: bug-followup@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc:  
Subject: Re: ports/130563: New port: devel/p5-IO-MultiPipe  Check for errors
 when running a command through multiple pipes
Date: Wed, 14 Jan 2009 20:01:04 -0600

 --Sig_/Xw1t9cg5yk2CuXJces6/ufz
 Content-Type: multipart/mixed; boundary="MP_/F1caVRed0uso/sFvV=fM2iE"
 
 --MP_/F1caVRed0uso/sFvV=fM2iE
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 Whoops. wrong categories.
 
 
 
 --- Makefile.orig       2009-01-14 19:58:16.000000000 -0600
 +++ Makefile    2009-01-14 19:58:23.000000000 -0600
 @@ -7,7 +7,7 @@
 =20
  PORTNAME=3D      IO-MultiPipe
  PORTVERSION=3D   0.0.0
 -CATEGORIES=3D    net perl5
 +CATEGORIES=3D    devel perl5
  MASTER_SITES=3D  CPAN
  MASTER_SITE_SUBDIR=3D    ../../authors/id/V/VV/VVELOX
  PKGNAMEPREFIX=3D p5-
 
 --MP_/F1caVRed0uso/sFvV=fM2iE
 Content-Type: application/octet-stream; name=Makefile
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename=Makefile
 
 IyBOZXcgcG9ydHMgY29sbGVjdGlvbiBtYWtlZmlsZSBmb3I6CXA1LUlPLU11bHRpUGlwZQojIERh
 dGUgY3JlYXRlZDoJCTIwMDktMDEtMTQKIyBXaG9tOgkJCVphbmUgQywgQm93ZXJzIDx2dmVsb3hA
 dnZlbG94Lm5ldD4KIwojICRGcmVlQlNEJAojCgpQT1JUTkFNRT0JSU8tTXVsdGlQaXBlClBPUlRW
 RVJTSU9OPQkwLjAuMApDQVRFR09SSUVTPQlkZXZlbCBwZXJsNQpNQVNURVJfU0lURVM9CUNQQU4K
 TUFTVEVSX1NJVEVfU1VCRElSPQkuLi8uLi9hdXRob3JzL2lkL1YvVlYvVlZFTE9YClBLR05BTUVQ
 UkVGSVg9CXA1LQoKTUFJTlRBSU5FUj0JdnZlbG94QHZ2ZWxveC5uZXQKQ09NTUVOVD0JQ2hlY2sg
 Zm9yIGVycm9ycyB3aGVuIHJ1bm5pbmcgYSBjb21tYW5kIHRocm91Z2ggbXVsdGlwbGUgcGlwZXMK
 ClBFUkxfQ09ORklHVVJFPQl5ZXMKCk1BTjM9CQlJTzo6TXVsdGlQaXBlLjMKCi5pbmNsdWRlIDxi
 c2QucG9ydC5taz4K
 
 --MP_/F1caVRed0uso/sFvV=fM2iE--
 
 --Sig_/Xw1t9cg5yk2CuXJces6/ufz
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.9 (FreeBSD)
 
 iEYEARECAAYFAklumOQACgkQC1tfcMGJid6cwACgoyrDWiK4SARgy+MhJOJkC6DE
 RBQAn0Y/9YbVfNAS2FEVyKXt1e0FyXUI
 =GcV0
 -----END PGP SIGNATURE-----
 
 --Sig_/Xw1t9cg5yk2CuXJces6/ufz--
Responsible-Changed-From-To: freebsd-ports-bugs->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Mon Jan 26 05:27:14 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130563 
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Mon Jan 26 17:51:45 UTC 2009 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130563 
>Unformatted:
