From owner-dev-commits-ports-main@freebsd.org Tue Sep 21 22:24:28 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B5A5567C3AB; Tue, 21 Sep 2021 22:24:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HDbZN4CPyz4h20; Tue, 21 Sep 2021 22:24:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6FAA94271; Tue, 21 Sep 2021 22:24:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18LMOSPf037866; Tue, 21 Sep 2021 22:24:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18LMOSOr037865; Tue, 21 Sep 2021 22:24:28 GMT (envelope-from git) Date: Tue, 21 Sep 2021 22:24:28 GMT Message-Id: <202109212224.18LMOSOr037865@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 8b87ab8cba83 - main - devel/p5-Proc-FastSpawn: Add p5-Proc-FastSpawn 1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8b87ab8cba83b1b2fb9bfd06d997b77da8022ce4 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2021 22:24:29 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=8b87ab8cba83b1b2fb9bfd06d997b77da8022ce4 commit 8b87ab8cba83b1b2fb9bfd06d997b77da8022ce4 Author: Po-Chuan Hsieh AuthorDate: 2021-09-21 22:11:41 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-09-21 22:11:41 +0000 devel/p5-Proc-FastSpawn: Add p5-Proc-FastSpawn 1.2 The purpose of this small (in scope and footprint) module is simple: spawn a subprocess asynchronously as efficiently and/or fast as possible. Basically the same as calling fork+exec (on POSIX), but hopefully faster than those two syscalls. Apart from fork overhead, this module also allows you to fork+exec programs when otherwise you couldn't - for example, when you use POSIX threads in your perl process then it generally isn't safe to call fork from perl, but it is safe to use this module to execute external processes. WWW: https://metacpan.org/dist/Proc-FastSpawn --- devel/Makefile | 1 + devel/p5-Proc-FastSpawn/Makefile | 21 +++++++++++++++++++++ devel/p5-Proc-FastSpawn/distinfo | 3 +++ devel/p5-Proc-FastSpawn/pkg-descr | 11 +++++++++++ devel/p5-Proc-FastSpawn/pkg-plist | 3 +++ 5 files changed, 39 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index ac0c77befc5a..8901d5909078 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3119,6 +3119,7 @@ SUBDIR += p5-Proc-BackOff SUBDIR += p5-Proc-Background SUBDIR += p5-Proc-Daemon + SUBDIR += p5-Proc-FastSpawn SUBDIR += p5-Proc-Find-Parents SUBDIR += p5-Proc-Fork SUBDIR += p5-Proc-Guard diff --git a/devel/p5-Proc-FastSpawn/Makefile b/devel/p5-Proc-FastSpawn/Makefile new file mode 100644 index 000000000000..bd0e42d20126 --- /dev/null +++ b/devel/p5-Proc-FastSpawn/Makefile @@ -0,0 +1,21 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= Proc-FastSpawn +PORTVERSION= 1.2 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= fork+exec, or spawn, a subprocess as quickly as possible + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +USES= perl5 +USE_PERL5= configure + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Proc/FastSpawn/FastSpawn.so + +.include diff --git a/devel/p5-Proc-FastSpawn/distinfo b/devel/p5-Proc-FastSpawn/distinfo new file mode 100644 index 000000000000..334b5dbf11e4 --- /dev/null +++ b/devel/p5-Proc-FastSpawn/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1632227460 +SHA256 (Proc-FastSpawn-1.2.tar.gz) = fd525111e0f5e7de365b226b6b98b928a4293abe4928ed07d94f3aee12af2b2b +SIZE (Proc-FastSpawn-1.2.tar.gz) = 6391 diff --git a/devel/p5-Proc-FastSpawn/pkg-descr b/devel/p5-Proc-FastSpawn/pkg-descr new file mode 100644 index 000000000000..e7ae922044d4 --- /dev/null +++ b/devel/p5-Proc-FastSpawn/pkg-descr @@ -0,0 +1,11 @@ +The purpose of this small (in scope and footprint) module is simple: spawn a +subprocess asynchronously as efficiently and/or fast as possible. Basically the +same as calling fork+exec (on POSIX), but hopefully faster than those two +syscalls. + +Apart from fork overhead, this module also allows you to fork+exec programs when +otherwise you couldn't - for example, when you use POSIX threads in your perl +process then it generally isn't safe to call fork from perl, but it is safe to +use this module to execute external processes. + +WWW: https://metacpan.org/dist/Proc-FastSpawn diff --git a/devel/p5-Proc-FastSpawn/pkg-plist b/devel/p5-Proc-FastSpawn/pkg-plist new file mode 100644 index 000000000000..4e1c560ba5d3 --- /dev/null +++ b/devel/p5-Proc-FastSpawn/pkg-plist @@ -0,0 +1,3 @@ +%%SITE_ARCH%%/Proc/FastSpawn.pm +%%SITE_ARCH%%/auto/Proc/FastSpawn/FastSpawn.so +%%PERL5_MAN3%%/Proc::FastSpawn.3.gz